text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">The code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {Dispatcher as BaseDispacther} from 'flux';
class Dispatcher extends BaseDispacther {
}"><pre class="notranslate"><code class="notranslate">import {Dispatcher as BaseDispacther} from 'flux';
class Dispatcher extends BaseDispacther {
}
</code></pre></div>
<p dir="auto">Results in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Users/andreypopp/Workspace/gang/node_modules/6to5/bin/6to5/util.js:35
throw e;
^
TypeError: ./test.js: Line 1: Duplicate declaration "Dispatcher"
> 1 | import {Dispatcher as BaseDispacther} from 'flux';
| ^
2 |
3 | class Dispatcher extends BaseDispacther {
4 |
at File.errorWithNode (~/6to5/lib/6to5/transformation/file.js:333:13)
at Scope.checkBlockScopedCollisions (~/6to5/lib/6to5/traversal/scope.js:145:21)
at Scope.registerBinding (~/6to5/lib/6to5/traversal/scope.js:299:10)
at Scope.registerDeclaration (~/6to5/lib/6to5/traversal/scope.js:277:10)
at TraversalPath.functionVariableVisitor.enter (~/6to5/lib/6to5/traversal/scope.js:341:44)
at TraversalPath.call (~/6to5/lib/6to5/traversal/path.js:115:24)
at TraversalPath.visit (~/6to5/lib/6to5/traversal/path.js:136:8)
at TraversalContext.visitNode (~/6to5/lib/6to5/traversal/context.js:24:20)
at TraversalContext.visit (~/6to5/lib/6to5/traversal/context.js:41:26)
at Function.traverse.node (~/6to5/lib/6to5/traversal/index.js:38:17)"><pre class="notranslate"><code class="notranslate">/Users/andreypopp/Workspace/gang/node_modules/6to5/bin/6to5/util.js:35
throw e;
^
TypeError: ./test.js: Line 1: Duplicate declaration "Dispatcher"
> 1 | import {Dispatcher as BaseDispacther} from 'flux';
| ^
2 |
3 | class Dispatcher extends BaseDispacther {
4 |
at File.errorWithNode (~/6to5/lib/6to5/transformation/file.js:333:13)
at Scope.checkBlockScopedCollisions (~/6to5/lib/6to5/traversal/scope.js:145:21)
at Scope.registerBinding (~/6to5/lib/6to5/traversal/scope.js:299:10)
at Scope.registerDeclaration (~/6to5/lib/6to5/traversal/scope.js:277:10)
at TraversalPath.functionVariableVisitor.enter (~/6to5/lib/6to5/traversal/scope.js:341:44)
at TraversalPath.call (~/6to5/lib/6to5/traversal/path.js:115:24)
at TraversalPath.visit (~/6to5/lib/6to5/traversal/path.js:136:8)
at TraversalContext.visitNode (~/6to5/lib/6to5/traversal/context.js:24:20)
at TraversalContext.visit (~/6to5/lib/6to5/traversal/context.js:41:26)
at Function.traverse.node (~/6to5/lib/6to5/traversal/index.js:38:17)
</code></pre></div> | <p dir="auto">I've just updated to 3.6.0. The following gives the error "duplicate declaration", but Is it intended?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {A as A_} from 'module';
class A {
}"><pre class="notranslate"><code class="notranslate">import {A as A_} from 'module';
class A {
}
</code></pre></div>
<p dir="auto">This is a little continuation of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57411260" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/759" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/759/hovercard" href="https://github.com/babel/babel/issues/759">#759</a>, sorry if it's a rather obvious issue, I'm not super-familiar with the spec.</p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">After some googling and asking on IRC, there doesn't seem to be a global defaults variable file where you can set things like accelerate and gather_facts.</p>
<p dir="auto">group_vars/all doesn't seem to work for variables at this level.</p>
<p dir="auto">This means that for a big playbook with many plays you have to explicitly set them for each play, this is probably suboptimal ?</p> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">No configurations changed.</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Ansible does not resolve the custom modules which are in form of folders in local library folder.<br>
However it resolve the modules if configured in library parameter ansible.cfg .<br>
Its mentioned that .</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<ol dir="auto">
<li>write a python script for custom module .</li>
<li>create the directory for custom module.</li>
<li>create a directory named library and copy the custom module into it.</li>
<li>Try running the custom module with a playbook at same directory level.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate">
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">expected result : playbook runs the custom module .</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">actual result : syntax error ( at the point where the custom module is used . )</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/root/linch-pin/roles/common/tasks/main.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: "schema check for given topology file"
^ here
The error appears to have been in '/root/linch-pin/roles/common/tasks/main.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
"><pre class="notranslate"><code class="notranslate">ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
The error appears to have been in '/root/linch-pin/roles/common/tasks/main.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: "schema check for given topology file"
^ here
The error appears to have been in '/root/linch-pin/roles/common/tasks/main.yml': line 4, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
</code></pre></div> | 0 |
<p dir="auto">I'm Looking to create a similar custom extension to push any javascript code blocks to a designated area on the page or below footer.</p>
<p dir="auto">My version works using Python 3.6,Flask and Jinja 2.9. However I have a major<br>
issue that occurs after changing the line number or content within the blocks.<br>
The content will appear multiple times on render.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from jinja2 import nodes
from jinja2.ext import Extension
class JavascriptBuilderExtension(Extension):
tags = set(['push'])
def __init__(self, environment):
super(JavascriptBuilderExtension, self).__init__(environment)
self._myScope = {}
environment.extend(
pull = self._myScope
)
def parse(self, parser):
"""Parse tokens """
tag = parser.stream.__next__()
args = [parser.parse_expression(), nodes.Const(tag.lineno)]
body = parser.parse_statements(['name:endpush'], drop_needle=True)
callback = self.call_method('compiled', args)
return nodes.CallBlock(callback,[], [], body).set_lineno(tag.lineno)
def compiled(self,tagname,linenum,caller):
tagname = "{}_{}".format( tagname, linenum)
self._myScope[tagname] = caller()
return "<!-- moved {} from line {} -->".format(tagname,linenum)"><pre class="notranslate"><code class="notranslate">from jinja2 import nodes
from jinja2.ext import Extension
class JavascriptBuilderExtension(Extension):
tags = set(['push'])
def __init__(self, environment):
super(JavascriptBuilderExtension, self).__init__(environment)
self._myScope = {}
environment.extend(
pull = self._myScope
)
def parse(self, parser):
"""Parse tokens """
tag = parser.stream.__next__()
args = [parser.parse_expression(), nodes.Const(tag.lineno)]
body = parser.parse_statements(['name:endpush'], drop_needle=True)
callback = self.call_method('compiled', args)
return nodes.CallBlock(callback,[], [], body).set_lineno(tag.lineno)
def compiled(self,tagname,linenum,caller):
tagname = "{}_{}".format( tagname, linenum)
self._myScope[tagname] = caller()
return "<!-- moved {} from line {} -->".format(tagname,linenum)
</code></pre></div>
<p dir="auto">My template code looks like this</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<html> <head></head> <body> <h1>Test template</h1>
{% push 'js' %} X {% endpush %}
{% push 'html' %} Z {% endpush %}
{% push 'js' %} Y {% endpush %}
{{ pull }}
</body> </html>"><pre class="notranslate"><code class="notranslate"><html> <head></head> <body> <h1>Test template</h1>
{% push 'js' %} X {% endpush %}
{% push 'html' %} Z {% endpush %}
{% push 'js' %} Y {% endpush %}
{{ pull }}
</body> </html>
</code></pre></div>
<p dir="auto">My rendered output is below:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<html> <head></head> <body> <h1>Test template</h1>
name = hyper testing jinja
date = right now
<!-- moved js_4 from line 4 -->
<!-- moved html_5 from line 5 -->
<!-- moved js_6 from line 6 -->
{'js_4': ' X ', 'html_5': ' Z ', 'js_6': ' Y '}
</body> </html>"><pre class="notranslate"><code class="notranslate"><html> <head></head> <body> <h1>Test template</h1>
name = hyper testing jinja
date = right now
<!-- moved js_4 from line 4 -->
<!-- moved html_5 from line 5 -->
<!-- moved js_6 from line 6 -->
{'js_4': ' X ', 'html_5': ' Z ', 'js_6': ' Y '}
</body> </html>
</code></pre></div>
<p dir="auto"><strong>The Problem happens after I change the template block line number or content.</strong></p>
<p dir="auto"><strong>After changing content and line numbers</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<html> <head></head> <body> <h1>Test template</h1>
{% push 'js' %} ABC {% endpush %}
{% push 'html' %} Z {% endpush %}
{% push 'js' %} 123{% endpush %}
{{ pull }}
</body> </html>"><pre class="notranslate"><code class="notranslate"><html> <head></head> <body> <h1>Test template</h1>
{% push 'js' %} ABC {% endpush %}
{% push 'html' %} Z {% endpush %}
{% push 'js' %} 123{% endpush %}
{{ pull }}
</body> </html>
</code></pre></div>
<p dir="auto"><strong>Render changed blocks now has prior content</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<html> <head></head> <body> <h1>Test template</h1>
name = hyper testing jinja
date = right now
<!-- moved js_4 from line 4 -->
<!-- moved html_7 from line 7 -->
<!-- moved js_9 from line 9 -->
{'js_4': ' X ABC', 'html_5': ' Z ', 'js_6': ' Y ','js_9':'123','html_7':'Z'}
</body> </html>"><pre class="notranslate"><code class="notranslate"><html> <head></head> <body> <h1>Test template</h1>
name = hyper testing jinja
date = right now
<!-- moved js_4 from line 4 -->
<!-- moved html_7 from line 7 -->
<!-- moved js_9 from line 9 -->
{'js_4': ' X ABC', 'html_5': ' Z ', 'js_6': ' Y ','js_9':'123','html_7':'Z'}
</body> </html>
</code></pre></div>
<p dir="auto">This issue causes duplicate content to be added into the response.</p>
<p dir="auto">Is there a way to call the extension on ever page request to re-parse the template for new changes? or Possible to not cache the enclosed extension blocks?</p>
<p dir="auto">I have already tried adding the code below to auto reload templates but does not help the issue.</p>
<p dir="auto"><code class="notranslate">app.jinja_env.auto_reload = True</code></p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Python version: 3.6</li>
<li>Flask version:0.10</li>
<li>Werkzeug version:0.12.2</li>
</ul> | <p dir="auto">Duplicate: Sorry<br>
I can't download the documentation ether pdf of zip file from flask website.<br>
Djoudi</p> | 0 |
<h3 dir="auto">Description</h3>
<p dir="auto">IterativeImputer seems to give pretty rubbish values when using the two-step <code class="notranslate">fit()</code> and <code class="notranslate">transform()</code> on a train/test data split versus simply using <code class="notranslate">fit_transform()</code> on the entire dataset. Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="467756971" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/14338" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/14338/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/14338">#14338</a> may be related.</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<p dir="auto">Here's a fairly minimal example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.experimental import enable_iterative_imputer
from sklearn.impute import IterativeImputer
from sklearn.linear_model import LinearRegression
import numpy as np
# x_0 = x_1 + x_2 + x_3
train = np.array([
[ 5, 2, 2, 1],
[10, 1, 2, 7],
[ 3, 1, 1, 1],
[ 8, 4, 2, 2]
])
test = np.array([
[np.nan, 2, 4, 5],
[np.nan, 4, 1, 2],
[np.nan, 1, 10, 1]
])
y_actual = np.array([11, 7, 12])
## Prediction using IterativeImputer and the 1-step fit_transform()
imputer = IterativeImputer(estimator = LinearRegression())
fullData = np.concatenate([train,test])
imputedData = imputer.fit_transform(fullData)
y_1imputed = imputedData[-3:,0]
## Prediction using IterativeImputer and the 2-step fit() / transform()
imputer2 = IterativeImputer(estimator = LinearRegression())
imputer2 = imputer2.fit(train)
imputedTest = imputer2.transform(test)
y_2imputed = imputedTest[:,0]
print('Actual y: {}'.format(y_actual))
print('1-step Imputed y: {}'.format(y_1imputed))
print('2-step Imputed y: {}'.format(y_2imputed))"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">experimental</span> <span class="pl-k">import</span> <span class="pl-s1">enable_iterative_imputer</span>
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">impute</span> <span class="pl-k">import</span> <span class="pl-v">IterativeImputer</span>
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">linear_model</span> <span class="pl-k">import</span> <span class="pl-v">LinearRegression</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-c"># x_0 = x_1 + x_2 + x_3</span>
<span class="pl-s1">train</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([
[ <span class="pl-c1">5</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>],
[<span class="pl-c1">10</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">7</span>],
[ <span class="pl-c1">3</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>],
[ <span class="pl-c1">8</span>, <span class="pl-c1">4</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>]
])
<span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([
[<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-c1">2</span>, <span class="pl-c1">4</span>, <span class="pl-c1">5</span>],
[<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-c1">4</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>],
[<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-c1">1</span>, <span class="pl-c1">10</span>, <span class="pl-c1">1</span>]
])
<span class="pl-s1">y_actual</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">11</span>, <span class="pl-c1">7</span>, <span class="pl-c1">12</span>])
<span class="pl-c">## Prediction using IterativeImputer and the 1-step fit_transform()</span>
<span class="pl-s1">imputer</span> <span class="pl-c1">=</span> <span class="pl-v">IterativeImputer</span>(<span class="pl-s1">estimator</span> <span class="pl-c1">=</span> <span class="pl-v">LinearRegression</span>())
<span class="pl-s1">fullData</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">concatenate</span>([<span class="pl-s1">train</span>,<span class="pl-s1">test</span>])
<span class="pl-s1">imputedData</span> <span class="pl-c1">=</span> <span class="pl-s1">imputer</span>.<span class="pl-en">fit_transform</span>(<span class="pl-s1">fullData</span>)
<span class="pl-s1">y_1imputed</span> <span class="pl-c1">=</span> <span class="pl-s1">imputedData</span>[<span class="pl-c1">-</span><span class="pl-c1">3</span>:,<span class="pl-c1">0</span>]
<span class="pl-c">## Prediction using IterativeImputer and the 2-step fit() / transform()</span>
<span class="pl-s1">imputer2</span> <span class="pl-c1">=</span> <span class="pl-v">IterativeImputer</span>(<span class="pl-s1">estimator</span> <span class="pl-c1">=</span> <span class="pl-v">LinearRegression</span>())
<span class="pl-s1">imputer2</span> <span class="pl-c1">=</span> <span class="pl-s1">imputer2</span>.<span class="pl-en">fit</span>(<span class="pl-s1">train</span>)
<span class="pl-s1">imputedTest</span> <span class="pl-c1">=</span> <span class="pl-s1">imputer2</span>.<span class="pl-en">transform</span>(<span class="pl-s1">test</span>)
<span class="pl-s1">y_2imputed</span> <span class="pl-c1">=</span> <span class="pl-s1">imputedTest</span>[:,<span class="pl-c1">0</span>]
<span class="pl-en">print</span>(<span class="pl-s">'Actual y: {}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">y_actual</span>))
<span class="pl-en">print</span>(<span class="pl-s">'1-step Imputed y: {}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">y_1imputed</span>))
<span class="pl-en">print</span>(<span class="pl-s">'2-step Imputed y: {}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">y_2imputed</span>))</pre></div>
<h4 dir="auto">Expected Results</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Actual y: [11 7 12]
1-step Imputed y: [11. 7. 12.]
2-step Imputed y: [11. 7. 12.]"><pre class="notranslate"><code class="notranslate">Actual y: [11 7 12]
1-step Imputed y: [11. 7. 12.]
2-step Imputed y: [11. 7. 12.]
</code></pre></div>
<h4 dir="auto">Actual Results</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Actual y: [11 7 12]
1-step Imputed y: [11. 7. 12.]
2-step Imputed y: [6.5 6.5 6.5]"><pre class="notranslate"><code class="notranslate">Actual y: [11 7 12]
1-step Imputed y: [11. 7. 12.]
2-step Imputed y: [6.5 6.5 6.5]
</code></pre></div>
<h4 dir="auto">Versions</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="System:
python: 3.7.2 (default, Dec 29 2018, 06:19:36) [GCC 7.3.0]
executable: /home/jack/miniconda3/bin/python
machine: Linux-4.15.0-54-generic-x86_64-with-debian-buster-sid
BLAS:
macros: NO_ATLAS_INFO=1, HAVE_CBLAS=None
lib_dirs: /usr/lib/x86_64-linux-gnu
cblas_libs: cblas
Python deps:
pip: 19.1.1
setuptools: 40.2.0
sklearn: 0.22.dev0
numpy: 1.15.3
scipy: 1.1.0
Cython: 0.29.12
pandas: 0.24.2
matplotlib: 3.0.2
joblib: 0.13.2"><pre class="notranslate"><code class="notranslate">System:
python: 3.7.2 (default, Dec 29 2018, 06:19:36) [GCC 7.3.0]
executable: /home/jack/miniconda3/bin/python
machine: Linux-4.15.0-54-generic-x86_64-with-debian-buster-sid
BLAS:
macros: NO_ATLAS_INFO=1, HAVE_CBLAS=None
lib_dirs: /usr/lib/x86_64-linux-gnu
cblas_libs: cblas
Python deps:
pip: 19.1.1
setuptools: 40.2.0
sklearn: 0.22.dev0
numpy: 1.15.3
scipy: 1.1.0
Cython: 0.29.12
pandas: 0.24.2
matplotlib: 3.0.2
joblib: 0.13.2
</code></pre></div> | <p dir="auto">Why is this behaviour forced:</p>
<p dir="auto"><em>Features with missing values during transform which did not have any missing values during fit will be imputed with the initial imputation method only.</em></p>
<p dir="auto"><a href="https://scikit-learn.org/dev/modules/generated/sklearn.impute.IterativeImputer.html#sklearn.impute.IterativeImputer" rel="nofollow">https://scikit-learn.org/dev/modules/generated/sklearn.impute.IterativeImputer.html#sklearn.impute.IterativeImputer</a></p>
<p dir="auto">This means by default it will return the mean of that feature. I would prefer just fit one iteration of the chosen estimator and use that fitted estimator to impute missing values.</p>
<p dir="auto">Actual behaviour:<br>
Example - The second feature missing np.nan --> mean imputation</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
from sklearn.impute import IterativeImputer
imp = IterativeImputer(max_iter=10, verbose=0)
imp.fit([[1, 2], [3, 6], [4, 8], [10, 20], [np.nan, 22], [7, 14]])
X_test = [[np.nan, 4], [6, np.nan], [np.nan, 6], [4, np.nan], [33, np.nan]]
print(np.round(imp.transform(X_test)))"><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">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">impute</span> <span class="pl-k">import</span> <span class="pl-v">IterativeImputer</span>
<span class="pl-s1">imp</span> <span class="pl-c1">=</span> <span class="pl-v">IterativeImputer</span>(<span class="pl-s1">max_iter</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-s1">imp</span>.<span class="pl-en">fit</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>], [<span class="pl-c1">3</span>, <span class="pl-c1">6</span>], [<span class="pl-c1">4</span>, <span class="pl-c1">8</span>], [<span class="pl-c1">10</span>, <span class="pl-c1">20</span>], [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-c1">22</span>], [<span class="pl-c1">7</span>, <span class="pl-c1">14</span>]])
<span class="pl-v">X_test</span> <span class="pl-c1">=</span> [[<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-c1">4</span>], [<span class="pl-c1">6</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">6</span>], [<span class="pl-c1">4</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>], [<span class="pl-c1">33</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>]]
<span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">round</span>(<span class="pl-s1">imp</span>.<span class="pl-en">transform</span>(<span class="pl-v">X_test</span>)))</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Return:
[[ 2. 4.]
[ 6. 12.]
[ 3. 6.]
[ 4. 12.]
[33. 12.]]"><pre class="notranslate"><code class="notranslate">Return:
[[ 2. 4.]
[ 6. 12.]
[ 3. 6.]
[ 4. 12.]
[33. 12.]]
</code></pre></div>
<p dir="auto">Example adjusted - Second feature has np.nan values --> iterative imputation with estimator</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
from sklearn.impute import IterativeImputer
imp = IterativeImputer(max_iter=10, verbose=0)
imp.fit([[1, 2], [3, 6], [4, 8], [10, 20], [np.nan, 22], [7, np.nan]])
X_test = [[np.nan, 4], [6, np.nan], [np.nan, 6], [4, np.nan], [33, np.nan]]
print(np.round(imp.transform(X_test)))"><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">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">impute</span> <span class="pl-k">import</span> <span class="pl-v">IterativeImputer</span>
<span class="pl-s1">imp</span> <span class="pl-c1">=</span> <span class="pl-v">IterativeImputer</span>(<span class="pl-s1">max_iter</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-s1">imp</span>.<span class="pl-en">fit</span>([[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>], [<span class="pl-c1">3</span>, <span class="pl-c1">6</span>], [<span class="pl-c1">4</span>, <span class="pl-c1">8</span>], [<span class="pl-c1">10</span>, <span class="pl-c1">20</span>], [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-c1">22</span>], [<span class="pl-c1">7</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>]])
<span class="pl-v">X_test</span> <span class="pl-c1">=</span> [[<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-c1">4</span>], [<span class="pl-c1">6</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">6</span>], [<span class="pl-c1">4</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>], [<span class="pl-c1">33</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>]]
<span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">round</span>(<span class="pl-s1">imp</span>.<span class="pl-en">transform</span>(<span class="pl-v">X_test</span>)))</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Return:
[[ 2. 4.]
[ 6. 12.]
[ 3. 6.]
[ 4. 8.]
[33. 66.]]"><pre class="notranslate"><code class="notranslate">Return:
[[ 2. 4.]
[ 6. 12.]
[ 3. 6.]
[ 4. 8.]
[33. 66.]]
</code></pre></div>
<p dir="auto">Maybe <a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/impute.py">sklearn/impute.py</a> line 679 to 683 should be optional with a parameter like force-iterimpute.</p> | 1 |
<h3 dir="auto">Bug summary</h3>
<p dir="auto">I am trying to create a 3d histogram following the solution suggested <a href="https://stackoverflow.com/a/51624315/5472354" rel="nofollow">here</a>, which is based on [this matplotlib demo](Create 3D histogram of 2D data). In the finished plot however, the <code class="notranslate">zorder</code> of the bar sides are all messed up.</p>
<h3 dir="auto">Code for reproduction</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm
# source: https://stackoverflow.com/a/56923189/5472354
def gaus2d(x=0, y=0, mx=0, my=0, sx=1, sy=1):
return 1. / (2. * np.pi * sx * sy) * np.exp(
-((x - mx) ** 2. / (2. * sx ** 2.) + (y - my) ** 2. / (2. * sy ** 2.)))
sample_radius = 5
n_samples = 11
x = np.linspace(-sample_radius, sample_radius, num=n_samples)
y = np.linspace(-sample_radius, sample_radius, num=n_samples)
z = gaus2d(*np.meshgrid(x, y))
fig = plt.figure(constrained_layout=True)
ax = fig.add_subplot(111, projection='3d')
ax.axis('off')
ax.margins(0)
hist, xedges, yedges = np.histogram2d(x, y, bins=n_samples)
xpos, ypos = np.meshgrid(xedges[:-1] + xedges[1:], yedges[:-1] + yedges[1:])
xpos = xpos.flatten() / 2.
ypos = ypos.flatten() / 2.
zpos = np.zeros_like(xpos)
dx = xedges[1] - xedges[0]
dy = yedges[1] - yedges[0]
dz = z.flatten()
cmap = cm.get_cmap('viridis')
max_height = np.max(dz)
min_height = np.min(dz)
rgba = [cmap((k-min_height)/max_height) for k in dz]
ax.bar3d(
xpos, ypos, zpos, dx, dy, dz, color=rgba, zsort='average', shade=True
)
plt.show()"><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">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">cm</span>
<span class="pl-c"># source: https://stackoverflow.com/a/56923189/5472354</span>
<span class="pl-k">def</span> <span class="pl-en">gaus2d</span>(<span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">mx</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">my</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">sx</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">sy</span><span class="pl-c1">=</span><span class="pl-c1">1</span>):
<span class="pl-k">return</span> <span class="pl-c1">1.</span> <span class="pl-c1">/</span> (<span class="pl-c1">2.</span> <span class="pl-c1">*</span> <span class="pl-s1">np</span>.<span class="pl-s1">pi</span> <span class="pl-c1">*</span> <span class="pl-s1">sx</span> <span class="pl-c1">*</span> <span class="pl-s1">sy</span>) <span class="pl-c1">*</span> <span class="pl-s1">np</span>.<span class="pl-en">exp</span>(
<span class="pl-c1">-</span>((<span class="pl-s1">x</span> <span class="pl-c1">-</span> <span class="pl-s1">mx</span>) <span class="pl-c1">**</span> <span class="pl-c1">2.</span> <span class="pl-c1">/</span> (<span class="pl-c1">2.</span> <span class="pl-c1">*</span> <span class="pl-s1">sx</span> <span class="pl-c1">**</span> <span class="pl-c1">2.</span>) <span class="pl-c1">+</span> (<span class="pl-s1">y</span> <span class="pl-c1">-</span> <span class="pl-s1">my</span>) <span class="pl-c1">**</span> <span class="pl-c1">2.</span> <span class="pl-c1">/</span> (<span class="pl-c1">2.</span> <span class="pl-c1">*</span> <span class="pl-s1">sy</span> <span class="pl-c1">**</span> <span class="pl-c1">2.</span>)))
<span class="pl-s1">sample_radius</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span>
<span class="pl-s1">n_samples</span> <span class="pl-c1">=</span> <span class="pl-c1">11</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-s1">sample_radius</span>, <span class="pl-s1">sample_radius</span>, <span class="pl-s1">num</span><span class="pl-c1">=</span><span class="pl-s1">n_samples</span>)
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-s1">sample_radius</span>, <span class="pl-s1">sample_radius</span>, <span class="pl-s1">num</span><span class="pl-c1">=</span><span class="pl-s1">n_samples</span>)
<span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-en">gaus2d</span>(<span class="pl-c1">*</span><span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>))
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s1">constrained_layout</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">111</span>, <span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">axis</span>(<span class="pl-s">'off'</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">margins</span>(<span class="pl-c1">0</span>)
<span class="pl-s1">hist</span>, <span class="pl-s1">xedges</span>, <span class="pl-s1">yedges</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">histogram2d</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">bins</span><span class="pl-c1">=</span><span class="pl-s1">n_samples</span>)
<span class="pl-s1">xpos</span>, <span class="pl-s1">ypos</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>(<span class="pl-s1">xedges</span>[:<span class="pl-c1">-</span><span class="pl-c1">1</span>] <span class="pl-c1">+</span> <span class="pl-s1">xedges</span>[<span class="pl-c1">1</span>:], <span class="pl-s1">yedges</span>[:<span class="pl-c1">-</span><span class="pl-c1">1</span>] <span class="pl-c1">+</span> <span class="pl-s1">yedges</span>[<span class="pl-c1">1</span>:])
<span class="pl-s1">xpos</span> <span class="pl-c1">=</span> <span class="pl-s1">xpos</span>.<span class="pl-en">flatten</span>() <span class="pl-c1">/</span> <span class="pl-c1">2.</span>
<span class="pl-s1">ypos</span> <span class="pl-c1">=</span> <span class="pl-s1">ypos</span>.<span class="pl-en">flatten</span>() <span class="pl-c1">/</span> <span class="pl-c1">2.</span>
<span class="pl-s1">zpos</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros_like</span>(<span class="pl-s1">xpos</span>)
<span class="pl-s1">dx</span> <span class="pl-c1">=</span> <span class="pl-s1">xedges</span>[<span class="pl-c1">1</span>] <span class="pl-c1">-</span> <span class="pl-s1">xedges</span>[<span class="pl-c1">0</span>]
<span class="pl-s1">dy</span> <span class="pl-c1">=</span> <span class="pl-s1">yedges</span>[<span class="pl-c1">1</span>] <span class="pl-c1">-</span> <span class="pl-s1">yedges</span>[<span class="pl-c1">0</span>]
<span class="pl-s1">dz</span> <span class="pl-c1">=</span> <span class="pl-s1">z</span>.<span class="pl-en">flatten</span>()
<span class="pl-s1">cmap</span> <span class="pl-c1">=</span> <span class="pl-s1">cm</span>.<span class="pl-en">get_cmap</span>(<span class="pl-s">'viridis'</span>)
<span class="pl-s1">max_height</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">max</span>(<span class="pl-s1">dz</span>)
<span class="pl-s1">min_height</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">min</span>(<span class="pl-s1">dz</span>)
<span class="pl-s1">rgba</span> <span class="pl-c1">=</span> [<span class="pl-en">cmap</span>((<span class="pl-s1">k</span><span class="pl-c1">-</span><span class="pl-s1">min_height</span>)<span class="pl-c1">/</span><span class="pl-s1">max_height</span>) <span class="pl-k">for</span> <span class="pl-s1">k</span> <span class="pl-c1">in</span> <span class="pl-s1">dz</span>]
<span class="pl-s1">ax</span>.<span class="pl-en">bar3d</span>(
<span class="pl-s1">xpos</span>, <span class="pl-s1">ypos</span>, <span class="pl-s1">zpos</span>, <span class="pl-s1">dx</span>, <span class="pl-s1">dy</span>, <span class="pl-s1">dz</span>, <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s1">rgba</span>, <span class="pl-s1">zsort</span><span class="pl-c1">=</span><span class="pl-s">'average'</span>, <span class="pl-s1">shade</span><span class="pl-c1">=</span><span class="pl-c1">True</span>
)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<h3 dir="auto">Actual outcome</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/48512334/227296083-722dd67c-f315-4d0b-8bff-275cef1ee043.png"><img src="https://user-images.githubusercontent.com/48512334/227296083-722dd67c-f315-4d0b-8bff-275cef1ee043.png" alt="grafik" style="max-width: 100%;"></a></p>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto">A plot where the zorder is correct (although I have to admit, the result looks like a neat art piece).</p>
<h3 dir="auto">Additional information</h3>
<p dir="auto">I would guess it has something to do with the <code class="notranslate">zsort</code> argument, but I actually didn't manage to find the documentation for <code class="notranslate">bar3d</code>, only <a href="https://stackoverflow.com/a/47445406/5472354" rel="nofollow">this post</a>. I tried all three possibilities, but none of them worked. Is <code class="notranslate">bar3d</code> depreciated?</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">Windows 10</p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">3.6.1</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto">backend_interagg</p>
<h3 dir="auto">Python version</h3>
<p dir="auto">3.9.7</p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Installation</h3>
<p dir="auto">conda</p> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong><br>
Z-order of rendered planes in 3d bar chart produced by bar3d is wrong. It is seen even in the example here <a href="https://matplotlib.org/gallery/mplot3d/3d_bars.html" rel="nofollow">https://matplotlib.org/gallery/mplot3d/3d_bars.html</a>. One of the bars (at location 2, 4, height 6) is drawn on top of the highest bar, even though it supposed to be behind it.</p>
<p dir="auto"><strong>Code for reproduction</strong><br>
A small modification of the code from example to make it more pronounced.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import matplotlib.pyplot as plt
# This import registers the 3D projection, but is otherwise unused.
from mpl_toolkits.mplot3d import Axes3D # noqa: F401 unused import
# setup the figure and axes
fig = plt.figure(figsize=(8, 8))
ax1 = fig.add_subplot(111, projection='3d')
# fake data
_x = np.arange(8)
_y = np.arange(8)
_xx, _yy = np.meshgrid(_x, _y)
x, y = _xx.ravel(), _yy.ravel()
top = x + y
bottom = np.zeros_like(top)
width = depth = 1
ax1.bar3d(x, y, bottom, width, depth, top, shade=True)
ax1.set_title('Shaded')
plt.show()"><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">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-c"># This import registers the 3D projection, but is otherwise unused.</span>
<span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">mplot3d</span> <span class="pl-k">import</span> <span class="pl-v">Axes3D</span> <span class="pl-c"># noqa: F401 unused import</span>
<span class="pl-c"># setup the figure and axes</span>
<span class="pl-s1">fig</span> <span class="pl-c1">=</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">8</span>, <span class="pl-c1">8</span>))
<span class="pl-s1">ax1</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">111</span>, <span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-c"># fake data</span>
<span class="pl-s1">_x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">8</span>)
<span class="pl-s1">_y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">8</span>)
<span class="pl-s1">_xx</span>, <span class="pl-s1">_yy</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>(<span class="pl-s1">_x</span>, <span class="pl-s1">_y</span>)
<span class="pl-s1">x</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">_xx</span>.<span class="pl-en">ravel</span>(), <span class="pl-s1">_yy</span>.<span class="pl-en">ravel</span>()
<span class="pl-s1">top</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span> <span class="pl-c1">+</span> <span class="pl-s1">y</span>
<span class="pl-s1">bottom</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros_like</span>(<span class="pl-s1">top</span>)
<span class="pl-s1">width</span> <span class="pl-c1">=</span> <span class="pl-s1">depth</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span>
<span class="pl-s1">ax1</span>.<span class="pl-en">bar3d</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>, <span class="pl-s1">bottom</span>, <span class="pl-s1">width</span>, <span class="pl-s1">depth</span>, <span class="pl-s1">top</span>, <span class="pl-s1">shade</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">ax1</span>.<span class="pl-en">set_title</span>(<span class="pl-s">'Shaded'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9054941/54744129-1905ce80-4c01-11e9-808a-39a54d870363.png"><img src="https://user-images.githubusercontent.com/9054941/54744129-1905ce80-4c01-11e9-808a-39a54d870363.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Everything to the right from diagonal is rendered incorrectly.</p>
<p dir="auto"><strong>Matplotlib version</strong><br>
Tested on two machines with the same results.</p>
<ul dir="auto">
<li>Operating system: mac and windows</li>
<li>Matplotlib version:<br>
matplotlib 2.1.2 py36h6d6146d_0<br>
and<br>
matplotlib 3.0.3 py37_0 conda-forge</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): module://ipykernel.pylab.backend_inline</li>
<li>Python version:<br>
3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 13:19:00)<br>
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]<br>
and<br>
3.7.1 | packaged by conda-forge | (default, Mar 13 2019, 13:32:59) [MSC v.1900 64 bit (AMD64)]</li>
<li>Jupyter version (if applicable):<br>
ipython 5.1.0 py36_1<br>
and<br>
ipython 7.3.0 py37h39e3cac_0 conda-forge</li>
</ul> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=rweneck" rel="nofollow">Rusty Weneck</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6951?redirect=false" rel="nofollow">SPR-6951</a></strong> and commented</p>
<p dir="auto">When determining which method of a controller to invoke it can be important to not decode url encodings, especially if the data on the REST request path contains the / (forward slash) character. However once this data is passed to the method as a parameter it would be nice to have it restored to its original encoding. I propose adding an additional boolean which optionally url decodes the return value from AnnotationMethodHandlerAdapter.ServletHandlerMethodInvoker.resolvePathVariable . This issues is particularly tricky as AnnotationMethodHandlerAdapter.ServletHandlerMethodInvoker is a private inner class and cannot easily be overridden.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.1</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/16258/AnnotationMethodHandlerAdapter.patch" rel="nofollow">AnnotationMethodHandlerAdapter.patch</a> (<em>3.43 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398117109" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13736" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13736/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13736">#13736</a> Decode URI variable values when UrlPathHelper.setUrlDecode() is set to false (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/0105c5ebb9896641bdc601ff164a2404e817e505/hovercard" href="https://github.com/spring-projects/spring-framework/commit/0105c5ebb9896641bdc601ff164a2404e817e505"><tt>0105c5e</tt></a></p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kdonald" rel="nofollow">Keith Donald</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6858?redirect=false" rel="nofollow">SPR-6858</a></strong> and commented</p>
<p dir="auto">Since Spring 3 targets Java 5, I wouldn't expect to need SimpleJdbcTemplate anymore. I'd expect Java 5 functionality to be incorporated in the base JdbcTemplate so I could take advantage of simplifications there without having to bring in another class. Then I would only ever want to work with JdbcTemplate.</p>
<p dir="auto">The most useful feature of SimpleJdbcTemplate not in JdbcTemplate is the ability to specify args using var args.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 GA</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="398103032" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11522" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11522/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11522">#11522</a> Could SimpleJdbcTemplate/Operations/DaoSupport be deprecated now? (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/c39b529c9387c58826aa0d2f73b123ea11071ba7/hovercard" href="https://github.com/spring-projects/spring-framework/commit/c39b529c9387c58826aa0d2f73b123ea11071ba7"><tt>c39b529</tt></a></p> | 0 |
<p dir="auto">I noticed my Bonfires have stopped saving my work after Basic Algorithms <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53838420" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9" data-hovercard-type="pull_request" data-hovercard-url="/freeCodeCamp/freeCodeCamp/pull/9/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/pull/9">#9</a></p>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/bonfire-repeat-a-string-repeat-a-string" rel="nofollow">http://freecodecamp.com/challenges/bonfire-repeat-a-string-repeat-a-string</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-find-the-longest-word-in-a-string" rel="nofollow">http://www.freecodecamp.com/challenges/bonfire-find-the-longest-word-in-a-string</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">The code editor does not update with the code changes.</p>
<p dir="auto">The editor retains the code I originally entered, which is not correct. I corrected my code, and passed the challenge. It gave me the success message, and incremented my task counter, but when I return to this page, it still has my original, incorrect code.</p> | 1 |
<p dir="auto"><strong>Description</strong></p>
<p dir="auto">How can I [...]?</p>
<p dir="auto">Is it possible to [...]?</p>
<p dir="auto"><strong>Additional context</strong><br>
Add any other context or screenshots about the feature request here.</p> | <h3 dir="auto">First check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> After submitting this, I commit to:
<ul dir="auto">
<li>Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.</li>
<li>Or, I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.</li>
<li>Implement a Pull Request for a confirmed bug.</li>
</ul>
</li>
</ul>
<h3 dir="auto">Example</h3>
<p dir="auto">I propse to allow transforming:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from typing import Optional
from fastapi import Depends, FastAPI
app = FastAPI()
async def common_parameters(q: Optional[str] = None, skip: int = 0, limit: int = 100):
return {"q": q, "skip": skip, "limit": limit}
@app.get("/items/")
async def read_items(commons: dict = Depends(common_parameters)):
return commons"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">Optional</span>
<span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">Depends</span>, <span class="pl-v">FastAPI</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>()
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">common_parameters</span>(<span class="pl-s1">q</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">str</span>] <span class="pl-c1">=</span> <span class="pl-c1">None</span>, <span class="pl-s1">skip</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>, <span class="pl-s1">limit</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-c1">100</span>):
<span class="pl-k">return</span> {<span class="pl-s">"q"</span>: <span class="pl-s1">q</span>, <span class="pl-s">"skip"</span>: <span class="pl-s1">skip</span>, <span class="pl-s">"limit"</span>: <span class="pl-s1">limit</span>}
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/items/"</span>)</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">read_items</span>(<span class="pl-s1">commons</span>: <span class="pl-s1">dict</span> <span class="pl-c1">=</span> <span class="pl-v">Depends</span>(<span class="pl-s1">common_parameters</span>)):
<span class="pl-k">return</span> <span class="pl-s1">commons</span></pre></div>
<p dir="auto">to</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from typing import Annotated, Optional
from fastapi import Depends, FastAPI
app = FastAPI()
async def common_parameters(q: Optional[str] = None, skip: int = 0, limit: int = 100):
return {"q": q, "skip": skip, "limit": limit}
@app.get("/items/")
async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
return commons"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">Annotated</span>, <span class="pl-v">Optional</span>
<span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">Depends</span>, <span class="pl-v">FastAPI</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>()
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">common_parameters</span>(<span class="pl-s1">q</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">str</span>] <span class="pl-c1">=</span> <span class="pl-c1">None</span>, <span class="pl-s1">skip</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>, <span class="pl-s1">limit</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-c1">100</span>):
<span class="pl-k">return</span> {<span class="pl-s">"q"</span>: <span class="pl-s1">q</span>, <span class="pl-s">"skip"</span>: <span class="pl-s1">skip</span>, <span class="pl-s">"limit"</span>: <span class="pl-s1">limit</span>}
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/items/"</span>)</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">read_items</span>(<span class="pl-s1">commons</span>: <span class="pl-v">Annotated</span>[<span class="pl-s1">dict</span>, <span class="pl-v">Depends</span>(<span class="pl-s1">common_parameters</span>)]):
<span class="pl-k">return</span> <span class="pl-s1">commons</span></pre></div>
<h3 dir="auto">Discussion</h3>
<p dir="auto"><a href="https://www.python.org/dev/peps/pep-0593/" rel="nofollow">PEP 593</a> Added <code class="notranslate">Annotated</code> for adding additional annotations beyond type annotations. I think FastAPI's <code class="notranslate">Depends</code>, <code class="notranslate">Query</code>, <code class="notranslate">Body</code> and the likes fit well with the kind of additional annotations this supports.</p>
<p dir="auto">This would also make default values less awkward:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.get("/items/")
async def read_items(q: Optional[str] = Query(None, max_length=50)):
pass"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/items/"</span>)</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">read_items</span>(<span class="pl-s1">q</span>: <span class="pl-v">Optional</span>[<span class="pl-s1">str</span>] <span class="pl-c1">=</span> <span class="pl-v">Query</span>(<span class="pl-c1">None</span>, <span class="pl-s1">max_length</span><span class="pl-c1">=</span><span class="pl-c1">50</span>)):
<span class="pl-k">pass</span></pre></div>
<p dir="auto">Could become</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.get("/items/")
async def read_items(q: Annotated[Optional[str], Query(max_length=50)] = None):
pass"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/items/"</span>)</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">read_items</span>(<span class="pl-s1">q</span>: <span class="pl-v">Annotated</span>[<span class="pl-v">Optional</span>[<span class="pl-s1">str</span>], <span class="pl-v">Query</span>(<span class="pl-s1">max_length</span><span class="pl-c1">=</span><span class="pl-c1">50</span>)] <span class="pl-c1">=</span> <span class="pl-c1">None</span>):
<span class="pl-k">pass</span></pre></div>
<p dir="auto">This will also solve the issue mentioned <a href="https://fastapi.tiangolo.com/tutorial/path-params-numeric-validations/#order-the-parameters-as-you-need" rel="nofollow">in the docs</a> of parameter ordering.</p>
<p dir="auto">Finally, it is sometimes convenient to use the same function as both a FastAPI dependency and a regular function. In these cases, because <code class="notranslate">= Depends(...)</code> is a default parameter value, if you forget to pass a parameter the error is not caught by your IDE. Worse, it is not caught at runtime because Python will just pass along the <code class="notranslate">Depends</code> object. This will probably cause an error down the road, but may silently succeed in some cases.</p>
<p dir="auto">I'm willing to implement this if you think it's a good idea.</p> | 0 |
<p dir="auto">Please go to Stack Overflow for help and support:</p>
<p dir="auto"><a href="http://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">http://stackoverflow.com/questions/tagged/tensorflow</a></p>
<p dir="auto">If you open a GitHub issue, here is our policy:</p>
<ol dir="auto">
<li>It must be a bug or a feature request.</li>
<li>The form below must be filled out.</li>
</ol>
<p dir="auto"><strong>Here's why we have that policy</strong>: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.</p>
<hr>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:<br>
yes</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br>
Ubuntu 14.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>:<br>
source</li>
<li><strong>TensorFlow version (use command below)</strong>:<br>
1.2.0-rc0</li>
<li><strong>Bazel version (if compiling from source)</strong>:</li>
<li><strong>CUDA/cuDNN version</strong>:<br>
8.0</li>
<li><strong>GPU model and memory</strong>:</li>
<li><strong>Exact command to reproduce</strong>:</li>
</ul>
<p dir="auto">cod (mostly from <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/tutorials/input_fn/boston.py">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/tutorials/input_fn/boston.py</a>)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from tensorflow.contrib.learn.python.learn.learn_io import pandas_io
import pandas as pd
import tensorflow as tf
import pdb
tf.logging.set_verbosity(tf.logging.INFO)
COLUMNS = ["crim", "zn", "indus", "nox", "rm", "age",
"dis", "tax", "ptratio", "medv"]
FEATURES = ["crim", "zn", "indus", "nox", "rm",
"age", "dis", "tax", "ptratio"]
LABEL = "medv"
training_set = pd.read_csv("boston_train.csv", skipinitialspace=True,
skiprows=1, names=COLUMNS)
# test_set = pd.read_csv("boston_test.csv", skipinitialspace=True,
# skiprows=1, names=COLUMNS)
# prediction_set = pd.read_csv("boston_predict.csv", skipinitialspace=True,
# skiprows=1, names=COLUMNS)
feature_cols = [tf.contrib.layers.real_valued_column(k) for k in FEATURES]
regressor = tf.contrib.learn.DNNRegressor(feature_columns=feature_cols,
hidden_units=[10, 10],
model_dir="/tmp/boston_model")
pd_input_fn = pandas_io.pandas_input_fn(training_set[FEATURES], y=training_set[LABEL],
batch_size=128,target_column='medv')
regressor.fit(input_fn=pd_input_fn, steps=5000)"><pre class="notranslate"><code class="notranslate">from tensorflow.contrib.learn.python.learn.learn_io import pandas_io
import pandas as pd
import tensorflow as tf
import pdb
tf.logging.set_verbosity(tf.logging.INFO)
COLUMNS = ["crim", "zn", "indus", "nox", "rm", "age",
"dis", "tax", "ptratio", "medv"]
FEATURES = ["crim", "zn", "indus", "nox", "rm",
"age", "dis", "tax", "ptratio"]
LABEL = "medv"
training_set = pd.read_csv("boston_train.csv", skipinitialspace=True,
skiprows=1, names=COLUMNS)
# test_set = pd.read_csv("boston_test.csv", skipinitialspace=True,
# skiprows=1, names=COLUMNS)
# prediction_set = pd.read_csv("boston_predict.csv", skipinitialspace=True,
# skiprows=1, names=COLUMNS)
feature_cols = [tf.contrib.layers.real_valued_column(k) for k in FEATURES]
regressor = tf.contrib.learn.DNNRegressor(feature_columns=feature_cols,
hidden_units=[10, 10],
model_dir="/tmp/boston_model")
pd_input_fn = pandas_io.pandas_input_fn(training_set[FEATURES], y=training_set[LABEL],
batch_size=128,target_column='medv')
regressor.fit(input_fn=pd_input_fn, steps=5000)
</code></pre></div>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.</p>
<p dir="auto">I saw a stakoervlow question <a href="https://stackoverflow.com/questions/41273182/tensorflow-0-12-tutorials-produce-warning-rank-of-input-tensor-should-be-the-s" rel="nofollow">here</a>, but I don't think that applies to me.</p>
<p dir="auto">I have the following confusing warnings. As a result, I am not sure that everything is right.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WA"><pre class="notranslate"><code class="notranslate">WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WA
</code></pre></div>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">Full output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO:tensorflow:Using default config.
INFO:tensorflow:Using config: {'_task_type': None, '_task_id': 0, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x7f5a3710eba8>, '_master': '', '_num_ps_replicas': 0, '_num_worker_replicas': 0, '_environment': 'local', '_is_chief': True, '_evaluation_master': '', '_tf_config': gpu_options {
per_process_gpu_memory_fraction: 1.0
}
, '_tf_random_seed': None, '_save_summary_steps': 100, '_save_checkpoints_secs': 600, '_session_config': None, '_save_checkpoints_steps': None, '_keep_checkpoint_max': 5, '_keep_checkpoint_every_n_hours': 10000, '_model_dir': '/tmp/boston_model'}
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:From /home/jiqiang/anaconda3/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/estimators/head.py:625: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30.
Instructions for updating:
Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported.
INFO:tensorflow:Create CheckpointSaverHook.
INFO:tensorflow:Restoring parameters from /tmp/boston_model/model.ckpt-16
INFO:tensorflow:Saving checkpoints for 17 into /tmp/boston_model/model.ckpt.
INFO:tensorflow:loss = 115.183, step = 17
INFO:tensorflow:Saving checkpoints for 20 into /tmp/boston_model/model.ckpt.
INFO:tensorflow:Loss for final step: 161.23.
"><pre class="notranslate"><code class="notranslate">INFO:tensorflow:Using default config.
INFO:tensorflow:Using config: {'_task_type': None, '_task_id': 0, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x7f5a3710eba8>, '_master': '', '_num_ps_replicas': 0, '_num_worker_replicas': 0, '_environment': 'local', '_is_chief': True, '_evaluation_master': '', '_tf_config': gpu_options {
per_process_gpu_memory_fraction: 1.0
}
, '_tf_random_seed': None, '_save_summary_steps': 100, '_save_checkpoints_secs': 600, '_session_config': None, '_save_checkpoints_steps': None, '_keep_checkpoint_max': 5, '_keep_checkpoint_every_n_hours': 10000, '_model_dir': '/tmp/boston_model'}
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:Rank of input Tensor (1) should be the same as output_rank (2) for column. Will attempt to expand dims. It is highly recommended that you resize your input, as this behavior may change.
WARNING:tensorflow:From /home/jiqiang/anaconda3/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/estimators/head.py:625: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30.
Instructions for updating:
Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported.
INFO:tensorflow:Create CheckpointSaverHook.
INFO:tensorflow:Restoring parameters from /tmp/boston_model/model.ckpt-16
INFO:tensorflow:Saving checkpoints for 17 into /tmp/boston_model/model.ckpt.
INFO:tensorflow:loss = 115.183, step = 17
INFO:tensorflow:Saving checkpoints for 20 into /tmp/boston_model/model.ckpt.
INFO:tensorflow:Loss for final step: 161.23.
</code></pre></div> | <h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Google Colab</li>
<li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>:</li>
<li><strong>TensorFlow installed from (source or binary)</strong>:</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.9.0</li>
<li><strong>Python version</strong>: 3.6</li>
<li><strong>Bazel version (if compiling from source)</strong>:</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:</li>
<li><strong>CUDA/cuDNN version</strong>:</li>
<li><strong>GPU model and memory</strong>: Colab GPUs</li>
<li><strong>Exact command to reproduce</strong>:</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">To make it short, Keras's Tensorboard callback doesn't work in the eager execution mode.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">RuntimeErrorTraceback (most recent call last)<br>
in ()<br>
57 X = np.random.random((20, 10)).astype(np.float32)<br>
58 Y = np.random.random((20, 5)).astype(np.float32)<br>
---> 59 model.fit(x={'input' : X}, y={'clustering' : Y}, batch_size=1, epochs=10, callbacks=[tensorboard])</p>
<p dir="auto">/usr/local/lib/python2.7/dist-packages/tensorflow/python/keras/engine/training.pyc in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, **kwargs)<br>
1331 initial_epoch=initial_epoch,<br>
1332 steps_per_epoch=steps_per_epoch,<br>
-> 1333 validation_steps=validation_steps)<br>
1334 else:<br>
1335 return training_arrays.fit_loop(</p>
<p dir="auto">/usr/local/lib/python2.7/dist-packages/tensorflow/python/keras/engine/training_eager.pyc in fit_loop(model, inputs, targets, sample_weights, class_weight, val_inputs, val_targets, val_sample_weights, batch_size, epochs, verbose, callbacks, shuffle, callback_metrics, initial_epoch, steps_per_epoch, validation_steps)<br>
977 callback_model = model<br>
978<br>
--> 979 callbacks.set_model(callback_model)<br>
980<br>
981 callbacks.set_params({</p>
<p dir="auto">/usr/local/lib/python2.7/dist-packages/tensorflow/python/keras/callbacks.pyc in set_model(self, model)<br>
68 def set_model(self, model):<br>
69 for callback in self.callbacks:<br>
---> 70 callback.set_model(model)<br>
71<br>
72 def on_epoch_begin(self, epoch, logs=None):</p>
<p dir="auto">/usr/local/lib/python2.7/dist-packages/tensorflow/python/keras/callbacks.pyc in set_model(self, model)<br>
761 if hasattr(layer, 'output'):<br>
762 tf_summary.histogram('{}_out'.format(layer.name), layer.output)<br>
--> 763 self.merged = tf_summary.merge_all()<br>
764<br>
765 if self.write_graph:</p>
<p dir="auto">/usr/local/lib/python2.7/dist-packages/tensorflow/python/summary/summary.pyc in merge_all(key, scope)<br>
309 if _context.executing_eagerly():<br>
310 raise RuntimeError(<br>
--> 311 'Merging tf.summary.* ops is not compatible with eager execution. '<br>
312 'Use tf.contrib.summary instead.')<br>
313 summary_ops = _ops.get_collection(key, scope=scope)</p>
<p dir="auto">RuntimeError: Merging tf.summary.* ops is not compatible with eager execution. Use tf.contrib.summary instead.</p> | 0 |
<p dir="auto">Hi there,</p>
<p dir="auto">I am trying to find out if it is possible to add vectors based off of quiver in matplotlib and animate this via matplotlib animation.<br>
I was able to use quiver to create static graphs of vector addtion.</p>
<p dir="auto">I am trying to duplicate the animation style here from this link:<br>
<a href="https://www.physics.mun.ca/~jjerrett/vector/vector.html" rel="nofollow">https://www.physics.mun.ca/~jjerrett/vector/vector.html</a></p>
<p dir="auto">But i saw on stackoverflow that at one point it was not possible to position vectors<br>
then they said it can, see this link:<br>
<a href="https://stackoverflow.com/questions/17758942/is-it-possible-to-update-matplotlib-quiver-position-coordinates-in-an-animation?rq=1" rel="nofollow">https://stackoverflow.com/questions/17758942/is-it-possible-to-update-matplotlib-quiver-position-coordinates-in-an-animation?rq=1</a></p>
<hr>
<h2 dir="auto">So to explain details of my program, it asks user to input 2 vectors.<br>
Then the 2 vectors, the tails, are placed at the origin.<br>
Then need to move one of the vector tails to the tip of the other vector in order to do vector addition.<br>
And then draw arrow from origin to the final point.</h2>
<p dir="auto">Hope you can let me know.</p>
<p dir="auto">P.</p> | <p dir="auto">Saving vector graphic figures with certain characters in LaTeX will fail. Here I tried to use the <code class="notranslate">\textmu</code> character. Could it be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="207066352" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/8068" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/8068/hovercard" href="https://github.com/matplotlib/matplotlib/issues/8068">#8068</a>?</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<p dir="auto">Here I'm saving to PostScript. It gives an error that I think is the most informative and points to some problems with ghostscript. Outputs for SVG and PDF below.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib
matplotlib.rcParams['text.usetex'] = True
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_ylabel(r'\textmu')
plt.savefig('fig.ps')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-s1">matplotlib</span>.<span class="pl-s1">rcParams</span>[<span class="pl-s">'text.usetex'</span>] <span class="pl-c1">=</span> <span class="pl-c1">True</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-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">111</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_ylabel</span>(<span class="pl-s">r'\textmu'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'fig.ps'</span>)</pre></div>
<p dir="auto"><strong>Output - PS</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 1520, in gs_distill
report = subprocess.check_output(command, stderr=subprocess.STDOUT)
File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['gs', '-dBATCH', '-dNOPAUSE', '-r6000', '-sDEVICE=ps2write', '-sPAPERSIZE=letter', '-sOutputFile=/tmp/tmpt8w23igm.ps', '/tmp/tmpt8w23igm']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Untitled.py", line 8, in <module>
plt.savefig('fig.ps')
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 701, in savefig
res = fig.savefig(*args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py", line 1834, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 2267, in print_figure
**kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 910, in print_ps
return self._print_ps(outfile, 'ps', *args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 937, in _print_ps
**kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 1359, in _print_figure_tex
rotated=psfrag_rotated)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 1525, in gs_distill
'\n\n' % exc.output.decode("utf-8")))
RuntimeError: ghostscript was not able to process your image.
Here is the full report generated by ghostscript:
GPL Ghostscript 9.22 (2017-10-04)
Copyright (C) 2017 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in --get--
Operand stack:
--nostringval-- --dict:9/18(ro)(L)-- 112 --dict:13/13(L)-- --dict:13/13(L)-- base
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2015 1 3 %oparray_pop 2014 1 3 %oparray_pop 1998 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- %finish_stringwidth --nostringval-- --nostringval-- 14 8 0 --nostringval-- (pdf_text_enum_t) %op_show_continue --nostringval--
Dictionary stack:
--dict:986/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:5/6(ro)(L)-- --dict:180/300(L)-- --dict:44/200(L)-- --dict:8/17(L)-- --dict:51/90(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 58919
GPL Ghostscript 9.22: Unrecoverable error, exit code 1"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 1520, in gs_distill
report = subprocess.check_output(command, stderr=subprocess.STDOUT)
File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['gs', '-dBATCH', '-dNOPAUSE', '-r6000', '-sDEVICE=ps2write', '-sPAPERSIZE=letter', '-sOutputFile=/tmp/tmpt8w23igm.ps', '/tmp/tmpt8w23igm']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Untitled.py", line 8, in <module>
plt.savefig('fig.ps')
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 701, in savefig
res = fig.savefig(*args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py", line 1834, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 2267, in print_figure
**kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 910, in print_ps
return self._print_ps(outfile, 'ps', *args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 937, in _print_ps
**kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 1359, in _print_figure_tex
rotated=psfrag_rotated)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py", line 1525, in gs_distill
'\n\n' % exc.output.decode("utf-8")))
RuntimeError: ghostscript was not able to process your image.
Here is the full report generated by ghostscript:
GPL Ghostscript 9.22 (2017-10-04)
Copyright (C) 2017 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in --get--
Operand stack:
--nostringval-- --dict:9/18(ro)(L)-- 112 --dict:13/13(L)-- --dict:13/13(L)-- base
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 2015 1 3 %oparray_pop 2014 1 3 %oparray_pop 1998 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- %finish_stringwidth --nostringval-- --nostringval-- 14 8 0 --nostringval-- (pdf_text_enum_t) %op_show_continue --nostringval--
Dictionary stack:
--dict:986/1684(ro)(G)-- --dict:1/20(G)-- --dict:82/200(L)-- --dict:5/6(ro)(L)-- --dict:180/300(L)-- --dict:44/200(L)-- --dict:8/17(L)-- --dict:51/90(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 58919
GPL Ghostscript 9.22: Unrecoverable error, exit code 1
</code></pre></div>
<p dir="auto"><strong>Output - SVG, PDF</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "Untitled.py", line 8, in <module>
plt.savefig('fig.svg')
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 701, in savefig
res = fig.savefig(*args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py", line 1834, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 2267, in print_figure
**kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 1193, in print_svg
return self._print_svg(filename, svgwriter, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 1248, in _print_svg
self.figure.draw(renderer)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py", line 1299, in draw
renderer, self, artists, self.suppressComposite)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 2437, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/axis.py", line 1147, in draw
self.label.draw(renderer)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/text.py", line 762, in draw
mtext=mtext)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 1150, in draw_tex
self._draw_text_as_path(gc, x, y, s, prop, angle, ismath="TeX")
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 950, in _draw_text_as_path
return_new_glyphs_only=True)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/textpath.py", line 335, in get_glyphs_tex
font_bunch = self.tex_font_map[dvifont.texname]
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/dviread.py", line 850, in __getitem__
result = self._font[texname]
KeyError: b'tcss3583'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "Untitled.py", line 8, in <module>
plt.savefig('fig.svg')
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/pyplot.py", line 701, in savefig
res = fig.savefig(*args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py", line 1834, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backend_bases.py", line 2267, in print_figure
**kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 1193, in print_svg
return self._print_svg(filename, svgwriter, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 1248, in _print_svg
self.figure.draw(renderer)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/figure.py", line 1299, in draw
renderer, self, artists, self.suppressComposite)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 2437, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/axis.py", line 1147, in draw
self.label.draw(renderer)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/text.py", line 762, in draw
mtext=mtext)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 1150, in draw_tex
self._draw_text_as_path(gc, x, y, s, prop, angle, ismath="TeX")
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/backends/backend_svg.py", line 950, in _draw_text_as_path
return_new_glyphs_only=True)
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/textpath.py", line 335, in get_glyphs_tex
font_bunch = self.tex_font_map[dvifont.texname]
File "/home/mirek/.local/lib/python3.6/site-packages/matplotlib/dviread.py", line 850, in __getitem__
result = self._font[texname]
KeyError: b'tcss3583'
</code></pre></div>
<p dir="auto">For PDF it's nearly identical; the last line reads:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="KeyError: b'tcss1000'"><pre class="notranslate"><code class="notranslate">KeyError: b'tcss1000'
</code></pre></div>
<p dir="auto">In case of PS and SVG, no file is produced. In case of PDF, a corrupted file results. Saving to raster formats and inline previews in jupyter notebook work fine.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Debian 10</li>
<li>Matplotlib version: 2.1.1</li>
<li>Python version: 3.6.4</li>
</ul>
<p dir="auto">Matplotlib from pip. Both Matplotlib and LaTeX are installed in userspace</p> | 0 |
<p dir="auto">Please go to Stack Overflow for help and support:</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">https://stackoverflow.com/questions/tagged/tensorflow</a></p>
<p dir="auto">If you open a GitHub issue, here is our policy:</p>
<ol dir="auto">
<li>It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).</li>
<li>The form below must be filled out.</li>
<li>It shouldn't be a TensorBoard issue. Those go <a href="https://github.com/tensorflow/tensorboard/issues">here</a>.</li>
</ol>
<p dir="auto"><strong>Here's why we have that policy</strong>: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.</p>
<hr>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:</li>
<li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>:</li>
<li><strong>TensorFlow installed from (source or binary)</strong>:</li>
<li><strong>TensorFlow version (use command below)</strong>:</li>
<li><strong>Python version</strong>:</li>
<li><strong>Bazel version (if compiling from source)</strong>:</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:</li>
<li><strong>CUDA/cuDNN version</strong>:</li>
<li><strong>GPU model and memory</strong>:</li>
<li><strong>Exact command to reproduce</strong>:</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture script:</p>
<p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p>
<p dir="auto">You can obtain the TensorFlow version with</p>
<p dir="auto">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.</p> | <p dir="auto">I want to train with multiple gpu with tensorflow-1.10. I use the estimator and MirroredStrategy. The model is resnet50 which is official model of tensorflow . The following is my code and error log. Am I use MirroredStrategy in the wrong way?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
import numpy as np
from tensorflow.contrib.slim.nets import resnet_v2
import tensorflow.contrib.slim as slim
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist.load_data(path='mnist.npz')
x_train = np.expand_dims(x_train, 3).astype(np.float32)
y_train = y_train.astype(np.int32)
x_test = np.expand_dims(x_test, 3).astype(np.float32)
y_test = y_test.astype(np.int32)
tf.logging.set_verbosity(tf.logging.INFO)
cls_num = 10
def model_fn(features, labels, mode):
is_training = (mode == tf.estimator.ModeKeys.TRAIN)
with slim.arg_scope(resnet_v2.resnet_arg_scope()):
logits, endpoints = resnet_v2.resnet_v2_50(features,
num_classes=cls_num,
is_training=is_training)
logits = tf.squeeze(logits, [1, 2])
preds = tf.argmax(logits, 1)
loss = tf.losses.sparse_softmax_cross_entropy(labels=labels, logits=logits)
optimizer = tf.train.AdagradOptimizer(learning_rate=0.01)
update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
with tf.control_dependencies(update_ops):
train_op = optimizer.minimize(loss, global_step=tf.train.get_global_step())
accuracy = tf.metrics.accuracy(labels=labels, predictions=preds)
metrics = {'accuracy': accuracy}
if mode == tf.estimator.ModeKeys.EVAL:
return tf.estimator.EstimatorSpec(mode, loss=loss, eval_metric_ops=metrics)
return tf.estimator.EstimatorSpec(mode, loss=loss, train_op=train_op)
def train_input_fn():
dataset = tf.data.Dataset.from_tensor_slices((x_train, y_train))
dataset = dataset.repeat(1).batch(128)
return dataset
def eval_input_fn():
dataset = tf.data.Dataset.from_tensor_slices((x_test, y_test))
dataset = dataset.repeat(1).batch(128)
return dataset
distribution = tf.contrib.distribute.MirroredStrategy()
config = tf.estimator.RunConfig(train_distribute=distribution)
estimator = tf.estimator.Estimator(model_fn=model_fn, model_dir='logs', config=config)
train_spec = tf.estimator.TrainSpec(input_fn=train_input_fn)
eval_specs = tf.estimator.EvalSpec(input_fn=eval_input_fn)
for _ in xrange(100):
tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs)"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
import numpy as np
from tensorflow.contrib.slim.nets import resnet_v2
import tensorflow.contrib.slim as slim
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist.load_data(path='mnist.npz')
x_train = np.expand_dims(x_train, 3).astype(np.float32)
y_train = y_train.astype(np.int32)
x_test = np.expand_dims(x_test, 3).astype(np.float32)
y_test = y_test.astype(np.int32)
tf.logging.set_verbosity(tf.logging.INFO)
cls_num = 10
def model_fn(features, labels, mode):
is_training = (mode == tf.estimator.ModeKeys.TRAIN)
with slim.arg_scope(resnet_v2.resnet_arg_scope()):
logits, endpoints = resnet_v2.resnet_v2_50(features,
num_classes=cls_num,
is_training=is_training)
logits = tf.squeeze(logits, [1, 2])
preds = tf.argmax(logits, 1)
loss = tf.losses.sparse_softmax_cross_entropy(labels=labels, logits=logits)
optimizer = tf.train.AdagradOptimizer(learning_rate=0.01)
update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
with tf.control_dependencies(update_ops):
train_op = optimizer.minimize(loss, global_step=tf.train.get_global_step())
accuracy = tf.metrics.accuracy(labels=labels, predictions=preds)
metrics = {'accuracy': accuracy}
if mode == tf.estimator.ModeKeys.EVAL:
return tf.estimator.EstimatorSpec(mode, loss=loss, eval_metric_ops=metrics)
return tf.estimator.EstimatorSpec(mode, loss=loss, train_op=train_op)
def train_input_fn():
dataset = tf.data.Dataset.from_tensor_slices((x_train, y_train))
dataset = dataset.repeat(1).batch(128)
return dataset
def eval_input_fn():
dataset = tf.data.Dataset.from_tensor_slices((x_test, y_test))
dataset = dataset.repeat(1).batch(128)
return dataset
distribution = tf.contrib.distribute.MirroredStrategy()
config = tf.estimator.RunConfig(train_distribute=distribution)
estimator = tf.estimator.Estimator(model_fn=model_fn, model_dir='logs', config=config)
train_spec = tf.estimator.TrainSpec(input_fn=train_input_fn)
eval_specs = tf.estimator.EvalSpec(input_fn=eval_input_fn)
for _ in xrange(100):
tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs)
</code></pre></div>
<p dir="auto">This is the error log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2018-08-30 16:58:47.446417: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] 0 1
2018-08-30 16:58:47.446428: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] 0: N Y
2018-08-30 16:58:47.446437: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] 1: Y N
2018-08-30 16:58:47.446877: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1097] Created TensorFlow device (/device:GPU:0 with 21544 MB memory) -> physical GPU (device: 0, name: Tesla P40, pci bus id: 0000:83:00.0, compute capability: 6.1)
2018-08-30 16:58:47.447098: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1097] Created TensorFlow device (/device:GPU:1 with 21544 MB memory) -> physical GPU (device: 1, name: Tesla P40, pci bus id: 0000:84:00.0, compute capability: 6.1)
INFO:tensorflow:Device is available but not used by distribute strategy: /device:CPU:0
INFO:tensorflow:Configured nccl all-reduce.
INFO:tensorflow:Calling model_fn.
INFO:tensorflow:Error reported to Coordinator:
Traceback (most recent call last):
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 297, in stop_on_exception
yield
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/mirrored_strategy.py", line 519, in run
self.main_result = self.main_fn(*self.main_args, **self.main_kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/estimator.py", line 1133, in _call_model_fn
model_fn_results = self._model_fn(features=features, **kwargs)
File "test_mnist.py", line 22, in model_fn
is_training=is_training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 287, in resnet_v2_50
scope=scope)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 216, in resnet_v2
net = resnet_utils.stack_blocks_dense(net, blocks, output_stride)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_utils.py", line 215, in stack_blocks_dense
net = block.unit_fn(net, rate=1, **unit)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 101, in bottleneck
inputs, activation_fn=nn_ops.relu, scope='preact')
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 650, in batch_norm
outputs = layer.apply(inputs, training=is_training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 805, in apply
return self.__call__(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 362, in __call__
outputs = super(Layer, self).__call__(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 736, in __call__
outputs = self.call(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/layers/normalization.py", line 158, in call
return super(BatchNormalization, self).call(inputs, training=training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 514, in call
outputs = self._fused_batch_norm(inputs, training=training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 420, in _fused_batch_norm
momentum)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 369, in _assign_moving_average
with ops.colocate_with(variable):
File "/home/soft/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3939, in _colocate_with_for_gradient
with self.colocate_with(op, ignore_existing):
File "/home/soft/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3992, in colocate_with
op = internal_convert_to_tensor_or_indexed_slices(op, as_ref=True).op
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1255, in internal_convert_to_tensor_or_indexed_slices
value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1094, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/values.py", line 414, in _tensor_conversion_mirrored
assert not as_ref
AssertionError
Traceback (most recent call last):
File "test_mnist.py", line 58, in <module>
tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/training.py", line 451, in train_and_evaluate
return executor.run()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/training.py", line 590, in run
return self.run_local()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/training.py", line 691, in run_local
saving_listeners=saving_listeners)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/estimator.py", line 376, in train
loss = self._train_model(input_fn, hooks, saving_listeners)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/estimator.py", line 1143, in _train_model
return self._train_model_distributed(input_fn, hooks, saving_listeners)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/estimator.py", line 1255, in _train_model_distributed
self.config)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/training/distribute.py", line 777, in call_for_each_tower
return self._call_for_each_tower(fn, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/mirrored_strategy.py", line 308, in _call_for_each_tower
coord.join(threads)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 389, in join
six.reraise(*self._exc_info_to_raise)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 297, in stop_on_exception
yield
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/mirrored_strategy.py", line 519, in run
self.main_result = self.main_fn(*self.main_args, **self.main_kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/estimator.py", line 1133, in _call_model_fn
model_fn_results = self._model_fn(features=features, **kwargs)
File "test_mnist.py", line 22, in model_fn
is_training=is_training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 287, in resnet_v2_50
scope=scope)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 216, in resnet_v2
net = resnet_utils.stack_blocks_dense(net, blocks, output_stride)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_utils.py", line 215, in stack_blocks_dense
net = block.unit_fn(net, rate=1, **unit)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 101, in bottleneck
inputs, activation_fn=nn_ops.relu, scope='preact')
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 650, in batch_norm
outputs = layer.apply(inputs, training=is_training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 805, in apply
return self.__call__(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 362, in __call__
outputs = super(Layer, self).__call__(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 736, in __call__
outputs = self.call(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/layers/normalization.py", line 158, in call
return super(BatchNormalization, self).call(inputs, training=training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 514, in call
outputs = self._fused_batch_norm(inputs, training=training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 420, in _fused_batch_norm
momentum)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 369, in _assign_moving_average
with ops.colocate_with(variable):
File "/home/soft/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3939, in _colocate_with_for_gradient
with self.colocate_with(op, ignore_existing):
File "/home/soft/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3992, in colocate_with
op = internal_convert_to_tensor_or_indexed_slices(op, as_ref=True).op
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1255, in internal_convert_to_tensor_or_indexed_slices
value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1094, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/values.py", line 414, in _tensor_conversion_mirrored
assert not as_ref
AssertionError"><pre class="notranslate"><code class="notranslate">2018-08-30 16:58:47.446417: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] 0 1
2018-08-30 16:58:47.446428: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] 0: N Y
2018-08-30 16:58:47.446437: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] 1: Y N
2018-08-30 16:58:47.446877: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1097] Created TensorFlow device (/device:GPU:0 with 21544 MB memory) -> physical GPU (device: 0, name: Tesla P40, pci bus id: 0000:83:00.0, compute capability: 6.1)
2018-08-30 16:58:47.447098: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1097] Created TensorFlow device (/device:GPU:1 with 21544 MB memory) -> physical GPU (device: 1, name: Tesla P40, pci bus id: 0000:84:00.0, compute capability: 6.1)
INFO:tensorflow:Device is available but not used by distribute strategy: /device:CPU:0
INFO:tensorflow:Configured nccl all-reduce.
INFO:tensorflow:Calling model_fn.
INFO:tensorflow:Error reported to Coordinator:
Traceback (most recent call last):
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 297, in stop_on_exception
yield
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/mirrored_strategy.py", line 519, in run
self.main_result = self.main_fn(*self.main_args, **self.main_kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/estimator.py", line 1133, in _call_model_fn
model_fn_results = self._model_fn(features=features, **kwargs)
File "test_mnist.py", line 22, in model_fn
is_training=is_training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 287, in resnet_v2_50
scope=scope)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 216, in resnet_v2
net = resnet_utils.stack_blocks_dense(net, blocks, output_stride)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_utils.py", line 215, in stack_blocks_dense
net = block.unit_fn(net, rate=1, **unit)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 101, in bottleneck
inputs, activation_fn=nn_ops.relu, scope='preact')
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 650, in batch_norm
outputs = layer.apply(inputs, training=is_training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 805, in apply
return self.__call__(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 362, in __call__
outputs = super(Layer, self).__call__(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 736, in __call__
outputs = self.call(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/layers/normalization.py", line 158, in call
return super(BatchNormalization, self).call(inputs, training=training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 514, in call
outputs = self._fused_batch_norm(inputs, training=training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 420, in _fused_batch_norm
momentum)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 369, in _assign_moving_average
with ops.colocate_with(variable):
File "/home/soft/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3939, in _colocate_with_for_gradient
with self.colocate_with(op, ignore_existing):
File "/home/soft/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3992, in colocate_with
op = internal_convert_to_tensor_or_indexed_slices(op, as_ref=True).op
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1255, in internal_convert_to_tensor_or_indexed_slices
value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1094, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/values.py", line 414, in _tensor_conversion_mirrored
assert not as_ref
AssertionError
Traceback (most recent call last):
File "test_mnist.py", line 58, in <module>
tf.estimator.train_and_evaluate(estimator, train_spec, eval_specs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/training.py", line 451, in train_and_evaluate
return executor.run()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/training.py", line 590, in run
return self.run_local()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/training.py", line 691, in run_local
saving_listeners=saving_listeners)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/estimator.py", line 376, in train
loss = self._train_model(input_fn, hooks, saving_listeners)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/estimator.py", line 1143, in _train_model
return self._train_model_distributed(input_fn, hooks, saving_listeners)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/estimator.py", line 1255, in _train_model_distributed
self.config)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/training/distribute.py", line 777, in call_for_each_tower
return self._call_for_each_tower(fn, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/mirrored_strategy.py", line 308, in _call_for_each_tower
coord.join(threads)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 389, in join
six.reraise(*self._exc_info_to_raise)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 297, in stop_on_exception
yield
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/mirrored_strategy.py", line 519, in run
self.main_result = self.main_fn(*self.main_args, **self.main_kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/estimator/estimator.py", line 1133, in _call_model_fn
model_fn_results = self._model_fn(features=features, **kwargs)
File "test_mnist.py", line 22, in model_fn
is_training=is_training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 287, in resnet_v2_50
scope=scope)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 216, in resnet_v2
net = resnet_utils.stack_blocks_dense(net, blocks, output_stride)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_utils.py", line 215, in stack_blocks_dense
net = block.unit_fn(net, rate=1, **unit)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/slim/python/slim/nets/resnet_v2.py", line 101, in bottleneck
inputs, activation_fn=nn_ops.relu, scope='preact')
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/framework/python/ops/arg_scope.py", line 183, in func_with_args
return func(*args, **current_args)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/layers/python/layers/layers.py", line 650, in batch_norm
outputs = layer.apply(inputs, training=is_training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 805, in apply
return self.__call__(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 362, in __call__
outputs = super(Layer, self).__call__(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/engine/base_layer.py", line 736, in __call__
outputs = self.call(inputs, *args, **kwargs)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/layers/normalization.py", line 158, in call
return super(BatchNormalization, self).call(inputs, training=training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 514, in call
outputs = self._fused_batch_norm(inputs, training=training)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 420, in _fused_batch_norm
momentum)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/keras/layers/normalization.py", line 369, in _assign_moving_average
with ops.colocate_with(variable):
File "/home/soft/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3939, in _colocate_with_for_gradient
with self.colocate_with(op, ignore_existing):
File "/home/soft/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3992, in colocate_with
op = internal_convert_to_tensor_or_indexed_slices(op, as_ref=True).op
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1255, in internal_convert_to_tensor_or_indexed_slices
value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/soft/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1094, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/soft/lib/python2.7/site-packages/tensorflow/contrib/distribute/python/values.py", line 414, in _tensor_conversion_mirrored
assert not as_ref
AssertionError
</code></pre></div> | 0 |
<p dir="auto"><code class="notranslate">relatedTarget</code> usage for modal is not documented.<br>
It should be based on pull request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9238455" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/6256" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/6256/hovercard" href="https://github.com/twbs/bootstrap/pull/6256">#6256</a></p> | <p dir="auto">See <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/dbed9da77403337235acb652c3128ebc84672d60/hovercard" href="https://github.com/twbs/bootstrap/commit/dbed9da77403337235acb652c3128ebc84672d60"><tt>dbed9da</tt></a> / <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9093812" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/6159" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/6159/hovercard" href="https://github.com/twbs/bootstrap/issues/6159">#6159</a>.</p> | 1 |
<h3 dir="auto">Describe the feature and motivation</h3>
<p dir="auto">There is no way currently, within OpenCV, to list existing devices to let the user select them. This means that they must be obtained in a different manner (either by re-implementing manually, or using a third-party library), which may not match OpenCV's indexes and may not work on all platforms.</p>
<p dir="auto">There is a workaround to try every indexes individually, but this has 4 main issues:</p>
<ol dir="auto">
<li>Some VideoCapture devices will freeze if opened and closed quickly or if it was already in use.
<ul dir="auto">
<li>The popular SD capture card <code class="notranslate">GV-USB2</code> (confirmed myself)</li>
<li>I've had reports that an <code class="notranslate">AverMedia</code> capture card is affected as well</li>
</ul>
</li>
<li>Some devices take a long time to boot, making this technique quite slow (like my <code class="notranslate">Logitech c920</code> webcam)</li>
<li>The total amount of devices is unknown, and usable devices may not be sequential. So we have to guess how many devices maximum the user may have, trying to balance between time spent or risking missing some</li>
<li>Even if you get all the IDs after this, you don't have access to the names to present to the user. (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1681657743" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/23537" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/23537/hovercard" href="https://github.com/opencv/opencv/issues/23537">#23537</a>)</li>
</ol>
<h3 dir="auto">Additional context</h3>
<p dir="auto"><em>No response</em></p> | <p dir="auto">Transferred from <a href="http://code.opencv.org/issues/935" rel="nofollow">http://code.opencv.org/issues/935</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| Rune Espeseth on 2011-03-08 10:27
|| Priority: Normal
|| Affected: None
|| Category: highgui-camera
|| Tracker: Feature
|| Difficulty:
|| PR:
|| Platform: None / None"><pre class="notranslate"><code class="notranslate">|| Rune Espeseth on 2011-03-08 10:27
|| Priority: Normal
|| Affected: None
|| Category: highgui-camera
|| Tracker: Feature
|| Difficulty:
|| PR:
|| Platform: None / None
</code></pre></div>
<h2 dir="auto">Add API to enumerate cameras</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="OpenCV should have an API to enumerate cameras. Without it, writing programs that support non-fixed hardware is not possible.
The point of this API is to retrieve information about the cameras attached to the system:
- NumberOf
- Name of each camera (can be used for user-selection in a GUI)
- Resolution of each camera
- other properties.
It will then be possible to write programs (f.i. surveillance software) that support 1 to any number of cameras instead of requiring a given number of cameras."><pre class="notranslate"><code class="notranslate">OpenCV should have an API to enumerate cameras. Without it, writing programs that support non-fixed hardware is not possible.
The point of this API is to retrieve information about the cameras attached to the system:
- NumberOf
- Name of each camera (can be used for user-selection in a GUI)
- Resolution of each camera
- other properties.
It will then be possible to write programs (f.i. surveillance software) that support 1 to any number of cameras instead of requiring a given number of cameras.
</code></pre></div>
<h2 dir="auto">History</h2>
<h5 dir="auto">Alexander Shishkov on 2012-02-12 21:12</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- Description changed from [[OpenCV]] should have an API to enumerate
cameras. Without it, writing progr... to OpenCV should have an API
to enumerate cameras. Without it, writing programs ... More"><pre class="notranslate"><code class="notranslate">- Description changed from [[OpenCV]] should have an API to enumerate
cameras. Without it, writing progr... to OpenCV should have an API
to enumerate cameras. Without it, writing programs ... More
</code></pre></div>
<h5 dir="auto">Alexander Reshetnikov on 2012-04-25 14:27</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- Priority changed from High to Normal
- Assignee set to Vadim Pisarevsky"><pre class="notranslate"><code class="notranslate">- Priority changed from High to Normal
- Assignee set to Vadim Pisarevsky
</code></pre></div>
<h5 dir="auto">Andrey Kamaev on 2012-08-16 15:23</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- Category changed from highgui-images to highgui-camera"><pre class="notranslate"><code class="notranslate">- Category changed from highgui-images to highgui-camera
</code></pre></div>
<h5 dir="auto">Neil Jansen on 2015-02-03 04:59</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Hi, I know this issue has been open for a while, but is there any chance that it could be fixed easily? It would be very helpful for those of us using machine vision with more than 1 camera. I am even willing to place a cash bounty on this bug if necessary (tried to do it at bountysource.com, but they don't support the ChiliProject bug tracking platform that OpenCV uses...). Thanks!"><pre class="notranslate"><code class="notranslate">Hi, I know this issue has been open for a while, but is there any chance that it could be fixed easily? It would be very helpful for those of us using machine vision with more than 1 camera. I am even willing to place a cash bounty on this bug if necessary (tried to do it at bountysource.com, but they don't support the ChiliProject bug tracking platform that OpenCV uses...). Thanks!
</code></pre></div>
<h5 dir="auto">Steven Puttemans on 2015-02-03 09:29</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Depending on which camera type you are using this already exists. The recently adapted PvAPI interface of Allied Vision Technology cameras does exactly this. No idea if other do it or not."><pre class="notranslate"><code class="notranslate">Depending on which camera type you are using this already exists. The recently adapted PvAPI interface of Allied Vision Technology cameras does exactly this. No idea if other do it or not.
</code></pre></div> | 1 |
<h3 dir="auto">Please state the information for your system</h3>
<ul dir="auto">
<li>OpenCV version: 3.1</li>
<li>Host OS: Ubuntu 16.04 LTS</li>
<li>Nvidia-367 with CUDA 7.5<br>
-Compiler & CMake: GCC 5.3 & CMake 3.5</li>
</ul>
<h3 dir="auto">In which part of the OpenCV library you got the issue?</h3>
<p dir="auto">Examples:</p>
<ul dir="auto">
<li>core, cuda</li>
</ul>
<p dir="auto">Error generated using gcc & cmake in 16.04 LTS<br>
Error generated:<br>
/usr/include/string.h: In function ‘void* <em><em>mempcpy_inline(void</em>, const void</em>, size_t)’:<br>
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope<br>
return (char *) memcpy (__dest, __src, __n) + __n;</p>
<p dir="auto">Using the methods in [https://github.com/<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="151135972" data-permission-text="Title is private" data-url="https://github.com/BVLC/caffe/issues/4046" data-hovercard-type="issue" data-hovercard-url="/BVLC/caffe/issues/4046/hovercard" href="https://github.com/BVLC/caffe/issues/4046">BVLC/caffe/issues/4046</a>] by adding</p>
<p dir="auto">set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES")</p>
<p dir="auto">to the top of the CMakeLists.txt, everything compiled and worked fine</p> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.4</li>
<li>Operating System / Platform => macOS High Sierra</li>
<li>Compiler => Clang (mac's default gcc)</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I think I read somewhere clang wasn't supported, but I can't find it again so hopefully I was wrong. I compiled it from source from the 3.4 tag, there were no errors.</p>
<p dir="auto">I'm running opencv as a <a href="https://nodejs.org/api/addons.html#addons_n_api" rel="nofollow">nodejs addon</a> in <a href="https://github.com/nodejs/node-addon-api">c++</a>, it is running on a separate thread and every once in a while (one or two loops), when it gets to the detectMultiScale function it crashes.<br>
When I run it without the node addon api library as a separate program (still in a separate thread) it doesn't crash, it just keeps the capture loop going as it is supposed to. But because it crashes on an opencv function I think it makes sense to put the issue here.</p>
<p dir="auto">Piece of code where is crashes:</p>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Gray has 1 channel, 2 dims, cols = 1280, rows = 720
// found_bodies is an empty std::vector<Rect>
body_cascade.detectMultiScale(gray, found_bodies, 1.01, 4, 0, cv::Size());"><pre class="notranslate"><span class="pl-c"><span class="pl-c">//</span> Gray has 1 channel, 2 dims, cols = 1280, rows = 720</span>
<span class="pl-c"><span class="pl-c">//</span> found_bodies is an empty std::vector<Rect></span>
body_cascade.detectMultiScale(gray, found_bodies, <span class="pl-c1">1.01</span>, <span class="pl-c1">4</span>, <span class="pl-c1">0</span>, cv::<span class="pl-c1">Size</span>());</pre></div>
<p dir="auto">Error I get after a while:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="libc++abi.dylib: terminating with uncaught exception of type cv::Exception: OpenCV(3.4.4-dev)
/usr/local/include/opencv2/core/mat.inl.hpp:1179: error: (-215:Assertion failed) (unsigned)(i1 *
DataType<_Tp>::channels) < (unsigned)(size.p[1] * channels()) in function 'at'"><pre class="notranslate">libc++abi.dylib: terminating with uncaught exception of <span class="pl-c1">type</span> cv::Exception: OpenCV(3.4.4-dev)
/usr/local/include/opencv2/core/mat.inl.hpp:1179: error: (-215:Assertion failed) (unsigned)(i1 <span class="pl-k">*</span>
DataType<span class="pl-k"><</span>_Tp<span class="pl-k">></span>::channels) <span class="pl-k"><</span> (unsigned)(size.p[1] <span class="pl-k">*</span> <span class="pl-en">channels</span>()) <span class="pl-k">in</span> <span class="pl-k">function</span> <span class="pl-en">'at'</span></pre></div>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">I'm not sure how you can help me with this as I'm not allowed to share this code. :/</p>
<p dir="auto">It's basically this code <a href="https://nodejs.org/api/addons.html#addons_n_api" rel="nofollow">here</a> (below), with a normal opencv capture loop from a video, running in a separate thread and doing detectMultiScale every loop.</p>
<p dir="auto">Thank you in advance, anything you need, just ask.</p> | 0 |
<p dir="auto">See screen shot</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1931590/12582929/521171a8-c440-11e5-8f05-70694154de9f.png"><img src="https://cloud.githubusercontent.com/assets/1931590/12582929/521171a8-c440-11e5-8f05-70694154de9f.png" alt="capture" style="max-width: 100%;"></a></p>
<p dir="auto">The hover looks more compact for TS files for example.</p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/22350/12582328/b3783192-c43c-11e5-857b-b3622d28fe7e.png"><img src="https://cloud.githubusercontent.com/assets/22350/12582328/b3783192-c43c-11e5-857b-b3622d28fe7e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Ping <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexandrudima/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexandrudima">@alexandrudima</a>, not really sure who touched this</p>
<p dir="auto">From testing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="128647552" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2257" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2257/hovercard" href="https://github.com/microsoft/vscode/issues/2257">#2257</a></p> | 1 |
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
possible bug</p>
<p dir="auto">I have already asked on StackOverflow and it seems as if this behavior would be quite common but there have been no possible solutions.</p>
<p dir="auto"><strong>What is the current behavior?</strong><br>
I have a large webpack build that almost hangs at 91% on an "additional asset processing" step.<br>
To complete processing take about 8 minutes but the step "additional asset processing" consumes at lwat half of the time.<br>
Webpack does not give me a lot more information and I would like to better understand if this is "normal", a bug or what can be done to eventually optimize my build?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="56205ms building modules
31ms sealing
0ms optimizing
0ms basic module optimization
15ms module optimization
0ms advanced module optimization
0ms basic chunk optimization
0ms chunk optimization
16ms advanced chunk optimization
14487ms building modules
0ms module and chunk tree optimization
31ms module reviving
0ms module order optimization
16ms module id optimization
0ms chunk reviving
16ms chunk order optimization
31ms chunk id optimization
140ms hashing
0ms module assets processing
265ms chunk assets processing
0ms additional chunk assets processing
0ms recording
206740ms additional asset processing
79781ms chunk asset optimization
1ms asset optimization
906ms emitting"><pre class="notranslate"><code class="notranslate">56205ms building modules
31ms sealing
0ms optimizing
0ms basic module optimization
15ms module optimization
0ms advanced module optimization
0ms basic chunk optimization
0ms chunk optimization
16ms advanced chunk optimization
14487ms building modules
0ms module and chunk tree optimization
31ms module reviving
0ms module order optimization
16ms module id optimization
0ms chunk reviving
16ms chunk order optimization
31ms chunk id optimization
140ms hashing
0ms module assets processing
265ms chunk assets processing
0ms additional chunk assets processing
0ms recording
206740ms additional asset processing
79781ms chunk asset optimization
1ms asset optimization
906ms emitting
</code></pre></div>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
faster or more information on what is currently being done</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong><br>
node: 6.10.0<br>
webpack: 2.3.1<br>
OS: Windows 7 x64</p> | <p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">Probably it's bug...</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15627840/24244119/cdf2af46-0fe7-11e7-8866-2f1c682eef35.png"><img src="https://cloud.githubusercontent.com/assets/15627840/24244119/cdf2af46-0fe7-11e7-8866-2f1c682eef35.png" alt="2017-03-23 16 10 41" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
I build a simple example with one 'import' = angular library.<br>
After update to 2.3.1 version I noticed that build is too long.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">The <strong>same</strong> project with 2.2.1 webpack.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15627840/24244181/10eb93ee-0fe8-11e7-9d38-ea11904d29fd.png"><img src="https://cloud.githubusercontent.com/assets/15627840/24244181/10eb93ee-0fe8-11e7-9d38-ea11904d29fd.png" alt="2017-03-23 16 36 54" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong></p> | 1 |
<p dir="auto">The babel-node help says like node's help :</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Usage: babel-node [options] [ -e script | script.js ] [arguments]"><pre class="notranslate">Usage: babel-node [options] [ <span class="pl-k">-e</span> script <span class="pl-k">|</span> script.js ] [arguments]</pre></div>
<p dir="auto">With a myScript.js containing only "console.log(process.argv)", on the following call, -p is taken as a babel-node option instead of a script argument :</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ babel-node myScript.js -p abc
ReferenceError: abc is not defined"><pre class="notranslate">$ babel-node myScript.js -p abc
ReferenceError: abc is not defined</pre></div>
<p dir="auto">Where node outputs :</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ node myScript.js -p abc
[ 'node',
'/home/fabrice.marsaud/Documents/myScript.js',
'-p',
'abc' ]"><pre class="notranslate">$ node myScript.js -p abc
[ <span class="pl-s"><span class="pl-pds">'</span>node<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">'</span>/home/fabrice.marsaud/Documents/myScript.js<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">'</span>-p<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">'</span>abc<span class="pl-pds">'</span></span> ]</pre></div> | <p dir="auto">I have a script which responds to the --debug flag.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="babel-node main.js --debug"><pre class="notranslate"><code class="notranslate">babel-node main.js --debug
</code></pre></div>
<p dir="auto">Right now, it is getting handled by 'babel-node' and not being passed to main.js</p>
<p dir="auto">I think babel-node should only handle arguments that come before the script.</p> | 1 |
<h1 dir="auto">Summary of the new feature</h1>
<p dir="auto">Add PowerToy for customization of context menu. Tool should enable to group, hide or move position of app's shortcut.</p>
<h2 dir="auto">CURRENT SITUATION</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18167814/73339155-65398a80-4278-11ea-90cf-bb20dbc775f0.png"><img src="https://user-images.githubusercontent.com/18167814/73339155-65398a80-4278-11ea-90cf-bb20dbc775f0.png" alt="power_toy_suggestion_1" style="max-width: 100%;"></a></p>
<h2 dir="auto">SUGGESTION</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18167814/73339183-771b2d80-4278-11ea-9c64-c917ee39c6f8.png"><img src="https://user-images.githubusercontent.com/18167814/73339183-771b2d80-4278-11ea-9c64-c917ee39c6f8.png" alt="power_toy_suggestion_2" style="max-width: 100%;"></a></p> | <p dir="auto">Easily manage the right click actions to edit, open at. Right now this is all over the place, different applications add right-click extensions and it is a mess. You can somehow change the default open application. But it would be great to be able to manage other actions to for example edit e.g Tiff file, HTML file, compile, etc.</p> | 1 |
<p dir="auto">i`m suggest add different language package in 'DatePicker', most of our customer can`t english.</p> | <p dir="auto">If material-ui do not support the international , I think it sucks~~~~~~<br>
Globalization is a trend~~~</p> | 1 |
<p dir="auto">I was trying to copy a <code class="notranslate">seaborn.matrix.ClusterGrid</code> object using copy.deepcopy(object) but got this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
<ipython-input-165-32d2d97b21c3> in <module>
----> 1 test3=copy.deepcopy(test)
/usr/lib/python3.6/copy.py in deepcopy(x, memo, _nil)
178 y = x
179 else:
--> 180 y = _reconstruct(x, memo, *rv)
181
182 # If is its own copy, don't memoize.
/usr/lib/python3.6/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
278 if state is not None:
279 if deep:
--> 280 state = deepcopy(state, memo)
281 if hasattr(y, '__setstate__'):
282 y.__setstate__(state)
/usr/lib/python3.6/copy.py in deepcopy(x, memo, _nil)
148 copier = _deepcopy_dispatch.get(cls)
149 if copier:
--> 150 y = copier(x, memo)
151 else:
152 try:
/usr/lib/python3.6/copy.py in _deepcopy_dict(x, memo, deepcopy)
238 memo[id(x)] = y
239 for key, value in x.items():
--> 240 y[deepcopy(key, memo)] = deepcopy(value, memo)
241 return y
242 d[dict] = _deepcopy_dict
/usr/lib/python3.6/copy.py in deepcopy(x, memo, _nil)
178 y = x
179 else:
--> 180 y = _reconstruct(x, memo, *rv)
181
182 # If is its own copy, don't memoize.
/usr/lib/python3.6/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
278 if state is not None:
279 if deep:
--> 280 state = deepcopy(state, memo)
281 if hasattr(y, '__setstate__'):
282 y.__setstate__(state)
/usr/lib/python3.6/copy.py in deepcopy(x, memo, _nil)
148 copier = _deepcopy_dispatch.get(cls)
149 if copier:
--> 150 y = copier(x, memo)
151 else:
152 try:
/usr/lib/python3.6/copy.py in _deepcopy_dict(x, memo, deepcopy)
238 memo[id(x)] = y
239 for key, value in x.items():
--> 240 y[deepcopy(key, memo)] = deepcopy(value, memo)
241 return y
242 d[dict] = _deepcopy_dict
/usr/lib/python3.6/copy.py in deepcopy(x, memo, _nil)
159 copier = getattr(x, "__deepcopy__", None)
160 if copier:
--> 161 y = copier(memo)
162 else:
163 reductor = dispatch_table.get(cls)
/usr/local/lib/python3.6/dist-packages/matplotlib/transforms.py in __copy__(self, *args)
120 def __copy__(self, *args):
121 raise NotImplementedError(
--> 122 "TransformNode instances can not be copied. "
123 "Consider using frozen() instead.")
124 __deepcopy__ = __copy__
NotImplementedError: TransformNode instances can not be copied. Consider using frozen() instead."><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
<ipython-input-165-32d2d97b21c3> in <module>
----> 1 test3=copy.deepcopy(test)
/usr/lib/python3.6/copy.py in deepcopy(x, memo, _nil)
178 y = x
179 else:
--> 180 y = _reconstruct(x, memo, *rv)
181
182 # If is its own copy, don't memoize.
/usr/lib/python3.6/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
278 if state is not None:
279 if deep:
--> 280 state = deepcopy(state, memo)
281 if hasattr(y, '__setstate__'):
282 y.__setstate__(state)
/usr/lib/python3.6/copy.py in deepcopy(x, memo, _nil)
148 copier = _deepcopy_dispatch.get(cls)
149 if copier:
--> 150 y = copier(x, memo)
151 else:
152 try:
/usr/lib/python3.6/copy.py in _deepcopy_dict(x, memo, deepcopy)
238 memo[id(x)] = y
239 for key, value in x.items():
--> 240 y[deepcopy(key, memo)] = deepcopy(value, memo)
241 return y
242 d[dict] = _deepcopy_dict
/usr/lib/python3.6/copy.py in deepcopy(x, memo, _nil)
178 y = x
179 else:
--> 180 y = _reconstruct(x, memo, *rv)
181
182 # If is its own copy, don't memoize.
/usr/lib/python3.6/copy.py in _reconstruct(x, memo, func, args, state, listiter, dictiter, deepcopy)
278 if state is not None:
279 if deep:
--> 280 state = deepcopy(state, memo)
281 if hasattr(y, '__setstate__'):
282 y.__setstate__(state)
/usr/lib/python3.6/copy.py in deepcopy(x, memo, _nil)
148 copier = _deepcopy_dispatch.get(cls)
149 if copier:
--> 150 y = copier(x, memo)
151 else:
152 try:
/usr/lib/python3.6/copy.py in _deepcopy_dict(x, memo, deepcopy)
238 memo[id(x)] = y
239 for key, value in x.items():
--> 240 y[deepcopy(key, memo)] = deepcopy(value, memo)
241 return y
242 d[dict] = _deepcopy_dict
/usr/lib/python3.6/copy.py in deepcopy(x, memo, _nil)
159 copier = getattr(x, "__deepcopy__", None)
160 if copier:
--> 161 y = copier(memo)
162 else:
163 reductor = dispatch_table.get(cls)
/usr/local/lib/python3.6/dist-packages/matplotlib/transforms.py in __copy__(self, *args)
120 def __copy__(self, *args):
121 raise NotImplementedError(
--> 122 "TransformNode instances can not be copied. "
123 "Consider using frozen() instead.")
124 __deepcopy__ = __copy__
NotImplementedError: TransformNode instances can not be copied. Consider using frozen() instead.
</code></pre></div>
<p dir="auto">Any ideas?</p>
<p dir="auto">Or is there any other way to duplicate an object without copying by reference?</p>
<p dir="auto">Thanks</p> | <p dir="auto">Hello,</p>
<p dir="auto">I use seaborn extensively for creating plots in my <a href="https://github.com/wdecoster/NanoPlot">NanoPlot</a> tool. Users have been reporting the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/nanoplot/NanoPlot.py", line 61, in main
make_plots(datadf, settings, args)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/nanoplot/NanoPlot.py", line 260, in make_plots
log=settings["logBool"])
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/nanoplotter/nanoplotter.py", line 250, in length_plots
kde_kws={"label": name, "clip": (0, maxvalx)})
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 224, in distplot
kdeplot(a, vertical=vertical, ax=ax, color=kde_color, **kde_kws)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 657, in kdeplot
cumulative=cumulative, **kwargs)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 273, in _univariate_kdeplot
cumulative=cumulative)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 345, in _statsmodels_univariate_kde
kde.fit(kernel, bw, fft, gridsize=gridsize, cut=cut, clip=clip)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/statsmodels/nonparametric/kde.py", line 146, in fit
clip=clip, cut=cut)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/statsmodels/nonparametric/kde.py", line 506, in kdensityfft
f = revrt(zstar)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/statsmodels/nonparametric/kdetools.py", line 20, in revrt
y = X[:m/2+1] + np.r_[0,X[m/2+1:],0]*1j
TypeError: slice indices must be integers or None or have an __index__ method"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/nanoplot/NanoPlot.py", line 61, in main
make_plots(datadf, settings, args)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/nanoplot/NanoPlot.py", line 260, in make_plots
log=settings["logBool"])
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/nanoplotter/nanoplotter.py", line 250, in length_plots
kde_kws={"label": name, "clip": (0, maxvalx)})
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 224, in distplot
kdeplot(a, vertical=vertical, ax=ax, color=kde_color, **kde_kws)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 657, in kdeplot
cumulative=cumulative, **kwargs)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 273, in _univariate_kdeplot
cumulative=cumulative)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/seaborn/distributions.py", line 345, in _statsmodels_univariate_kde
kde.fit(kernel, bw, fft, gridsize=gridsize, cut=cut, clip=clip)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/statsmodels/nonparametric/kde.py", line 146, in fit
clip=clip, cut=cut)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/statsmodels/nonparametric/kde.py", line 506, in kdensityfft
f = revrt(zstar)
File "/users/218819/scratch/apps/Anaconda3/lib/python3.5/site-packages/statsmodels/nonparametric/kdetools.py", line 20, in revrt
y = X[:m/2+1] + np.r_[0,X[m/2+1:],0]*1j
TypeError: slice indices must be integers or None or have an __index__ method
</code></pre></div>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="303698582" data-permission-text="Title is private" data-url="https://github.com/wdecoster/NanoPlot/issues/52" data-hovercard-type="issue" data-hovercard-url="/wdecoster/NanoPlot/issues/52/hovercard" href="https://github.com/wdecoster/NanoPlot/issues/52">wdecoster/NanoPlot#52</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="304094211" data-permission-text="Title is private" data-url="https://github.com/wdecoster/nanopack/issues/5" data-hovercard-type="issue" data-hovercard-url="/wdecoster/nanopack/issues/5/hovercard" href="https://github.com/wdecoster/nanopack/issues/5">wdecoster/nanopack#5</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="271441178" data-permission-text="Title is private" data-url="https://github.com/wdecoster/NanoPlot/issues/23" data-hovercard-type="issue" data-hovercard-url="/wdecoster/NanoPlot/issues/23/hovercard" href="https://github.com/wdecoster/NanoPlot/issues/23">wdecoster/NanoPlot#23</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="295385385" data-permission-text="Title is private" data-url="https://github.com/wdecoster/NanoPlot/issues/45" data-hovercard-type="issue" data-hovercard-url="/wdecoster/NanoPlot/issues/45/hovercard" href="https://github.com/wdecoster/NanoPlot/issues/45">wdecoster/NanoPlot#45</a></p>
<p dir="auto">See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="203199137" data-permission-text="Title is private" data-url="https://github.com/mwaskom/seaborn/issues/1103" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/1103/hovercard" href="https://github.com/mwaskom/seaborn/issues/1103">#1103</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="200843640" data-permission-text="Title is private" data-url="https://github.com/mwaskom/seaborn/issues/1092" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/1092/hovercard" href="https://github.com/mwaskom/seaborn/issues/1092">#1092</a> for the same problem</p>
<p dir="auto">Would it make sense to make seaborn depend on statsmodels>=0.8.0 or a recent scipy version? I'd be happy to open a PR for this if you agree.</p>
<p dir="auto">Cheers,<br>
Wouter</p> | 0 |
<p dir="auto">The exact engine we use needs further discussion. Probably we don't want to use yarr because it requires the nitro jit, which is a big dependency and could be undesirable for various reasons. Ideally, we would have a nice syntax extension that precompiles the regexes (in addition to runtime compilation options).</p> | <p dir="auto">This program seems correct to me:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn main(args: [str]) {
let one = fn@() -> uint {
enum r { a };
ret a as uint;
};
let two = fn@() -> uint {
enum r { a };
ret a as uint;
};
one(); two();
}"><pre class="notranslate"><code class="notranslate">fn main(args: [str]) {
let one = fn@() -> uint {
enum r { a };
ret a as uint;
};
let two = fn@() -> uint {
enum r { a };
ret a as uint;
};
one(); two();
}
</code></pre></div>
<p dir="auto">If I compile it with rust <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/0d5d2e5e149f3ca1907e924968e36ca6fe5f45e9/hovercard" href="https://github.com/rust-lang/rust/commit/0d5d2e5e149f3ca1907e924968e36ca6fe5f45e9"><tt>0d5d2e5</tt></a> I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="herugrim::~/code/limerick $ RUST_LOG=rustc=0,::rt::backtrace rustc enumbug.rs
enumbug.rs:2:0: 12:1 warning: unused variable args
enumbug.rs:2 fn main(args: [str]) {
enumbug.rs:3 let one = fn@() -> uint {
enumbug.rs:4 enum r { a };
enumbug.rs:5 ret a as uint;
enumbug.rs:6 };
enumbug.rs:7 let two = fn@() -> uint {
...
error: internal compiler error duplicate LLVM symbol: _ZN4main1r1a7discrim17_7bb11dc7a9aa7ee4E
rust: upcall fail 'explicit failure', ../src/rustc/driver/diagnostic.rs:78
rust: upcall fail 'explicit failure', ../src/rustc/driver/rustc.rs:182
rust: domain main @0x7fd822818600 root task failed"><pre class="notranslate"><code class="notranslate">herugrim::~/code/limerick $ RUST_LOG=rustc=0,::rt::backtrace rustc enumbug.rs
enumbug.rs:2:0: 12:1 warning: unused variable args
enumbug.rs:2 fn main(args: [str]) {
enumbug.rs:3 let one = fn@() -> uint {
enumbug.rs:4 enum r { a };
enumbug.rs:5 ret a as uint;
enumbug.rs:6 };
enumbug.rs:7 let two = fn@() -> uint {
...
error: internal compiler error duplicate LLVM symbol: _ZN4main1r1a7discrim17_7bb11dc7a9aa7ee4E
rust: upcall fail 'explicit failure', ../src/rustc/driver/diagnostic.rs:78
rust: upcall fail 'explicit failure', ../src/rustc/driver/rustc.rs:182
rust: domain main @0x7fd822818600 root task failed
</code></pre></div>
<p dir="auto">This problem only seems to happen with boxed closures (fn@)</p> | 0 |
<p dir="auto">This is about the "documentation inaccuracy" and the discussion on "scale_C".<br>
I really want to fix this before the release but I don't have much time atm.</p>
<p dir="auto">As far as I understood, at the moment we can agree that having "C" as parameter with "scale_C=True"<br>
is not perfect, as this doesn't agree with how "C" is used in the literature / other software.<br>
I am not sure if there was a solution that we could agree on.<br>
I would like to have votes pro/con having a "duplicate" parameter C (which has scale_C=False semantics) and alpha, which behaves as in the other linear models. Another option would be to have just the "alpha" parameter.<br>
Any other suggestions are welcome.</p>
<p dir="auto">I created this script: <a href="https://gist.github.com/2354823">https://gist.github.com/2354823</a> to understand the effect of "scale_C".<br>
Not sure if that helps.<br>
Results look like this:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/ecb5d47a0be5d6b6ab4c33dbe14435b49b1116ebf43b21550328d836f6f1602b/687474703a2f2f692e696d6775722e636f6d2f366d4b31712e706e67"><img src="https://camo.githubusercontent.com/ecb5d47a0be5d6b6ab4c33dbe14435b49b1116ebf43b21550328d836f6f1602b/687474703a2f2f692e696d6775722e636f6d2f366d4b31712e706e67" alt="true" data-canonical-src="http://i.imgur.com/6mK1q.png" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/7a4d6fa96dd71543182085a34ec0ac41d97752ee212e6371618aaa2304b429ca/687474703a2f2f692e696d6775722e636f6d2f474156694e2e706e67"><img src="https://camo.githubusercontent.com/7a4d6fa96dd71543182085a34ec0ac41d97752ee212e6371618aaa2304b429ca/687474703a2f2f692e696d6775722e636f6d2f474156694e2e706e67" alt="false" data-canonical-src="http://i.imgur.com/GAViN.png" style="max-width: 100%;"></a><br>
These are grid searches for C=2**k with "shuffle & split" and different fractions of training data.<br>
In principle the results should just be shifted by a factor of "n_samples". Guess that is not a power of two so that makes it a bit different. Not sure I like one more than the other.</p> | <h1 dir="auto">problem</h1>
<p dir="auto">I am trying to get the <code class="notranslate">nmf_missing</code> branch to compile without success, <a href="https://github.com/scikit-learn/scikit-learn/pull/8474#issuecomment-347520280" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/8474/hovercard">as per this suggestion</a>.</p>
<h2 dir="auto">The compiler error:</h2>
<p dir="auto">On branch <code class="notranslate">nmf_missing</code> after issuing <code class="notranslate">make</code> at the command line it build largely fine until the following error (The first one I know of, although several warnings):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c sklearn/neighbors/quad_tree.c -o build/temp.linux-x86_64-2.7/sklearn/neighbors/quad_tree.o -MMD -MF build/temp.linux-x86_64-2.7/sklearn/neighbors/quad_tree.o.d" failed with exit status 1
Makefile:24: recipe for target 'inplace' failed"><pre class="notranslate"><code class="notranslate">error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c sklearn/neighbors/quad_tree.c -o build/temp.linux-x86_64-2.7/sklearn/neighbors/quad_tree.o -MMD -MF build/temp.linux-x86_64-2.7/sklearn/neighbors/quad_tree.o.d" failed with exit status 1
Makefile:24: recipe for target 'inplace' failed
</code></pre></div>
<h3 dir="auto">How I think this can be solved(?)</h3>
<p dir="auto">It seems to come from trying to compile the following line in quad_tree.c (3582) <code class="notranslate"> printf(__pyx_k_QuadTree_found_a_duplicate);</code>. I have tried commenting out this line but whenever I type <code class="notranslate">make</code> it reverts the change. Hence I have tried tracking down what is producing either this file, or whatever is producing the compiler flags <code class="notranslate">-Wformat -Werror=format-security</code> which is causing the compiler to throw the error. However, trying to track the origin of these has proved too much and I am lost.</p> | 0 |
<p dir="auto">Getting error - Error: browserType.launch: spawn UNKNOWN when I try to execute example.spec.ts<br>
I've the latest version of playwright and chrome browser<br>
playwright version - 1.36.1<br>
chrome version - 115.0.5790.110</p>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.XX]</li>
<li>Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]</li>
<li>Browser: [All, Chromium, Firefox, WebKit]</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p>
<p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p>
<p dir="auto">or</p>
<p dir="auto"><strong>Config file</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], },
},
});"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">projects</span>: <span class="pl-kos">[</span>
<span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos"></span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Test file (self-contained)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="it('should check the box using setChecked', async ({ page }) => {
await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
await page.getByRole('checkbox').check();
await expect(page.getByRole('checkbox')).toBeChecked();
});"><pre class="notranslate"><span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should check the box using setChecked'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s">`<input id='checkbox' type='checkbox'></input>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">check</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeChecked</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>[Run the test]</li>
<li>[...]</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">[Describe expected behavior]</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">[Describe actual behavior]</p> | <p dir="auto">When the first test file finished and the next test file starts the first test of the next test file always fails:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43057926/232991638-31142180-3b23-4b6f-b3a6-b87a777e90de.png"><img src="https://user-images.githubusercontent.com/43057926/232991638-31142180-3b23-4b6f-b3a6-b87a777e90de.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Having this workaround in the concerning test file:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//testfile.spec.ts
import { adminTest as test } from "fixtures/base";
test('DUMMY @LEVEL1', async ({ page }) => {
//Here nothing happens
})
test("The actual test @LEVEL1", async ({
page,
}, testInfo) => {
...
});"><pre class="notranslate"><span class="pl-c">//testfile.spec.ts</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">adminTest</span> <span class="pl-k">as</span> <span class="pl-s1">test</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"fixtures/base"</span><span class="pl-kos">;</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'DUMMY @LEVEL1'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-c">//Here nothing happens</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"The actual test @LEVEL1"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>
page<span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">testInfo</span><span class="pl-kos">)</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>
<p dir="auto">everything works fine.</p>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: v1.31</li>
<li>Operating System: Windows10</li>
<li>Browser: Chromium</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<p dir="auto"><strong>fixture</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//base.ts
base.use({ baseURL: process.env.URL });
const authAdmin = process.env.AUTH_ADMIN;
export const adminTest = base.extend({
page: async ({ browser }, use) => {
const context = await browser.newContext({
storageState: authAdmin,
});
const page = await context.newPage();
await page.goto("");
await use(page);
},
});"><pre class="notranslate"><span class="pl-c">//base.ts</span>
<span class="pl-s1">base</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">baseURL</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">URL</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">authAdmin</span> <span class="pl-c1">=</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">AUTH_ADMIN</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-s1">adminTest</span> <span class="pl-c1">=</span> <span class="pl-s1">base</span><span class="pl-kos">.</span><span class="pl-en">extend</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-en">page</span>: <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> browser <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">use</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newContext</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">storageState</span>: <span class="pl-s1">authAdmin</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">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">""</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Config file</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts
import { defineConfig, devices } from "@playwright/test";
// JUnit reporter config for Xray
const xrayOptions = {
// Whether to add <properties> with all annotations; default is false
embedAnnotationsAsProperties: true,
// By default, annotation is reported as <property name='' value=''>.
// These annotations are reported as <property name=''>value</property>.
textContentAnnotations: ["test_description"],
// This will create a "testrun_evidence" property that contains all attachments. Each attachment is added as an inner <item> element.
// Disables [[ATTACHMENT|path]] in the <system-out>.
//Issue bzgl. Daten-Typen, siehe https://github.com/microsoft/playwright/issues/22396
embedAttachmentsAsProperty: "testrun_evidence",
// Where to put the report.
outputFile: "./test-results/xray-report.xml",
};
export default defineConfig({
testDir: "./tests",
grepInvert: /@TODO/,
timeout: 60 * 1000,
expect: {
timeout: 5000,
},
fullyParallel: false,
retries: 0,
workers: 1,
reporter: [
["html", { open: "on-failure" }],
["list", { printSteps: true }],
["junit", xrayOptions],
],
use: {
actionTimeout: 0,
trace: "retain-on-failure",
video: "retain-on-failure",
screenshot: "only-on-failure",
headless: true,
locale: "de-DE",
timezoneId: "Europe/Berlin",
},
projects: [
{ name: "setup", testMatch: /.*\.setup\.spec.ts/ },
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
dependencies: ["setup"],
},
],
});"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span>
<span class="pl-c">// JUnit reporter config for Xray</span>
<span class="pl-k">const</span> <span class="pl-s1">xrayOptions</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c">// Whether to add <properties> with all annotations; default is false</span>
<span class="pl-c1">embedAnnotationsAsProperties</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c">// By default, annotation is reported as <property name='' value=''>.</span>
<span class="pl-c">// These annotations are reported as <property name=''>value</property>.</span>
<span class="pl-c1">textContentAnnotations</span>: <span class="pl-kos">[</span><span class="pl-s">"test_description"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c">// This will create a "testrun_evidence" property that contains all attachments. Each attachment is added as an inner <item> element.</span>
<span class="pl-c">// Disables [[ATTACHMENT|path]] in the <system-out>.</span>
<span class="pl-c">//Issue bzgl. Daten-Typen, siehe https://github.com/microsoft/playwright/issues/22396</span>
<span class="pl-c1">embedAttachmentsAsProperty</span>: <span class="pl-s">"testrun_evidence"</span><span class="pl-kos">,</span>
<span class="pl-c">// Where to put the report.</span>
<span class="pl-c1">outputFile</span>: <span class="pl-s">"./test-results/xray-report.xml"</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-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">testDir</span>: <span class="pl-s">"./tests"</span><span class="pl-kos">,</span>
<span class="pl-c1">grepInvert</span>: <span class="pl-pds"><span class="pl-c1">/</span>@TODO<span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">timeout</span>: <span class="pl-c1">60</span> <span class="pl-c1">*</span> <span class="pl-c1">1000</span><span class="pl-kos">,</span>
<span class="pl-c1">expect</span>: <span class="pl-kos">{</span>
<span class="pl-c1">timeout</span>: <span class="pl-c1">5000</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">fullyParallel</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">retries</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span>
<span class="pl-c1">workers</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span>
<span class="pl-c1">reporter</span>: <span class="pl-kos">[</span>
<span class="pl-kos">[</span><span class="pl-s">"html"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">open</span>: <span class="pl-s">"on-failure"</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">"list"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">printSteps</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">"junit"</span><span class="pl-kos">,</span> <span class="pl-s1">xrayOptions</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span>
<span class="pl-c1">actionTimeout</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span>
<span class="pl-c1">trace</span>: <span class="pl-s">"retain-on-failure"</span><span class="pl-kos">,</span>
<span class="pl-c1">video</span>: <span class="pl-s">"retain-on-failure"</span><span class="pl-kos">,</span>
<span class="pl-c1">screenshot</span>: <span class="pl-s">"only-on-failure"</span><span class="pl-kos">,</span>
<span class="pl-c1">headless</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">locale</span>: <span class="pl-s">"de-DE"</span><span class="pl-kos">,</span>
<span class="pl-c1">timezoneId</span>: <span class="pl-s">"Europe/Berlin"</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">projects</span>: <span class="pl-kos">[</span>
<span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"setup"</span><span class="pl-kos">,</span> <span class="pl-c1">testMatch</span>: <span class="pl-pds"><span class="pl-c1">/</span>.<span class="pl-c1">*</span><span class="pl-cce">\.</span>setup<span class="pl-cce">\.</span>spec.ts<span class="pl-c1">/</span></span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">"chromium"</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">"Desktop Chrome"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">dependencies</span>: <span class="pl-kos">[</span><span class="pl-s">"setup"</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | 0 |
<p dir="auto">版本:0.6.2951.0<br>
Windows版本:18363.476</p>
<p dir="auto">通过win+space切换至中文输入法后,无法输入中文,有问题的输入法包括:<br>
微软拼音输入法,版本:系统自带;<br>
小狼毫,版本:0.12.0;<br>
手心输入法,版本:2.7.0.1702;</p>
<p dir="auto">具体表现为,切换输入法后,系统托盘图标显示切换成功,但是输入的内容实际还是英文。</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 (if applicable): 0.4.2382.0
Any other software? Ubunutu WSL"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.4.2382.0
Any other software? Ubunutu WSL
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">To reproduce, on an install of Windows that has never had WSL enabled or installed, install the new Windows Terminal preview from the store. Open it to allow itself to get through any first initialization stuff it needs. Then enable WSL and install a Linux distribution. In my case it was Ubuntu but I have a feeling it would break for the others too.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">In the event that you install the new terminal first before you install WSL, that terminal would pick up on the next launch that there has been a new distribution installed and that it needs to add a basic profile into the settings JSON.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Nothing happens and the Terminal is left with the same options as before. In my case the default options of CMD, Powershell, and Azure.</p> | 0 |
<p dir="auto">Hello,<br>
i'm reporting here the errors produced by the test suite when running on debian amd64:</p>
<p dir="auto">python 2.7.15:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="=================================== FAILURES ===================================
_____________________________ test_log_scales[png] _____________________________
self = <CallInfo when='call' exception: Image sizes do not match expected size: (600, 800, 3) actual size (600, 800, 4)>
func = <function <lambda> at 0x7f13fab3e410>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_log_scales[png]'>}, notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_log_scales[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_log_scales[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_log_scales[png]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_log_scales[png]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}, notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_log_scales[png]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales.png'
tol = 0.306, in_decorator = True
def compare_images(expected, actual, tol, in_decorator=False):
"""
Compare two "image" files checking differences within a tolerance.
The two given filenames may point to files which are convertible to
PNG via the `.converter` dictionary. The underlying RMS is calculated
with the `.calculate_rms` function.
Parameters
----------
expected : str
The filename of the expected image.
actual :str
The filename of the actual image.
tol : float
The tolerance (a color value difference, where 255 is the
maximal difference). The test fails if the average pixel
difference is greater than this value.
in_decorator : bool
If called from image_comparison decorator, this should be
True. (default=False)
Examples
--------
img1 = "./baseline/plot.png"
img2 = "./output/plot.png"
compare_images( img1, img2, 0.001 ):
"""
if not os.path.exists(actual):
raise Exception("Output image %s does not exist." % actual)
if os.stat(actual).st_size == 0:
raise Exception("Output image file %s is empty." % actual)
# Convert the image to png
extension = expected.split('.')[-1]
if not os.path.exists(expected):
raise IOError('Baseline image %r does not exist.' % expected)
if extension != 'png':
actual = convert(actual, False)
expected = convert(expected, True)
# open the image files and remove the alpha channel (if it exists)
expectedImage = _png.read_png_int(expected)
actualImage = _png.read_png_int(actual)
expectedImage = expectedImage[:, :, :3]
actualImage = actualImage[:, :, :3]
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
diff_image = make_test_filename(actual, 'failed-diff')
if tol <= 0.0:
if np.array_equal(expectedImage, actualImage):
return None
# convert to signed integers, so that the images can be subtracted without
# overflow
expectedImage = expectedImage.astype(np.int16)
actualImage = actualImage.astype(np.int16)
rms = calculate_rms(expectedImage, actualImage)
if rms <= tol:
return None
> save_diff_image(expected, actual, diff_image)
build/lib.linux-x86_64-2.7/matplotlib/testing/compare.py:444:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales.png'
output = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-failed-diff.png'
def save_diff_image(expected, actual, output):
expectedImage = _png.read_png(expected)
actualImage = _png.read_png(actual)
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
expectedImage = np.array(expectedImage).astype(float)
actualImage = np.array(actualImage).astype(float)
if expectedImage.shape != actualImage.shape:
raise ImageComparisonFailure(
"Image sizes do not match expected size: {0} "
> "actual size {1}".format(expectedImage.shape, actualImage.shape))
E ImageComparisonFailure: Image sizes do not match expected size: (600, 800, 3) actual size (600, 800, 4)
build/lib.linux-x86_64-2.7/matplotlib/testing/compare.py:471: ImageComparisonFailure
__________________ test_bbox_inches_tight_suptile_legend[png] __________________
self = <CallInfo when='call' exception: Image sizes do not match expected size: (593, 921, 3) actual size (592, 921, 3)>
func = <function <lambda> at 0x7f13f9af5ed8>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_bbox_tight/bbox_inches_tight_suptile_legend-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_bbox_tight/bbox_inches_tight_suptile_legend.png'
tol = 0.306, in_decorator = True
def compare_images(expected, actual, tol, in_decorator=False):
"""
Compare two "image" files checking differences within a tolerance.
The two given filenames may point to files which are convertible to
PNG via the `.converter` dictionary. The underlying RMS is calculated
with the `.calculate_rms` function.
Parameters
----------
expected : str
The filename of the expected image.
actual :str
The filename of the actual image.
tol : float
The tolerance (a color value difference, where 255 is the
maximal difference). The test fails if the average pixel
difference is greater than this value.
in_decorator : bool
If called from image_comparison decorator, this should be
True. (default=False)
Examples
--------
img1 = "./baseline/plot.png"
img2 = "./output/plot.png"
compare_images( img1, img2, 0.001 ):
"""
if not os.path.exists(actual):
raise Exception("Output image %s does not exist." % actual)
if os.stat(actual).st_size == 0:
raise Exception("Output image file %s is empty." % actual)
# Convert the image to png
extension = expected.split('.')[-1]
if not os.path.exists(expected):
raise IOError('Baseline image %r does not exist.' % expected)
if extension != 'png':
actual = convert(actual, False)
expected = convert(expected, True)
# open the image files and remove the alpha channel (if it exists)
expectedImage = _png.read_png_int(expected)
actualImage = _png.read_png_int(actual)
expectedImage = expectedImage[:, :, :3]
actualImage = actualImage[:, :, :3]
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
diff_image = make_test_filename(actual, 'failed-diff')
if tol <= 0.0:
if np.array_equal(expectedImage, actualImage):
return None
# convert to signed integers, so that the images can be subtracted without
# overflow
expectedImage = expectedImage.astype(np.int16)
actualImage = actualImage.astype(np.int16)
> rms = calculate_rms(expectedImage, actualImage)
build/lib.linux-x86_64-2.7/matplotlib/testing/compare.py:439:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expectedImage = array([[[255, 255, 255],
[255, 255, 255],
[255, 255, 255],
...55, 255, 255],
[255, 255, 255],
[255, 255, 255]]], dtype=int16)
actualImage = array([[[255, 255, 255],
[255, 255, 255],
[255, 255, 255],
...55, 255, 255],
[255, 255, 255],
[255, 255, 255]]], dtype=int16)
def calculate_rms(expectedImage, actualImage):
"Calculate the per-pixel errors, then compute the root mean square error."
if expectedImage.shape != actualImage.shape:
raise ImageComparisonFailure(
"Image sizes do not match expected size: {0} "
> "actual size {1}".format(expectedImage.shape, actualImage.shape))
E ImageComparisonFailure: Image sizes do not match expected size: (593, 921, 3) actual size (592, 921, 3)
build/lib.linux-x86_64-2.7/matplotlib/testing/compare.py:369: ImageComparisonFailure
__________________ test_nose_image_comparison[failing figure] __________________
self = <CallInfo when='call' exception: assert '...' == 'FFF'
- ...
+ FFF>
func = <function <lambda> at 0x7f13fa2209b0>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_nose_image_comparison[failing figure]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_nose_image_comparison[failing figure]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_nose_image_comparison[failing figure]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
func = <function nosetest_simple_figure at 0x7f13fa4bc938>
kwargs = {'baseline_images': ['simple'], 'extensions': ['png', 'png', 'png']}
errors = []
failures = [(<class 'matplotlib.testing.exceptions.ImageComparisonFailure'>, 'images not close'), (<class 'matplotlib.testing.exc...onFailure'>, 'images not close'), (<class 'matplotlib.testing.exceptions.ImageComparisonFailure'>, 'images not close')]
dots = 'FFF'
monkeypatch = <_pytest.monkeypatch.MonkeyPatch instance at 0x7f13fb26e128>
@pytest.mark.parametrize(
'func, kwargs, errors, failures, dots',
[
(nosetest_empty, {'baseline_images': []}, [], [], ''),
(nosetest_empty, {'baseline_images': ['foo']},
[(AssertionError,
'Test generated 0 images but there are 1 baseline images')],
[],
'E'),
(nosetest_simple_figure,
{'baseline_images': ['basn3p02'], 'extensions': ['png'],
'remove_text': True},
[],
[(ImageComparisonFailure, 'Image sizes do not match expected size:')],
'F'),
(nosetest_simple_figure,
{'baseline_images': ['simple']},
[],
[(ImageComparisonFailure, 'images not close')] * 3,
'FFF'),
(nosetest_simple_figure,
{'baseline_images': ['simple'], 'remove_text': True},
[],
[],
'...'),
(nosetest_manual_text_removal,
{'baseline_images': ['simple']},
[],
[],
'...'),
],
ids=[
'empty',
'extra baselines',
'incorrect shape',
'failing figure',
'passing figure',
'manual text removal',
])
def test_nose_image_comparison(func, kwargs, errors, failures, dots,
monkeypatch):
nose = pytest.importorskip('nose')
monkeypatch.setattr('matplotlib._called_from_pytest', False)
class TestResultVerifier(nose.result.TextTestResult):
def __init__(self, *args, **kwargs):
super(TestResultVerifier, self).__init__(*args, **kwargs)
self.error_count = 0
self.failure_count = 0
def addError(self, test, err):
super(TestResultVerifier, self).addError(test, err)
if self.error_count < len(errors):
assert err[0] is errors[self.error_count][0]
assert errors[self.error_count][1] in str(err[1])
else:
raise err[1]
self.error_count += 1
def addFailure(self, test, err):
super(TestResultVerifier, self).addFailure(test, err)
assert self.failure_count < len(failures), err[1]
assert err[0] is failures[self.failure_count][0]
assert failures[self.failure_count][1] in str(err[1])
self.failure_count += 1
# Make sure that multiple extensions work, but don't require LaTeX or
# Inkscape to do so.
kwargs.setdefault('extensions', ['png', 'png', 'png'])
func = image_comparison(**kwargs)(func)
loader = nose.loader.TestLoader()
suite = loader.loadTestsFromGenerator(
func,
'matplotlib.tests.test_compare_images')
if six.PY2:
output = io.BytesIO()
else:
output = io.StringIO()
result = TestResultVerifier(stream=output, descriptions=True, verbosity=1)
with warnings.catch_warnings():
# Nose uses deprecated stuff; we don't care about it.
warnings.simplefilter('ignore', DeprecationWarning)
suite.run(result=result)
> assert output.getvalue() == dots
E AssertionError: assert '...' == 'FFF'
E - ...
E + FFF
build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py:199: AssertionError
----------------------------- Captured stdout call -----------------------------
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
------------------------------ Captured log call -------------------------------
importer.py 143 DEBUG Add path /build/matplotlib-2.2.2
suite.py 418 DEBUG Create suite for <function generate at 0x7f13fb0b9398>
suite.py 420 DEBUG tests <function generate at 0x7f13fb0b9398> context <function nosetest_simple_figure at 0x7f13fa4bc938>
suite.py 148 DEBUG Context suite for <function generate at 0x7f13fb0b9398> (<function nosetest_simple_figure at 0x7f13fa4bc938>) (139723701656336)
suite.py 481 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has context nosetest_simple_figure
suite.py 435 DEBUG get ancestry <function nosetest_simple_figure at 0x7f13fa4bc938>
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f13fa4bc938> ancestors ['matplotlib', 'tests', 'test_compare_images']
util.py 311 DEBUG __import__ matplotlib.tests.test_compare_images
util.py 320 DEBUG resolve: ['tests', 'test_compare_images'], matplotlib.tests.test_compare_images, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib.tests.test_compare_images
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f13fa4bc938> ancestors ['matplotlib', 'tests']
util.py 311 DEBUG __import__ matplotlib.tests
util.py 320 DEBUG resolve: ['tests'], matplotlib.tests, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib.tests
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f13fa4bc938> ancestors ['matplotlib']
util.py 311 DEBUG __import__ matplotlib
util.py 320 DEBUG resolve: [], matplotlib, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib
suite.py 201 DEBUG suite 139723701656336 (<nose.suite.ContextSuite context=nosetest_simple_figure>) run called, tests: <generator object _get_wrapped_tests at 0x7f13f9f8eaf0>
suite.py 269 DEBUG suite 139723701656336 setUp called, tests: <generator object _get_wrapped_tests at 0x7f13fa3ce4b0>
suite.py 79 DEBUG tests in 139723701656336?
suite.py 288 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 288 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'>
util.py 470 DEBUG call fixture <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'>.setup
suite.py 288 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'>
suite.py 288 DEBUG ancestor <function nosetest_simple_figure at 0x7f13fa4bc938> may need setup
suite.py 291 DEBUG ancestor <function nosetest_simple_figure at 0x7f13fa4bc938> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <function nosetest_simple_figure at 0x7f13fa4bc938>
util.py 470 DEBUG call fixture <function nosetest_simple_figure at 0x7f13fa4bc938>.setup
suite.py 298 DEBUG completed suite setup
suite.py 94 DEBUG precache is [matplotlib.tests.test_compare_images.nosetest_simple_figure(0, 'simple', 'png')]
suite.py 323 DEBUG context teardown
suite.py 341 DEBUG ancestor <function nosetest_simple_figure at 0x7f13fa4bc938> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <function nosetest_simple_figure at 0x7f13fa4bc938>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <function nosetest_simple_figure at 0x7f13fa4bc938>
util.py 470 DEBUG call fixture <function nosetest_simple_figure at 0x7f13fa4bc938>.teardown
suite.py 341 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'>
suite.py 341 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'>
suite.py 341 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 341 DEBUG ancestor <function nosetest_simple_figure at 0x7f13fa4bc938> may need teardown
suite.py 346 DEBUG ancestor <function nosetest_simple_figure at 0x7f13fa4bc938> already torn down
=============================== warnings summary ===============================
build/lib.linux-x86_64-2.7/matplotlib/tests/test_axes.py::test_fill_units[png]
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/axes/_base.py:2504: RuntimeWarning: invalid value encountered in double_scalars
delta = (x1t - x0t) * margin
build/lib.linux-x86_64-2.7/matplotlib/tests/test_axes.py::test_pyplot_axes
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Using pyplot.axes(ax) with ax an Axes argument is deprecated. Please use pyplot.sca(ax) instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
build/lib.linux-x86_64-2.7/matplotlib/tests/test_image.py::test_empty_imshow[make_norm2]
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/colors.py:1133: RuntimeWarning: invalid value encountered in greater
masked = np.abs(a) > self.linthresh
build/lib.linux-x86_64-2.7/matplotlib/tests/test_image.py::test_full_invalid
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/image.py:405: UserWarning: Warning: converting a masked element to nan.
dv = (np.float64(self.norm.vmax) -
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/image.py:406: UserWarning: Warning: converting a masked element to nan.
np.float64(self.norm.vmin))
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/image.py:412: UserWarning: Warning: converting a masked element to nan.
a_min = np.float64(newmin)
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/image.py:417: UserWarning: Warning: converting a masked element to nan.
a_max = np.float64(newmax)
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/colors.py:916: UserWarning: Warning: converting a masked element to nan.
dtype = np.min_scalar_type(value)
/usr/lib/python2.7/dist-packages/numpy/ma/core.py:716: UserWarning: Warning: converting a masked element to nan.
data = np.array(a, copy=False, subok=subok)
-- Docs: http://doc.pytest.org/en/latest/warnings.html"><pre class="notranslate"><code class="notranslate">=================================== FAILURES ===================================
_____________________________ test_log_scales[png] _____________________________
self = <CallInfo when='call' exception: Image sizes do not match expected size: (600, 800, 3) actual size (600, 800, 4)>
func = <function <lambda> at 0x7f13fab3e410>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_log_scales[png]'>}, notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_log_scales[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_log_scales[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_log_scales[png]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_log_scales[png]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}, notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_log_scales[png]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales.png'
tol = 0.306, in_decorator = True
def compare_images(expected, actual, tol, in_decorator=False):
"""
Compare two "image" files checking differences within a tolerance.
The two given filenames may point to files which are convertible to
PNG via the `.converter` dictionary. The underlying RMS is calculated
with the `.calculate_rms` function.
Parameters
----------
expected : str
The filename of the expected image.
actual :str
The filename of the actual image.
tol : float
The tolerance (a color value difference, where 255 is the
maximal difference). The test fails if the average pixel
difference is greater than this value.
in_decorator : bool
If called from image_comparison decorator, this should be
True. (default=False)
Examples
--------
img1 = "./baseline/plot.png"
img2 = "./output/plot.png"
compare_images( img1, img2, 0.001 ):
"""
if not os.path.exists(actual):
raise Exception("Output image %s does not exist." % actual)
if os.stat(actual).st_size == 0:
raise Exception("Output image file %s is empty." % actual)
# Convert the image to png
extension = expected.split('.')[-1]
if not os.path.exists(expected):
raise IOError('Baseline image %r does not exist.' % expected)
if extension != 'png':
actual = convert(actual, False)
expected = convert(expected, True)
# open the image files and remove the alpha channel (if it exists)
expectedImage = _png.read_png_int(expected)
actualImage = _png.read_png_int(actual)
expectedImage = expectedImage[:, :, :3]
actualImage = actualImage[:, :, :3]
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
diff_image = make_test_filename(actual, 'failed-diff')
if tol <= 0.0:
if np.array_equal(expectedImage, actualImage):
return None
# convert to signed integers, so that the images can be subtracted without
# overflow
expectedImage = expectedImage.astype(np.int16)
actualImage = actualImage.astype(np.int16)
rms = calculate_rms(expectedImage, actualImage)
if rms <= tol:
return None
> save_diff_image(expected, actual, diff_image)
build/lib.linux-x86_64-2.7/matplotlib/testing/compare.py:444:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales.png'
output = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-failed-diff.png'
def save_diff_image(expected, actual, output):
expectedImage = _png.read_png(expected)
actualImage = _png.read_png(actual)
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
expectedImage = np.array(expectedImage).astype(float)
actualImage = np.array(actualImage).astype(float)
if expectedImage.shape != actualImage.shape:
raise ImageComparisonFailure(
"Image sizes do not match expected size: {0} "
> "actual size {1}".format(expectedImage.shape, actualImage.shape))
E ImageComparisonFailure: Image sizes do not match expected size: (600, 800, 3) actual size (600, 800, 4)
build/lib.linux-x86_64-2.7/matplotlib/testing/compare.py:471: ImageComparisonFailure
__________________ test_bbox_inches_tight_suptile_legend[png] __________________
self = <CallInfo when='call' exception: Image sizes do not match expected size: (593, 921, 3) actual size (592, 921, 3)>
func = <function <lambda> at 0x7f13f9af5ed8>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_bbox_tight/bbox_inches_tight_suptile_legend-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_bbox_tight/bbox_inches_tight_suptile_legend.png'
tol = 0.306, in_decorator = True
def compare_images(expected, actual, tol, in_decorator=False):
"""
Compare two "image" files checking differences within a tolerance.
The two given filenames may point to files which are convertible to
PNG via the `.converter` dictionary. The underlying RMS is calculated
with the `.calculate_rms` function.
Parameters
----------
expected : str
The filename of the expected image.
actual :str
The filename of the actual image.
tol : float
The tolerance (a color value difference, where 255 is the
maximal difference). The test fails if the average pixel
difference is greater than this value.
in_decorator : bool
If called from image_comparison decorator, this should be
True. (default=False)
Examples
--------
img1 = "./baseline/plot.png"
img2 = "./output/plot.png"
compare_images( img1, img2, 0.001 ):
"""
if not os.path.exists(actual):
raise Exception("Output image %s does not exist." % actual)
if os.stat(actual).st_size == 0:
raise Exception("Output image file %s is empty." % actual)
# Convert the image to png
extension = expected.split('.')[-1]
if not os.path.exists(expected):
raise IOError('Baseline image %r does not exist.' % expected)
if extension != 'png':
actual = convert(actual, False)
expected = convert(expected, True)
# open the image files and remove the alpha channel (if it exists)
expectedImage = _png.read_png_int(expected)
actualImage = _png.read_png_int(actual)
expectedImage = expectedImage[:, :, :3]
actualImage = actualImage[:, :, :3]
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
diff_image = make_test_filename(actual, 'failed-diff')
if tol <= 0.0:
if np.array_equal(expectedImage, actualImage):
return None
# convert to signed integers, so that the images can be subtracted without
# overflow
expectedImage = expectedImage.astype(np.int16)
actualImage = actualImage.astype(np.int16)
> rms = calculate_rms(expectedImage, actualImage)
build/lib.linux-x86_64-2.7/matplotlib/testing/compare.py:439:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expectedImage = array([[[255, 255, 255],
[255, 255, 255],
[255, 255, 255],
...55, 255, 255],
[255, 255, 255],
[255, 255, 255]]], dtype=int16)
actualImage = array([[[255, 255, 255],
[255, 255, 255],
[255, 255, 255],
...55, 255, 255],
[255, 255, 255],
[255, 255, 255]]], dtype=int16)
def calculate_rms(expectedImage, actualImage):
"Calculate the per-pixel errors, then compute the root mean square error."
if expectedImage.shape != actualImage.shape:
raise ImageComparisonFailure(
"Image sizes do not match expected size: {0} "
> "actual size {1}".format(expectedImage.shape, actualImage.shape))
E ImageComparisonFailure: Image sizes do not match expected size: (593, 921, 3) actual size (592, 921, 3)
build/lib.linux-x86_64-2.7/matplotlib/testing/compare.py:369: ImageComparisonFailure
__________________ test_nose_image_comparison[failing figure] __________________
self = <CallInfo when='call' exception: assert '...' == 'FFF'
- ...
+ FFF>
func = <function <lambda> at 0x7f13fa2209b0>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f140a075a10>, <pluggy.HookImpl object at 0x7f1409fb5ad0>, <pluggy.HookImpl object at 0x7f1409fc27d0>]
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_nose_image_comparison[failing figure]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_nose_image_comparison[failing figure]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f140b120f50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f140a086090>, <pluggy.HookImpl object at 0x7f140a028090>]
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_nose_image_comparison[failing figure]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
func = <function nosetest_simple_figure at 0x7f13fa4bc938>
kwargs = {'baseline_images': ['simple'], 'extensions': ['png', 'png', 'png']}
errors = []
failures = [(<class 'matplotlib.testing.exceptions.ImageComparisonFailure'>, 'images not close'), (<class 'matplotlib.testing.exc...onFailure'>, 'images not close'), (<class 'matplotlib.testing.exceptions.ImageComparisonFailure'>, 'images not close')]
dots = 'FFF'
monkeypatch = <_pytest.monkeypatch.MonkeyPatch instance at 0x7f13fb26e128>
@pytest.mark.parametrize(
'func, kwargs, errors, failures, dots',
[
(nosetest_empty, {'baseline_images': []}, [], [], ''),
(nosetest_empty, {'baseline_images': ['foo']},
[(AssertionError,
'Test generated 0 images but there are 1 baseline images')],
[],
'E'),
(nosetest_simple_figure,
{'baseline_images': ['basn3p02'], 'extensions': ['png'],
'remove_text': True},
[],
[(ImageComparisonFailure, 'Image sizes do not match expected size:')],
'F'),
(nosetest_simple_figure,
{'baseline_images': ['simple']},
[],
[(ImageComparisonFailure, 'images not close')] * 3,
'FFF'),
(nosetest_simple_figure,
{'baseline_images': ['simple'], 'remove_text': True},
[],
[],
'...'),
(nosetest_manual_text_removal,
{'baseline_images': ['simple']},
[],
[],
'...'),
],
ids=[
'empty',
'extra baselines',
'incorrect shape',
'failing figure',
'passing figure',
'manual text removal',
])
def test_nose_image_comparison(func, kwargs, errors, failures, dots,
monkeypatch):
nose = pytest.importorskip('nose')
monkeypatch.setattr('matplotlib._called_from_pytest', False)
class TestResultVerifier(nose.result.TextTestResult):
def __init__(self, *args, **kwargs):
super(TestResultVerifier, self).__init__(*args, **kwargs)
self.error_count = 0
self.failure_count = 0
def addError(self, test, err):
super(TestResultVerifier, self).addError(test, err)
if self.error_count < len(errors):
assert err[0] is errors[self.error_count][0]
assert errors[self.error_count][1] in str(err[1])
else:
raise err[1]
self.error_count += 1
def addFailure(self, test, err):
super(TestResultVerifier, self).addFailure(test, err)
assert self.failure_count < len(failures), err[1]
assert err[0] is failures[self.failure_count][0]
assert failures[self.failure_count][1] in str(err[1])
self.failure_count += 1
# Make sure that multiple extensions work, but don't require LaTeX or
# Inkscape to do so.
kwargs.setdefault('extensions', ['png', 'png', 'png'])
func = image_comparison(**kwargs)(func)
loader = nose.loader.TestLoader()
suite = loader.loadTestsFromGenerator(
func,
'matplotlib.tests.test_compare_images')
if six.PY2:
output = io.BytesIO()
else:
output = io.StringIO()
result = TestResultVerifier(stream=output, descriptions=True, verbosity=1)
with warnings.catch_warnings():
# Nose uses deprecated stuff; we don't care about it.
warnings.simplefilter('ignore', DeprecationWarning)
suite.run(result=result)
> assert output.getvalue() == dots
E AssertionError: assert '...' == 'FFF'
E - ...
E + FFF
build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py:199: AssertionError
----------------------------- Captured stdout call -----------------------------
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
------------------------------ Captured log call -------------------------------
importer.py 143 DEBUG Add path /build/matplotlib-2.2.2
suite.py 418 DEBUG Create suite for <function generate at 0x7f13fb0b9398>
suite.py 420 DEBUG tests <function generate at 0x7f13fb0b9398> context <function nosetest_simple_figure at 0x7f13fa4bc938>
suite.py 148 DEBUG Context suite for <function generate at 0x7f13fb0b9398> (<function nosetest_simple_figure at 0x7f13fa4bc938>) (139723701656336)
suite.py 481 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has context nosetest_simple_figure
suite.py 435 DEBUG get ancestry <function nosetest_simple_figure at 0x7f13fa4bc938>
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f13fa4bc938> ancestors ['matplotlib', 'tests', 'test_compare_images']
util.py 311 DEBUG __import__ matplotlib.tests.test_compare_images
util.py 320 DEBUG resolve: ['tests', 'test_compare_images'], matplotlib.tests.test_compare_images, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib.tests.test_compare_images
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f13fa4bc938> ancestors ['matplotlib', 'tests']
util.py 311 DEBUG __import__ matplotlib.tests
util.py 320 DEBUG resolve: ['tests'], matplotlib.tests, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib.tests
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f13fa4bc938> ancestors ['matplotlib']
util.py 311 DEBUG __import__ matplotlib
util.py 320 DEBUG resolve: [], matplotlib, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib
suite.py 201 DEBUG suite 139723701656336 (<nose.suite.ContextSuite context=nosetest_simple_figure>) run called, tests: <generator object _get_wrapped_tests at 0x7f13f9f8eaf0>
suite.py 269 DEBUG suite 139723701656336 setUp called, tests: <generator object _get_wrapped_tests at 0x7f13fa3ce4b0>
suite.py 79 DEBUG tests in 139723701656336?
suite.py 288 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 288 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'>
util.py 470 DEBUG call fixture <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'>.setup
suite.py 288 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'>
suite.py 288 DEBUG ancestor <function nosetest_simple_figure at 0x7f13fa4bc938> may need setup
suite.py 291 DEBUG ancestor <function nosetest_simple_figure at 0x7f13fa4bc938> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <function nosetest_simple_figure at 0x7f13fa4bc938>
util.py 470 DEBUG call fixture <function nosetest_simple_figure at 0x7f13fa4bc938>.setup
suite.py 298 DEBUG completed suite setup
suite.py 94 DEBUG precache is [matplotlib.tests.test_compare_images.nosetest_simple_figure(0, 'simple', 'png')]
suite.py 323 DEBUG context teardown
suite.py 341 DEBUG ancestor <function nosetest_simple_figure at 0x7f13fa4bc938> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <function nosetest_simple_figure at 0x7f13fa4bc938>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <function nosetest_simple_figure at 0x7f13fa4bc938>
util.py 470 DEBUG call fixture <function nosetest_simple_figure at 0x7f13fa4bc938>.teardown
suite.py 341 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_compare_images.py'>
suite.py 341 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/tests/__init__.py'>
suite.py 341 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/__init__.py'>
suite.py 341 DEBUG ancestor <function nosetest_simple_figure at 0x7f13fa4bc938> may need teardown
suite.py 346 DEBUG ancestor <function nosetest_simple_figure at 0x7f13fa4bc938> already torn down
=============================== warnings summary ===============================
build/lib.linux-x86_64-2.7/matplotlib/tests/test_axes.py::test_fill_units[png]
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/axes/_base.py:2504: RuntimeWarning: invalid value encountered in double_scalars
delta = (x1t - x0t) * margin
build/lib.linux-x86_64-2.7/matplotlib/tests/test_axes.py::test_pyplot_axes
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Using pyplot.axes(ax) with ax an Axes argument is deprecated. Please use pyplot.sca(ax) instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
build/lib.linux-x86_64-2.7/matplotlib/tests/test_image.py::test_empty_imshow[make_norm2]
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/colors.py:1133: RuntimeWarning: invalid value encountered in greater
masked = np.abs(a) > self.linthresh
build/lib.linux-x86_64-2.7/matplotlib/tests/test_image.py::test_full_invalid
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/image.py:405: UserWarning: Warning: converting a masked element to nan.
dv = (np.float64(self.norm.vmax) -
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/image.py:406: UserWarning: Warning: converting a masked element to nan.
np.float64(self.norm.vmin))
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/image.py:412: UserWarning: Warning: converting a masked element to nan.
a_min = np.float64(newmin)
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/image.py:417: UserWarning: Warning: converting a masked element to nan.
a_max = np.float64(newmax)
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7/matplotlib/colors.py:916: UserWarning: Warning: converting a masked element to nan.
dtype = np.min_scalar_type(value)
/usr/lib/python2.7/dist-packages/numpy/ma/core.py:716: UserWarning: Warning: converting a masked element to nan.
data = np.array(a, copy=False, subok=subok)
-- Docs: http://doc.pytest.org/en/latest/warnings.html
</code></pre></div>
<p dir="auto">python 2.7.15 debug flavor:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="=================================== FAILURES ===================================
_______________ test_save_animation_smoketest[pillow-movie.gif] ________________
self = <CallInfo when='call' exception: list index out of range>
func = <function <lambda> at 0x7f4fd42b1e28>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_save_animation_smoketest[pillow-movie.gif]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_save_animation_smoketest[pillow-movie.gif]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_save_animation_smoketest[pillow-movie.gif]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-pbuilder/pytest-1/test_save_animation_smoketest_6')
writer = 'pillow', output = 'movie.gif'
@pytest.mark.parametrize('writer, output', WRITER_OUTPUT)
def test_save_animation_smoketest(tmpdir, writer, output):
try:
# for ImageMagick the rcparams must be patched to account for
# 'convert' being a built in MS tool, not the imagemagick
# tool.
writer._init_from_registry()
except AttributeError:
pass
if not animation.writers.is_available(writer):
pytest.skip("writer '%s' not available on this system" % writer)
fig, ax = plt.subplots()
line, = ax.plot([], [])
ax.set_xlim(0, 10)
ax.set_ylim(-1, 1)
dpi = None
codec = None
if writer == 'ffmpeg':
# Issue #8253
fig.set_size_inches((10.85, 9.21))
dpi = 100.
codec = 'h264'
def init():
line.set_data([], [])
return line,
def animate(i):
x = np.linspace(0, 10, 100)
y = np.sin(x + i)
line.set_data(x, y)
return line,
# Use temporary directory for the file-based writers, which produce a file
# per frame with known names.
with tmpdir.as_cwd():
anim = animation.FuncAnimation(fig, animate, init_func=init, frames=5)
try:
anim.save(output, fps=30, writer=writer, bitrate=500, dpi=dpi,
> codec=codec)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_animation.py:174:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <matplotlib.animation.FuncAnimation object at 0x7f4fcf6047d0>
filename = 'movie.gif'
writer = <matplotlib.animation.PillowWriter object at 0x7f4fcf604b50>, fps = 30
dpi = 100.0, codec = 'mpeg4', bitrate = 500, extra_args = None, metadata = None
extra_anim = None, savefig_kwargs = {}
def save(self, filename, writer=None, fps=None, dpi=None, codec=None,
bitrate=None, extra_args=None, metadata=None, extra_anim=None,
savefig_kwargs=None):
'''Saves a movie file by drawing every frame.
Parameters
----------
filename : str
The output filename, e.g., :file:`mymovie.mp4`.
writer : :class:`MovieWriter` or str, optional
A `MovieWriter` instance to use or a key that identifies a
class to use, such as 'ffmpeg'. If ``None``, defaults to
:rc:`animation.writer`.
fps : number, optional
Frames per second in the movie. Defaults to ``None``, which will use
the animation's specified interval to set the frames per second.
dpi : number, optional
Controls the dots per inch for the movie frames. This combined with
the figure's size in inches controls the size of the movie. If
``None``, defaults to :rc:`savefig.dpi`.
codec : str, optional
The video codec to be used. Not all codecs are supported
by a given :class:`MovieWriter`. If ``None``, default to
:rc:`animation.codec`.
bitrate : number, optional
Specifies the number of bits used per second in the compressed
movie, in kilobits per second. A higher number means a higher
quality movie, but at the cost of increased file size. If ``None``,
defaults to :rc:`animation.bitrate`.
extra_args : list, optional
List of extra string arguments to be passed to the underlying movie
utility. If ``None``, defaults to :rc:`animation.extra_args`.
metadata : Dict[str, str], optional
Dictionary of keys and values for metadata to include in
the output file. Some keys that may be of use include:
title, artist, genre, subject, copyright, srcform, comment.
extra_anim : list, optional
Additional `Animation` objects that should be included
in the saved movie file. These need to be from the same
`matplotlib.figure.Figure` instance. Also, animation frames will
just be simply combined, so there should be a 1:1 correspondence
between the frames from the different animations.
savefig_kwargs : dict, optional
Is a dictionary containing keyword arguments to be passed
on to the `savefig` command which is called repeatedly to
save the individual frames.
Notes
-----
fps, codec, bitrate, extra_args, metadata are used to
construct a :class:`MovieWriter` instance and can only be
passed if `writer` is a string. If they are passed as
non-`None` and ``writer`` is a :class:`MovieWriter`, a
`RuntimeError` will be raised.
'''
# If the writer is None, use the rc param to find the name of the one
# to use
if writer is None:
writer = rcParams['animation.writer']
elif (not isinstance(writer, six.string_types) and
any(arg is not None
for arg in (fps, codec, bitrate, extra_args, metadata))):
raise RuntimeError('Passing in values for arguments '
'fps, codec, bitrate, extra_args, or metadata '
'is not supported when writer is an existing '
'MovieWriter instance. These should instead be '
'passed as arguments when creating the '
'MovieWriter instance.')
if savefig_kwargs is None:
savefig_kwargs = {}
# Need to disconnect the first draw callback, since we'll be doing
# draws. Otherwise, we'll end up starting the animation.
if self._first_draw_id is not None:
self._fig.canvas.mpl_disconnect(self._first_draw_id)
reconnect_first_draw = True
else:
reconnect_first_draw = False
if fps is None and hasattr(self, '_interval'):
# Convert interval in ms to frames per second
fps = 1000. / self._interval
# Re-use the savefig DPI for ours if none is given
if dpi is None:
dpi = rcParams['savefig.dpi']
if dpi == 'figure':
dpi = self._fig.dpi
if codec is None:
codec = rcParams['animation.codec']
if bitrate is None:
bitrate = rcParams['animation.bitrate']
all_anim = [self]
if extra_anim is not None:
all_anim.extend(anim
for anim
in extra_anim if anim._fig is self._fig)
# If we have the name of a writer, instantiate an instance of the
# registered class.
if isinstance(writer, six.string_types):
if writer in writers.avail:
writer = writers[writer](fps, codec, bitrate,
extra_args=extra_args,
metadata=metadata)
else:
_log.warning("MovieWriter %s unavailable.", writer)
try:
writer = writers[writers.list()[0]](fps, codec, bitrate,
extra_args=extra_args,
metadata=metadata)
except IndexError:
raise ValueError("Cannot save animation: no writers are "
"available. Please install ffmpeg to "
"save animations.")
_log.info('Animation.save using %s', type(writer))
if 'bbox_inches' in savefig_kwargs:
_log.warning("Warning: discarding the 'bbox_inches' argument in "
"'savefig_kwargs' as it may cause frame size "
"to vary, which is inappropriate for animation.")
savefig_kwargs.pop('bbox_inches')
# Create a new sequence of frames for saved data. This is different
# from new_frame_seq() to give the ability to save 'live' generated
# frame information to be saved later.
# TODO: Right now, after closing the figure, saving a movie won't work
# since GUI widgets are gone. Either need to remove extra code to
# allow for this non-existent use case or find a way to make it work.
with rc_context():
if rcParams['savefig.bbox'] == 'tight':
_log.info("Disabling savefig.bbox = 'tight', as it may cause "
"frame size to vary, which is inappropriate for "
"animation.")
rcParams['savefig.bbox'] = None
with writer.saving(self._fig, filename, dpi):
for anim in all_anim:
# Clear the initial frame
anim._init_draw()
for data in zip(*[a.new_saved_frame_seq() for a in all_anim]):
for anim, d in zip(all_anim, data):
# TODO: See if turning off blit is really necessary
anim._draw_next_frame(d, blit=False)
> writer.grab_frame(**savefig_kwargs)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/animation.py:1200:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <contextlib.GeneratorContextManager object at 0x7f4fcf604ca0>
type = <type 'exceptions.ImportError'>
value = ImportError('/usr/lib/python2.7/dist-packages/PIL/_imaging.x86_64-linux-gnu.so: undefined symbol: Py_InitModule4_64',)
traceback = <traceback object at 0x7f4fcf4b8588>
def __exit__(self, type, value, traceback):
if type is None:
try:
self.gen.next()
except StopIteration:
return
else:
raise RuntimeError("generator didn't stop")
else:
if value is None:
# Need to force instantiation so we can reliably
# tell if we get the same exception back
value = type()
try:
> self.gen.throw(type, value, traceback)
/usr/lib/python2.7/contextlib.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <matplotlib.animation.PillowWriter object at 0x7f4fcf604b50>
fig = <Figure size 640x480 with 1 Axes>, outfile = 'movie.gif', dpi = 100.0
args = (), kwargs = {}
@contextlib.contextmanager
def saving(self, fig, outfile, dpi, *args, **kwargs):
'''
Context manager to facilitate writing the movie file.
``*args, **kw`` are any parameters that should be passed to `setup`.
'''
# This particular sequence is what contextlib.contextmanager wants
self.setup(fig, outfile, dpi, *args, **kwargs)
try:
yield self
finally:
> self.finish()
build/lib.linux-x86_64-2.7-pydebug/matplotlib/animation.py:241:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <matplotlib.animation.PillowWriter object at 0x7f4fcf604b50>
def finish(self):
> self._frames[0].save(
self._outfile, save_all=True, append_images=self._frames[1:],
duration=int(1000 / self.fps))
E IndexError: list index out of range
build/lib.linux-x86_64-2.7-pydebug/matplotlib/animation.py:610: IndexError
------------------------------ Captured log call -------------------------------
animation.py 1172 INFO Animation.save using <class 'matplotlib.animation.PillowWriter'>
_____________________________ test_log_scales[png] _____________________________
self = <CallInfo when='call' exception: Image sizes do not match expected size: (600, 800, 3) actual size (600, 800, 4)>
func = <function <lambda> at 0x7f4fd446c258>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_log_scales[png]'>}, notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_log_scales[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_log_scales[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_log_scales[png]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_log_scales[png]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}, notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_log_scales[png]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales.png'
tol = 0.306, in_decorator = True
def compare_images(expected, actual, tol, in_decorator=False):
"""
Compare two "image" files checking differences within a tolerance.
The two given filenames may point to files which are convertible to
PNG via the `.converter` dictionary. The underlying RMS is calculated
with the `.calculate_rms` function.
Parameters
----------
expected : str
The filename of the expected image.
actual :str
The filename of the actual image.
tol : float
The tolerance (a color value difference, where 255 is the
maximal difference). The test fails if the average pixel
difference is greater than this value.
in_decorator : bool
If called from image_comparison decorator, this should be
True. (default=False)
Examples
--------
img1 = "./baseline/plot.png"
img2 = "./output/plot.png"
compare_images( img1, img2, 0.001 ):
"""
if not os.path.exists(actual):
raise Exception("Output image %s does not exist." % actual)
if os.stat(actual).st_size == 0:
raise Exception("Output image file %s is empty." % actual)
# Convert the image to png
extension = expected.split('.')[-1]
if not os.path.exists(expected):
raise IOError('Baseline image %r does not exist.' % expected)
if extension != 'png':
actual = convert(actual, False)
expected = convert(expected, True)
# open the image files and remove the alpha channel (if it exists)
expectedImage = _png.read_png_int(expected)
actualImage = _png.read_png_int(actual)
expectedImage = expectedImage[:, :, :3]
actualImage = actualImage[:, :, :3]
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
diff_image = make_test_filename(actual, 'failed-diff')
if tol <= 0.0:
if np.array_equal(expectedImage, actualImage):
return None
# convert to signed integers, so that the images can be subtracted without
# overflow
expectedImage = expectedImage.astype(np.int16)
actualImage = actualImage.astype(np.int16)
rms = calculate_rms(expectedImage, actualImage)
if rms <= tol:
return None
> save_diff_image(expected, actual, diff_image)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/testing/compare.py:444:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales.png'
output = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-failed-diff.png'
def save_diff_image(expected, actual, output):
expectedImage = _png.read_png(expected)
actualImage = _png.read_png(actual)
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
expectedImage = np.array(expectedImage).astype(float)
actualImage = np.array(actualImage).astype(float)
if expectedImage.shape != actualImage.shape:
raise ImageComparisonFailure(
"Image sizes do not match expected size: {0} "
> "actual size {1}".format(expectedImage.shape, actualImage.shape))
E ImageComparisonFailure: Image sizes do not match expected size: (600, 800, 3) actual size (600, 800, 4)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/testing/compare.py:471: ImageComparisonFailure
__________________ test_bbox_inches_tight_suptile_legend[png] __________________
self = <CallInfo when='call' exception: Image sizes do not match expected size: (593, 921, 3) actual size (592, 921, 3)>
func = <function <lambda> at 0x7f4fd3bdf1b0>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_bbox_tight/bbox_inches_tight_suptile_legend-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_bbox_tight/bbox_inches_tight_suptile_legend.png'
tol = 0.306, in_decorator = True
def compare_images(expected, actual, tol, in_decorator=False):
"""
Compare two "image" files checking differences within a tolerance.
The two given filenames may point to files which are convertible to
PNG via the `.converter` dictionary. The underlying RMS is calculated
with the `.calculate_rms` function.
Parameters
----------
expected : str
The filename of the expected image.
actual :str
The filename of the actual image.
tol : float
The tolerance (a color value difference, where 255 is the
maximal difference). The test fails if the average pixel
difference is greater than this value.
in_decorator : bool
If called from image_comparison decorator, this should be
True. (default=False)
Examples
--------
img1 = "./baseline/plot.png"
img2 = "./output/plot.png"
compare_images( img1, img2, 0.001 ):
"""
if not os.path.exists(actual):
raise Exception("Output image %s does not exist." % actual)
if os.stat(actual).st_size == 0:
raise Exception("Output image file %s is empty." % actual)
# Convert the image to png
extension = expected.split('.')[-1]
if not os.path.exists(expected):
raise IOError('Baseline image %r does not exist.' % expected)
if extension != 'png':
actual = convert(actual, False)
expected = convert(expected, True)
# open the image files and remove the alpha channel (if it exists)
expectedImage = _png.read_png_int(expected)
actualImage = _png.read_png_int(actual)
expectedImage = expectedImage[:, :, :3]
actualImage = actualImage[:, :, :3]
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
diff_image = make_test_filename(actual, 'failed-diff')
if tol <= 0.0:
if np.array_equal(expectedImage, actualImage):
return None
# convert to signed integers, so that the images can be subtracted without
# overflow
expectedImage = expectedImage.astype(np.int16)
actualImage = actualImage.astype(np.int16)
> rms = calculate_rms(expectedImage, actualImage)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/testing/compare.py:439:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expectedImage = array([[[255, 255, 255],
[255, 255, 255],
[255, 255, 255],
...55, 255, 255],
[255, 255, 255],
[255, 255, 255]]], dtype=int16)
actualImage = array([[[255, 255, 255],
[255, 255, 255],
[255, 255, 255],
...55, 255, 255],
[255, 255, 255],
[255, 255, 255]]], dtype=int16)
def calculate_rms(expectedImage, actualImage):
"Calculate the per-pixel errors, then compute the root mean square error."
if expectedImage.shape != actualImage.shape:
raise ImageComparisonFailure(
"Image sizes do not match expected size: {0} "
> "actual size {1}".format(expectedImage.shape, actualImage.shape))
E ImageComparisonFailure: Image sizes do not match expected size: (593, 921, 3) actual size (592, 921, 3)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/testing/compare.py:369: ImageComparisonFailure
__________________ test_nose_image_comparison[failing figure] __________________
self = <CallInfo when='call' exception: assert '...' == 'FFF'
- ...
+ FFF>
func = <function <lambda> at 0x7f4fd45b0a38>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_nose_image_comparison[failing figure]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_nose_image_comparison[failing figure]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_nose_image_comparison[failing figure]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
func = <function nosetest_simple_figure at 0x7f4fd4d83ae0>
kwargs = {'baseline_images': ['simple'], 'extensions': ['png', 'png', 'png']}
errors = []
failures = [(<class 'matplotlib.testing.exceptions.ImageComparisonFailure'>, 'images not close'), (<class 'matplotlib.testing.exc...onFailure'>, 'images not close'), (<class 'matplotlib.testing.exceptions.ImageComparisonFailure'>, 'images not close')]
dots = 'FFF'
monkeypatch = <_pytest.monkeypatch.MonkeyPatch instance at 0x7f4fd5651420>
@pytest.mark.parametrize(
'func, kwargs, errors, failures, dots',
[
(nosetest_empty, {'baseline_images': []}, [], [], ''),
(nosetest_empty, {'baseline_images': ['foo']},
[(AssertionError,
'Test generated 0 images but there are 1 baseline images')],
[],
'E'),
(nosetest_simple_figure,
{'baseline_images': ['basn3p02'], 'extensions': ['png'],
'remove_text': True},
[],
[(ImageComparisonFailure, 'Image sizes do not match expected size:')],
'F'),
(nosetest_simple_figure,
{'baseline_images': ['simple']},
[],
[(ImageComparisonFailure, 'images not close')] * 3,
'FFF'),
(nosetest_simple_figure,
{'baseline_images': ['simple'], 'remove_text': True},
[],
[],
'...'),
(nosetest_manual_text_removal,
{'baseline_images': ['simple']},
[],
[],
'...'),
],
ids=[
'empty',
'extra baselines',
'incorrect shape',
'failing figure',
'passing figure',
'manual text removal',
])
def test_nose_image_comparison(func, kwargs, errors, failures, dots,
monkeypatch):
nose = pytest.importorskip('nose')
monkeypatch.setattr('matplotlib._called_from_pytest', False)
class TestResultVerifier(nose.result.TextTestResult):
def __init__(self, *args, **kwargs):
super(TestResultVerifier, self).__init__(*args, **kwargs)
self.error_count = 0
self.failure_count = 0
def addError(self, test, err):
super(TestResultVerifier, self).addError(test, err)
if self.error_count < len(errors):
assert err[0] is errors[self.error_count][0]
assert errors[self.error_count][1] in str(err[1])
else:
raise err[1]
self.error_count += 1
def addFailure(self, test, err):
super(TestResultVerifier, self).addFailure(test, err)
assert self.failure_count < len(failures), err[1]
assert err[0] is failures[self.failure_count][0]
assert failures[self.failure_count][1] in str(err[1])
self.failure_count += 1
# Make sure that multiple extensions work, but don't require LaTeX or
# Inkscape to do so.
kwargs.setdefault('extensions', ['png', 'png', 'png'])
func = image_comparison(**kwargs)(func)
loader = nose.loader.TestLoader()
suite = loader.loadTestsFromGenerator(
func,
'matplotlib.tests.test_compare_images')
if six.PY2:
output = io.BytesIO()
else:
output = io.StringIO()
result = TestResultVerifier(stream=output, descriptions=True, verbosity=1)
with warnings.catch_warnings():
# Nose uses deprecated stuff; we don't care about it.
warnings.simplefilter('ignore', DeprecationWarning)
suite.run(result=result)
> assert output.getvalue() == dots
E AssertionError: assert '...' == 'FFF'
E - ...
E + FFF
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py:199: AssertionError
----------------------------- Captured stdout call -----------------------------
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
------------------------------ Captured log call -------------------------------
importer.py 143 DEBUG Add path /build/matplotlib-2.2.2
suite.py 418 DEBUG Create suite for <function generate at 0x7f4fd49e3d80>
suite.py 420 DEBUG tests <function generate at 0x7f4fd49e3d80> context <function nosetest_simple_figure at 0x7f4fd4d83ae0>
suite.py 148 DEBUG Context suite for <function generate at 0x7f4fd49e3d80> (<function nosetest_simple_figure at 0x7f4fd4d83ae0>) (139980834420128)
suite.py 481 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has context nosetest_simple_figure
suite.py 435 DEBUG get ancestry <function nosetest_simple_figure at 0x7f4fd4d83ae0>
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f4fd4d83ae0> ancestors ['matplotlib', 'tests', 'test_compare_images']
util.py 311 DEBUG __import__ matplotlib.tests.test_compare_images
util.py 320 DEBUG resolve: ['tests', 'test_compare_images'], matplotlib.tests.test_compare_images, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib.tests.test_compare_images
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f4fd4d83ae0> ancestors ['matplotlib', 'tests']
util.py 311 DEBUG __import__ matplotlib.tests
util.py 320 DEBUG resolve: ['tests'], matplotlib.tests, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib.tests
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f4fd4d83ae0> ancestors ['matplotlib']
util.py 311 DEBUG __import__ matplotlib
util.py 320 DEBUG resolve: [], matplotlib, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib
suite.py 201 DEBUG suite 139980834420128 (<nose.suite.ContextSuite context=nosetest_simple_figure>) run called, tests: <generator object _get_wrapped_tests at 0x7f4fd5629ce0>
suite.py 269 DEBUG suite 139980834420128 setUp called, tests: <generator object _get_wrapped_tests at 0x7f4fd3a837e0>
suite.py 79 DEBUG tests in 139980834420128?
suite.py 288 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 288 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'>
util.py 470 DEBUG call fixture <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'>.setup
suite.py 288 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'>
suite.py 288 DEBUG ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0> may need setup
suite.py 291 DEBUG ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <function nosetest_simple_figure at 0x7f4fd4d83ae0>
util.py 470 DEBUG call fixture <function nosetest_simple_figure at 0x7f4fd4d83ae0>.setup
suite.py 298 DEBUG completed suite setup
suite.py 94 DEBUG precache is [matplotlib.tests.test_compare_images.nosetest_simple_figure(0, 'simple', 'png')]
suite.py 323 DEBUG context teardown
suite.py 341 DEBUG ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <function nosetest_simple_figure at 0x7f4fd4d83ae0>
util.py 470 DEBUG call fixture <function nosetest_simple_figure at 0x7f4fd4d83ae0>.teardown
suite.py 341 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'>
suite.py 341 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'>
suite.py 341 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 341 DEBUG ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0> may need teardown
suite.py 346 DEBUG ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0> already torn down
=============================== warnings summary ===============================
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_axes.py::test_fill_units[png]
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/axes/_base.py:2504: RuntimeWarning: invalid value encountered in double_scalars
delta = (x1t - x0t) * margin
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_axes.py::test_pyplot_axes
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Using pyplot.axes(ax) with ax an Axes argument is deprecated. Please use pyplot.sca(ax) instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_image.py::test_empty_imshow[make_norm2]
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/colors.py:1133: RuntimeWarning: invalid value encountered in greater
masked = np.abs(a) > self.linthresh
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_image.py::test_full_invalid
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/image.py:405: UserWarning: Warning: converting a masked element to nan.
dv = (np.float64(self.norm.vmax) -
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/image.py:406: UserWarning: Warning: converting a masked element to nan.
np.float64(self.norm.vmin))
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/image.py:412: UserWarning: Warning: converting a masked element to nan.
a_min = np.float64(newmin)
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/image.py:417: UserWarning: Warning: converting a masked element to nan.
a_max = np.float64(newmax)
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/colors.py:916: UserWarning: Warning: converting a masked element to nan.
dtype = np.min_scalar_type(value)
/usr/lib/python2.7/dist-packages/numpy/ma/core.py:716: UserWarning: Warning: converting a masked element to nan.
data = np.array(a, copy=False, subok=subok)
-- Docs: http://doc.pytest.org/en/latest/warnings.html
"><pre class="notranslate"><code class="notranslate">=================================== FAILURES ===================================
_______________ test_save_animation_smoketest[pillow-movie.gif] ________________
self = <CallInfo when='call' exception: list index out of range>
func = <function <lambda> at 0x7f4fd42b1e28>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_save_animation_smoketest[pillow-movie.gif]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_save_animation_smoketest[pillow-movie.gif]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_save_animation_smoketest[pillow-movie.gif]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_save_animation_smoketest[pillow-movie.gif]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tmpdir = local('/tmp/pytest-of-pbuilder/pytest-1/test_save_animation_smoketest_6')
writer = 'pillow', output = 'movie.gif'
@pytest.mark.parametrize('writer, output', WRITER_OUTPUT)
def test_save_animation_smoketest(tmpdir, writer, output):
try:
# for ImageMagick the rcparams must be patched to account for
# 'convert' being a built in MS tool, not the imagemagick
# tool.
writer._init_from_registry()
except AttributeError:
pass
if not animation.writers.is_available(writer):
pytest.skip("writer '%s' not available on this system" % writer)
fig, ax = plt.subplots()
line, = ax.plot([], [])
ax.set_xlim(0, 10)
ax.set_ylim(-1, 1)
dpi = None
codec = None
if writer == 'ffmpeg':
# Issue #8253
fig.set_size_inches((10.85, 9.21))
dpi = 100.
codec = 'h264'
def init():
line.set_data([], [])
return line,
def animate(i):
x = np.linspace(0, 10, 100)
y = np.sin(x + i)
line.set_data(x, y)
return line,
# Use temporary directory for the file-based writers, which produce a file
# per frame with known names.
with tmpdir.as_cwd():
anim = animation.FuncAnimation(fig, animate, init_func=init, frames=5)
try:
anim.save(output, fps=30, writer=writer, bitrate=500, dpi=dpi,
> codec=codec)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_animation.py:174:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <matplotlib.animation.FuncAnimation object at 0x7f4fcf6047d0>
filename = 'movie.gif'
writer = <matplotlib.animation.PillowWriter object at 0x7f4fcf604b50>, fps = 30
dpi = 100.0, codec = 'mpeg4', bitrate = 500, extra_args = None, metadata = None
extra_anim = None, savefig_kwargs = {}
def save(self, filename, writer=None, fps=None, dpi=None, codec=None,
bitrate=None, extra_args=None, metadata=None, extra_anim=None,
savefig_kwargs=None):
'''Saves a movie file by drawing every frame.
Parameters
----------
filename : str
The output filename, e.g., :file:`mymovie.mp4`.
writer : :class:`MovieWriter` or str, optional
A `MovieWriter` instance to use or a key that identifies a
class to use, such as 'ffmpeg'. If ``None``, defaults to
:rc:`animation.writer`.
fps : number, optional
Frames per second in the movie. Defaults to ``None``, which will use
the animation's specified interval to set the frames per second.
dpi : number, optional
Controls the dots per inch for the movie frames. This combined with
the figure's size in inches controls the size of the movie. If
``None``, defaults to :rc:`savefig.dpi`.
codec : str, optional
The video codec to be used. Not all codecs are supported
by a given :class:`MovieWriter`. If ``None``, default to
:rc:`animation.codec`.
bitrate : number, optional
Specifies the number of bits used per second in the compressed
movie, in kilobits per second. A higher number means a higher
quality movie, but at the cost of increased file size. If ``None``,
defaults to :rc:`animation.bitrate`.
extra_args : list, optional
List of extra string arguments to be passed to the underlying movie
utility. If ``None``, defaults to :rc:`animation.extra_args`.
metadata : Dict[str, str], optional
Dictionary of keys and values for metadata to include in
the output file. Some keys that may be of use include:
title, artist, genre, subject, copyright, srcform, comment.
extra_anim : list, optional
Additional `Animation` objects that should be included
in the saved movie file. These need to be from the same
`matplotlib.figure.Figure` instance. Also, animation frames will
just be simply combined, so there should be a 1:1 correspondence
between the frames from the different animations.
savefig_kwargs : dict, optional
Is a dictionary containing keyword arguments to be passed
on to the `savefig` command which is called repeatedly to
save the individual frames.
Notes
-----
fps, codec, bitrate, extra_args, metadata are used to
construct a :class:`MovieWriter` instance and can only be
passed if `writer` is a string. If they are passed as
non-`None` and ``writer`` is a :class:`MovieWriter`, a
`RuntimeError` will be raised.
'''
# If the writer is None, use the rc param to find the name of the one
# to use
if writer is None:
writer = rcParams['animation.writer']
elif (not isinstance(writer, six.string_types) and
any(arg is not None
for arg in (fps, codec, bitrate, extra_args, metadata))):
raise RuntimeError('Passing in values for arguments '
'fps, codec, bitrate, extra_args, or metadata '
'is not supported when writer is an existing '
'MovieWriter instance. These should instead be '
'passed as arguments when creating the '
'MovieWriter instance.')
if savefig_kwargs is None:
savefig_kwargs = {}
# Need to disconnect the first draw callback, since we'll be doing
# draws. Otherwise, we'll end up starting the animation.
if self._first_draw_id is not None:
self._fig.canvas.mpl_disconnect(self._first_draw_id)
reconnect_first_draw = True
else:
reconnect_first_draw = False
if fps is None and hasattr(self, '_interval'):
# Convert interval in ms to frames per second
fps = 1000. / self._interval
# Re-use the savefig DPI for ours if none is given
if dpi is None:
dpi = rcParams['savefig.dpi']
if dpi == 'figure':
dpi = self._fig.dpi
if codec is None:
codec = rcParams['animation.codec']
if bitrate is None:
bitrate = rcParams['animation.bitrate']
all_anim = [self]
if extra_anim is not None:
all_anim.extend(anim
for anim
in extra_anim if anim._fig is self._fig)
# If we have the name of a writer, instantiate an instance of the
# registered class.
if isinstance(writer, six.string_types):
if writer in writers.avail:
writer = writers[writer](fps, codec, bitrate,
extra_args=extra_args,
metadata=metadata)
else:
_log.warning("MovieWriter %s unavailable.", writer)
try:
writer = writers[writers.list()[0]](fps, codec, bitrate,
extra_args=extra_args,
metadata=metadata)
except IndexError:
raise ValueError("Cannot save animation: no writers are "
"available. Please install ffmpeg to "
"save animations.")
_log.info('Animation.save using %s', type(writer))
if 'bbox_inches' in savefig_kwargs:
_log.warning("Warning: discarding the 'bbox_inches' argument in "
"'savefig_kwargs' as it may cause frame size "
"to vary, which is inappropriate for animation.")
savefig_kwargs.pop('bbox_inches')
# Create a new sequence of frames for saved data. This is different
# from new_frame_seq() to give the ability to save 'live' generated
# frame information to be saved later.
# TODO: Right now, after closing the figure, saving a movie won't work
# since GUI widgets are gone. Either need to remove extra code to
# allow for this non-existent use case or find a way to make it work.
with rc_context():
if rcParams['savefig.bbox'] == 'tight':
_log.info("Disabling savefig.bbox = 'tight', as it may cause "
"frame size to vary, which is inappropriate for "
"animation.")
rcParams['savefig.bbox'] = None
with writer.saving(self._fig, filename, dpi):
for anim in all_anim:
# Clear the initial frame
anim._init_draw()
for data in zip(*[a.new_saved_frame_seq() for a in all_anim]):
for anim, d in zip(all_anim, data):
# TODO: See if turning off blit is really necessary
anim._draw_next_frame(d, blit=False)
> writer.grab_frame(**savefig_kwargs)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/animation.py:1200:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <contextlib.GeneratorContextManager object at 0x7f4fcf604ca0>
type = <type 'exceptions.ImportError'>
value = ImportError('/usr/lib/python2.7/dist-packages/PIL/_imaging.x86_64-linux-gnu.so: undefined symbol: Py_InitModule4_64',)
traceback = <traceback object at 0x7f4fcf4b8588>
def __exit__(self, type, value, traceback):
if type is None:
try:
self.gen.next()
except StopIteration:
return
else:
raise RuntimeError("generator didn't stop")
else:
if value is None:
# Need to force instantiation so we can reliably
# tell if we get the same exception back
value = type()
try:
> self.gen.throw(type, value, traceback)
/usr/lib/python2.7/contextlib.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <matplotlib.animation.PillowWriter object at 0x7f4fcf604b50>
fig = <Figure size 640x480 with 1 Axes>, outfile = 'movie.gif', dpi = 100.0
args = (), kwargs = {}
@contextlib.contextmanager
def saving(self, fig, outfile, dpi, *args, **kwargs):
'''
Context manager to facilitate writing the movie file.
``*args, **kw`` are any parameters that should be passed to `setup`.
'''
# This particular sequence is what contextlib.contextmanager wants
self.setup(fig, outfile, dpi, *args, **kwargs)
try:
yield self
finally:
> self.finish()
build/lib.linux-x86_64-2.7-pydebug/matplotlib/animation.py:241:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <matplotlib.animation.PillowWriter object at 0x7f4fcf604b50>
def finish(self):
> self._frames[0].save(
self._outfile, save_all=True, append_images=self._frames[1:],
duration=int(1000 / self.fps))
E IndexError: list index out of range
build/lib.linux-x86_64-2.7-pydebug/matplotlib/animation.py:610: IndexError
------------------------------ Captured log call -------------------------------
animation.py 1172 INFO Animation.save using <class 'matplotlib.animation.PillowWriter'>
_____________________________ test_log_scales[png] _____________________________
self = <CallInfo when='call' exception: Image sizes do not match expected size: (600, 800, 3) actual size (600, 800, 4)>
func = <function <lambda> at 0x7f4fd446c258>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_log_scales[png]'>}, notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_log_scales[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_log_scales[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_log_scales[png]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_log_scales[png]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}, notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_log_scales[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_log_scales[png]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales.png'
tol = 0.306, in_decorator = True
def compare_images(expected, actual, tol, in_decorator=False):
"""
Compare two "image" files checking differences within a tolerance.
The two given filenames may point to files which are convertible to
PNG via the `.converter` dictionary. The underlying RMS is calculated
with the `.calculate_rms` function.
Parameters
----------
expected : str
The filename of the expected image.
actual :str
The filename of the actual image.
tol : float
The tolerance (a color value difference, where 255 is the
maximal difference). The test fails if the average pixel
difference is greater than this value.
in_decorator : bool
If called from image_comparison decorator, this should be
True. (default=False)
Examples
--------
img1 = "./baseline/plot.png"
img2 = "./output/plot.png"
compare_images( img1, img2, 0.001 ):
"""
if not os.path.exists(actual):
raise Exception("Output image %s does not exist." % actual)
if os.stat(actual).st_size == 0:
raise Exception("Output image file %s is empty." % actual)
# Convert the image to png
extension = expected.split('.')[-1]
if not os.path.exists(expected):
raise IOError('Baseline image %r does not exist.' % expected)
if extension != 'png':
actual = convert(actual, False)
expected = convert(expected, True)
# open the image files and remove the alpha channel (if it exists)
expectedImage = _png.read_png_int(expected)
actualImage = _png.read_png_int(actual)
expectedImage = expectedImage[:, :, :3]
actualImage = actualImage[:, :, :3]
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
diff_image = make_test_filename(actual, 'failed-diff')
if tol <= 0.0:
if np.array_equal(expectedImage, actualImage):
return None
# convert to signed integers, so that the images can be subtracted without
# overflow
expectedImage = expectedImage.astype(np.int16)
actualImage = actualImage.astype(np.int16)
rms = calculate_rms(expectedImage, actualImage)
if rms <= tol:
return None
> save_diff_image(expected, actual, diff_image)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/testing/compare.py:444:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales.png'
output = '/build/matplotlib-2.2.2/result_images/test_axes/log_scales-failed-diff.png'
def save_diff_image(expected, actual, output):
expectedImage = _png.read_png(expected)
actualImage = _png.read_png(actual)
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
expectedImage = np.array(expectedImage).astype(float)
actualImage = np.array(actualImage).astype(float)
if expectedImage.shape != actualImage.shape:
raise ImageComparisonFailure(
"Image sizes do not match expected size: {0} "
> "actual size {1}".format(expectedImage.shape, actualImage.shape))
E ImageComparisonFailure: Image sizes do not match expected size: (600, 800, 3) actual size (600, 800, 4)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/testing/compare.py:471: ImageComparisonFailure
__________________ test_bbox_inches_tight_suptile_legend[png] __________________
self = <CallInfo when='call' exception: Image sizes do not match expected size: (593, 921, 3) actual size (592, 921, 3)>
func = <function <lambda> at 0x7f4fd3bdf1b0>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_bbox_inches_tight_suptile_legend[png]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_bbox_inches_tight_suptile_legend[png]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected = '/build/matplotlib-2.2.2/result_images/test_bbox_tight/bbox_inches_tight_suptile_legend-expected.png'
actual = '/build/matplotlib-2.2.2/result_images/test_bbox_tight/bbox_inches_tight_suptile_legend.png'
tol = 0.306, in_decorator = True
def compare_images(expected, actual, tol, in_decorator=False):
"""
Compare two "image" files checking differences within a tolerance.
The two given filenames may point to files which are convertible to
PNG via the `.converter` dictionary. The underlying RMS is calculated
with the `.calculate_rms` function.
Parameters
----------
expected : str
The filename of the expected image.
actual :str
The filename of the actual image.
tol : float
The tolerance (a color value difference, where 255 is the
maximal difference). The test fails if the average pixel
difference is greater than this value.
in_decorator : bool
If called from image_comparison decorator, this should be
True. (default=False)
Examples
--------
img1 = "./baseline/plot.png"
img2 = "./output/plot.png"
compare_images( img1, img2, 0.001 ):
"""
if not os.path.exists(actual):
raise Exception("Output image %s does not exist." % actual)
if os.stat(actual).st_size == 0:
raise Exception("Output image file %s is empty." % actual)
# Convert the image to png
extension = expected.split('.')[-1]
if not os.path.exists(expected):
raise IOError('Baseline image %r does not exist.' % expected)
if extension != 'png':
actual = convert(actual, False)
expected = convert(expected, True)
# open the image files and remove the alpha channel (if it exists)
expectedImage = _png.read_png_int(expected)
actualImage = _png.read_png_int(actual)
expectedImage = expectedImage[:, :, :3]
actualImage = actualImage[:, :, :3]
actualImage, expectedImage = crop_to_same(
actual, actualImage, expected, expectedImage)
diff_image = make_test_filename(actual, 'failed-diff')
if tol <= 0.0:
if np.array_equal(expectedImage, actualImage):
return None
# convert to signed integers, so that the images can be subtracted without
# overflow
expectedImage = expectedImage.astype(np.int16)
actualImage = actualImage.astype(np.int16)
> rms = calculate_rms(expectedImage, actualImage)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/testing/compare.py:439:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expectedImage = array([[[255, 255, 255],
[255, 255, 255],
[255, 255, 255],
...55, 255, 255],
[255, 255, 255],
[255, 255, 255]]], dtype=int16)
actualImage = array([[[255, 255, 255],
[255, 255, 255],
[255, 255, 255],
...55, 255, 255],
[255, 255, 255],
[255, 255, 255]]], dtype=int16)
def calculate_rms(expectedImage, actualImage):
"Calculate the per-pixel errors, then compute the root mean square error."
if expectedImage.shape != actualImage.shape:
raise ImageComparisonFailure(
"Image sizes do not match expected size: {0} "
> "actual size {1}".format(expectedImage.shape, actualImage.shape))
E ImageComparisonFailure: Image sizes do not match expected size: (593, 921, 3) actual size (592, 921, 3)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/testing/compare.py:369: ImageComparisonFailure
__________________ test_nose_image_comparison[failing figure] __________________
self = <CallInfo when='call' exception: assert '...' == 'FFF'
- ...
+ FFF>
func = <function <lambda> at 0x7f4fd45b0a38>, when = 'call'
def __init__(self, func, when):
#: context of invocation: one of "setup", "call",
#: "teardown", "memocollect"
self.when = when
self.start = time()
try:
> self.result = func()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:189:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> return CallInfo(lambda: ihook(item=item, **kwds), when=when)
/usr/lib/python2.7/dist-packages/_pytest/runner.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_runtest_call'>, args = ()
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_runtest_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3a370>, <pluggy.HookImpl object at 0x7f4fdb93c530>, <pluggy.HookImpl object at 0x7f4fdb944bc0>]
kwargs = {'item': <Function 'test_nose_image_comparison[failing figure]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
item = <Function 'test_nose_image_comparison[failing figure]'>
def pytest_runtest_call(item):
_update_current_test_var(item, 'call')
try:
> item.runtest()
/usr/lib/python2.7/dist-packages/_pytest/runner.py:106:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <Function 'test_nose_image_comparison[failing figure]'>
def runtest(self):
""" execute the underlying test function. """
> self.ihook.pytest_pyfunc_call(pyfuncitem=self)
/usr/lib/python2.7/dist-packages/_pytest/python.py:1171:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_HookCaller 'pytest_pyfunc_call'>, args = ()
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
notincall = set([])
def __call__(self, *args, **kwargs):
if args:
raise TypeError("hook calling supports only keyword arguments")
assert not self.is_historic()
if self.argnames:
notincall = set(self.argnames) - set(['__multicall__']) - set(
kwargs.keys())
if notincall:
warnings.warn(
"Argument(s) {} which are declared in the hookspec "
"can not be found in this hook call"
.format(tuple(notincall)),
stacklevel=2,
)
> return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:617:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <_pytest.config.PytestPluginManager object at 0x7f4fdcda3b50>
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
def _hookexec(self, hook, methods, kwargs):
# called from all hookcaller instances.
# enable_tracing will set its own wrapping function at self._inner_hookexec
> return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:222:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
hook = <_HookCaller 'pytest_pyfunc_call'>
methods = [<pluggy.HookImpl object at 0x7f4fdba3ae60>, <pluggy.HookImpl object at 0x7f4fdb9f7290>]
kwargs = {'pyfuncitem': <Function 'test_nose_image_comparison[failing figure]'>}
self._inner_hookexec = lambda hook, methods, kwargs: \
hook.multicall(
methods, kwargs,
> firstresult=hook.spec_opts.get('firstresult'),
)
/usr/lib/python2.7/dist-packages/pluggy/__init__.py:216:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pyfuncitem = <Function 'test_nose_image_comparison[failing figure]'>
@hookimpl(trylast=True)
def pytest_pyfunc_call(pyfuncitem):
testfunction = pyfuncitem.obj
if pyfuncitem._isyieldedfunction():
testfunction(*pyfuncitem._args)
else:
funcargs = pyfuncitem.funcargs
testargs = {}
for arg in pyfuncitem._fixtureinfo.argnames:
testargs[arg] = funcargs[arg]
> testfunction(**testargs)
/usr/lib/python2.7/dist-packages/_pytest/python.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
func = <function nosetest_simple_figure at 0x7f4fd4d83ae0>
kwargs = {'baseline_images': ['simple'], 'extensions': ['png', 'png', 'png']}
errors = []
failures = [(<class 'matplotlib.testing.exceptions.ImageComparisonFailure'>, 'images not close'), (<class 'matplotlib.testing.exc...onFailure'>, 'images not close'), (<class 'matplotlib.testing.exceptions.ImageComparisonFailure'>, 'images not close')]
dots = 'FFF'
monkeypatch = <_pytest.monkeypatch.MonkeyPatch instance at 0x7f4fd5651420>
@pytest.mark.parametrize(
'func, kwargs, errors, failures, dots',
[
(nosetest_empty, {'baseline_images': []}, [], [], ''),
(nosetest_empty, {'baseline_images': ['foo']},
[(AssertionError,
'Test generated 0 images but there are 1 baseline images')],
[],
'E'),
(nosetest_simple_figure,
{'baseline_images': ['basn3p02'], 'extensions': ['png'],
'remove_text': True},
[],
[(ImageComparisonFailure, 'Image sizes do not match expected size:')],
'F'),
(nosetest_simple_figure,
{'baseline_images': ['simple']},
[],
[(ImageComparisonFailure, 'images not close')] * 3,
'FFF'),
(nosetest_simple_figure,
{'baseline_images': ['simple'], 'remove_text': True},
[],
[],
'...'),
(nosetest_manual_text_removal,
{'baseline_images': ['simple']},
[],
[],
'...'),
],
ids=[
'empty',
'extra baselines',
'incorrect shape',
'failing figure',
'passing figure',
'manual text removal',
])
def test_nose_image_comparison(func, kwargs, errors, failures, dots,
monkeypatch):
nose = pytest.importorskip('nose')
monkeypatch.setattr('matplotlib._called_from_pytest', False)
class TestResultVerifier(nose.result.TextTestResult):
def __init__(self, *args, **kwargs):
super(TestResultVerifier, self).__init__(*args, **kwargs)
self.error_count = 0
self.failure_count = 0
def addError(self, test, err):
super(TestResultVerifier, self).addError(test, err)
if self.error_count < len(errors):
assert err[0] is errors[self.error_count][0]
assert errors[self.error_count][1] in str(err[1])
else:
raise err[1]
self.error_count += 1
def addFailure(self, test, err):
super(TestResultVerifier, self).addFailure(test, err)
assert self.failure_count < len(failures), err[1]
assert err[0] is failures[self.failure_count][0]
assert failures[self.failure_count][1] in str(err[1])
self.failure_count += 1
# Make sure that multiple extensions work, but don't require LaTeX or
# Inkscape to do so.
kwargs.setdefault('extensions', ['png', 'png', 'png'])
func = image_comparison(**kwargs)(func)
loader = nose.loader.TestLoader()
suite = loader.loadTestsFromGenerator(
func,
'matplotlib.tests.test_compare_images')
if six.PY2:
output = io.BytesIO()
else:
output = io.StringIO()
result = TestResultVerifier(stream=output, descriptions=True, verbosity=1)
with warnings.catch_warnings():
# Nose uses deprecated stuff; we don't care about it.
warnings.simplefilter('ignore', DeprecationWarning)
suite.run(result=result)
> assert output.getvalue() == dots
E AssertionError: assert '...' == 'FFF'
E - ...
E + FFF
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py:199: AssertionError
----------------------------- Captured stdout call -----------------------------
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
images not close (RMS 12.955):
result_images/test_compare_images/simple.png
result_images/test_compare_images/simple-expected.png
------------------------------ Captured log call -------------------------------
importer.py 143 DEBUG Add path /build/matplotlib-2.2.2
suite.py 418 DEBUG Create suite for <function generate at 0x7f4fd49e3d80>
suite.py 420 DEBUG tests <function generate at 0x7f4fd49e3d80> context <function nosetest_simple_figure at 0x7f4fd4d83ae0>
suite.py 148 DEBUG Context suite for <function generate at 0x7f4fd49e3d80> (<function nosetest_simple_figure at 0x7f4fd4d83ae0>) (139980834420128)
suite.py 481 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has context nosetest_simple_figure
suite.py 435 DEBUG get ancestry <function nosetest_simple_figure at 0x7f4fd4d83ae0>
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f4fd4d83ae0> ancestors ['matplotlib', 'tests', 'test_compare_images']
util.py 311 DEBUG __import__ matplotlib.tests.test_compare_images
util.py 320 DEBUG resolve: ['tests', 'test_compare_images'], matplotlib.tests.test_compare_images, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib.tests.test_compare_images
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f4fd4d83ae0> ancestors ['matplotlib', 'tests']
util.py 311 DEBUG __import__ matplotlib.tests
util.py 320 DEBUG resolve: ['tests'], matplotlib.tests, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib.tests
suite.py 452 DEBUG <function nosetest_simple_figure at 0x7f4fd4d83ae0> ancestors ['matplotlib']
util.py 311 DEBUG __import__ matplotlib
util.py 320 DEBUG resolve: [], matplotlib, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>, <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 485 DEBUG suite <nose.suite.ContextSuite context=nosetest_simple_figure> has ancestor matplotlib
suite.py 201 DEBUG suite 139980834420128 (<nose.suite.ContextSuite context=nosetest_simple_figure>) run called, tests: <generator object _get_wrapped_tests at 0x7f4fd5629ce0>
suite.py 269 DEBUG suite 139980834420128 setUp called, tests: <generator object _get_wrapped_tests at 0x7f4fd3a837e0>
suite.py 79 DEBUG tests in 139980834420128?
suite.py 288 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 288 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'>
util.py 470 DEBUG call fixture <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'>.setup
suite.py 288 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'> may need setup
suite.py 291 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'>
suite.py 288 DEBUG ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0> may need setup
suite.py 291 DEBUG ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0> does need setup
suite.py 302 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup context <function nosetest_simple_figure at 0x7f4fd4d83ae0>
util.py 470 DEBUG call fixture <function nosetest_simple_figure at 0x7f4fd4d83ae0>.setup
suite.py 298 DEBUG completed suite setup
suite.py 94 DEBUG precache is [matplotlib.tests.test_compare_images.nosetest_simple_figure(0, 'simple', 'png')]
suite.py 323 DEBUG context teardown
suite.py 341 DEBUG ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <function nosetest_simple_figure at 0x7f4fd4d83ae0>
util.py 470 DEBUG call fixture <function nosetest_simple_figure at 0x7f4fd4d83ae0>.teardown
suite.py 341 DEBUG ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib.tests.test_compare_images' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_compare_images.py'>
suite.py 341 DEBUG ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib.tests' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/__init__.py'>
suite.py 341 DEBUG ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'> may need teardown
suite.py 349 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> setup ancestor <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 356 DEBUG <nose.suite.ContextSuite context=nosetest_simple_figure> teardown context <module 'matplotlib' from '/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/__init__.py'>
suite.py 341 DEBUG ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0> may need teardown
suite.py 346 DEBUG ancestor <function nosetest_simple_figure at 0x7f4fd4d83ae0> already torn down
=============================== warnings summary ===============================
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_axes.py::test_fill_units[png]
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/axes/_base.py:2504: RuntimeWarning: invalid value encountered in double_scalars
delta = (x1t - x0t) * margin
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_axes.py::test_pyplot_axes
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Using pyplot.axes(ax) with ax an Axes argument is deprecated. Please use pyplot.sca(ax) instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_image.py::test_empty_imshow[make_norm2]
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/colors.py:1133: RuntimeWarning: invalid value encountered in greater
masked = np.abs(a) > self.linthresh
build/lib.linux-x86_64-2.7-pydebug/matplotlib/tests/test_image.py::test_full_invalid
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/image.py:405: UserWarning: Warning: converting a masked element to nan.
dv = (np.float64(self.norm.vmax) -
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/image.py:406: UserWarning: Warning: converting a masked element to nan.
np.float64(self.norm.vmin))
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/image.py:412: UserWarning: Warning: converting a masked element to nan.
a_min = np.float64(newmin)
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/image.py:417: UserWarning: Warning: converting a masked element to nan.
a_max = np.float64(newmax)
/build/matplotlib-2.2.2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/colors.py:916: UserWarning: Warning: converting a masked element to nan.
dtype = np.min_scalar_type(value)
/usr/lib/python2.7/dist-packages/numpy/ma/core.py:716: UserWarning: Warning: converting a masked element to nan.
data = np.array(a, copy=False, subok=subok)
-- Docs: http://doc.pytest.org/en/latest/warnings.html
</code></pre></div>
<p dir="auto">python 3.6.5</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ERROR collecting build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_angle_helper.py
/usr/lib/python3/dist-packages/_pytest/python.py:403: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/lib/python3/dist-packages/py/_path/local.py:668: in pyimport
__import__(modname)
<frozen importlib._bootstrap>:971: in _find_and_load
???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:656: in _load_unlocked
???
<frozen importlib._bootstrap>:626: in _load_backward_compatible
???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:213: in load_module
py.builtin.exec_(co, mod.__dict__)
build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_angle_helper.py:9: in <module>
from mpl_toolkits.axisartist.angle_helper import (
E File "/build/matplotlib-2.2.2/build/lib.linux-x86_64-3.6/mpl_toolkits/axisartist/angle_helper.py", line 212
E deg_mark = "^{\circ}"
E ^
E SyntaxError: invalid escape sequence \c
ERROR collecting build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_floating_axes.py
/usr/lib/python3/dist-packages/_pytest/python.py:403: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/lib/python3/dist-packages/py/_path/local.py:668: in pyimport
__import__(modname)
<frozen importlib._bootstrap>:971: in _find_and_load
???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:656: in _load_unlocked
???
<frozen importlib._bootstrap>:626: in _load_backward_compatible
???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:213: in load_module
py.builtin.exec_(co, mod.__dict__)
build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_floating_axes.py:15: in <module>
from mpl_toolkits.axisartist import angle_helper
E File "/build/matplotlib-2.2.2/build/lib.linux-x86_64-3.6/mpl_toolkits/axisartist/angle_helper.py", line 212
E deg_mark = "^{\circ}"
E ^
E SyntaxError: invalid escape sequence \c
ERROR collecting build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py
/usr/lib/python3/dist-packages/_pytest/python.py:403: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/lib/python3/dist-packages/py/_path/local.py:668: in pyimport
__import__(modname)
<frozen importlib._bootstrap>:971: in _find_and_load
???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:656: in _load_unlocked
???
<frozen importlib._bootstrap>:626: in _load_backward_compatible
???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:213: in load_module
py.builtin.exec_(co, mod.__dict__)
build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py:15: in <module>
from mpl_toolkits.axisartist import angle_helper
E File "/build/matplotlib-2.2.2/build/lib.linux-x86_64-3.6/mpl_toolkits/axisartist/angle_helper.py", line 212
E deg_mark = "^{\circ}"
E ^
E SyntaxError: invalid escape sequence \c
------------------------------- Captured stderr --------------------------------
/build/matplotlib-2.2.2/build/lib.linux-x86_64-3.6/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!"><pre class="notranslate"><code class="notranslate"> ERROR collecting build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_angle_helper.py
/usr/lib/python3/dist-packages/_pytest/python.py:403: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/lib/python3/dist-packages/py/_path/local.py:668: in pyimport
__import__(modname)
<frozen importlib._bootstrap>:971: in _find_and_load
???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:656: in _load_unlocked
???
<frozen importlib._bootstrap>:626: in _load_backward_compatible
???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:213: in load_module
py.builtin.exec_(co, mod.__dict__)
build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_angle_helper.py:9: in <module>
from mpl_toolkits.axisartist.angle_helper import (
E File "/build/matplotlib-2.2.2/build/lib.linux-x86_64-3.6/mpl_toolkits/axisartist/angle_helper.py", line 212
E deg_mark = "^{\circ}"
E ^
E SyntaxError: invalid escape sequence \c
ERROR collecting build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_floating_axes.py
/usr/lib/python3/dist-packages/_pytest/python.py:403: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/lib/python3/dist-packages/py/_path/local.py:668: in pyimport
__import__(modname)
<frozen importlib._bootstrap>:971: in _find_and_load
???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:656: in _load_unlocked
???
<frozen importlib._bootstrap>:626: in _load_backward_compatible
???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:213: in load_module
py.builtin.exec_(co, mod.__dict__)
build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_floating_axes.py:15: in <module>
from mpl_toolkits.axisartist import angle_helper
E File "/build/matplotlib-2.2.2/build/lib.linux-x86_64-3.6/mpl_toolkits/axisartist/angle_helper.py", line 212
E deg_mark = "^{\circ}"
E ^
E SyntaxError: invalid escape sequence \c
ERROR collecting build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py
/usr/lib/python3/dist-packages/_pytest/python.py:403: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/lib/python3/dist-packages/py/_path/local.py:668: in pyimport
__import__(modname)
<frozen importlib._bootstrap>:971: in _find_and_load
???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:656: in _load_unlocked
???
<frozen importlib._bootstrap>:626: in _load_backward_compatible
???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:213: in load_module
py.builtin.exec_(co, mod.__dict__)
build/lib.linux-x86_64-3.6/mpl_toolkits/tests/test_axisartist_grid_helper_curvelinear.py:15: in <module>
from mpl_toolkits.axisartist import angle_helper
E File "/build/matplotlib-2.2.2/build/lib.linux-x86_64-3.6/mpl_toolkits/axisartist/angle_helper.py", line 212
E deg_mark = "^{\circ}"
E ^
E SyntaxError: invalid escape sequence \c
------------------------------- Captured stderr --------------------------------
/build/matplotlib-2.2.2/build/lib.linux-x86_64-3.6/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
</code></pre></div> | <p dir="auto">python3.5.1<br>
matplotlib 1.5.1<br>
jupyter 4.0.6</p>
<p dir="auto">matplotlib.pyplot cannot render figures with new colormaps in discretized mode ('viridis' and friends).</p>
<p dir="auto">with 'jet' and friends exception is not raised</p>
<p dir="auto">How to reproduce:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
import numpy as np
a = np.random.randn(20,20)
cmap = plt.get_cmap('viridis',20)
plt.pcolormesh(a,cmap=cmap)"><pre class="notranslate"><code class="notranslate">import matplotlib.pyplot as plt
import numpy as np
a = np.random.randn(20,20)
cmap = plt.get_cmap('viridis',20)
plt.pcolormesh(a,cmap=cmap)
</code></pre></div>
<p dir="auto">raises:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<matplotlib.collections.QuadMesh at 0x11a767198>
In [6]: Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 368, in to_rgba
'length of rgba sequence should be either 3 or 4')
ValueError: length of rgba sequence should be either 3 or 4
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 399, in to_rgba_array
return np.array([self.to_rgba(c, alpha)], dtype=np.float)
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 376, in to_rgba
'to_rgba: Invalid rgba arg "%s"\n%s' % (str(arg), exc))
ValueError: to_rgba: Invalid rgba arg "['viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis']"
length of rgba sequence should be either 3 or 4
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 306, in to_rgb
fl = float(argl)
ValueError: could not convert string to float: 'viridis'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 370, in to_rgba
r, g, b = self.to_rgb(arg)
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 328, in to_rgb
'to_rgb: Invalid rgb arg "%s"\n%s' % (str(arg), exc))
ValueError: to_rgb: Invalid rgb arg "viridis"
could not convert string to float: 'viridis'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 1549, in __call__
return self.func(*args)
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 596, in callit
func(*args)
File "/usr/local/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 373, in idle_draw
self.draw()
File "/usr/local/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 354, in draw
FigureCanvasAgg.draw(self)
File "/usr/local/lib/python3.5/site-packages/matplotlib/backends/backend_agg.py", line 474, in draw
self.figure.draw(self.renderer)
File "/usr/local/lib/python3.5/site-packages/matplotlib/artist.py", line 61, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/matplotlib/figure.py", line 1159, in draw
func(*args)
File "/usr/local/lib/python3.5/site-packages/matplotlib/artist.py", line 61, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 2324, in draw
a.draw(renderer)
File "/usr/local/lib/python3.5/site-packages/matplotlib/artist.py", line 61, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/matplotlib/collections.py", line 1847, in draw
self.update_scalarmappable()
File "/usr/local/lib/python3.5/site-packages/matplotlib/collections.py", line 713, in update_scalarmappable
self._facecolors = self.to_rgba(self._A, self._alpha)
File "/usr/local/lib/python3.5/site-packages/matplotlib/cm.py", line 262, in to_rgba
x = self.cmap(x, alpha=alpha, bytes=bytes)
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 550, in __call__
self._init()
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 845, in _init
rgba = colorConverter.to_rgba_array(self.colors)
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 422, in to_rgba_array
result[i] = self.to_rgba(cc, alpha)
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 376, in to_rgba
'to_rgba: Invalid rgba arg "%s"\n%s' % (str(arg), exc))
ValueError: to_rgba: Invalid rgba arg "viridis"
to_rgb: Invalid rgb arg "viridis"
could not convert string to float: 'viridis'
"><pre class="notranslate"><code class="notranslate"><matplotlib.collections.QuadMesh at 0x11a767198>
In [6]: Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 368, in to_rgba
'length of rgba sequence should be either 3 or 4')
ValueError: length of rgba sequence should be either 3 or 4
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 399, in to_rgba_array
return np.array([self.to_rgba(c, alpha)], dtype=np.float)
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 376, in to_rgba
'to_rgba: Invalid rgba arg "%s"\n%s' % (str(arg), exc))
ValueError: to_rgba: Invalid rgba arg "['viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis', 'viridis']"
length of rgba sequence should be either 3 or 4
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 306, in to_rgb
fl = float(argl)
ValueError: could not convert string to float: 'viridis'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 370, in to_rgba
r, g, b = self.to_rgb(arg)
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 328, in to_rgb
'to_rgb: Invalid rgb arg "%s"\n%s' % (str(arg), exc))
ValueError: to_rgb: Invalid rgb arg "viridis"
could not convert string to float: 'viridis'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 1549, in __call__
return self.func(*args)
File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 596, in callit
func(*args)
File "/usr/local/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 373, in idle_draw
self.draw()
File "/usr/local/lib/python3.5/site-packages/matplotlib/backends/backend_tkagg.py", line 354, in draw
FigureCanvasAgg.draw(self)
File "/usr/local/lib/python3.5/site-packages/matplotlib/backends/backend_agg.py", line 474, in draw
self.figure.draw(self.renderer)
File "/usr/local/lib/python3.5/site-packages/matplotlib/artist.py", line 61, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/matplotlib/figure.py", line 1159, in draw
func(*args)
File "/usr/local/lib/python3.5/site-packages/matplotlib/artist.py", line 61, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 2324, in draw
a.draw(renderer)
File "/usr/local/lib/python3.5/site-packages/matplotlib/artist.py", line 61, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/matplotlib/collections.py", line 1847, in draw
self.update_scalarmappable()
File "/usr/local/lib/python3.5/site-packages/matplotlib/collections.py", line 713, in update_scalarmappable
self._facecolors = self.to_rgba(self._A, self._alpha)
File "/usr/local/lib/python3.5/site-packages/matplotlib/cm.py", line 262, in to_rgba
x = self.cmap(x, alpha=alpha, bytes=bytes)
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 550, in __call__
self._init()
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 845, in _init
rgba = colorConverter.to_rgba_array(self.colors)
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 422, in to_rgba_array
result[i] = self.to_rgba(cc, alpha)
File "/usr/local/lib/python3.5/site-packages/matplotlib/colors.py", line 376, in to_rgba
'to_rgba: Invalid rgba arg "%s"\n%s' % (str(arg), exc))
ValueError: to_rgba: Invalid rgba arg "viridis"
to_rgb: Invalid rgb arg "viridis"
could not convert string to float: 'viridis'
</code></pre></div> | 0 |
<p dir="auto">I decided to start using transitions with material-ui 0.18.7, installed react-transition-group v2 (<em>RTGV2</em>), was happy with my transitions, then started noticing really weird behavior in unrelated components. In particular, ripples fail by leaving a big circle over the rippling component. In my case, I'd just added an unrelated FloatingActionButton when I discovered this, and thought it had run amok.</p>
<p dir="auto">NPM didn't gripe about material-ui having a conflict. I don't see what you could do differently that would make it complain.</p>
<p dir="auto">Moving to RTGV2 is a big move, so if you do get more push for compatibility in material-ui <1.0, you'll probably need to somehow allow clients to use either v1 or v2 - which is probably prohibitively difficult.</p>
<p dir="auto">A runtime check and console spew for the wrong version might make sense, though.</p> | <h3 dir="auto">Problem description</h3>
<p dir="auto">After I Installed React Transition Group on my project, when I click on Material UI Buttons (Raised or Flat) a weird <code class="notranslate"><div></code> appears in the Button comp, like this:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div in="false" style="position: absolute; top: -51.6045px; left: -2.60453px; height: 141.209px; width: 141.209px; border-radius: 50%; background-color: rgb(255, 255, 255);"></div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">in</span>="<span class="pl-s">false</span>" <span class="pl-c1">style</span>="<span class="pl-s">position: absolute; top: -51.6045px; left: -2.60453px; height: 141.209px; width: 141.209px; border-radius: 50%; background-color: rgb(255, 255, 255);</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">one for each new click.</p>
<p dir="auto">If I remove React Transition Group, via <code class="notranslate">yarn remove</code>, everything works fluently, again.</p>
<p dir="auto">I'm using <code class="notranslate">Transition</code> in this way, as explained in <a href="https://reactcommunity.org/react-transition-group/#Transition" rel="nofollow">main documentation</a>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from 'react';
import PropTypes from 'prop-types';
import Transition from 'react-transition-group/Transition';
const defaultStyle = {
transition: `opacity 300ms ease-in-out`,
opacity: 0,
};
const transitionStyles = {
entering: { opacity: 1 },
entered: { opacity: 1 },
};
const Fade = ({
in: inProp,
children,
}) => (
<Transition in={inProp} timeout={300}>
{state => (
<div
style={{
...defaultStyle,
...transitionStyles[state],
}}
>
{children}
</div>
)}
</Transition>
);
Fade.propTypes = {
in: PropTypes.bool.isRequired,
children: PropTypes.node.isRequired,
};
export default Fade;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">PropTypes</span> <span class="pl-k">from</span> <span class="pl-s">'prop-types'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-v">Transition</span> <span class="pl-k">from</span> <span class="pl-s">'react-transition-group/Transition'</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">defaultStyle</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">transition</span>: <span class="pl-s">`opacity 300ms ease-in-out`</span><span class="pl-kos">,</span>
<span class="pl-c1">opacity</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">transitionStyles</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">entering</span>: <span class="pl-kos">{</span> <span class="pl-c1">opacity</span>: <span class="pl-c1">1</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">entered</span>: <span class="pl-kos">{</span> <span class="pl-c1">opacity</span>: <span class="pl-c1">1</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-v">Fade</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">in</span>: <span class="pl-s1">inProp</span><span class="pl-kos">,</span>
children<span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">Transition</span> <span class="pl-c1">in</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">inProp</span><span class="pl-kos">}</span> <span class="pl-c1">timeout</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">300</span><span class="pl-kos">}</span><span class="pl-c1">></span>
<span class="pl-kos">{</span><span class="pl-s1">state</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">div</span>
<span class="pl-c1">style</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span>
...<span class="pl-s1">defaultStyle</span><span class="pl-kos">,</span>
...<span class="pl-s1">transitionStyles</span><span class="pl-kos">[</span><span class="pl-s1">state</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">}</span>
<span class="pl-c1">></span>
<span class="pl-kos">{</span><span class="pl-s1">children</span><span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Transition</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-v">Fade</span><span class="pl-kos">.</span><span class="pl-c1">propTypes</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">in</span>: <span class="pl-v">PropTypes</span><span class="pl-kos">.</span><span class="pl-c1">bool</span><span class="pl-kos">.</span><span class="pl-c1">isRequired</span><span class="pl-kos">,</span>
<span class="pl-c1">children</span>: <span class="pl-v">PropTypes</span><span class="pl-kos">.</span><span class="pl-c1">node</span><span class="pl-kos">.</span><span class="pl-c1">isRequired</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">Fade</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Maybe, is there a conflict with React Transition Group v. 1.2.0, used as dependency in Material UI?</p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 0.18.7</li>
<li>React: 15.6.1</li>
<li>React Transition Group: 2.2.0</li>
<li>Browser: all</li>
</ul> | 1 |
<p dir="auto">Hit this while <a href="https://app.shippable.com/builds/54f0c99f0af4f30e001e846c" rel="nofollow">running an unrelated PR through Shippable</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="W0227 19:54:55.644490 30657 kubelet.go:242] Data dir for pod "bothpod" exists in both old and new form, using new
W0227 19:54:55.646864 30657 kubelet.go:282] Data dir for pod "newpod", container "bothctr" exists in both old and new form, using new
W0227 19:54:55.648438 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_foo_qux_1234_42'
W0227 19:54:55.661498 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_foo_qux_1234_42'
W0227 19:54:55.944516 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_bar_foo.new.test_12345678_0'
W0227 19:54:55.983713 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_foo_bar.new.test_12345678_42'
W0227 19:54:55.992491 30657 kubelet.go:977] No ref for pod '9876' - '/k8s_POD_foo.new.test_12345678_42'
W0227 19:54:56.012539 30657 kubelet.go:977] No ref for pod '7492' - '/k8s_boo_bar.default.testSource_12345678_42'
W0227 19:54:56.012860 30657 kubelet.go:977] No ref for pod '3542' - '/k8s_POD_boo.default.testSource_12345678_42'
W0227 19:54:56.015438 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_foo_bar.new.test_12345678_42'
W0227 19:54:56.015783 30657 kubelet.go:977] No ref for pod '9876' - '/k8s_POD_foo.new.test_12345678_42'
I0227 19:54:56.064712 30657 kubelet.go:2001] Query docker container info for pod bar.new.test failed with error (no containers exist for this pod)
W0227 19:54:56.066136 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_foo_bar.new.test_12345678_1111'
I0227 19:54:56.074874 30657 kubelet.go:2001] Query docker container info for pod foo.new.test failed with error (no containers exist for this pod)
I0227 19:54:56.082731 30657 kubelet.go:1271] pod "foo.new.test" container "bar" hash changed (4660 vs 2854993760). Container will be killed and re-created.
W0227 19:54:56.085344 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_bar.1234_foo.new.test_12345678_42'
W0227 19:54:56.085856 30657 kubelet.go:977] No ref for pod '9876' - '/k8s_POD_foo.new.test_12345678_42'
I0227 19:54:56.105305 30657 kubelet.go:2001] Query docker container info for pod foo.new.test failed with error (no containers exist for this pod)
W0227 19:54:56.113660 30657 probe.go:90] Failed to find probe builder for bar &{Handler:{Exec:<nil> HTTPGet:<nil> TCPSocket:<nil>} InitialDelaySeconds:0 TimeoutSeconds:0}
W0227 19:54:56.124398 30657 probe.go:90] Failed to find probe builder for bar &{Handler:{Exec:<nil> HTTPGet:<nil> TCPSocket:<nil>} InitialDelaySeconds:0 TimeoutSeconds:0}
W0227 19:54:56.124681 30657 probe.go:90] Failed to find probe builder for bar &{Handler:{Exec:<nil> HTTPGet:<nil> TCPSocket:<nil>} InitialDelaySeconds:0 TimeoutSeconds:0}
W0227 19:54:56.128682 30657 kubelet.go:1262] No ref for pod '1234' - 'bar'
I0227 19:54:56.128834 30657 kubelet.go:1268] pod "foo.new.test" container "bar" is unhealthy (probe result: unknown). Container will be killed and re-created.
W0227 19:54:56.129259 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_bar_foo.new.test_12345678_42'
W0227 19:54:56.178639 30657 kubelet.go:512] Unknown protocol "": defaulting to TCP
W0227 19:54:56.179027 30657 kubelet.go:512] Unknown protocol "foobar": defaulting to TCP
W0227 19:54:56.192875 30657 kubelet.go:1637] Pod "..": HostPort is already allocated, ignoring: [[0].port: duplicate value '81']
E0227 19:54:56.281495 30657 kubelet.go:581] Invalid handler: &{<nil> <nil> <nil>}
I0227 19:54:56.284444 30657 kubelet.go:2001] Query docker container info for pod foo.new.test failed with error (no containers exist for this pod)
E0227 19:54:56.294650 30657 kubelet.go:1370] Error running pod "foo.new.test" container "bar": failed to call event handler: test error
E0227 19:54:56.415930 30657 kubelet.go:1214] Unable to get pod with name "foo.new.test" and uid "12345678" info with error(Couldn't find spec for pod foo.new.test)
W0227 19:54:56.662334 30657 probe.go:90] Failed to find probe builder for <nil>
W0227 19:54:56.676683 30657 probe.go:90] Failed to find probe builder for <nil>
W0227 19:54:56.678938 30657 probe.go:90] Failed to find probe builder for <nil>
I0227 19:54:56.707757 30657 runonce.go:62] waiting for 1 pods
I0227 19:54:56.708341 30657 runonce.go:138] container "bar" not found
I0227 19:54:56.708451 30657 runonce.go:112] pod "foo" containers not running: syncing
E0227 19:54:56.713455 30657 kubelet.go:1214] Unable to get pod with name "foo.new.test" and uid "12345678" info with error(Couldn't find spec for pod foo.new.test)
I0227 19:54:56.715598 30657 runonce.go:124] pod "foo" containers synced, waiting for 1s
I0227 19:54:57.719103 30657 runonce.go:138] container "bar" not found
I0227 19:54:57.719221 30657 runonce.go:112] pod "foo" containers not running: syncing
E0227 19:54:57.723001 30657 kubelet.go:1214] Unable to get pod with name "foo.new.test" and uid "12345678" info with error(Couldn't find spec for pod foo.new.test)
I0227 19:54:57.727287 30657 runonce.go:124] pod "foo" containers synced, waiting for 2s
I0227 19:54:59.728595 30657 runonce.go:108] pod "foo" containers running
I0227 19:54:59.728728 30657 runonce.go:75] started pod "foo"
I0227 19:54:59.728778 30657 runonce.go:84] 1 pods started
==================
WARNING: DATA RACE
Read by goroutine 149:
runtime.mapiterinit()
/home/shippable/.gvm/gos/go1.4/src/runtime/hashmap.go:535 +0x0
github.com/docker/spdystream.(*idleAwareFramer).monitor()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:75 +0x30c
Previous write by goroutine 150:
runtime.mapassign1()
/home/shippable/.gvm/gos/go1.4/src/runtime/hashmap.go:376 +0x0
github.com/docker/spdystream.(*Connection).addStream()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:837 +0xf6
github.com/docker/spdystream.(*Connection).addStreamFrame()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:369 +0x52a
github.com/docker/spdystream.(*Connection).Serve()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:261 +0xd06
Goroutine 149 (running) created at:
github.com/docker/spdystream.NewConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:184 +0x757
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.NewServerConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:54 +0x6e
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.responseUpgrader.UpgradeResponse()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/upgrade.go:71 +0x530
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.(*responseUpgrader).UpgradeResponse()
<autogenerated>:1 +0xf5
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).handleExec()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:498 +0x943
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.*Server.(github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.handleExec)·fm()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:95 +0x52
net/http.HandlerFunc.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x4e
net/http.(*ServeMux).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1541 +0x20c
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).ServeHTTP()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:733 +0x1f0
net/http/httptest.(*waitGroupHandler).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/httptest/server.go:200 +0xf7
net/http.serverHandler.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1703 +0x1f6
net/http.(*conn).serve()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1204 +0x1087
Goroutine 150 (running) created at:
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.newConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:68 +0x17a
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.NewServerConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:60 +0x117
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.responseUpgrader.UpgradeResponse()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/upgrade.go:71 +0x530
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.(*responseUpgrader).UpgradeResponse()
<autogenerated>:1 +0xf5
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).handleExec()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:498 +0x943
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.*Server.(github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.handleExec)·fm()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:95 +0x52
net/http.HandlerFunc.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x4e
net/http.(*ServeMux).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1541 +0x20c
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).ServeHTTP()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:733 +0x1f0
net/http/httptest.(*waitGroupHandler).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/httptest/server.go:200 +0xf7
net/http.serverHandler.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1703 +0x1f6
net/http.(*conn).serve()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1204 +0x1087
==================
==================
WARNING: DATA RACE
Read by goroutine 149:
github.com/docker/spdystream.(*Stream).Reset()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/stream.go:170 +0x4d
github.com/docker/spdystream.(*idleAwareFramer).monitor()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:76 +0x35a
Previous write by goroutine 150:
github.com/docker/spdystream.(*Connection).addStreamFrame()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:363 +0x222
github.com/docker/spdystream.(*Connection).Serve()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:261 +0xd06
Goroutine 149 (running) created at:
github.com/docker/spdystream.NewConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:184 +0x757
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.NewServerConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:54 +0x6e
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.responseUpgrader.UpgradeResponse()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/upgrade.go:71 +0x530
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.(*responseUpgrader).UpgradeResponse()
<autogenerated>:1 +0xf5
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).handleExec()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:498 +0x943
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.*Server.(github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.handleExec)·fm()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:95 +0x52
net/http.HandlerFunc.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x4e
net/http.(*ServeMux).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1541 +0x20c
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).ServeHTTP()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:733 +0x1f0
net/http/httptest.(*waitGroupHandler).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/httptest/server.go:200 +0xf7
net/http.serverHandler.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1703 +0x1f6
net/http.(*conn).serve()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1204 +0x1087
Goroutine 150 (running) created at:
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.newConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:68 +0x17a
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.NewServerConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:60 +0x117
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.responseUpgrader.UpgradeResponse()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/upgrade.go:71 +0x530
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.(*responseUpgrader).UpgradeResponse()
<autogenerated>:1 +0xf5
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).handleExec()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:498 +0x943
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.*Server.(github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.handleExec)·fm()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:95 +0x52
net/http.HandlerFunc.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x4e
net/http.(*ServeMux).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1541 +0x20c
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).ServeHTTP()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:733 +0x1f0
net/http/httptest.(*waitGroupHandler).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/httptest/server.go:200 +0xf7
net/http.serverHandler.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1703 +0x1f6
net/http.(*conn).serve()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1204 +0x1087
==================
--- FAIL: TestServeExecInContainerIdleTimeout (0.14s)
server_test.go:662: error creating input stream: Stream reset
E0227 19:55:03.766734 30657 server.go:552] Timed out waiting for client to create streams
W0227 19:55:04.338883 30657 connection.go:126] Stream rejected: Unable to parse '' as a port: strconv.ParseUint: parsing "": invalid syntax
W0227 19:55:04.520106 30657 connection.go:126] Stream rejected: Unable to parse 'abc' as a port: strconv.ParseUint: parsing "abc": invalid syntax
W0227 19:55:04.632877 30657 connection.go:126] Stream rejected: Unable to parse '-1' as a port: strconv.ParseUint: parsing "-1": invalid syntax
W0227 19:55:04.902832 30657 connection.go:126] Stream rejected: Unable to parse '65536' as a port: strconv.ParseUint: parsing "65536": value out of range
W0227 19:55:05.050841 30657 connection.go:126] Stream rejected: Port '0' must be greater than 0
FAIL"><pre class="notranslate"><code class="notranslate">W0227 19:54:55.644490 30657 kubelet.go:242] Data dir for pod "bothpod" exists in both old and new form, using new
W0227 19:54:55.646864 30657 kubelet.go:282] Data dir for pod "newpod", container "bothctr" exists in both old and new form, using new
W0227 19:54:55.648438 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_foo_qux_1234_42'
W0227 19:54:55.661498 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_foo_qux_1234_42'
W0227 19:54:55.944516 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_bar_foo.new.test_12345678_0'
W0227 19:54:55.983713 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_foo_bar.new.test_12345678_42'
W0227 19:54:55.992491 30657 kubelet.go:977] No ref for pod '9876' - '/k8s_POD_foo.new.test_12345678_42'
W0227 19:54:56.012539 30657 kubelet.go:977] No ref for pod '7492' - '/k8s_boo_bar.default.testSource_12345678_42'
W0227 19:54:56.012860 30657 kubelet.go:977] No ref for pod '3542' - '/k8s_POD_boo.default.testSource_12345678_42'
W0227 19:54:56.015438 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_foo_bar.new.test_12345678_42'
W0227 19:54:56.015783 30657 kubelet.go:977] No ref for pod '9876' - '/k8s_POD_foo.new.test_12345678_42'
I0227 19:54:56.064712 30657 kubelet.go:2001] Query docker container info for pod bar.new.test failed with error (no containers exist for this pod)
W0227 19:54:56.066136 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_foo_bar.new.test_12345678_1111'
I0227 19:54:56.074874 30657 kubelet.go:2001] Query docker container info for pod foo.new.test failed with error (no containers exist for this pod)
I0227 19:54:56.082731 30657 kubelet.go:1271] pod "foo.new.test" container "bar" hash changed (4660 vs 2854993760). Container will be killed and re-created.
W0227 19:54:56.085344 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_bar.1234_foo.new.test_12345678_42'
W0227 19:54:56.085856 30657 kubelet.go:977] No ref for pod '9876' - '/k8s_POD_foo.new.test_12345678_42'
I0227 19:54:56.105305 30657 kubelet.go:2001] Query docker container info for pod foo.new.test failed with error (no containers exist for this pod)
W0227 19:54:56.113660 30657 probe.go:90] Failed to find probe builder for bar &{Handler:{Exec:<nil> HTTPGet:<nil> TCPSocket:<nil>} InitialDelaySeconds:0 TimeoutSeconds:0}
W0227 19:54:56.124398 30657 probe.go:90] Failed to find probe builder for bar &{Handler:{Exec:<nil> HTTPGet:<nil> TCPSocket:<nil>} InitialDelaySeconds:0 TimeoutSeconds:0}
W0227 19:54:56.124681 30657 probe.go:90] Failed to find probe builder for bar &{Handler:{Exec:<nil> HTTPGet:<nil> TCPSocket:<nil>} InitialDelaySeconds:0 TimeoutSeconds:0}
W0227 19:54:56.128682 30657 kubelet.go:1262] No ref for pod '1234' - 'bar'
I0227 19:54:56.128834 30657 kubelet.go:1268] pod "foo.new.test" container "bar" is unhealthy (probe result: unknown). Container will be killed and re-created.
W0227 19:54:56.129259 30657 kubelet.go:977] No ref for pod '1234' - '/k8s_bar_foo.new.test_12345678_42'
W0227 19:54:56.178639 30657 kubelet.go:512] Unknown protocol "": defaulting to TCP
W0227 19:54:56.179027 30657 kubelet.go:512] Unknown protocol "foobar": defaulting to TCP
W0227 19:54:56.192875 30657 kubelet.go:1637] Pod "..": HostPort is already allocated, ignoring: [[0].port: duplicate value '81']
E0227 19:54:56.281495 30657 kubelet.go:581] Invalid handler: &{<nil> <nil> <nil>}
I0227 19:54:56.284444 30657 kubelet.go:2001] Query docker container info for pod foo.new.test failed with error (no containers exist for this pod)
E0227 19:54:56.294650 30657 kubelet.go:1370] Error running pod "foo.new.test" container "bar": failed to call event handler: test error
E0227 19:54:56.415930 30657 kubelet.go:1214] Unable to get pod with name "foo.new.test" and uid "12345678" info with error(Couldn't find spec for pod foo.new.test)
W0227 19:54:56.662334 30657 probe.go:90] Failed to find probe builder for <nil>
W0227 19:54:56.676683 30657 probe.go:90] Failed to find probe builder for <nil>
W0227 19:54:56.678938 30657 probe.go:90] Failed to find probe builder for <nil>
I0227 19:54:56.707757 30657 runonce.go:62] waiting for 1 pods
I0227 19:54:56.708341 30657 runonce.go:138] container "bar" not found
I0227 19:54:56.708451 30657 runonce.go:112] pod "foo" containers not running: syncing
E0227 19:54:56.713455 30657 kubelet.go:1214] Unable to get pod with name "foo.new.test" and uid "12345678" info with error(Couldn't find spec for pod foo.new.test)
I0227 19:54:56.715598 30657 runonce.go:124] pod "foo" containers synced, waiting for 1s
I0227 19:54:57.719103 30657 runonce.go:138] container "bar" not found
I0227 19:54:57.719221 30657 runonce.go:112] pod "foo" containers not running: syncing
E0227 19:54:57.723001 30657 kubelet.go:1214] Unable to get pod with name "foo.new.test" and uid "12345678" info with error(Couldn't find spec for pod foo.new.test)
I0227 19:54:57.727287 30657 runonce.go:124] pod "foo" containers synced, waiting for 2s
I0227 19:54:59.728595 30657 runonce.go:108] pod "foo" containers running
I0227 19:54:59.728728 30657 runonce.go:75] started pod "foo"
I0227 19:54:59.728778 30657 runonce.go:84] 1 pods started
==================
WARNING: DATA RACE
Read by goroutine 149:
runtime.mapiterinit()
/home/shippable/.gvm/gos/go1.4/src/runtime/hashmap.go:535 +0x0
github.com/docker/spdystream.(*idleAwareFramer).monitor()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:75 +0x30c
Previous write by goroutine 150:
runtime.mapassign1()
/home/shippable/.gvm/gos/go1.4/src/runtime/hashmap.go:376 +0x0
github.com/docker/spdystream.(*Connection).addStream()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:837 +0xf6
github.com/docker/spdystream.(*Connection).addStreamFrame()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:369 +0x52a
github.com/docker/spdystream.(*Connection).Serve()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:261 +0xd06
Goroutine 149 (running) created at:
github.com/docker/spdystream.NewConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:184 +0x757
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.NewServerConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:54 +0x6e
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.responseUpgrader.UpgradeResponse()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/upgrade.go:71 +0x530
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.(*responseUpgrader).UpgradeResponse()
<autogenerated>:1 +0xf5
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).handleExec()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:498 +0x943
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.*Server.(github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.handleExec)·fm()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:95 +0x52
net/http.HandlerFunc.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x4e
net/http.(*ServeMux).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1541 +0x20c
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).ServeHTTP()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:733 +0x1f0
net/http/httptest.(*waitGroupHandler).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/httptest/server.go:200 +0xf7
net/http.serverHandler.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1703 +0x1f6
net/http.(*conn).serve()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1204 +0x1087
Goroutine 150 (running) created at:
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.newConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:68 +0x17a
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.NewServerConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:60 +0x117
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.responseUpgrader.UpgradeResponse()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/upgrade.go:71 +0x530
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.(*responseUpgrader).UpgradeResponse()
<autogenerated>:1 +0xf5
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).handleExec()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:498 +0x943
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.*Server.(github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.handleExec)·fm()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:95 +0x52
net/http.HandlerFunc.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x4e
net/http.(*ServeMux).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1541 +0x20c
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).ServeHTTP()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:733 +0x1f0
net/http/httptest.(*waitGroupHandler).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/httptest/server.go:200 +0xf7
net/http.serverHandler.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1703 +0x1f6
net/http.(*conn).serve()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1204 +0x1087
==================
==================
WARNING: DATA RACE
Read by goroutine 149:
github.com/docker/spdystream.(*Stream).Reset()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/stream.go:170 +0x4d
github.com/docker/spdystream.(*idleAwareFramer).monitor()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:76 +0x35a
Previous write by goroutine 150:
github.com/docker/spdystream.(*Connection).addStreamFrame()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:363 +0x222
github.com/docker/spdystream.(*Connection).Serve()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:261 +0xd06
Goroutine 149 (running) created at:
github.com/docker/spdystream.NewConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/connection.go:184 +0x757
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.NewServerConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:54 +0x6e
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.responseUpgrader.UpgradeResponse()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/upgrade.go:71 +0x530
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.(*responseUpgrader).UpgradeResponse()
<autogenerated>:1 +0xf5
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).handleExec()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:498 +0x943
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.*Server.(github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.handleExec)·fm()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:95 +0x52
net/http.HandlerFunc.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x4e
net/http.(*ServeMux).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1541 +0x20c
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).ServeHTTP()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:733 +0x1f0
net/http/httptest.(*waitGroupHandler).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/httptest/server.go:200 +0xf7
net/http.serverHandler.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1703 +0x1f6
net/http.(*conn).serve()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1204 +0x1087
Goroutine 150 (running) created at:
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.newConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:68 +0x17a
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.NewServerConnection()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/connection.go:60 +0x117
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.responseUpgrader.UpgradeResponse()
/home/shippable/workspace/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy/upgrade.go:71 +0x530
github.com/GoogleCloudPlatform/kubernetes/pkg/util/httpstream/spdy.(*responseUpgrader).UpgradeResponse()
<autogenerated>:1 +0xf5
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).handleExec()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:498 +0x943
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.*Server.(github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.handleExec)·fm()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:95 +0x52
net/http.HandlerFunc.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1265 +0x4e
net/http.(*ServeMux).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1541 +0x20c
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet.(*Server).ServeHTTP()
github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/_test/_obj_test/server.go:733 +0x1f0
net/http/httptest.(*waitGroupHandler).ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/httptest/server.go:200 +0xf7
net/http.serverHandler.ServeHTTP()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1703 +0x1f6
net/http.(*conn).serve()
/home/shippable/.gvm/gos/go1.4/src/net/http/server.go:1204 +0x1087
==================
--- FAIL: TestServeExecInContainerIdleTimeout (0.14s)
server_test.go:662: error creating input stream: Stream reset
E0227 19:55:03.766734 30657 server.go:552] Timed out waiting for client to create streams
W0227 19:55:04.338883 30657 connection.go:126] Stream rejected: Unable to parse '' as a port: strconv.ParseUint: parsing "": invalid syntax
W0227 19:55:04.520106 30657 connection.go:126] Stream rejected: Unable to parse 'abc' as a port: strconv.ParseUint: parsing "abc": invalid syntax
W0227 19:55:04.632877 30657 connection.go:126] Stream rejected: Unable to parse '-1' as a port: strconv.ParseUint: parsing "-1": invalid syntax
W0227 19:55:04.902832 30657 connection.go:126] Stream rejected: Unable to parse '65536' as a port: strconv.ParseUint: parsing "65536": value out of range
W0227 19:55:05.050841 30657 connection.go:126] Stream rejected: Port '0' must be greater than 0
FAIL
</code></pre></div> | <p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
Client Version: version.Info{Major:"1", Minor:"5+", GitVersion:"v1.5.0-alpha.1.427+19e9f7e400fd46-dirty", GitCommit:"19e9f7e400fd46d5492c869f4371ddec6f32b17e", GitTreeState:"dirty", BuildDate:"2016-11-16T00:14:27Z", GoVersion:"go1.6", Compiler:"gc", Platform:"linux/amd64"}<br>
Server Version: version.Info{Major:"1", Minor:"5+", GitVersion:"v1.5.0-alpha.1.427+19e9f7e400fd46-dirty", GitCommit:"19e9f7e400fd46d5492c869f4371ddec6f32b17e", GitTreeState:"dirty", BuildDate:"2016-11-16T00:14:27Z", GoVersion:"go1.6", Compiler:"gc", Platform:"linux/amd64"}</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: vSphere</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Ubuntu</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): 4.2.0-27-generic</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
Kubelet fail to start.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
Move VMs running Kubernetes outside vSphere Cluster. Restart kubernetes services</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
Kubelet Logs</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="panic: reflect.Set: value of type mo.ComputeResource is not assignable to type mo.ClusterComputeResource
goroutine 1 [running]:
panic(0x287fe00, 0xc82025a240)
/usr/local/go/src/runtime/panic.go:464 +0x3e6
reflect.Value.assignTo(0x35a1680, 0xc8205725a0, 0x99, 0x3831860, 0xb, 0x357e8c0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/reflect/value.go:2164 +0x3be
reflect.Value.Set(0x357e8c0, 0xc8205af180, 0x199, 0x35a1680, 0xc8205725a0, 0x99)
/usr/local/go/src/reflect/value.go:1334 +0x95
k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo.LoadRetrievePropertiesResponse(0xc8206c6700, 0x32dd7a0, 0xc8205af180, 0x0, 0x0)
/mnt/hgfs/shivania/Abrar/workdir/code/kubernetes/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go:128 +0xe21
k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property.(*Collector).Retrieve(0xc820867058, 0x7f8af1761ab0, 0xc82004b300, 0xc8206d2a20, 0x1, 0x1, 0xc8202c36"><pre class="notranslate"><code class="notranslate">panic: reflect.Set: value of type mo.ComputeResource is not assignable to type mo.ClusterComputeResource
goroutine 1 [running]:
panic(0x287fe00, 0xc82025a240)
/usr/local/go/src/runtime/panic.go:464 +0x3e6
reflect.Value.assignTo(0x35a1680, 0xc8205725a0, 0x99, 0x3831860, 0xb, 0x357e8c0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/reflect/value.go:2164 +0x3be
reflect.Value.Set(0x357e8c0, 0xc8205af180, 0x199, 0x35a1680, 0xc8205725a0, 0x99)
/usr/local/go/src/reflect/value.go:1334 +0x95
k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo.LoadRetrievePropertiesResponse(0xc8206c6700, 0x32dd7a0, 0xc8205af180, 0x0, 0x0)
/mnt/hgfs/shivania/Abrar/workdir/code/kubernetes/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go:128 +0xe21
k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property.(*Collector).Retrieve(0xc820867058, 0x7f8af1761ab0, 0xc82004b300, 0xc8206d2a20, 0x1, 0x1, 0xc8202c36
</code></pre></div> | 0 |
<p dir="auto">I want to plot this simple code:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import matplotlib.pyplot as plt
# Example data
t = np.arange(0.0, 1.0 + 0.01, 0.01)
s = np.cos(4 * np.pi * t) + 2
plt.rc('text', usetex=True)
plt.rc('font', family='serif')
plt.plot(t, s)
plt.xlabel(r'\textbf{time} (s)')
plt.ylabel(r'\textit{voltage} (mV)',fontsize=16)
plt.title(r"\TeX\ is Number "
r"$\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!",
fontsize=16, color='gray')
# Make room for the ridiculously large title.
plt.subplots_adjust(top=0.8)
plt.savefig('tex_demo')
plt.show()
"><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">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-c"># Example data</span>
<span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0.0</span>, <span class="pl-c1">1.0</span> <span class="pl-c1">+</span> <span class="pl-c1">0.01</span>, <span class="pl-c1">0.01</span>)
<span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">cos</span>(<span class="pl-c1">4</span> <span class="pl-c1">*</span> <span class="pl-s1">np</span>.<span class="pl-s1">pi</span> <span class="pl-c1">*</span> <span class="pl-s1">t</span>) <span class="pl-c1">+</span> <span class="pl-c1">2</span>
<span class="pl-s1">plt</span>.<span class="pl-en">rc</span>(<span class="pl-s">'text'</span>, <span class="pl-s1">usetex</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">rc</span>(<span class="pl-s">'font'</span>, <span class="pl-s1">family</span><span class="pl-c1">=</span><span class="pl-s">'serif'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">plot</span>(<span class="pl-s1">t</span>, <span class="pl-s1">s</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">xlabel</span>(<span class="pl-s">r'\textbf{time} (s)'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">ylabel</span>(<span class="pl-s">r'\textit{voltage} (mV)'</span>,<span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-c1">16</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s">r"\TeX\ is Number "</span>
<span class="pl-s">r"$\displaystyle\sum_{n=1}^\infty\frac{-e^{i\pi}}{2^n}$!"</span>,
<span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-c1">16</span>, <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">'gray'</span>)
<span class="pl-c"># Make room for the ridiculously large title.</span>
<span class="pl-s1">plt</span>.<span class="pl-en">subplots_adjust</span>(<span class="pl-s1">top</span><span class="pl-c1">=</span><span class="pl-c1">0.8</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'tex_demo'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto">the face the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="runfile('C:/Workspace/jaza0001/untitled0.py', wdir='C:/Workspace/jaza0001')
Traceback (most recent call last):
File "<ipython-input-13-2954d5a98220>", line 1, in <module>
runfile('C:/Workspace/jaza0001/untitled0.py', wdir='C:/Workspace/jaza0001')
File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile
execfile(filename, namespace)
File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Workspace/jaza0001/untitled0.py", line 20, in <module>
plt.savefig('tex_demo')
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\pyplot.py", line 689, in savefig
res = fig.savefig(*args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 2094, in savefig
self.canvas.print_figure(fname, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backend_bases.py", line 2075, in print_figure
**kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 510, in print_png
FigureCanvasAgg.draw(self)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axes\_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1187, in draw
renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 313, in _get_layout
ismath=ismath)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 328, in make_dvi
texfile], tex)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:\Temp\Anaconda\lib\subprocess.py", line 389, in check_output
**kwargs).stdout
File "C:\Temp\Anaconda\lib\subprocess.py", line 466, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 171, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)
File "C:\Temp\Anaconda\lib\subprocess.py", line 769, in __init__
restore_signals, start_new_session)
File "C:\Temp\Anaconda\lib\subprocess.py", line 1172, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Error in callback <function install_repl_displayhook.<locals>.post_execute at 0x000001C8A5C1E6A8> (for post_execute):
Traceback (most recent call last):
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\pyplot.py", line 109, in post_execute
draw_all()
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\_pylab_helpers.py", line 132, in draw_all
f_mgr.canvas.draw_idle()
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backend_bases.py", line 1899, in draw_idle
self.draw(*args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axes\_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1187, in draw
renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 313, in _get_layout
ismath=ismath)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 328, in make_dvi
texfile], tex)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:\Temp\Anaconda\lib\subprocess.py", line 389, in check_output
**kwargs).stdout
File "C:\Temp\Anaconda\lib\subprocess.py", line 466, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 171, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)
File "C:\Temp\Anaconda\lib\subprocess.py", line 769, in __init__
restore_signals, start_new_session)
File "C:\Temp\Anaconda\lib\subprocess.py", line 1172, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Temp\Anaconda\lib\site-packages\IPython\core\formatters.py", line 341, in __call__
return printer(obj)
File "C:\Temp\Anaconda\lib\site-packages\IPython\core\pylabtools.py", line 244, in <lambda>
png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))
File "C:\Temp\Anaconda\lib\site-packages\IPython\core\pylabtools.py", line 128, in print_figure
fig.canvas.print_figure(bytes_io, **kw)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backend_bases.py", line 2049, in print_figure
**kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 510, in print_png
FigureCanvasAgg.draw(self)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axes\_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1187, in draw
renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 313, in _get_layout
ismath=ismath)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 328, in make_dvi
texfile], tex)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:\Temp\Anaconda\lib\subprocess.py", line 389, in check_output
**kwargs).stdout
File "C:\Temp\Anaconda\lib\subprocess.py", line 466, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 171, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)
File "C:\Temp\Anaconda\lib\subprocess.py", line 769, in __init__
restore_signals, start_new_session)
File "C:\Temp\Anaconda\lib\subprocess.py", line 1172, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
<Figure size 432x288 with 1 Axes>
"><pre class="notranslate"><code class="notranslate">runfile('C:/Workspace/jaza0001/untitled0.py', wdir='C:/Workspace/jaza0001')
Traceback (most recent call last):
File "<ipython-input-13-2954d5a98220>", line 1, in <module>
runfile('C:/Workspace/jaza0001/untitled0.py', wdir='C:/Workspace/jaza0001')
File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile
execfile(filename, namespace)
File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Workspace/jaza0001/untitled0.py", line 20, in <module>
plt.savefig('tex_demo')
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\pyplot.py", line 689, in savefig
res = fig.savefig(*args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 2094, in savefig
self.canvas.print_figure(fname, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backend_bases.py", line 2075, in print_figure
**kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 510, in print_png
FigureCanvasAgg.draw(self)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axes\_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1187, in draw
renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 313, in _get_layout
ismath=ismath)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 328, in make_dvi
texfile], tex)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:\Temp\Anaconda\lib\subprocess.py", line 389, in check_output
**kwargs).stdout
File "C:\Temp\Anaconda\lib\subprocess.py", line 466, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 171, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)
File "C:\Temp\Anaconda\lib\subprocess.py", line 769, in __init__
restore_signals, start_new_session)
File "C:\Temp\Anaconda\lib\subprocess.py", line 1172, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Error in callback <function install_repl_displayhook.<locals>.post_execute at 0x000001C8A5C1E6A8> (for post_execute):
Traceback (most recent call last):
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\pyplot.py", line 109, in post_execute
draw_all()
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\_pylab_helpers.py", line 132, in draw_all
f_mgr.canvas.draw_idle()
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backend_bases.py", line 1899, in draw_idle
self.draw(*args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axes\_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1187, in draw
renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 313, in _get_layout
ismath=ismath)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 328, in make_dvi
texfile], tex)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:\Temp\Anaconda\lib\subprocess.py", line 389, in check_output
**kwargs).stdout
File "C:\Temp\Anaconda\lib\subprocess.py", line 466, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 171, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)
File "C:\Temp\Anaconda\lib\subprocess.py", line 769, in __init__
restore_signals, start_new_session)
File "C:\Temp\Anaconda\lib\subprocess.py", line 1172, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Temp\Anaconda\lib\site-packages\IPython\core\formatters.py", line 341, in __call__
return printer(obj)
File "C:\Temp\Anaconda\lib\site-packages\IPython\core\pylabtools.py", line 244, in <lambda>
png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))
File "C:\Temp\Anaconda\lib\site-packages\IPython\core\pylabtools.py", line 128, in print_figure
fig.canvas.print_figure(bytes_io, **kw)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backend_bases.py", line 2049, in print_figure
**kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 510, in print_png
FigureCanvasAgg.draw(self)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 402, in draw
self.figure.draw(self.renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\figure.py", line 1649, in draw
renderer, self, artists, self.suppressComposite)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axes\_base.py", line 2628, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\image.py", line 138, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1187, in draw
renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\axis.py", line 1125, in _get_tick_bboxes
extent = tick.label1.get_window_extent(renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 930, in get_window_extent
bbox, info, descent = self._get_layout(self._renderer)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\text.py", line 313, in _get_layout
ismath=ismath)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\backends\backend_agg.py", line 209, in get_text_width_height_descent
s, fontsize, renderer=self)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 464, in get_text_width_height_descent
dvifile = self.make_dvi(tex, fontsize)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 328, in make_dvi
texfile], tex)
File "C:\Temp\Anaconda\lib\site-packages\matplotlib\texmanager.py", line 298, in _run_checked_subprocess
stderr=subprocess.STDOUT)
File "C:\Temp\Anaconda\lib\subprocess.py", line 389, in check_output
**kwargs).stdout
File "C:\Temp\Anaconda\lib\subprocess.py", line 466, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Temp\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 171, in __init__
super(SubprocessPopen, self).__init__(*args, **kwargs)
File "C:\Temp\Anaconda\lib\subprocess.py", line 769, in __init__
restore_signals, start_new_session)
File "C:\Temp\Anaconda\lib\subprocess.py", line 1172, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
<Figure size 432x288 with 1 Axes>
</code></pre></div> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong><br>
I am unable to <code class="notranslate">import matplotlib.pyplot</code> starting in version 3.0.0. Might be related to Issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="267084262" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/9485" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/9485/hovercard" href="https://github.com/matplotlib/matplotlib/issues/9485">#9485</a>?</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span></pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto">I get the following traceback when executing the above <code class="notranslate">import</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1353, in <module>
fontManager = json_load(_fmcache)
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 888, in json_load
with open(filename, 'r') as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\username\\.matplotlib\\fontlist-v300.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import matplotlib.pyplot as plt
File "C:\Python\Python35\lib\site-packages\matplotlib\pyplot.py", line 32, in <module>
import matplotlib.colorbar
File "C:\Python\Python35\lib\site-packages\matplotlib\colorbar.py", line 32, in <module>
import matplotlib.contour as contour
File "C:\Python\Python35\lib\site-packages\matplotlib\contour.py", line 18, in <module>
import matplotlib.font_manager as font_manager
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1363, in <module>
_rebuild()
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1344, in _rebuild
fontManager = FontManager()
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 978, in __init__
ttffiles = findSystemFonts(paths) + findSystemFonts()
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 264, in findSystemFonts
fontfiles.update(win32InstalledFonts(fontext=fontext))
TypeError: 'NoneType' object is not iterable"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1353, in <module>
fontManager = json_load(_fmcache)
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 888, in json_load
with open(filename, 'r') as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\username\\.matplotlib\\fontlist-v300.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import matplotlib.pyplot as plt
File "C:\Python\Python35\lib\site-packages\matplotlib\pyplot.py", line 32, in <module>
import matplotlib.colorbar
File "C:\Python\Python35\lib\site-packages\matplotlib\colorbar.py", line 32, in <module>
import matplotlib.contour as contour
File "C:\Python\Python35\lib\site-packages\matplotlib\contour.py", line 18, in <module>
import matplotlib.font_manager as font_manager
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1363, in <module>
_rebuild()
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 1344, in _rebuild
fontManager = FontManager()
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 978, in __init__
ttffiles = findSystemFonts(paths) + findSystemFonts()
File "C:\Python\Python35\lib\site-packages\matplotlib\font_manager.py", line 264, in findSystemFonts
fontfiles.update(win32InstalledFonts(fontext=fontext))
TypeError: 'NoneType' object is not iterable
</code></pre></div>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Windows 10 64-bit</li>
<li>Matplotlib version: 3.0.0</li>
<li>Matplotlib backend: TkAgg</li>
<li>Python version: 3.5.4</li>
<li>Jupyter version (if applicable): NA</li>
<li>Other libraries: NA</li>
</ul>
<p dir="auto">Installed via <code class="notranslate">pip</code></p> | 1 |
<p dir="auto">Hi all,<br>
I am getting segfaults when running the test suite. Specifically, they occur in the manifold module.<br>
Furthermore, all of the examples in that module end in segfaults.</p>
<p dir="auto">I am using Mac OS X Lion 10.7,<br>
the latest scipy superpack (superpack_10.7_2011.11.04.sh)<br>
gcc version i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)</p>
<p dir="auto">I use the following flags:</p>
<p dir="auto">declare -x CC="gcc-4.2"<br>
declare -x CXX="g++-4.2"<br>
declare -x FFLAGS="-ff2c"</p>
<p dir="auto">Maybe I should try with different permutations of these flags.</p>
<p dir="auto">I have to mention that I have a failing numpy test (tests polyfit) and a lot of failing scipy tests (specifically all the ones related to symmetric arpack modes). Detailed version and output is in this pastebin:</p>
<p dir="auto"><a href="http://pastebin.com/Dm1dwsUt" rel="nofollow">http://pastebin.com/Dm1dwsUt</a></p> | <p dir="auto">The example examples/manifold/plot_compare_methods.py segfaults when using scipy from the development version.</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dmarko" rel="nofollow">Mark Dolgov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3431?redirect=false" rel="nofollow">SPR-3431</a></strong> and commented</p>
<p dir="auto">Reference manual for ver. 2.0.4<br>
<a href="http://static.springframework.org/spring/docs/2.0.x/reference/beans.html" rel="nofollow">http://static.springframework.org/spring/docs/2.0.x/reference/beans.html</a><br>
Section 3.2.2.1<br>
The problem is still there!</p>
<p dir="auto">(Copied form related bug: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398077436" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8093" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8093/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8093">#8093</a>)</p>
<p dir="auto">The xml shown in section 3.2.1.1 of documentation is missing the following text "<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>" in xsi:schemaLocation attribute of beans tag. If we try this xml, we get org.xml.sax.SAXParseException with message '</p>
<p dir="auto">'SchemaLocation: schemaLocation value = ' <a href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd</a>' must have even number of URI's.'</p>
<p dir="auto">The old xml is :</p>
<p dir="auto"><?xml version="1.0" encoding="UTF-8"?></p>
<p dir="auto"><beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"></a></p>
<p dir="auto"><bean id="..." class="..."><br>
<!-- collaborators and configuration for this bean go here --><br>
</bean><br>
<bean id="..." class="..."><br>
<!-- collaborators and configuration for this bean go here --><br>
</bean><br>
<!---- more bean definitions go here... --><br>
</beans></p>
<p dir="auto">The new xml should be :</p>
<p dir="auto"><?xml version="1.0" encoding="UTF-8"?></p>
<p dir="auto"><beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a> <a href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"></a></p>
<p dir="auto"><bean id="..." class="..."><br>
<!-- collaborators and configuration for this bean go here --><br>
</bean><br>
<bean id="..." class="..."><br>
<!-- collaborators and configuration for this bean go here --><br>
</bean><br>
<!---- more bean definitions go here... --><br>
</beans></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.4</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="398077142" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8056" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8056/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8056">#8056</a> Wrong bean configuration xml file header in Spring 2.0.4 PDF Reference Manual : missing data in xsi:schemaLocation (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=hekonsek" rel="nofollow">Henryk Konsek</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7868?redirect=false" rel="nofollow">SPR-7868</a></strong> and commented</p>
<p dir="auto">I created simple bean implementing BeanDefinitionRegistryPostProcessor. All I want to do is to register some bean definition in the BeanDefinitionRegistryPostProcessor#postProcessBeanDefinitionRegistry method. The problem is that code working with ClassPathXmlApplicationContext doesn't work with AnnotationConfigApplicationContext.</p>
<p dir="auto">My intelligent guess would be that BeanDefinitionRegistryPostProcessor#postProcessBeanDefinitionRegistry is called after JavaConfig bean postprocessor.</p>
<p dir="auto">I'm attaching minimal Maven project with two unit tests (XmlTest & AnnotationTest) to demonstrate the issue.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.5</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/17503/registryBug.zip" rel="nofollow">registryBug.zip</a> (<em>23.00 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398150911" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14099" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14099/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14099">#14099</a> Method postProcessBeanDefinitionRegistry is not called if the bean implements BeanDefinitionRegistryPostProcessor (<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="398111929" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12917" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12917/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12917">#12917</a> BeanFactoryPostProcessor breaks default post-processing of <code class="notranslate">@Configuration</code> classes</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398159434" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15258" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15258/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15258">#15258</a> Allow BeanDefinitionRegistryPostProcessor to register other BeanDefinitionRegistryPostProcessors</li>
</ul> | 0 |
<p dir="auto">Markdown preview does not do any syntax highlighting. Please enable syntax highlighting.<br>
This will prevent me from opening vscode for every README that I come across.</p> | 1 |
|
<p dir="auto">it would have performance advantage over client side reindex command and it will increase availability of reindexing because not every client supports it.</p> | <p dir="auto">Probably not a high priority or must have feature, but this would be extremely convenient.</p>
<p dir="auto">This would allow one to:</p>
<ul dir="auto">
<li>Switch gateways</li>
<li>Upgrade to new version with incompatible gateway</li>
<li>Clone an entire cluster</li>
</ul>
<p dir="auto">Based on this discussion here:<br>
<a href="http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/43b534ca360d808f?pli=1" rel="nofollow">http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/43b534ca360d808f?pli=1</a></p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">Using <strong>v0.191</strong> installed on <em>Linux</em> with this command <code class="notranslate">script/grunt install --install-dir ~/.local</code>.</p>
<p dir="auto">Steps to reproduce:</p>
<ul dir="auto">
<li>Type following in a shell</li>
</ul>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ touch /tmp/hihi
$ atom /tmp &"><pre class="notranslate">$ touch /tmp/hihi
$ atom /tmp <span class="pl-k">&</span></pre></div>
<ul dir="auto">
<li>Right click on <code class="notranslate">hihi</code></li>
<li>Select <em>Delete</em></li>
</ul>
<p dir="auto"><strong>Result:</strong> File is still on disk.<br>
<strong>Expected:</strong> File removed.</p>
<p dir="auto">Thanks for the fine work.</p>
<p dir="auto">Kévin</p> | <p dir="auto">Moving a file in the tree view causes an autosave.</p>
<p dir="auto">Refs <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="31598215" data-permission-text="Title is private" data-url="https://github.com/atom/tree-view/issues/123" data-hovercard-type="issue" data-hovercard-url="/atom/tree-view/issues/123/hovercard" href="https://github.com/atom/tree-view/issues/123">atom/tree-view#123</a></p> | 1 |
<p dir="auto">Let us know what functionality you'd like to see in Playwright and what your use case is.</p>
<p dir="auto">Let's say I have a page object like the one below</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class PageObject {
readonly parent: Locator;
readonly child: Locator;
constructor(page: Page) {
this.parent = page.locator('[data-id=parent]');
this.child = page.locator('[data-id=child]');
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">PageObject</span> <span class="pl-kos">{</span>
<span class="pl-k">readonly</span> <span class="pl-c1">parent</span>: <span class="pl-smi">Locator</span><span class="pl-kos">;</span>
<span class="pl-k">readonly</span> <span class="pl-c1">child</span>: <span class="pl-smi">Locator</span><span class="pl-kos">;</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">page</span>: <span class="pl-smi">Page</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">parent</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'[data-id=parent]'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">child</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'[data-id=child]'</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">It makes sense in my use case to have these as separate locators.<br>
But in some instances I would essentially want to chain the parent locator to the child locator.<br>
I could add another locator <code class="notranslate">this.parentChild = page.locator('[data-id=parent] [data-id=child]')</code> but it seems like duplication of selectors that are already defined.<br>
Or I could extract out the selectors but that again is more code.</p>
<p dir="auto">Some ideas are:</p>
<ol dir="auto">
<li>Allow the first arg of page.locator() to be either a <code class="notranslate">selector: string</code> OR a <code class="notranslate">locator: Locator</code> --> <code class="notranslate">this.parent.locator(this.child)</code></li>
<li>Be able to get the selector from a <code class="notranslate">locator</code> --> <code class="notranslate">this.parent.locator(this.child.selector)</code></li>
</ol> | <p dir="auto">Right now we need to repeat lines of code to get to the element with more than one attribute.</p>
<p dir="auto">We would like to have an implementation that will help us with defining for example elements and then filter them by additional attribute:</p>
<p dir="auto"><strong>[Example of what we want]</strong>:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/62831238/140914358-4d43bb6a-e212-49b1-84f4-3d6023561272.png"><img src="https://user-images.githubusercontent.com/62831238/140914358-4d43bb6a-e212-49b1-84f4-3d6023561272.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>[What we have?]</strong><br>
Right now we need to duplicate part of the standardProducts:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="async chooseStandardProduct(dataProductName: string): Promise<void> {
await this.page.locator(`[e2e-target-name="standard"][e2e-target-name="${dataProductName}"`]).click()
}"><pre class="notranslate"><code class="notranslate">async chooseStandardProduct(dataProductName: string): Promise<void> {
await this.page.locator(`[e2e-target-name="standard"][e2e-target-name="${dataProductName}"`]).click()
}
</code></pre></div>
<p dir="auto">Thanks to that solution we can decrease code duplication. Similar solution already have testcafe.</p> | 0 |
<p dir="auto">Hi community,</p>
<p dir="auto">This issue is for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1344332424" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/20305" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/20305/hovercard" href="https://github.com/apache/shardingsphere/issues/20305">#20305</a>.</p>
<h3 dir="auto">Aim</h3>
<p dir="auto">Add more unit tests for <code class="notranslate">YamlSQLParserRuleConfigurationSwapper</code> to test its public functions to improve unit test coverage.</p>
<p dir="auto">Unit test coverage can be viewed at: <a href="https://app.codecov.io/gh/apache/shardingsphere" rel="nofollow">https://app.codecov.io/gh/apache/shardingsphere</a></p>
<h3 dir="auto">Basic Qualifications</h3>
<p dir="auto">Java<br>
Maven<br>
Junit</p> | <p dir="auto">Hi community,</p>
<p dir="auto">This issue is for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1344332424" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/20305" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/20305/hovercard" href="https://github.com/apache/shardingsphere/issues/20305">#20305</a>.</p>
<h2 dir="auto">Aim</h2>
<p dir="auto">Add more unit tests for <code class="notranslate">YamlSQLParserRuleConfigurationSwapper </code> to test its public functions to improve unit test coverage.</p>
<p dir="auto">Unit test coverage can be viewed at: <a href="https://app.codecov.io/gh/apache/shardingsphere/blobs/master/shardingsphere-kernel/shardingsphere-parser/shardingsphere-parser-core/src/main/java/org/apache/shardingsphere/parser/yaml/swapper/YamlSQLParserRuleConfigurationSwapper.java" rel="nofollow">https://app.codecov.io/gh/apache/shardingsphere/blobs/master/shardingsphere-kernel/shardingsphere-parser/shardingsphere-parser-core/src/main/java/org/apache/shardingsphere/parser/yaml/swapper/YamlSQLParserRuleConfigurationSwapper.java</a></p>
<h2 dir="auto">Basic Qualifications</h2>
<ul dir="auto">
<li>Java</li>
<li>Maven</li>
<li>Junit</li>
</ul> | 1 |
<p dir="auto">sharding is affected when encrypt。but query is not decrypt.<br>
and I found The problem is (SQLServerResultSetMetaData)<br>
<code class="notranslate">this.rs.getColumn(var1).getTableName().getObjectName();</code> ,this code return "",so cann't decrypt<br>
for example config:<br>
<code class="notranslate">encrypt: encryptors: encryptor_aes: type: aes props: aes.key.value: 123456 tables: users: columns: mobile: cipherColumn: mobile_cipher encryptor: encryptor_aes props: query.with.cipher.column: true sql.show: true</code></p> | <p dir="auto">the profile as below:</p>
<p dir="auto">spring:<br>
shardingsphere:<br>
props:<br>
sql.show: true<br>
query.with.cipher.comlum: true<br>
datasource:<br>
name: ds0<br>
ds0:<br>
type: org.apache.commons.dbcp.BasicDataSource</p>
<p dir="auto"> driver-class-name: com.mysql.cj.jdbc.Driver</p>
<p dir="auto"> url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC</p>
<p dir="auto"> username: root</p>
<p dir="auto"> password: root</p>
<p dir="auto"> max-total: 100<br>
sharding:<br>
tables:<br>
user:<br>
actual-data-nodes: ds0.user_$->{0..4}<br>
table-strategy:<br>
inline:<br>
sharding-column: id<br>
algorithm-expression: user_$->{id % 5}<br>
encrypt:<br>
encryptors:<br>
encryptor_aes:<br>
type: aes<br>
props.aes.key.value: 123456<br>
tables:<br>
user:<br>
columns:<br>
name:<br>
cipherColumn: name<br>
encryptor: encryptor_aes</p> | 1 |
<ul dir="auto">
<li>VSCode Version: 1.0.0</li>
<li>OS Version: Ubuntu 16.04 LTS</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Click into a text line</li>
<li>Press <code class="notranslate">Ctrl + Shift + Alt + UpArrow</code> or <code class="notranslate">Ctrl + Shift + Alt + DownArrow</code></li>
</ol>
<p dir="auto">Expected result:</p>
<ul dir="auto">
<li>line is duplicated up/down</li>
</ul>
<p dir="auto">Actual result:</p>
<ul dir="auto">
<li>nothing happens</li>
</ul>
<p dir="auto">Workaround:</p>
<ul dir="auto">
<li>run the command from the command palette</li>
</ul> | <h1 dir="auto">Problem</h1>
<p dir="auto">When authoring a JSON file, such as a Microsoft Azure Resource Manager (ARM) JSON Template, the Visual Studio Code editor is showing all of the available properties for an object, instead of only showing the properties that the user has <em>not yet specified</em>.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/466713/11409632/7d5a79ec-937e-11e5-93ae-75738d3ec7ee.png"><img width="592" alt="screen shot 2015-11-25 at 2 10 22 pm" src="https://cloud.githubusercontent.com/assets/466713/11409632/7d5a79ec-937e-11e5-93ae-75738d3ec7ee.png" style="max-width: 100%;"></a></p>
# Expected Result
<p dir="auto">I would naturally expect that the Visual Studio Code Intellisense returns only the JSON properties that the user hasn't defined yet. I shouldn't be prompted to insert a duplicate key.</p>
<p dir="auto">Cheers,<br>
Trevor Sullivan<br>
Microsoft MVP: PowerShell<br>
<a href="http://trevorsullivan.net" rel="nofollow">http://trevorsullivan.net</a><br>
<a href="http://twitter.com/pcgeek86" rel="nofollow">http://twitter.com/pcgeek86</a></p> | 0 |
<p dir="auto">I have implemented an iOS MKMapView using the new UiKitView platform view. This appears to work quite well, apart from the gesture recognisers throwing errors.</p>
<p dir="auto">The Flutter side of the implementation</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="typedef void DossierMapViewCreatedCallback(DossierMapViewController controller);
/// Shows a Map with the dossiers
class DossierMapView extends StatefulWidget {
const DossierMapView({
Key key,
this.onDossierMapViewCreated,
this.gestureRecognizers,
}) : super(key: key);
final DossierMapViewCreatedCallback onDossierMapViewCreated;
final Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers;
@override
State<StatefulWidget> createState() => _DossierMapViewState();
}
///
class _DossierMapViewState extends State<DossierMapView> {
final Completer<DossierMapViewController> _controller =
Completer<DossierMapViewController>();
@override
Widget build(BuildContext context) {
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return AndroidView(
viewType: _dossierMapViewType,
onPlatformViewCreated: _onPlatformViewCreated,
);
case TargetPlatform.iOS:
return GestureDetector(
//onVerticalDragStart: (DragStartDetails details) {},
child: UiKitView(
viewType: _dossierMapViewType,
onPlatformViewCreated: _onPlatformViewCreated,
gestureRecognizers: <Factory<OneSequenceGestureRecognizer>>[
new Factory<OneSequenceGestureRecognizer>(
() => new EagerGestureRecognizer(),
),
].toSet(),
),
);
default:
return Text(
'$defaultTargetPlatform is not yet supported by the dossiers_map_view plugin');
}
}
void _onPlatformViewCreated(int id) {
final controller = DossierMapViewController._(id);
_controller.complete(controller);
if (widget.onDossierMapViewCreated != null) {
widget.onDossierMapViewCreated(controller);
}
}
}
class DossierMapViewController {
final MethodChannel _channel;
DossierMapViewController._(int id)
: _channel = MethodChannel("plugins.maxdoro.com/dossiermapview_$id");
Future<void> setDossierList(List<Map<String, dynamic>> list) async {
return _channel.invokeMethod("setDossierList", list);
}
}"><pre class="notranslate"><span class="pl-k">typedef</span> <span class="pl-k">void</span> <span class="pl-c1">DossierMapViewCreatedCallback</span>(<span class="pl-c1">DossierMapViewController</span> controller);
<span class="pl-c">/// Shows a Map with the dossiers</span>
<span class="pl-c"></span><span class="pl-k">class</span> <span class="pl-c1">DossierMapView</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> {
<span class="pl-k">const</span> <span class="pl-c1">DossierMapView</span>({
<span class="pl-c1">Key</span> key,
<span class="pl-c1">this</span>.onDossierMapViewCreated,
<span class="pl-c1">this</span>.gestureRecognizers,
}) <span class="pl-k">:</span> <span class="pl-c1">super</span>(key<span class="pl-k">:</span> key);
<span class="pl-k">final</span> <span class="pl-c1">DossierMapViewCreatedCallback</span> onDossierMapViewCreated;
<span class="pl-k">final</span> <span class="pl-c1">Set</span><<span class="pl-c1">Factory</span><<span class="pl-c1">OneSequenceGestureRecognizer</span>>> gestureRecognizers;
<span class="pl-k">@override</span>
<span class="pl-c1">State</span><<span class="pl-c1">StatefulWidget</span>> <span class="pl-en">createState</span>() <span class="pl-k">=></span> <span class="pl-c1">_DossierMapViewState</span>();
}
<span class="pl-c">///</span>
<span class="pl-c"></span><span class="pl-k">class</span> <span class="pl-c1">_DossierMapViewState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span><<span class="pl-c1">DossierMapView</span>> {
<span class="pl-k">final</span> <span class="pl-c1">Completer</span><<span class="pl-c1">DossierMapViewController</span>> _controller <span class="pl-k">=</span>
<span class="pl-c1">Completer</span><<span class="pl-c1">DossierMapViewController</span>>();
<span class="pl-k">@override</span>
<span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
<span class="pl-k">switch</span> (defaultTargetPlatform) {
<span class="pl-k">case</span> <span class="pl-c1">TargetPlatform</span>.android<span class="pl-k">:</span>
<span class="pl-k">return</span> <span class="pl-c1">AndroidView</span>(
viewType<span class="pl-k">:</span> _dossierMapViewType,
onPlatformViewCreated<span class="pl-k">:</span> _onPlatformViewCreated,
);
<span class="pl-k">case</span> <span class="pl-c1">TargetPlatform</span>.iOS<span class="pl-k">:</span>
<span class="pl-k">return</span> <span class="pl-c1">GestureDetector</span>(
<span class="pl-c">//onVerticalDragStart: (DragStartDetails details) {},</span>
child<span class="pl-k">:</span> <span class="pl-c1">UiKitView</span>(
viewType<span class="pl-k">:</span> _dossierMapViewType,
onPlatformViewCreated<span class="pl-k">:</span> _onPlatformViewCreated,
gestureRecognizers<span class="pl-k">:</span> <span class="pl-k"><</span><span class="pl-c1">Factory</span><<span class="pl-c1">OneSequenceGestureRecognizer</span>><span class="pl-k">></span>[
<span class="pl-k">new</span> <span class="pl-c1">Factory</span><<span class="pl-c1">OneSequenceGestureRecognizer</span>>(
() <span class="pl-k">=></span> <span class="pl-k">new</span> <span class="pl-c1">EagerGestureRecognizer</span>(),
),
].<span class="pl-en">toSet</span>(),
),
);
<span class="pl-k">default</span><span class="pl-k">:</span>
<span class="pl-k">return</span> <span class="pl-c1">Text</span>(
<span class="pl-s">'$<span class="pl-v">defaultTargetPlatform</span> is not yet supported by the dossiers_map_view plugin'</span>);
}
}
<span class="pl-k">void</span> <span class="pl-en">_onPlatformViewCreated</span>(<span class="pl-c1">int</span> id) {
<span class="pl-k">final</span> controller <span class="pl-k">=</span> <span class="pl-c1">DossierMapViewController</span>._(id);
_controller.<span class="pl-en">complete</span>(controller);
<span class="pl-k">if</span> (widget.onDossierMapViewCreated <span class="pl-k">!=</span> <span class="pl-c1">null</span>) {
widget.<span class="pl-en">onDossierMapViewCreated</span>(controller);
}
}
}
<span class="pl-k">class</span> <span class="pl-c1">DossierMapViewController</span> {
<span class="pl-k">final</span> <span class="pl-c1">MethodChannel</span> _channel;
<span class="pl-c1">DossierMapViewController</span>._(<span class="pl-c1">int</span> id)
<span class="pl-k">:</span> _channel <span class="pl-k">=</span> <span class="pl-c1">MethodChannel</span>(<span class="pl-s">"plugins.maxdoro.com/dossiermapview_$<span class="pl-v">id</span>"</span>);
<span class="pl-c1">Future</span><<span class="pl-k">void</span>> <span class="pl-en">setDossierList</span>(<span class="pl-c1">List</span><<span class="pl-c1">Map</span><<span class="pl-c1">String</span>, <span class="pl-c1">dynamic</span>>> list) <span class="pl-k">async</span> {
<span class="pl-k">return</span> _channel.<span class="pl-en">invokeMethod</span>(<span class="pl-s">"setDossierList"</span>, list);
}
}</pre></div>
<p dir="auto">The important bit is probably the gesture recogniser passing</p>
<p dir="auto">Dragging and/or zooming the map view results in these exceptions being thrown</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[VERBOSE-2:shell.cc(184)] Dart Error: Unhandled exception:
[ ] 'package:flutter/src/gestures/converter.dart': Failed assertion: line 250 pos 18: 'state.down': is not true.
[ ] #0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)
[ ] #1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)
[ ] #2 PointerEventConverter.expand (package:flutter/src/gestures/converter.dart:250:18)
[ ] #3 _SyncIterator.moveNext (dart:core/runtime/libcore_patch.dart:151:12)
[ ] #4 ListQueue.addAll (dart:collection/queue.dart:715:25)
[ ] #5 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:83:27)
[ ] #6 _invoke1 (dart:ui/hooks.dart:165:13)
[ ] #7 _dispatchPointerDataPacket (dart:ui/hooks.dart:119:5)
[ +302 ms] [VERBOSE-2:shell.cc(184)] Dart Error: Unhandled exception:
[ ] 'package:flutter/src/gestures/converter.dart': Failed assertion: line 143 pos 18: '!state.down': is not true.
[ ] #0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)
[ ] #1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)
[ ] #2 PointerEventConverter.expand (package:flutter/src/gestures/converter.dart:143:18)
[ ] #3 _SyncIterator.moveNext (dart:core/runtime/libcore_patch.dart:151:12)
[ ] #4 ListQueue.addAll (dart:collection/queue.dart:715:25)
[ ] #5 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:83:27)
[ ] #6 _invoke1 (dart:ui/hooks.dart:165:13)
[ ] #7 _dispatchPointerDataPacket (dart:ui/hooks.dart:119:5)"><pre class="notranslate"><code class="notranslate">[VERBOSE-2:shell.cc(184)] Dart Error: Unhandled exception:
[ ] 'package:flutter/src/gestures/converter.dart': Failed assertion: line 250 pos 18: 'state.down': is not true.
[ ] #0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)
[ ] #1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)
[ ] #2 PointerEventConverter.expand (package:flutter/src/gestures/converter.dart:250:18)
[ ] #3 _SyncIterator.moveNext (dart:core/runtime/libcore_patch.dart:151:12)
[ ] #4 ListQueue.addAll (dart:collection/queue.dart:715:25)
[ ] #5 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:83:27)
[ ] #6 _invoke1 (dart:ui/hooks.dart:165:13)
[ ] #7 _dispatchPointerDataPacket (dart:ui/hooks.dart:119:5)
[ +302 ms] [VERBOSE-2:shell.cc(184)] Dart Error: Unhandled exception:
[ ] 'package:flutter/src/gestures/converter.dart': Failed assertion: line 143 pos 18: '!state.down': is not true.
[ ] #0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)
[ ] #1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)
[ ] #2 PointerEventConverter.expand (package:flutter/src/gestures/converter.dart:143:18)
[ ] #3 _SyncIterator.moveNext (dart:core/runtime/libcore_patch.dart:151:12)
[ ] #4 ListQueue.addAll (dart:collection/queue.dart:715:25)
[ ] #5 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:83:27)
[ ] #6 _invoke1 (dart:ui/hooks.dart:165:13)
[ ] #7 _dispatchPointerDataPacket (dart:ui/hooks.dart:119:5)
</code></pre></div>
<p dir="auto">I show two, but there are a lot more</p>
<p dir="auto">Tap on the link 'package:flutter/src/gestuires/converter.dart:, we see the assert testing state.down.</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" case ui.PointerChange.up:
case ui.PointerChange.cancel:
assert(_pointers.containsKey(datum.device));
final _PointerState state = _pointers[datum.device];
assert(state.down);
if (position != state.lastPosition) {
// Not all sources of pointer packets respect the invariant that
// they move the pointer to the up location before sending the up
// event. For example, in the iOS simulator, of you drag outside the
// window, you'll get a stream of pointers that violates that
// invariant. We restore the invariant here for our clients."><pre class="notranslate"> <span class="pl-k">case</span> ui.<span class="pl-c1">PointerChange</span>.up<span class="pl-k">:</span>
<span class="pl-k">case</span> ui.<span class="pl-c1">PointerChange</span>.cancel<span class="pl-k">:</span>
<span class="pl-k">assert</span>(_pointers.<span class="pl-en">containsKey</span>(datum.device));
<span class="pl-k">final</span> <span class="pl-c1">_PointerState</span> state <span class="pl-k">=</span> _pointers[datum.device];
<span class="pl-k">assert</span>(state.down);
<span class="pl-k">if</span> (position <span class="pl-k">!=</span> state.lastPosition) {
<span class="pl-c">// Not all sources of pointer packets respect the invariant that</span>
<span class="pl-c">// they move the pointer to the up location before sending the up</span>
<span class="pl-c">// event. For example, in the iOS simulator, of you drag outside the</span>
<span class="pl-c">// window, you'll get a stream of pointers that violates that</span>
<span class="pl-c">// invariant. We restore the invariant here for our clients.</span></pre></div>
<p dir="auto">flutter doctor -v says:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sanders-mbp:waarnemingenapp sandervanderwal$ flutter doctor -v
[✓] Flutter (Channel master, v0.11.4-pre.6, on Mac OS X 10.14.1 18B75, locale en-NL)
• Flutter version 0.11.4-pre.6 at /Users/sandervanderwal/Developer/flutter
• Framework revision df57dc9da9 (10 hours ago), 2018-11-11 22:36:47 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/sandervanderwal/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] Connected device (1 available)
• Turminder Xuss • ca4f8a0ddd55132ab42c253d7496b90a38b6b53c • ios • iOS 12.1
• No issues found!"><pre class="notranslate"><code class="notranslate">sanders-mbp:waarnemingenapp sandervanderwal$ flutter doctor -v
[✓] Flutter (Channel master, v0.11.4-pre.6, on Mac OS X 10.14.1 18B75, locale en-NL)
• Flutter version 0.11.4-pre.6 at /Users/sandervanderwal/Developer/flutter
• Framework revision df57dc9da9 (10 hours ago), 2018-11-11 22:36:47 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/sandervanderwal/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] Connected device (1 available)
• Turminder Xuss • ca4f8a0ddd55132ab42c253d7496b90a38b6b53c • ios • iOS 12.1
• No issues found!
</code></pre></div> | <p dir="auto">Getting this error after double tapping a <code class="notranslate">UiKitView</code> on ios.<br>
Everything is fine when using <code class="notranslate">AndroidView</code> on android.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Dart Error: Unhandled exception:
'package:flutter/src/gestures/converter.dart': Failed assertion: line 143 pos 18: '!state.down': is not true.
#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)
#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)
#2 PointerEventConverter.expand (package:flutter/src/gestures/converter.dart:143:18)
#3 _SyncIterator.moveNext (dart:core/runtime/libcore_patch.dart:151:12)
#4 ListQueue.addAll (dart:collection/queue.dart:715:25)
#5 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:83:27)
#6 _invoke1 (dart:ui/hooks.dart:165:13)
#7 _dispatchPointerDataPacket (dart:ui/hooks.dart:119:5)"><pre class="notranslate"><code class="notranslate">Dart Error: Unhandled exception:
'package:flutter/src/gestures/converter.dart': Failed assertion: line 143 pos 18: '!state.down': is not true.
#0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)
#1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)
#2 PointerEventConverter.expand (package:flutter/src/gestures/converter.dart:143:18)
#3 _SyncIterator.moveNext (dart:core/runtime/libcore_patch.dart:151:12)
#4 ListQueue.addAll (dart:collection/queue.dart:715:25)
#5 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:83:27)
#6 _invoke1 (dart:ui/hooks.dart:165:13)
#7 _dispatchPointerDataPacket (dart:ui/hooks.dart:119:5)
</code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto"><a href="https://github.com/Unact/yandex_mapkit">Example app</a></p>
<ol dir="auto">
<li>Launch example</li>
<li>Double tap on map(Try a few times. Not every double tap reproduces this error)</li>
</ol>
<h2 dir="auto">Logs</h2>
<p dir="auto"><code class="notranslate">flutter analyze</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing example...
No issues found! (ran in 13.1s)"><pre class="notranslate"><code class="notranslate">Analyzing example...
No issues found! (ran in 13.1s)
</code></pre></div>
<p dir="auto"><code class="notranslate">flutter doctor -v</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel master, v0.11.1-pre.134, on Mac OS X 10.12.6 16G1510, locale en-RU)
• Flutter version 0.11.1-pre.134 at /Users/ybarkovskij/Work/flutter
• Framework revision 43407e4e01 (13 hours ago), 2018-11-09 16:04:33 -0500
• Engine revision 316f6365a6
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/ybarkovskij/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] VS Code (version 1.28.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.19.0
[✓] Connected device (1 available)
• iPhone 5s • B276608C-A108-426E-BAF7-DE6244D7C4D0 • ios • iOS 11.2 (simulator)
• No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel master, v0.11.1-pre.134, on Mac OS X 10.12.6 16G1510, locale en-RU)
• Flutter version 0.11.1-pre.134 at /Users/ybarkovskij/Work/flutter
• Framework revision 43407e4e01 (13 hours ago), 2018-11-09 16:04:33 -0500
• Engine revision 316f6365a6
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/ybarkovskij/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] VS Code (version 1.28.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.19.0
[✓] Connected device (1 available)
• iPhone 5s • B276608C-A108-426E-BAF7-DE6244D7C4D0 • ios • iOS 11.2 (simulator)
• No issues found!
</code></pre></div> | 1 |
<p dir="auto">Sorry, low quality bug report here but I'm working to a deadline.</p>
<p dir="auto">Browser: Chrome latest<br>
Visit this page: <a href="http://getbootstrap.com/components/" rel="nofollow">http://getbootstrap.com/components/</a><br>
Its currently using Bootstrap 3.2.0</p>
<p dir="auto">On my desktop 1920*1080, on a windows 8 pc, maximised window.</p>
<p dir="auto">If I scroll down to the end of the page using either of these two methods:<br>
1/ press END, then scroll up one mouse wheel and back down again OR<br>
2/ manually drag the scrollbar to the end of the page</p>
<p dir="auto">you will notice that the affix plugin "pops" and goes off the top of the page. I assume this may be intended behaviour as its being left behind as you go beyond its affix zone.</p>
<p dir="auto">If you press HOME after that it jumps back to the top of the page but the affix is now in the wrong place and appears to be affixed to the top of window instead of its original affix top location. Scrolling at all fixes the issue and it pops back to its affix start location.</p>
<p dir="auto">Obscure, yes. Browser issue, probably. Close the issue if you like, I'll only be mildly offended :)</p>
<p dir="auto">I think that its actually breaking both ways, if you END down it goes further than it should. Then if you get it into my scroll bug location and HOME it does the same bug in reverse?</p> | <p dir="auto">It is possible to go to the top of the page, without the plugin assigning affix-top classname.</p>
<p dir="auto">Here's an example:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/613331/3001517/1d0a574c-dd31-11e3-875b-d496d697100a.png"><img src="https://cloud.githubusercontent.com/assets/613331/3001517/1d0a574c-dd31-11e3-875b-d496d697100a.png" alt="14 05 16 6cwp5" style="max-width: 100%;"></a></p>
<p dir="auto">It's really easy to reproduce by pressing <code class="notranslate">end</code> and then <code class="notranslate">home</code> buttons.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> remove the quote syntax from <code class="notranslate">extern crate</code>, require an identifier to be used instead - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="63169245" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/23546" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/23546/hovercard" href="https://github.com/rust-lang/rust/pull/23546">#23546</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Prevent duplicate uploads of <code class="notranslate">foo-bar</code> and <code class="notranslate">foo_bar</code> to crates.io <a href="https://github.com/rust-lang/crates.io/commit/89bc5dd46435ec08113c82266ad16464d68d4710">change</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Automatically translate <code class="notranslate">-</code> to <code class="notranslate">_</code> in Cargo for passing the <code class="notranslate">--extern</code> flag - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="63855752" data-permission-text="Title is private" data-url="https://github.com/rust-lang/cargo/issues/1443" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/cargo/pull/1443/hovercard" href="https://github.com/rust-lang/cargo/pull/1443">rust-lang/cargo#1443</a></li>
</ul>
<p dir="auto">As an interim step, the compiler should continue to accept <code class="notranslate">extern crate "foo-bar" as ...</code> both in terms of quotes and in terms of matching the identifier <code class="notranslate">foo_bar</code> as well. This should help reduce the breakage a little.</p>
<p dir="auto">triage: P-backcompat-lang (1.0 beta)</p> | <p dir="auto">We recently made most, but not all RNGs clonable. ISTM that the use cases for this are quite limited, and it creates a big opportunity for making mistakes by duplicating random numbers in scenarios where that could be a security risk (imagine accidentally deriving clone on a secure rng).</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aturon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aturon">@aturon</a></p> | 0 |
<p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p>
<pre class="notranslate">Similar to the new TLS field with the tls.ConnectionState in the http.Response struct
it'd be useful to get access to some connection information.
For my use case I was missing the IP the client connected to (RemoteAddr); I am not sure
if there's other information in the current connection API that would be useful to
expose.</pre> | <pre class="notranslate">Wishlist bug for what net/http would look like if we could make backwards-incompatible
changes.
Anything goes.
I'll start:
* Handler (<a href="http://golang.org/pkg/net/http/#Handler)" rel="nofollow">http://golang.org/pkg/net/http/#Handler)</a> currently takes a pointer to a 208
byte Request struct.
* The Request struct (<a href="http://golang.org/pkg/net/http/#Request)" rel="nofollow">http://golang.org/pkg/net/http/#Request)</a> has all its fields
publicly exposed, most of which require memory allocation:
-- Method
-- URL (itself 104 bytes, with a bunch of strings requiring allocation)
-- Header map + slices + strings (even if never accessed)
-- TransferEncoding slice (even if not accessed)
-- Host string (even if not accessed)
-- RemoteAddr string (even if not accessed)
-- RequestURI (even if not accessed)
-- TLS state struct (even if not accessed)
For a lightweight handler that doesn't touch anything (say, serves some static content
from memory), this means we can't do any better than generating ~1KB of garbage per
request.
I'd prefer to make a ServerRequest interface with accessor methods which can generate
needed data on demand.
This would also simplify our docs on our doubly-abused-in-different-ways *Request, which
contains documentation gems like:
// PostForm contains the parsed form data from POST or PUT
// body parameters.
// This field is only available after ParseForm is called.
// The HTTP client ignores PostForm and uses Body instead.
PostForm url.Values
If we had byte views (<a href="https://golang.org/issue/5376" rel="nofollow">issue #5376</a>), I would also say that most fields in the
ServerRequest, URL, Header, and FormValues are all byte views with validity scoped to
the duration of the http.Handler call, instead of strings.</pre> | 1 |
<p dir="auto">In settings, on the "Themes" tab, when I type anything into the box labelled "Filter themes by name," all themes are filtered <em>out</em>, even if I type in strings that appear within the names of themes I've installed, and even if I type in the exact name of the theme.</p>
<p dir="auto">For example, suppose I was trying to quickly get to "seti-ui." If I type in <code class="notranslate">seti</code>, nothing appears. If I type in <code class="notranslate">seti-ui</code>, nothing appears. As far as I can tell, the filter box filters out every theme, no matter what you type into it.</p>
<p dir="auto">Running at Atom 0.209.0 on OS X 10.10.4.</p> | <p dir="auto">All packages are disappear and even if I clear the filter field they don't appears.</p>
<p dir="auto">win 10; atom 0.207</p> | 1 |
<p dir="auto">ShardingRule::<br>
private boolean isShardingColumn(final ShardingStrategyConfiguration shardingStrategyConfig, final String columnName) {<br>
... ...<br>
// Case can be ignored here,May cause all tables to be manipulated!Insert statement encountered. All tables were inserted<br>
return ((ComplexShardingStrategyConfiguration) shardingStrategyConfig).getShardingColumns().contains(columnName);<br>
}</p> | <p dir="auto">Please answer these questions before submitting your issue. Thanks!<br>
开源不易,我们希望将精力放在完成新功能和解决有价值的问题上,为了让大家的配合更具有效率,请填写以下列出的全部问题</p>
<h3 dir="auto">Which version of Sharding-Sphere do you using?(您使用的Sharding-Sphere版本为?)</h3>
<p dir="auto">3.0.0.M1 jdk 1.7</p>
<h3 dir="auto">Expected behavior (您预期的结果是)</h3>
<p dir="auto">正常运行</p>
<h3 dir="auto">Actual behavior (实际运行的结果是)</h3>
<p dir="auto">org.codehaus.groovy.reflection.ClassInfo 严重占用内存,导致内存溢出</p>
<h3 dir="auto">Steps to reproduce the behavior (可重现问题的操作步骤)</h3>
<p dir="auto">使用 InlineShardingStrategy 不断调用即可观察到栈内存的增长</p>
<h3 dir="auto">Please provide the reproduce example codes (such as github link),otherwise we will label the issue as Invalid and close it.(为了节省复现问题的时间,请务必提供可重现的代码,否则我们会将issue直接标记为invalid并关闭)</h3>
<p dir="auto"><a href="https://github.com/sharding-sphere/sharding-sphere-example">https://github.com/sharding-sphere/sharding-sphere-example</a> InlineShardingStrategy demo 不断调用即可<br>
Code should based on <a href="https://github.com/sharding-sphere/sharding-sphere-example">https://github.com/sharding-sphere/sharding-sphere-example</a><br>
(代码请基于 <a href="https://github.com/sharding-sphere/sharding-sphere-example%EF%BC%89">https://github.com/sharding-sphere/sharding-sphere-example)</a></p> | 0 |
<p dir="auto"><strong>Elasticsearch version</strong>: 5.0.0-rc1</p>
<p dir="auto"><strong>Plugins installed</strong>: none</p>
<p dir="auto"><strong>JVM version</strong>: jdk1.8.0_101</p>
<p dir="auto"><strong>OS version</strong>: Windows 2012 R2 64-bit</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br>
Cannot install the service.</p>
<ul dir="auto">
<li>I have the following environment variables set:
<ul dir="auto">
<li>JAVA_HOME: C:\Program Files\Java\jdk1.8.0_101</li>
<li>ES_HEAP_SIZE: 8g</li>
</ul>
</li>
<li>I have verified that jvm.options have the following lines commented out:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="## -Xms8g
## -Xmx8g"><pre class="notranslate"><code class="notranslate">## -Xms8g
## -Xmx8g
</code></pre></div>
<p dir="auto">I run the following: <code class="notranslate">.\elasticsearch-service.bat install elasticsearch-5.0.0-rc1</code></p>
<p dir="auto">I get the following output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: encountered environment variables that are no longer supported
Use jvm.options or ES_JAVA_OPTS to configure the JVM
ES_HEAP_SIZE=8g: set -Xms8g and -Xmx8g in jvm.options or add "-Xms8g -Xmx8g" to ES_JAVA_OPTS"><pre class="notranslate"><code class="notranslate">Error: encountered environment variables that are no longer supported
Use jvm.options or ES_JAVA_OPTS to configure the JVM
ES_HEAP_SIZE=8g: set -Xms8g and -Xmx8g in jvm.options or add "-Xms8g -Xmx8g" to ES_JAVA_OPTS
</code></pre></div>
<p dir="auto">I delete ES_HEAP_SIZE and add ES_JAVA_OPTS: "-Xms8g and -Xmx8g" (without quotes)</p>
<p dir="auto">I run the command again and get the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Installing service : "elasticsearch-5.0.0-rc1"
Using JAVA_HOME (64-bit): "C:\Program Files\Java\jdk1.8.0_101"
thread stack size not set; configure via C:\elasticsearch-5.0.0-rc1\config\jvm.options or ES_JAVA_OPTS"><pre class="notranslate"><code class="notranslate">Installing service : "elasticsearch-5.0.0-rc1"
Using JAVA_HOME (64-bit): "C:\Program Files\Java\jdk1.8.0_101"
thread stack size not set; configure via C:\elasticsearch-5.0.0-rc1\config\jvm.options or ES_JAVA_OPTS
</code></pre></div>
<p dir="auto">I delete ES_JAVA_OPTS and edit jvm.options:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-Xms8g
-Xmx8g"><pre class="notranslate"><code class="notranslate">-Xms8g
-Xmx8g
</code></pre></div>
<p dir="auto">Run again and get the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Installing service : "elasticsearch-5.0.0-rc1"
Using JAVA_HOME (64-bit): "C:\Program Files\Java\jdk1.8.0_101"
thread stack size not set; configure via C:\elasticsearch-5.0.0-rc1\config\jvm.options or ES_JAVA_OPTS"><pre class="notranslate"><code class="notranslate">Installing service : "elasticsearch-5.0.0-rc1"
Using JAVA_HOME (64-bit): "C:\Program Files\Java\jdk1.8.0_101"
thread stack size not set; configure via C:\elasticsearch-5.0.0-rc1\config\jvm.options or ES_JAVA_OPTS
</code></pre></div>
<p dir="auto">I leave jvm.options alone and create ES_JAVA_OPTS again. Now it see duplicate settings:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Installing service : "elasticsearch-5.0.0-rc1"
Using JAVA_HOME (64-bit): "C:\Program Files\Java\jdk1.8.0_101"
duplicate min heap size settings found"><pre class="notranslate"><code class="notranslate">Installing service : "elasticsearch-5.0.0-rc1"
Using JAVA_HOME (64-bit): "C:\Program Files\Java\jdk1.8.0_101"
duplicate min heap size settings found
</code></pre></div> | <p dir="auto"><strong>Elasticsearch version</strong>: 5.0.2</p>
<p dir="auto"><strong>Plugins installed</strong>: []</p>
<p dir="auto"><strong>JVM version</strong>: 1.8</p>
<p dir="auto"><strong>OS version</strong>: Ubuntu 14.04</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br>
Tried to install 5.0.2 after the release of 5.1.1 and it seems to be removed from the repos.</p>
<p dir="auto"><strong>Steps to reproduce</strong>:</p>
<ol dir="auto">
<li>Try to install 5.0.2 from repos</li>
</ol>
<p dir="auto"><strong>Provide logs (if relevant)</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@packer-virtualbox-iso-1461948451:~# apt-get install elasticsearch=5.0.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '5.0.2' for 'elasticsearch' was not found"><pre class="notranslate"><code class="notranslate">root@packer-virtualbox-iso-1461948451:~# apt-get install elasticsearch=5.0.2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '5.0.2' for 'elasticsearch' was not found
</code></pre></div>
<p dir="auto">The repos are correct;</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@packer-virtualbox-iso-1461948451:~# cat /etc/apt/sources.list.d/elasticsearch.list
deb https://artifacts.elastic.co/packages/5.x/apt stable main"><pre class="notranslate"><code class="notranslate">root@packer-virtualbox-iso-1461948451:~# cat /etc/apt/sources.list.d/elasticsearch.list
deb https://artifacts.elastic.co/packages/5.x/apt stable main
</code></pre></div> | 0 |
<p dir="auto">ReactDOM and React are good separation of concerns. However, except for special cases, React applications almost always require the ReactDOM as well. The special cases can obviously have their own builds which can remove the unnecessary dependency. But React officially should serve a single library which includes the ReactDOM as a single resource. It absolutely makes no sense for an extra network request for a library that's 900 bytes gzipped.</p>
<p dir="auto">This cost is even multiplied, since the official CDNs seem to already have a redirection in place. At the moment of filing this issue, a request to <a href="https://fb.me/react-0.14.7.min.js" rel="nofollow">https://fb.me/react-0.14.7.min.js</a> ends up with 301 to <a href="https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-xfa1/t39.3284-6/12624086_185960608428874_474870377_n.js" rel="nofollow">https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-xfa1/t39.3284-6/12624086_185960608428874_474870377_n.js</a></p>
<p dir="auto">And similar redirects for ReactDOM. That's <code class="notranslate">4</code> requests in place of what could be a <code class="notranslate">2</code>. 2 requests, for a mere 900 bytes. In other words, taking the overhead of TCP/IP and HTTP, <code class="notranslate">an overhead of nearly half a kilobyte with about 600ms of latency (in my geographic location) for a mere 900 bytes</code>. Now, add to the fact that the <code class="notranslate">gzip would probably nullify that 900 bytes almost entirely</code> if its included as a part of the other 70kb file, due to binary compression.</p>
<p dir="auto">I'm honestly quite surprised why it was even decided to separate them (Not as libraries, but in terms of deployment).</p> | <p dir="auto">I was talking with a new React user in IRC, and they were having trouble understanding the ES6 in the docs. I think using ES6 in the docs is a good idea, but what about giving the reader more ability to understand the code?</p>
<p dir="auto">Concept:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/936069/25067709/2cd09f34-2201-11e7-96d7-cd343d2ea70b.png"><img src="https://cloud.githubusercontent.com/assets/936069/25067709/2cd09f34-2201-11e7-96d7-cd343d2ea70b.png" alt="react tutorial page" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/936069/25067742/efbc9fe8-2201-11e7-800c-79fdee1d6daa.png"><img src="https://cloud.githubusercontent.com/assets/936069/25067742/efbc9fe8-2201-11e7-800c-79fdee1d6daa.png" alt="react tutorial page with es6 class popup" style="max-width: 100%;"></a></p>
<p dir="auto">Maybe take text from <a href="https://babeljs.io/learn-es2015/#ecmascript-2015-features-classes" rel="nofollow">Babel's ES6+ Guide</a> and modify it a bit to fit the surrounding content.</p>
<p dir="auto">This could be done across the site, but it's most important in the tutorial.</p> | 0 |
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Symfony version</td>
<td>2.7</td>
</tr>
</tbody>
</table>
<p dir="auto">commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/faf671db0f7493c15fdcef8446b9472a1ce80445/hovercard" href="https://github.com/symfony/symfony/commit/faf671db0f7493c15fdcef8446b9472a1ce80445"><tt>faf671d</tt></a><br>
commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/c891413f6c82257777eb3673827eea3ee47f0501/hovercard" href="https://github.com/symfony/symfony/commit/c891413f6c82257777eb3673827eea3ee47f0501"><tt>c891413</tt></a></p>
<p dir="auto">These commits clear $this->refs inside the Symfony\Component\Yaml\Parser\parse method and references to anchors in previously parsed files don't work. Removing the lines solves the problem and configurations based on such overrides/includes work as expected.</p>
<p dir="auto">Please, make a revision of the commited code and put some proper unit tests for such configurations.</p> | <p dir="auto">Hi there,</p>
<p dir="auto">At work we wanted to check if a date (in a form) was greater than "now". The problem was that we were using annotations in our entity for the validation and (apparently) there is no "simple" way to do so.</p>
<p dir="auto">The solutions which came to my mind were:</p>
<ul dir="auto">
<li>Use the "assert greater than" validator directly in the form type (<code class="notranslate">$builder->add('foo', 'bar', array('constraints' => new \DateTime())</code>)</li>
<li>Use the annotation <code class="notranslate">@Assert\True</code> on my date field and implement an <code class="notranslate">isDateValid</code> method</li>
<li>Create a dedicated annotation</li>
<li>Create an <code class="notranslate">@DateTime</code> annotation which would extends from <code class="notranslate">\DateTime</code> and could be used everywhere (in my case : <code class="notranslate">@Assert\GreaterThan(value = @DateTime)</code>)</li>
</ul>
<p dir="auto">I've chosen to implement the latest of my proposal (<code class="notranslate">@DateTime</code>), it works well (IMO it is flexible, clean and reusable) and I think it could be a very good idea to implement it in symfony.<br>
What do you think about it?<br>
If you feel like it, I can share my work.</p> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">include module</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<ul dir="auto">
<li>v2.3.0.0-0.3.rc3:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jan 12 2017, 17:59:37) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]```"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jan 12 2017, 17:59:37) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]```
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">default</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Fedora release 25 (Twenty Five)</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Dynamic include breaks variables in dependent role. I think it is related with "allow_duplicates: yes" in dependent role. It looks like dynamic include uses the first "scope" of variables.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<ul dir="auto">
<li>test.yml:</li>
</ul>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
- hosts: localhost
roles:
- role: a
a:
name: a1
- role: a
a:
name: a2"><pre class="notranslate">---
- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span>
<span class="pl-ent">roles</span>:
- <span class="pl-ent">role</span>: <span class="pl-s">a</span>
<span class="pl-ent">a</span>:
<span class="pl-ent">name</span>: <span class="pl-c1">a1</span>
- <span class="pl-ent">role</span>: <span class="pl-s">a</span>
<span class="pl-ent">a</span>:
<span class="pl-ent">name</span>: <span class="pl-c1">a2</span></pre></div>
<ul dir="auto">
<li>roles/a/meta/main.yml:</li>
</ul>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
dependencies:
- role: b
b:
name: "{{ a.name }}""><pre class="notranslate">---
<span class="pl-ent">dependencies</span>:
- <span class="pl-ent">role</span>: <span class="pl-s">b</span>
<span class="pl-ent">b</span>:
<span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ a.name }}<span class="pl-pds">"</span></span></pre></div>
<ul dir="auto">
<li>roles/a/tasks/main.yml</li>
</ul>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
- name: output name
debug:
msg: "{{ a.name }}"
- include: include.yml
static: no"><pre class="notranslate">---
- <span class="pl-ent">name</span>: <span class="pl-s">output name</span>
<span class="pl-ent">debug</span>:
<span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ a.name }}<span class="pl-pds">"</span></span>
- <span class="pl-ent">include</span>: <span class="pl-s">include.yml</span>
<span class="pl-ent">static</span>: <span class="pl-s">no</span></pre></div>
<ul dir="auto">
<li>roles/a/tasks/include.yml:</li>
</ul>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
- name: output name in include
debug:
msg: "{{ a.name }}""><pre class="notranslate">---
- <span class="pl-ent">name</span>: <span class="pl-s">output name in include</span>
<span class="pl-ent">debug</span>:
<span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ a.name }}<span class="pl-pds">"</span></span></pre></div>
<ul dir="auto">
<li>roles/b/meta/main.yml:</li>
</ul>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
allow_duplicates: yes"><pre class="notranslate">---
<span class="pl-ent">allow_duplicates</span>: <span class="pl-s">yes</span></pre></div>
<ul dir="auto">
<li>roles/b/tasks/main.yml:</li>
</ul>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
- name: output name
debug:
msg: "{{ b.name }}"
- include: include.yml
static: no"><pre class="notranslate">---
- <span class="pl-ent">name</span>: <span class="pl-s">output name</span>
<span class="pl-ent">debug</span>:
<span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ b.name }}<span class="pl-pds">"</span></span>
- <span class="pl-ent">include</span>: <span class="pl-s">include.yml</span>
<span class="pl-ent">static</span>: <span class="pl-s">no</span></pre></div>
<ul dir="auto">
<li>roles/b/tasks/include.yml:</li>
</ul>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
- name: output name in include
debug:
msg: "{{ b.name }}""><pre class="notranslate">---
- <span class="pl-ent">name</span>: <span class="pl-s">output name in include</span>
<span class="pl-ent">debug</span>:
<span class="pl-ent">msg</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ b.name }}<span class="pl-pds">"</span></span></pre></div>
<p dir="auto">I have made test repo: <a href="https://github.com/mesk41in/ansible-include-test">https://github.com/mesk41in/ansible-include-test</a>.</p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">In second task "b : output name in include" value of "msg" must be "a2".</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] *****************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [b : output name] ***********************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a1"
}
TASK [b : include] ***************************************************************************************************************************************************************************************************************************
included: /root/Documents/ansible_include_test/roles/b/tasks/include.yml for localhost
TASK [b : output name in include] ************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a1"
}
TASK [a : output name] ***********************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a1"
}
TASK [a : include] ***************************************************************************************************************************************************************************************************************************
included: /root/Documents/ansible_include_test/roles/a/tasks/include.yml for localhost
TASK [a : output name in include] ************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a1"
}
TASK [b : output name] ***********************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a2"
}
TASK [b : include] ***************************************************************************************************************************************************************************************************************************
included: /root/Documents/ansible_include_test/roles/b/tasks/include.yml for localhost
TASK [b : output name in include] ************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a1"
}
TASK [a : output name] ***********************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a2"
}
TASK [a : include] ***************************************************************************************************************************************************************************************************************************
included: /root/Documents/ansible_include_test/roles/a/tasks/include.yml for localhost
TASK [a : output name in include] ************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a2"
}
PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
localhost : ok=13 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [localhost] *****************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
ok: [localhost]
TASK [b : output name] ***********************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a1"
}
TASK [b : include] ***************************************************************************************************************************************************************************************************************************
included: /root/Documents/ansible_include_test/roles/b/tasks/include.yml for localhost
TASK [b : output name in include] ************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a1"
}
TASK [a : output name] ***********************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a1"
}
TASK [a : include] ***************************************************************************************************************************************************************************************************************************
included: /root/Documents/ansible_include_test/roles/a/tasks/include.yml for localhost
TASK [a : output name in include] ************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a1"
}
TASK [b : output name] ***********************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a2"
}
TASK [b : include] ***************************************************************************************************************************************************************************************************************************
included: /root/Documents/ansible_include_test/roles/b/tasks/include.yml for localhost
TASK [b : output name in include] ************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a1"
}
TASK [a : output name] ***********************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a2"
}
TASK [a : include] ***************************************************************************************************************************************************************************************************************************
included: /root/Documents/ansible_include_test/roles/a/tasks/include.yml for localhost
TASK [a : output name in include] ************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"changed": false,
"msg": "a2"
}
PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
localhost : ok=13 changed=0 unreachable=0 failed=0
</code></pre></div> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ansible core</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0.0
config file =
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.0.0
config file =
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">None</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">macOS Sierra 10.11.6<br>
Python 2.7.13</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Lists containing integers are casted to strings when using <code class="notranslate">set_fact</code></p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: localhost
vars:
numbers:
- 123
- 234
tasks:
- name: show numbers[0]
debug: msg="{{ numbers[0] | to_json }}"
- name: set fact_number = numbers[0]
set_fact: fact_number="{{ numbers[0] }}"
- name: show fact_number
debug: msg="{{ fact_number | to_json }}"
- name: set fact_number = numbers[0] and expilicitly cast to int
set_fact: fact_number="{{ numbers[0] | int }}"
- name: show fact_number
debug: msg="{{ fact_number | to_json }}""><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span>
<span class="pl-ent">vars</span>:
<span class="pl-ent">numbers</span>:
- <span class="pl-c1">123</span>
- <span class="pl-c1">234</span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">show numbers[0]</span>
<span class="pl-ent">debug</span>: <span class="pl-s">msg="{{ numbers[0] | to_json }}"</span>
- <span class="pl-ent">name</span>: <span class="pl-s">set fact_number = numbers[0]</span>
<span class="pl-ent">set_fact</span>: <span class="pl-s">fact_number="{{ numbers[0] }}"</span>
- <span class="pl-ent">name</span>: <span class="pl-s">show fact_number</span>
<span class="pl-ent">debug</span>: <span class="pl-s">msg="{{ fact_number | to_json }}"</span>
- <span class="pl-ent">name</span>: <span class="pl-s">set fact_number = numbers[0] and expilicitly cast to int</span>
<span class="pl-ent">set_fact</span>: <span class="pl-s">fact_number="{{ numbers[0] | int }}"</span>
- <span class="pl-ent">name</span>: <span class="pl-s">show fact_number</span>
<span class="pl-ent">debug</span>: <span class="pl-s">msg="{{ fact_number | to_json }}"</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [show numbers[0]] *********************************************************
ok: [localhost] => {
"msg": "123"
}
TASK [set fact_number = numbers[0]] ********************************************
ok: [localhost]
TASK [show fact_number] ********************************************************
ok: [localhost] => {
"msg": "123"
}
TASK [set fact_number = numbers[0] and expilicitly cast to int] ****************
ok: [localhost]
TASK [show fact_number] ********************************************************
ok: [localhost] => {
"msg": "123"
}"><pre class="notranslate"><code class="notranslate">PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [show numbers[0]] *********************************************************
ok: [localhost] => {
"msg": "123"
}
TASK [set fact_number = numbers[0]] ********************************************
ok: [localhost]
TASK [show fact_number] ********************************************************
ok: [localhost] => {
"msg": "123"
}
TASK [set fact_number = numbers[0] and expilicitly cast to int] ****************
ok: [localhost]
TASK [show fact_number] ********************************************************
ok: [localhost] => {
"msg": "123"
}
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [show numbers[0]] *********************************************************
ok: [localhost] => {
"msg": "123"
}
TASK [set fact_number = numbers[0]] ********************************************
ok: [localhost]
TASK [show fact_number] ********************************************************
ok: [localhost] => {
"msg": "\"123\""
}
TASK [set fact_number = numbers[0] and expilicitly cast to int] ****************
ok: [localhost]
TASK [show fact_number] ********************************************************
ok: [localhost] => {
"msg": "\"123\""
}"><pre class="notranslate"><code class="notranslate">PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [show numbers[0]] *********************************************************
ok: [localhost] => {
"msg": "123"
}
TASK [set fact_number = numbers[0]] ********************************************
ok: [localhost]
TASK [show fact_number] ********************************************************
ok: [localhost] => {
"msg": "\"123\""
}
TASK [set fact_number = numbers[0] and expilicitly cast to int] ****************
ok: [localhost]
TASK [show fact_number] ********************************************************
ok: [localhost] => {
"msg": "\"123\""
}
</code></pre></div> | 0 |
<p dir="auto"><a href="http://pandas.pydata.org/developers.html" rel="nofollow">http://pandas.pydata.org/developers.html</a></p>
<ul dir="auto">
<li><a href="https://mail.python.org/mailman/listinfo/pandas-dev" rel="nofollow">https://mail.python.org/mailman/listinfo/pandas-dev</a></li>
</ul>
<p dir="auto">Examples:</p>
<ul dir="auto">
<li><a href="https://en.wikipedia.org/wiki/Responsible_disclosure" rel="nofollow">https://en.wikipedia.org/wiki/Responsible_disclosure</a></li>
<li><a href="https://docs.djangoproject.com/en/dev/internals/security/#reporting-security-issues" rel="nofollow">https://docs.djangoproject.com/en/dev/internals/security/#reporting-security-issues</a></li>
</ul> | <p dir="auto">Part of the tidelift setup. In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="440456666" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/13475" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/13475/hovercard" href="https://github.com/numpy/numpy/issues/13475">numpy/numpy#13475</a> / <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="440876233" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/13485" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/13485/hovercard" href="https://github.com/numpy/numpy/pull/13485">numpy/numpy#13485</a>, NumPy decided to just link to <a href="https://tidelift.com/docs/lifting/security" rel="nofollow">https://tidelift.com/docs/lifting/security</a>. That should suffice to us.</p>
<p dir="auto">Only thing to decide is who all gets notified with these reports.</p> | 1 |
<p dir="auto">Currently documentation builds emit many warnings. We should resolve them, then turn on <code class="notranslate">-WT --keep-going</code> to report warnings as errors so that new build problems are caught as they are created.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a></p> | <p dir="auto">I've seen a multitude of warnings in the docs build that reflected incorrect formatting and/or broken docs in the docs build. We should enforce a "no-warnings-allowed" situation for the docs.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a></p> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ProcessException: No such file or directory
Command:
/home/appname/dev/android-sdk-linux/build-tools/23.0.2/aapt package
-M android/AndroidManifest.xml
-A /tmp/flutter_tools7u0DqJ/assets
-I /home/appname/dev/android-sdk-linux/platforms/android-23/android.jar
-F /tmp/flutter_tools7u0DqJ/app.apk.unaligned
-S /home/appname/dev/bitbucket/appname-web/src/main/dart/appname-flutter/android/res /tmp/flutter_tools7u0DqJ/artifacts
dart:io Process.runSync
package:flutter_tools/src/base/process.dart 98 _runWithLoggingSync
package:flutter_tools/src/base/process.dart 69 runCheckedSync
package:flutter_tools/src/commands/apk.dart 100 _ApkBuilder.package
package:flutter_tools/src/commands/apk.dart 286 _buildApk
package:flutter_tools/src/commands/apk.dart 414 buildAndroid.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/flx.dart 197 buildInTempDir.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/flx.dart 295 assemble.<async>
dart:async _SyncCompleter.complete
package:flx/signing.dart 44 CipherParameters.seedRandom.<async>
===== asynchronous gap ===========================
dart:async _Completer.completeError
package:flutter_tools/src/commands/apk.dart 423 buildAndroid.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/flx.dart 197 buildInTempDir.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/flx.dart 295 assemble.<async>
dart:async _SyncCompleter.complete
package:flx/signing.dart 44 CipherParameters.seedRandom.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/commands/apk.dart buildAndroid
package:flutter_tools/src/commands/apk.dart 451 buildAll.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/commands/apk.dart buildAll
package:flutter_tools/src/commands/run.dart 158 startApp.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/commands/run.dart startApp
package:flutter_tools/src/commands/run.dart 109 RunCommand.runInProject.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/runner/flutter_command.dart 35 FlutterCommand.downloadToolchain.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/toolchain.dart 56 Toolchain.forConfigs.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/toolchain.dart 44 _getCompilerPath.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/artifacts.dart 214 ArtifactStore.getPath.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/commands/run.dart RunCommand.runInProject
package:flutter_tools/src/runner/flutter_command.dart 87 FlutterCommand.run.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/runner/flutter_command.dart 133 FlutterCommand._getDevicesForCommand.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/device.dart 60 DeviceManager.getAllConnectedDevices.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/runner/flutter_command.dart FlutterCommand.run
package:flutter_tools/src/commands/run.dart 86 RunCommand.run.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/dart/pub.dart 43 pubGet.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/commands/run.dart RunCommand.run
package:args/command_runner.dart 176 CommandRunner.runCommand.<fn>
dart:async Future.Future.sync
package:args/command_runner.dart 129 CommandRunner.runCommand
package:flutter_tools/src/runner/flutter_command_runner.dart 201 FlutterCommandRunner.runCommand
package:args/command_runner.dart 103 CommandRunner.run.<fn>
dart:async Future.Future.sync
package:args/command_runner.dart 103 CommandRunner.run
package:flutter_tools/executable.dart 72 main.<async>.<fn>.<async>
===== asynchronous gap ===========================
package:stack_trace Chain.capture
package:flutter_tools/executable.dart 65 main.<async>"><pre class="notranslate"><code class="notranslate">ProcessException: No such file or directory
Command:
/home/appname/dev/android-sdk-linux/build-tools/23.0.2/aapt package
-M android/AndroidManifest.xml
-A /tmp/flutter_tools7u0DqJ/assets
-I /home/appname/dev/android-sdk-linux/platforms/android-23/android.jar
-F /tmp/flutter_tools7u0DqJ/app.apk.unaligned
-S /home/appname/dev/bitbucket/appname-web/src/main/dart/appname-flutter/android/res /tmp/flutter_tools7u0DqJ/artifacts
dart:io Process.runSync
package:flutter_tools/src/base/process.dart 98 _runWithLoggingSync
package:flutter_tools/src/base/process.dart 69 runCheckedSync
package:flutter_tools/src/commands/apk.dart 100 _ApkBuilder.package
package:flutter_tools/src/commands/apk.dart 286 _buildApk
package:flutter_tools/src/commands/apk.dart 414 buildAndroid.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/flx.dart 197 buildInTempDir.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/flx.dart 295 assemble.<async>
dart:async _SyncCompleter.complete
package:flx/signing.dart 44 CipherParameters.seedRandom.<async>
===== asynchronous gap ===========================
dart:async _Completer.completeError
package:flutter_tools/src/commands/apk.dart 423 buildAndroid.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/flx.dart 197 buildInTempDir.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/flx.dart 295 assemble.<async>
dart:async _SyncCompleter.complete
package:flx/signing.dart 44 CipherParameters.seedRandom.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/commands/apk.dart buildAndroid
package:flutter_tools/src/commands/apk.dart 451 buildAll.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/commands/apk.dart buildAll
package:flutter_tools/src/commands/run.dart 158 startApp.<async>
===== asynchronous gap ===========================
dart:async Future.Future.microtask
package:flutter_tools/src/commands/run.dart startApp
package:flutter_tools/src/commands/run.dart 109 RunCommand.runInProject.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/runner/flutter_command.dart 35 FlutterCommand.downloadToolchain.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/toolchain.dart 56 Toolchain.forConfigs.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/toolchain.dart 44 _getCompilerPath.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/artifacts.dart 214 ArtifactStore.getPath.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/commands/run.dart RunCommand.runInProject
package:flutter_tools/src/runner/flutter_command.dart 87 FlutterCommand.run.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/runner/flutter_command.dart 133 FlutterCommand._getDevicesForCommand.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/device.dart 60 DeviceManager.getAllConnectedDevices.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/runner/flutter_command.dart FlutterCommand.run
package:flutter_tools/src/commands/run.dart 86 RunCommand.run.<async>
dart:async _SyncCompleter.complete
package:flutter_tools/src/dart/pub.dart 43 pubGet.<async>
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter_tools/src/commands/run.dart RunCommand.run
package:args/command_runner.dart 176 CommandRunner.runCommand.<fn>
dart:async Future.Future.sync
package:args/command_runner.dart 129 CommandRunner.runCommand
package:flutter_tools/src/runner/flutter_command_runner.dart 201 FlutterCommandRunner.runCommand
package:args/command_runner.dart 103 CommandRunner.run.<fn>
dart:async Future.Future.sync
package:args/command_runner.dart 103 CommandRunner.run
package:flutter_tools/executable.dart 72 main.<async>.<fn>.<async>
===== asynchronous gap ===========================
package:stack_trace Chain.capture
package:flutter_tools/executable.dart 65 main.<async>
</code></pre></div>
<hr>
<p dir="auto">flutter doctor</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Flutter root: /home/appname/dev/github/flutter.
[✓] Android toolchain - develop for Android devices (installed)
[✓] Android SDK - enable development for Android devices (installed)
[✓] Atom development environment - a lightweight development environment for Flutter (installed)
[✓] Atom editor (installed)
[✓] Flutter plugin - adds Flutter specific functionality to Atom (installed)
Flutter from https://github.com/flutter/flutter.git (on alpha)
flutter revision: 4860e63f444cf3786a6b136430f3058a7b851041 (12 hours ago)
engine revision : a53faaf7983025f83a2059021a409c6e98beb58d"><pre class="notranslate"><code class="notranslate">Flutter root: /home/appname/dev/github/flutter.
[✓] Android toolchain - develop for Android devices (installed)
[✓] Android SDK - enable development for Android devices (installed)
[✓] Atom development environment - a lightweight development environment for Flutter (installed)
[✓] Atom editor (installed)
[✓] Flutter plugin - adds Flutter specific functionality to Atom (installed)
Flutter from https://github.com/flutter/flutter.git (on alpha)
flutter revision: 4860e63f444cf3786a6b136430f3058a7b851041 (12 hours ago)
engine revision : a53faaf7983025f83a2059021a409c6e98beb58d
</code></pre></div>
<hr>
<p dir="auto">This is on a brand new project generated by flutter create. flutter devices sees my phone. flutter run or flutter apk from command line, same error. flutter build seems to work.</p>
<p dir="auto">Ubuntu/VirtualBox</p>
<p dir="auto">I checked the existence of all the fixed files. Seems to be related to one of the temp paths. Any ideas?</p> | <p dir="auto">In compiling an app via flutter start you can get an error saying it can't find/execute aapt.</p>
<p dir="auto">This is due to the issue outlined here:</p>
<p dir="auto"><a href="http://stackoverflow.com/questions/19523502/how-to-make-androids-aapt-and-adb-work-on-64-bit-ubuntu-without-ia32-libs-work" rel="nofollow">http://stackoverflow.com/questions/19523502/how-to-make-androids-aapt-and-adb-work-on-64-bit-ubuntu-without-ia32-libs-work</a></p>
<p dir="auto">I ran into this over the weekend and without stumbling across that stack overflow I wouldn't have been able to get my flutter app to work for android.</p> | 1 |
<p dir="auto">When using Deno.compile (v1.1.1), the output doesn't have the import paths with the correct ext</p>
<h3 dir="auto">Compile config:</h3>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const [messages, result] = await Deno.compile(input, undefined, {
target: 'es6',
module: 'es6',
lib: ['dom', 'esnext'],
})"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">messages</span><span class="pl-kos">,</span> <span class="pl-s1">result</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">compile</span><span class="pl-kos">(</span><span class="pl-s1">input</span><span class="pl-kos">,</span> <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">target</span>: <span class="pl-s">'es6'</span><span class="pl-kos">,</span>
<span class="pl-c1">module</span>: <span class="pl-s">'es6'</span><span class="pl-kos">,</span>
<span class="pl-c1">lib</span>: <span class="pl-kos">[</span><span class="pl-s">'dom'</span><span class="pl-kos">,</span> <span class="pl-s">'esnext'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<h3 dir="auto">Source:</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16139979/85190319-a49b5e80-b28d-11ea-95bd-d5a6f24dd6ae.png"><img src="https://user-images.githubusercontent.com/16139979/85190319-a49b5e80-b28d-11ea-95bd-d5a6f24dd6ae.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Output:</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16139979/85190292-4cfcf300-b28d-11ea-85fd-f40b229ecdd6.png"><img src="https://user-images.githubusercontent.com/16139979/85190292-4cfcf300-b28d-11ea-85fd-f40b229ecdd6.png" alt="image" style="max-width: 100%;"></a></p> | <h2 dir="auto">Problem</h2>
<p dir="auto"><code class="notranslate">Deno.compile()</code> does not convert local import URLs from <code class="notranslate">.ts</code> extension to <code class="notranslate">.js</code> extension, making it impossible to use inside browser and Node.js.</p>
<h2 dir="auto">Steps to reproduce</h2>
<p dir="auto">Run <a href="https://gist.github.com/KSXGitHub/c94a9d7eb8e976f1126b4b9dfeba0497">this file</a> (<code class="notranslate">deno run https://gist.githubusercontent.com/KSXGitHub/c94a9d7eb8e976f1126b4b9dfeba0497/raw/004a9ddb6872b9a2f05506f13f3efdfd6edd6d69/tmp.ts</code>).</p>
<h2 dir="auto">Expected behavior</h2>
<ol dir="auto">
<li>All local import URLs in output JS files should have <code class="notranslate">.js</code> extension.</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// foo.js should look like this
export * from "./bar.js";"><pre class="notranslate"><span class="pl-c">// foo.js should look like this</span>
<span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">"./bar.js"</span><span class="pl-kos">;</span></pre></div>
<ol start="2" dir="auto">
<li>All local import URLs in output TypeScript definition files (<code class="notranslate">.d.ts</code>) should have no extension.</li>
</ol>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// foo.d.ts should look like this
export * from "./bar";"><pre class="notranslate"><span class="pl-c">// foo.d.ts should look like this</span>
<span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">"./bar"</span><span class="pl-kos">;</span></pre></div>
<h2 dir="auto">Actual behavior</h2>
<p dir="auto">All local import URLs are preserved, which is incorrect.</p> | 1 |
<p dir="auto">by <strong>an2048</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
Build and run the drawing example (or any other) from the Walk project
(<a href="https://github.com/lxn/walk)">https://github.com/lxn/walk)</a>
What is the expected output?
The program should not panic.
What do you see instead?
throw: too many callback functions
runtime.throw+0x42 /go/src/pkg/runtime/runtime.c:102
runtime.throw(0x931e5b, 0x5)
runtime.compilecallback+0xe4 /go/src/pkg/runtime/windows/thread.c:377
runtime.compilecallback(0x6462ec, 0x4ffd87, 0x10f39501, 0x4ffab0)
syscall.NewCallback+0x39 /go/src/pkg/runtime/windows/syscall.c:26
syscall.NewCallback(0x6462ec, 0x4ffd87, 0x6462ec, 0x4ffd87)
walk.init·2+0xff
C:/devel/projects/eclipse_workspace/walk/src/pkg/walk/webview_ioleinplaceframe.go:37
walk.init·2()
walk.init+0x597 C:/devel/projects/eclipse_workspace/walk/src/pkg/walk/action.go:233
walk.init()
main.init+0x78
C:/devel/projects/eclipse_workspace/picos-order/src/cmd/picos-order/orderpoolpage.go:24
main.init()
runtime.mainstart+0x5 386/asm.s:91
runtime.mainstart()
runtime.goexit /go/src/pkg/runtime/proc.c:178
runtime.goexit()
----- goroutine created by -----
_rt0_386+0xbf 386/asm.s:80
Which compiler are you using (5g, 6g, 8g, gccgo)?
8g
Which operating system are you using?
Windows XP SP3
Which revision are you using? (hg identify)
3418f22c39eb weekly/weekly.2011-06-02
Please provide any additional information below.
The problem was introduced by 95553202a7a8 - runtime: do not garbage collect windows
callbacks</pre> | <pre class="notranslate">-- from code review 5574063: net: disable SO_REUSEADDR and SO_REUSEPORT on openbsd
(<a href="https://golang.org/issue/5574063" rel="nofollow">issue #5574063</a>) on golang-dev
Sorry, I should have been more specific here. The problem is not due
to use of SO_REUSEADDR on the listening socket - the issue is that we
are setting it on all sockets. As a result, the client performs a
connect() which results in the allocation of a randomised port number
- since SO_REUSEADDR/SO_REUSEPORT are enabled the port number is
permitted to already be in use and the normal duplication checks are
not performed. We then attempt to establish a TCP connection using
this already in use port number, which fails:
19425 test.out CALL socket(PF_INET,SOCK_STREAM,IPPROTO_IP)
19425 test.out RET socket 10/0xa
19425 test.out CALL fcntl(0xa,F_SETFD,FD_CLOEXEC)
19425 test.out RET fcntl 0
19425 test.out CALL setsockopt(0xa,SOL_SOCKET,SO_REUSEADDR,0xf84019ea00,0x4)
19425 test.out RET setsockopt 0
19425 test.out CALL setsockopt(0xa,SOL_SOCKET,SO_REUSEPORT,0xf84019ea08,0x4)
19425 test.out RET setsockopt 0
19425 test.out CALL setsockopt(0xa,SOL_SOCKET,SO_BROADCAST,0xf84019ea10,0x4)
19425 test.out RET setsockopt 0
19425 test.out CALL fcntl(0xa,F_GETFL,0)
19425 test.out RET fcntl 2
19425 test.out CALL fcntl(0xa,F_SETFL,0x6<O_RDWR|O_NONBLOCK>)
19425 test.out RET fcntl 0
19425 test.out CALL connect(0xa,0xf840186768,0x10)
19425 test.out STRU struct sockaddr { AF_INET, 127.0.0.1:43658 }
19425 test.out RET connect -1 errno 48 Address already in use
The other (and probably better) solution is to only set
SO_REUSEADDR/SO_REUSEPORT on sockets that will be listening, probably
via the addition of a func setDefaultListenSockopts(fd *netFD) that
would be called from ListenTCP() et al.</pre> | 0 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x ] bug report => 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></p>
<p dir="auto">Component styleUrls referred css files cannot relative loading background image.<br>
<strong>Expected behavior</strong></p>
<p dir="auto">Component styleUrls referred css files load relative loading background image according css file's path.<br>
<strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.X</li>
</ul>
<ul dir="auto">
<li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li>
</ul>
<ul dir="auto">
<li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br>
TypeScript 2.0.3 ES5</li>
<li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</li>
</ul> | <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></p>
<p dir="auto">When navigating to the current URL, the route is not reloaded and no navigation events are fired.</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">The router should navigate to the route, firing the navigation events.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto">Plunker:<br>
<a href="http://plnkr.co/edit/TlRwYcDmV0JacgD9UgFU?p=preview" rel="nofollow">http://plnkr.co/edit/TlRwYcDmV0JacgD9UgFU?p=preview</a></p>
<p dir="auto">Click the link for the current page and note the events don't fire.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto">My specific case is that I have been using the router events to enable me to scroll the page back to the top when the NavigationEnd event is fired. This no longer gets fired when navigating to the current URL and so when someone is on my home page and scrolls down to the bottom, if they click a home link it doesn't scroll them back to the top. Also, if this were running as a standard website, the page would reload in this circumstance. This used to work absolutely fine but has since changed after upgrading.</p>
<p dir="auto">At the very least it would be good to be able to have an option when initialising the routes to change this behaviour.</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.3.0</li>
</ul>
<ul dir="auto">
<li><strong>Browser:</strong> all</li>
</ul>
<ul dir="auto">
<li>
<p dir="auto"><strong>Language:</strong> all</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p>
</li>
</ul> | 0 |
<p dir="auto">ubuntu@slave1:/media/slave1temp/tensorflow_full$ python tensorflow/tensorflow/models/image/mnist/convolutional.py<br>
Extracting data/train-images-idx3-ubyte.gz<br>
Extracting data/train-labels-idx1-ubyte.gz<br>
Extracting data/t10k-images-idx3-ubyte.gz<br>
Extracting data/t10k-labels-idx1-ubyte.gz<br>
I tensorflow/core/common_runtime/local_device.cc:25] Local device intra op parallelism threads: 8<br>
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:888] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero<br>
I tensorflow/core/common_runtime/gpu/gpu_init.cc:88] Found device 0 with properties:<br>
name: GeForce GTX 750 Ti<br>
major: 5 minor: 0 memoryClockRate (GHz) 1.189<br>
pciBusID 0000:01:00.0<br>
Total memory: 2.00GiB<br>
Free memory: 1.96GiB<br>
I tensorflow/core/common_runtime/gpu/gpu_init.cc:112] DMA: 0<br>
I tensorflow/core/common_runtime/gpu/gpu_init.cc:122] 0: Y<br>
I tensorflow/core/common_runtime/gpu/gpu_device.cc:643] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 750 Ti, pci bus id: 0000:01:00.0)<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:47] Setting region size to 1896685568<br>
I tensorflow/core/common_runtime/local_session.cc:45] Local session inter op parallelism threads: 8<br>
Initialized!<br>
Epoch 0.00<br>
Minibatch loss: 12.054, learning rate: 0.010000<br>
Minibatch error: 90.6%<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 256 (256B) Pool: chunks: 64 free: 35 cumulative malloc: 93 cumulative freed: 64<br>
Number of chunks: 64, in_use chunks: 29<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 2048 (2.0KiB) Pool: chunks: 8 free: 4 cumulative malloc: 7 cumulative freed: 3<br>
Number of chunks: 8, in_use chunks: 4<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 4096 (4.0KiB) Pool: chunks: 16 free: 13 cumulative malloc: 18 cumulative freed: 15<br>
Number of chunks: 16, in_use chunks: 3<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 32768 (32.0KiB) Pool: chunks: 8 free: 5 cumulative malloc: 9 cumulative freed: 6<br>
Number of chunks: 8, in_use chunks: 3<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 139264 (136.0KiB) Pool: chunks: 15 free: 15 cumulative malloc: 16 cumulative freed: 16<br>
Number of chunks: 15, in_use chunks: 0<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 212992 (208.0KiB) Pool: chunks: 12 free: 9 cumulative malloc: 14 cumulative freed: 11<br>
Number of chunks: 12, in_use chunks: 3<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 278528 (272.0KiB) Pool: chunks: 1 free: 1 cumulative malloc: 1 cumulative freed: 1<br>
Number of chunks: 1, in_use chunks: 0<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 851968 (832.0KiB) Pool: chunks: 4 free: 4 cumulative malloc: 4 cumulative freed: 4<br>
Number of chunks: 4, in_use chunks: 0<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/17039362abcd0b2aeb05f148f99dc22e81faa256/hovercard" href="https://github.com/tensorflow/tensorflow/commit/17039362abcd0b2aeb05f148f99dc22e81faa256"><tt>1703936</tt></a> (1.62MiB) Pool: chunks: 6 free: 6 cumulative malloc: 6 cumulative freed: 6<br>
Number of chunks: 6, in_use chunks: 0<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 2883584 (2.75MiB) Pool: chunks: 1 free: 1 cumulative malloc: 1 cumulative freed: 1<br>
Number of chunks: 1, in_use chunks: 0<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/3407872626dc608f3d82ddbcf03f5c610646c1c1/hovercard" href="https://github.com/tensorflow/tensorflow/commit/3407872626dc608f3d82ddbcf03f5c610646c1c1"><tt>3407872</tt></a> (3.25MiB) Pool: chunks: 8 free: 8 cumulative malloc: 9 cumulative freed: 9<br>
Number of chunks: 8, in_use chunks: 0<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 6815744 (6.50MiB) Pool: chunks: 12 free: 9 cumulative malloc: 18 cumulative freed: 15<br>
Number of chunks: 12, in_use chunks: 3<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 15728640 (15.00MiB) Pool: chunks: 1 free: 0 cumulative malloc: 1 cumulative freed: 0<br>
Number of chunks: 1, in_use chunks: 1<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 20971520 (20.00MiB) Pool: chunks: 1 free: 1 cumulative malloc: 1 cumulative freed: 1<br>
Number of chunks: 1, in_use chunks: 0<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 125829120 (120.00MiB) Pool: chunks: 1 free: 0 cumulative malloc: 1 cumulative freed: 0<br>
Number of chunks: 1, in_use chunks: 1<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 251658240 (240.00MiB) Pool: chunks: 0 free: 0 cumulative malloc: 0 cumulative freed: 0<br>
Number of chunks: 0, in_use chunks: 0<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:339] Chunk size: 503316480 (480.00MiB) Pool: chunks: 3 free: 3 cumulative malloc: 3 cumulative freed: 3<br>
Number of chunks: 3, in_use chunks: 0<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:345] Aggregate Region Memory: 1896685568 (1.77GiB)<br>
I tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:347] Aggregate Chunk Memory: 1803329536 (1.68GiB)<br>
W tensorflow/core/common_runtime/gpu/gpu_region_allocator.cc:89] Out of GPU memory, see memory state dump above<br>
W tensorflow/core/kernels/conv_ops.cc:162] Resource exhausted: OOM when allocating tensor with shapedim { size: 5000 } dim { size: 14 } dim { size: 14 } dim { size: 64 }<br>
W tensorflow/core/common_runtime/executor.cc:1027] 0x57b6090 Compute status: Resource exhausted: OOM when allocating tensor with shapedim { size: 5000 } dim { size: 14 } dim { size: 14 } dim { size: 64 }<br>
[[Node: Conv2D_3 = Conv2D[T=DT_FLOAT, padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/gpu:0"](MaxPool_2, Variable_2)]]<br>
W tensorflow/core/common_runtime/executor.cc:1027] 0x50bc640 Compute status: Resource exhausted: OOM when allocating tensor with shapedim { size: 5000 } dim { size: 14 } dim { size: 14 } dim { size: 64 }<br>
[[Node: Conv2D_3 = Conv2D[T=DT_FLOAT, padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/gpu:0"](MaxPool_2, Variable_2)]]<br>
[[Node: Softmax_1/_45 = _Recv<a href="">client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_735_Softmax_1", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"</a>]]<br>
Traceback (most recent call last):<br>
File "tensorflow/tensorflow/models/image/mnist/convolutional.py", line 270, in <br>
tf.app.run()<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/default/_app.py", line 11, in run<br>
sys.exit(main(sys.argv))<br>
File "tensorflow/tensorflow/models/image/mnist/convolutional.py", line 258, in main<br>
validation_prediction.eval(), validation_labels)<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 405, in eval<br>
return _eval_using_default_session(self, feed_dict, self.graph, session)<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2728, in _eval_using_default_session<br>
return session.run(tensors, feed_dict)<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 345, in run<br>
results = self._do_run(target_list, unique_fetch_targets, feed_dict_string)<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 419, in _do_run<br>
e.code)<br>
tensorflow.python.framework.errors.ResourceExhaustedError: OOM when allocating tensor with shapedim { size: 5000 } dim { size: 14 } dim { size: 14 } dim { size: 64 }<br>
[[Node: Conv2D_3 = Conv2D[T=DT_FLOAT, padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/gpu:0"](MaxPool_2, Variable_2)]]<br>
[[Node: Softmax_1/_45 = _Recv<a href="">client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_735_Softmax_1", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"</a>]]<br>
Caused by op u'Conv2D_3', defined at:<br>
File "tensorflow/tensorflow/models/image/mnist/convolutional.py", line 270, in <br>
tf.app.run()<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/default/_app.py", line 11, in run<br>
sys.exit(main(sys.argv))<br>
File "tensorflow/tensorflow/models/image/mnist/convolutional.py", line 229, in main<br>
validation_prediction = tf.nn.softmax(model(validation_data_node))<br>
File "tensorflow/tensorflow/models/image/mnist/convolutional.py", line 179, in model<br>
padding='SAME')<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_nn_ops.py", line 207, in conv2d<br>
use_cudnn_on_gpu=use_cudnn_on_gpu, name=name)<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py", line 633, in apply_op<br>
op_def=op_def)<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1710, in create_op<br>
original_op=self._default_original_op, op_def=op_def)<br>
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 988, in <strong>init</strong><br>
self._traceback = _extract_stack()</p>
<p dir="auto">ubuntu@slave1:/media/slave1temp/tensorflow_full$</p> | <p dir="auto">Using tensorflow nightly.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf
with tf.name_scope('scope'):
x = tf.Variable(42, dtype=tf.float32)
ema = tf.train.ExponentialMovingAverage(decay=0.9)
apply_op = ema.apply([x])
average = ema.average(x)
print average.name # 'scope/scope/Variable/ExponentialMovingAverage:0'
print ema.average_name(x) # 'scope/Variable/ExponentialMovingAverage'"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">name_scope</span>(<span class="pl-s">'scope'</span>):
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">42</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">float32</span>)
<span class="pl-s1">ema</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-v">ExponentialMovingAverage</span>(<span class="pl-s1">decay</span><span class="pl-c1">=</span><span class="pl-c1">0.9</span>)
<span class="pl-s1">apply_op</span> <span class="pl-c1">=</span> <span class="pl-s1">ema</span>.<span class="pl-en">apply</span>([<span class="pl-s1">x</span>])
<span class="pl-s1">average</span> <span class="pl-c1">=</span> <span class="pl-s1">ema</span>.<span class="pl-en">average</span>(<span class="pl-s1">x</span>)
<span class="pl-k">print</span> <span class="pl-s1">average</span>.<span class="pl-s1">name</span> <span class="pl-c"># 'scope/scope/Variable/ExponentialMovingAverage:0'</span>
<span class="pl-k">print</span> <span class="pl-s1">ema</span>.<span class="pl-en">average_name</span>(<span class="pl-s1">x</span>) <span class="pl-c"># 'scope/Variable/ExponentialMovingAverage'</span></pre></div> | 0 |
<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">If SSR occurs on a page with scss imports, client-side routing works fine. If the SSR page does not include any scss imports, client-side routing then does not take place.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Clone and run example repo: <a href="https://github.com/kinetifex/next-sass-routing-bug">https://github.com/kinetifex/next-sass-routing-bug</a></li>
<li>Browse to <a href="http://localhost:3000/" rel="nofollow">http://localhost:3000/</a></li>
<li>Click on <code class="notranslate">With SCSS import</code> link</li>
<li>Notice route does not change and no errors present.
<ul dir="auto">
<li>Also note there is no <code class="notranslate">.css</code> downloaded in Network tab</li>
</ul>
</li>
</ol>
<p dir="auto">When it works:</p>
<ol dir="auto">
<li>Run example app</li>
<li>Browse to <a href="http://localhost:3000/with-scss" rel="nofollow">http://localhost:3000/with-scss</a>
<ul dir="auto">
<li>The <code class="notranslate">.css</code> file will download in Network tab</li>
</ul>
</li>
<li>Click on <code class="notranslate">Index</code> link</li>
<li>Click on <code class="notranslate">With SCSS import</code> link</li>
<li>Notice it works this time.</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Routing to pages with scss imports should work.</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: macOS</li>
<li>Browser: chrome, firefox, safari</li>
<li>Version of Next.js: 7.0.2</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">This is using <code class="notranslate">@zeit/next-sass</code> plugin, though I believe the error to be next.js related, possibly with <code class="notranslate">_document.js</code></p> | <p dir="auto">Noticied that in Safari (11.1), using the back/forward buttons with a custom express server fails to pass plain type objects via <code class="notranslate">getInitialProps</code>. This is causing errors due to running methods on <code class="notranslate">undefined</code> objects when users on Safari navigate using the back/forward buttons.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Objects passed from server routes through <code class="notranslate">gitInitialProps</code> should persist even when using back/forward buttons in the browser.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Objects passed from server routes through <code class="notranslate">gitInitialProps</code> are not persisting when using back/forward buttons in the browser.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">See this repo I created, it includes steps: <a href="https://github.com/jhoffmcd/next-test-custom-server#test-2">https://github.com/jhoffmcd/next-test-custom-server#test-2</a></p>
<h2 dir="auto">Context</h2>
<p dir="auto">I have a client site where a data object being passed by the server is not available on back/forward action, thus creating an error page for users. (Other types seem fine, arrays, strings, etc)<br>
Could be related to: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="238358041" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/2360" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/2360/hovercard" href="https://github.com/vercel/next.js/issues/2360">#2360</a><br>
If custom <code class="notranslate">popstate</code> handling is a must to ensure persistant SSR, can this be added to the <code class="notranslate">custom-server-express</code> example or documented more clearly somewhere?</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>5.0.1</td>
</tr>
<tr>
<td>node</td>
<td>8.9.4</td>
</tr>
<tr>
<td>OS</td>
<td>osx 10.13.4</td>
</tr>
<tr>
<td>browser</td>
<td>safari 11.1</td>
</tr>
<tr>
<td>express</td>
<td>4.14.0</td>
</tr>
<tr>
<td>react</td>
<td>16.3.0</td>
</tr>
</tbody>
</table> | 0 |
<h3 dir="auto">Problem</h3>
<p dir="auto">The landing page for the matplotlib documentation link <a href="https://matplotlib.org/devdocs/contents.html" rel="nofollow">https://matplotlib.org/devdocs/contents.html</a> is simply a table of contents, which can be hard to navigate for someone unfamiliar with matplotlib.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1300499/106089175-6bfe1600-60f5-11eb-853f-ce08ba1d92e0.png"><img src="https://user-images.githubusercontent.com/1300499/106089175-6bfe1600-60f5-11eb-853f-ce08ba1d92e0.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Suggested Improvement</h3>
<p dir="auto">Rework this page so there's some roadmapping/guidance on what the different parts of the documentation are. For example, the Pandas docs (<a href="https://pandas.pydata.org/docs/" rel="nofollow">https://pandas.pydata.org/docs/</a>):<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1300499/106089349-cb5c2600-60f5-11eb-8759-59e2b6b8f05f.png"><img src="https://user-images.githubusercontent.com/1300499/106089349-cb5c2600-60f5-11eb-8759-59e2b6b8f05f.png" alt="image" style="max-width: 100%;"></a><br>
Or the numpy docs which require less HTML/CSS/work but still has more guidance (<a href="https://numpy.org/doc/stable/" rel="nofollow">https://numpy.org/doc/stable/</a>):<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1300499/106089546-20983780-60f6-11eb-9ba9-60d144c9b6a8.png"><img src="https://user-images.githubusercontent.com/1300499/106089546-20983780-60f6-11eb-9ba9-60d144c9b6a8.png" alt="image" style="max-width: 100%;"></a></p> | <h3 dir="auto">Problem</h3>
<p dir="auto">The example in <a href="https://matplotlib.org/gallery/animation/histogram.html" rel="nofollow">https://matplotlib.org/gallery/animation/histogram.html</a> supposedly shows how to make an animated histogram out of some data (in the example, random numbers from a gaussian distribution). However, the example generates a wrong animation.</p>
<p dir="auto">This can be a big issue for people who do not have much experience tinkering with matplotlib and just plug their data into the example, thinking that it will work, and who might even end up going through all their data thinking that the histogram is correct and their data is bad (I just spent some time helping a friend to fix the histogram).</p>
<p dir="auto">The problem lies in the fact that <code class="notranslate">np.histogram</code> is used to generate a completely new histogram, from completely new data, at each timestep. However, only the top coordinates of each bin are updated. The code assumes that bins returned by <code class="notranslate">np.histogram</code> will always have the same x coordinates and do not need to be completely redrawn. This is of course wrong. The presence of outliers may force the bins to change width and may cause them to "move" towards one of the sides.</p>
<h3 dir="auto">Suggested Improvement</h3>
<p dir="auto">The simplest improvement is, of course, to update the <code class="notranslate">animate</code> function to completely redraw the bins, including inside the animate function more of the code that is already present outside it, to generate the patch in the first place:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def animate(i):
# simulate new data coming in
data = np.random.randn(1000)
n, bins = np.histogram(data, 100)
left = np.array(bins[:-1])
right = np.array(bins[1:])
top = bottom + n
verts[0::5, 0] = left
verts[0::5, 1] = bottom
verts[1::5, 0] = left
verts[1::5, 1] = top
verts[2::5, 0] = right
verts[2::5, 1] = top
verts[3::5, 0] = right
verts[3::5, 1] = bottom
return [patch, ]"><pre class="notranslate"><code class="notranslate">def animate(i):
# simulate new data coming in
data = np.random.randn(1000)
n, bins = np.histogram(data, 100)
left = np.array(bins[:-1])
right = np.array(bins[1:])
top = bottom + n
verts[0::5, 0] = left
verts[0::5, 1] = bottom
verts[1::5, 0] = left
verts[1::5, 1] = top
verts[2::5, 0] = right
verts[2::5, 1] = top
verts[3::5, 0] = right
verts[3::5, 1] = bottom
return [patch, ]
</code></pre></div>
<p dir="auto">Note that an alternative solution, namely the use of <code class="notranslate">np.digitize</code> instead of <code class="notranslate">np.histogram</code> to fit the new data to the existing histogram, would not work, as the new data might cover a different range than the original bins.</p>
<p dir="auto">This would make the code much better, but there is another hidden problem: <code class="notranslate">set_xlim</code> and <code class="notranslate">set_ylim</code> are currently called based on the first batch of data. This might cause two issues, which do not show up that much with gaussian-distributed data, but may arise in real-world usage:</p>
<ul dir="auto">
<li>if outliers force the bin distribution to be much to the left or much to the right, some bins might be outside of limits and not show up;</li>
<li>if some bins end up being taller, they will be "cut" at the top of the plot.</li>
</ul>
<p dir="auto">To solve this issue, it is necessary to know beforehand the left-most, right-most and tallest bin across <strong>all</strong> batches of data. However, the solution to this is not trivial and may change depending on the actual real-world scenario in which this example is being applied. So I am not sure which solution should be implemented in the example:</p>
<ul dir="auto">
<li>assume that it is not possible to analyze all data before starting the plotting; in this case, just hard-code reasonable values for left, right and top limits;</li>
<li>call <code class="notranslate">np.histogram</code> on each batch of data, find the left-most left bin edge, right-most right bin edge and tallest bin across all histograms computed, set those as the limits;</li>
<li>call <code class="notranslate">np.histogram</code> once on all the data, generating a single set of bins; set the left and right limits based on these bins; then use <code class="notranslate">np.digitize</code> to assign each data point from each batch to the correct bin; use these assignments to find the tallest bin, not the original values from <code class="notranslate">np.histogram</code> (those would be too high); the advantage of this solution over the previous one is that the bins themselves do not move; they only change height.</li>
</ul>
<p dir="auto">The second or third solution would require quite a big refactoring of the source code, which might be good in general, as the new version of <code class="notranslate">animate</code> shown above would have quite a lot of code duplication with the main script, which could be avoided with a refactoring.</p> | 0 |
<p dir="auto">It failed twice within last 5 runs with the following error:</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/horizontal_pod_autoscaling.go:56 Nov 26 18:58:15.098: Number of replicas has changed: expected 3, got 4"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:56 Nov 26 18:58:15.098: Number of replicas has changed: expected 3, got 4
</code></pre></div>
<p dir="auto"><a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-autoscaling/1851/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-autoscaling/1851/</a><br>
<a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-autoscaling/1849/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-autoscaling/1849/</a></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jszczepkowski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jszczepkowski">@jszczepkowski</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mwielgus/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mwielgus">@mwielgus</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/piosz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/piosz">@piosz</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmarek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmarek">@gmarek</a></p> | <p dir="auto">Instead of consuming 250 milli-cores, recourse consumer consumes nearly 400 milli-cores. This causes flakiness of autoscaling e2e tests:<br>
<a href="http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gce-autoscaling/1521/" rel="nofollow">http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gce-autoscaling/1521/</a></p>
<p dir="auto"><strong>Horizontal pod autoscaling [Skipped][Autoscaling Suite] should scale from 1 pod to 3 pods and from 3 to 5 (scale resource: CPU)</strong><br>
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:47<br>
Oct 28 03:27:29.523: Number of replicas has changed: expected 3, got 4</p>
<p dir="auto">Logs from controller-manager:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I1028 10:27:25.876466 6 metrics_client.go:135] Sum of cpu requested: {1.500 DecimalSI}
I1028 10:27:25.878913 6 metrics_client.go:172] Metrics available: {
"items": [
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 0
},
{
"timestamp": "2015-10-28T10:24:00Z",
"value": 180
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
},
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 227
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
},
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 122
},
{
"timestamp": "2015-10-28T10:24:00Z",
"value": 80
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
}
]
}
I1028 10:27:25.884889 6 horizontal.go:154] Successfull rescale of rc, old size: 3, new size: 4"><pre class="notranslate"><code class="notranslate">I1028 10:27:25.876466 6 metrics_client.go:135] Sum of cpu requested: {1.500 DecimalSI}
I1028 10:27:25.878913 6 metrics_client.go:172] Metrics available: {
"items": [
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 0
},
{
"timestamp": "2015-10-28T10:24:00Z",
"value": 180
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
},
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 227
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
},
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 122
},
{
"timestamp": "2015-10-28T10:24:00Z",
"value": 80
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
}
]
}
I1028 10:27:25.884889 6 horizontal.go:154] Successfull rescale of rc, old size: 3, new size: 4
</code></pre></div> | 1 |
<p dir="auto">(This is also on stack overflow <a href="https://stackoverflow.com/q/45619654/5134817" rel="nofollow">https://stackoverflow.com/q/45619654/5134817</a>)</p>
<p dir="auto">I have the following code (below) to produce a plot (a confusion matrix), and I want black lines between the squares, as below:</p>
<p dir="auto"><strong>Code</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
import matplotlib as mpl
from matplotlib.backends.backend_pgf import FigureCanvasPgf
mpl.backend_bases.register_backend('pdf', FigureCanvasPgf)
pgf_with_rc_fonts = {'figure.figsize': (15,9.3)} # Usually much longer.
mpl.rcParams.update(pgf_with_rc_fonts)
import matplotlib.pylab as plt
cm = np.array([[0.4, 0.6], [0.9, 0.1]])
classes = ['False', 'True']
plt.clf()
cmap = cmap=plt.cm.Blues
plt.imshow(cm, interpolation='none', cmap=cmap, aspect='equal', vmax=1, vmin=0)
plt.colorbar()
tick_marks = np.arange(len(classes))
plt.xticks(tick_marks, classes)
plt.yticks(tick_marks, classes)
plt.gca().set_xticks(np.arange(-.5, len(tick_marks), 1), minor=True)
plt.gca().set_yticks(np.arange(-.5, len(tick_marks), 1), minor=True)
plt.gca().grid(which='minor', color='k', linestyle='-')
plt.gca().tick_params('both', length=0, width=1, which='minor')"><pre class="notranslate"><code class="notranslate">import numpy as np
import matplotlib as mpl
from matplotlib.backends.backend_pgf import FigureCanvasPgf
mpl.backend_bases.register_backend('pdf', FigureCanvasPgf)
pgf_with_rc_fonts = {'figure.figsize': (15,9.3)} # Usually much longer.
mpl.rcParams.update(pgf_with_rc_fonts)
import matplotlib.pylab as plt
cm = np.array([[0.4, 0.6], [0.9, 0.1]])
classes = ['False', 'True']
plt.clf()
cmap = cmap=plt.cm.Blues
plt.imshow(cm, interpolation='none', cmap=cmap, aspect='equal', vmax=1, vmin=0)
plt.colorbar()
tick_marks = np.arange(len(classes))
plt.xticks(tick_marks, classes)
plt.yticks(tick_marks, classes)
plt.gca().set_xticks(np.arange(-.5, len(tick_marks), 1), minor=True)
plt.gca().set_yticks(np.arange(-.5, len(tick_marks), 1), minor=True)
plt.gca().grid(which='minor', color='k', linestyle='-')
plt.gca().tick_params('both', length=0, width=1, which='minor')
</code></pre></div>
<p dir="auto"><strong>Plots</strong></p>
<p dir="auto">This produces the following plot:</p>
<p dir="auto"><a href="https://i.stack.imgur.com/e3cwT.png" rel="nofollow"><img src="https://camo.githubusercontent.com/786eb15eb1720c0265dd85b16dd1b820d230067ecc138f4230f1007f9616baa0/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f65336377542e706e67" alt="Original" data-canonical-src="https://i.stack.imgur.com/e3cwT.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>The problem region</strong></p>
<p dir="auto">And the annoying thing is that:either than the box is not of the correct height, else the y axis minor tick is too low. I am not sure which, but <strong>it gives the ugly border</strong>:</p>
<p dir="auto"><a href="https://i.stack.imgur.com/IvoFC.png" rel="nofollow"><img src="https://camo.githubusercontent.com/06e47377f8a93e25fa41dbb62a75f7d1bf9be4d930ab5d94360ed3c7c9890131/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f49766f46432e706e67" alt="Ugly" data-canonical-src="https://i.stack.imgur.com/IvoFC.png" style="max-width: 100%;"></a></p>
<p dir="auto">However, when I remove the the parameter <code class="notranslate">'figure.figsize': (15,9.3)</code> this doesn't happen. I am unsure what is going wrong, but I want the larger figure sizes for nicer plots, and so I can use larger interactive plots.</p> | <p dir="auto">I have some problems with non-accurate placing of images created by imshow. Output to PNG works fine, but the squares are rectangular and misaligned with the grid when plotting small squares to PDF (order of magnitude around 1-2 inches for the whole plot). I didn't inspect the contents of PDF, but I suspect that coordinates might be written with too low precision.</p>
<p dir="auto">Here's a small example (maybe not the minimal possible, but hopefully short enough):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
import matplotlib.pyplot as plt
plt.gcf().set_size_inches([1,1])
a=np.random.rand(20,20)
im = plt.imshow(a, interpolation='nearest', origin='lower', extent=[-2,2,-2,2])
plt.gca().set_xticks(np.arange(-2,2,0.2))
plt.gca().set_yticks(np.arange(-2,2,0.2))
plt.gca().xaxis.set_ticklabels([])
plt.gca().yaxis.set_ticklabels([])
plt.grid(ls=':',lw=0.1,color='white')
plt.savefig('test.pdf')"><pre class="notranslate"><code class="notranslate">import numpy as np
import matplotlib.pyplot as plt
plt.gcf().set_size_inches([1,1])
a=np.random.rand(20,20)
im = plt.imshow(a, interpolation='nearest', origin='lower', extent=[-2,2,-2,2])
plt.gca().set_xticks(np.arange(-2,2,0.2))
plt.gca().set_yticks(np.arange(-2,2,0.2))
plt.gca().xaxis.set_ticklabels([])
plt.gca().yaxis.set_ticklabels([])
plt.grid(ls=':',lw=0.1,color='white')
plt.savefig('test.pdf')
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15606/2550376/6e526552-b682-11e3-820b-4c39a9ef6b1b.png"><img src="https://cloud.githubusercontent.com/assets/15606/2550376/6e526552-b682-11e3-820b-4c39a9ef6b1b.png" alt="x" style="max-width: 100%;"></a></p>
<p dir="auto">I'm using python 3.3 and matplotlib 1.3.1.</p> | 1 |
<h3 dir="auto">Preflight Checklist</h3>
<ul dir="auto">
<li>[ x ] I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li>[ x ] 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>[ x ] 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.1</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS 10.15.6</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>unknown</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">I should be able to save a pdf file from the pdf menu without the app crashing</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">the pdf saves, but the app crashes</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Electron fiddle:<br>
<a href="https://gist.github.com/c5de74c2973633e178803eef65b827df">https://gist.github.com/c5de74c2973633e178803eef65b827df</a></p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1267580/92657588-62feda80-f2f5-11ea-8639-6c63c576703f.png"><img src="https://user-images.githubusercontent.com/1267580/92657588-62feda80-f2f5-11ea-8639-6c63c576703f.png" alt="pdf-menu" style="max-width: 100%;"></a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">It seems to be any of the options in this menu that crashes the app.<br>
Removing the callback and running it like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mainWindow.webContents.print(printOptions)"><pre class="notranslate"><code class="notranslate">mainWindow.webContents.print(printOptions)
</code></pre></div>
<p dir="auto">seems to resolve it -- but I need the callback</p> | <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.0</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 7</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>Didn't tried with any previous versions</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Main process shouldn't crash when printing any content in the render process.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Main process crashes when trying to print <code class="notranslate">div</code> content</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Angular application running over Electron, and triggering <code class="notranslate">window.print()</code> from new window (using <code class="notranslate">window.open()</code>)</p> | 1 |
<p dir="auto">A crate that uses the core library gets a mysterious error message with a dummy span.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#[link(name = "rustmeta",
vers = "0.2",
uuid = "f19085c3-dd45-467d-b76b-cb07e5ecd13c")];
#[crate_type = "lib"];
use core(vers = "0.2");
use std(vers = "0.2");
use rustsyntax(vers = "0.2");
import core::*;
import syntax = rustsyntax;"><pre class="notranslate"><code class="notranslate">#[link(name = "rustmeta",
vers = "0.2",
uuid = "f19085c3-dd45-467d-b76b-cb07e5ecd13c")];
#[crate_type = "lib"];
use core(vers = "0.2");
use std(vers = "0.2");
use rustsyntax(vers = "0.2");
import core::*;
import syntax = rustsyntax;
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="../src/librustmeta/rustmeta.rc:1:0: 1:0 error: duplicate definition of module core
../src/librustmeta/rustmeta.rc:1 #[link(name = "rustmeta","><pre class="notranslate"><code class="notranslate">../src/librustmeta/rustmeta.rc:1:0: 1:0 error: duplicate definition of module core
../src/librustmeta/rustmeta.rc:1 #[link(name = "rustmeta",
</code></pre></div>
<p dir="auto">We know this happened because of the injected core library, so we should say so.</p> | <p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14604689" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/6670" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/6670/hovercard" href="https://github.com/rust-lang/rust/pull/6670">#6670</a> I add a basic form of static assertions (as suggested by graydon in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14473133" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/6568" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/6568/hovercard" href="https://github.com/rust-lang/rust/issues/6568">#6568</a>), but it's not nice to use. The biggest problem with it is you need a static variable with a name, that goes through trans and ends up in the object file.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kud1ing/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kud1ing">@kud1ing</a> suggested <code class="notranslate">static_assert!()</code>, which I think is a nice API but would need some invasive changed to the compiler (I think, uncertain).</p> | 0 |
<p dir="auto">The compiler issues an error message for a goto jumping over type or const declaration, like</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package main
func main() {
goto L1
type A int
L1:
}"><pre class="notranslate"><span class="pl-k">package</span> main
<span class="pl-k">func</span> <span class="pl-en">main</span>() {
<span class="pl-k">goto</span> L1
<span class="pl-k">type</span> <span class="pl-smi">A</span> <span class="pl-smi">int</span>
L1:
}</pre></div>
<p dir="auto">The specification forbids only jumping over variable declarations.</p> | <pre class="notranslate">go version devel +4a839bf01b58 Tue May 20 15:52:08 2014 +1000 + linux/amd64
The program is:
package main
func main() {
goto label
type X int
label:
}
$ go build goto.go
goto.go:3: goto label jumps over declaration of X at goto.go:4
The spec only requires new variables to not come into scope:
"Executing the "goto" statement must not cause any variables to come into
scope that were not already in scope at the point of the goto".</pre> | 1 |
<p dir="auto">Here's a snippet to reproduce the issue:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const x = new THREE.WebGLRenderTarget();
const y = new THREE.WebGLRenderTarget();
console.log( x.texture.image === y.texture.image ); // false
x.copy( y );
console.log( x.texture.image === y.texture.image ); // true"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">WebGLRenderTarget</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">WebGLRenderTarget</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">texture</span><span class="pl-kos">.</span><span class="pl-c1">image</span> <span class="pl-c1">===</span> <span class="pl-s1">y</span><span class="pl-kos">.</span><span class="pl-c1">texture</span><span class="pl-kos">.</span><span class="pl-c1">image</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// false</span>
<span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-en">copy</span><span class="pl-kos">(</span> <span class="pl-s1">y</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span> <span class="pl-s1">x</span><span class="pl-kos">.</span><span class="pl-c1">texture</span><span class="pl-kos">.</span><span class="pl-c1">image</span> <span class="pl-c1">===</span> <span class="pl-s1">y</span><span class="pl-kos">.</span><span class="pl-c1">texture</span><span class="pl-kos">.</span><span class="pl-c1">image</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// true</span></pre></div>
<p dir="auto">What this means is that when <code class="notranslate">x.setSize</code> is called the object at <code class="notranslate">y.texture.image</code> is inadvertently modified but and is now out of sync with the true dimensions of render target <code class="notranslate">y</code>.</p>
<p dir="auto"><a href="https://github.com/mrdoob/three.js/blob/dev/src/textures/Texture.js#L94">This line</a> is the problem in <code class="notranslate">Texture.copy</code>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="this.image = source.image;"><pre class="notranslate"><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">image</span> <span class="pl-c1">=</span> <span class="pl-s1">source</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I assume this was originally intended to handle moving over an <code class="notranslate"><img></code> tag without duplicating it -- <del>maybe it makes sense to duplicate the image tag? Or maybe it should clone the object in some cases:</del></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="this.image = source.image instanceof Image ? source.image : { ...source.image };"><pre class="notranslate"><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">image</span> <span class="pl-c1">=</span> <span class="pl-s1">source</span><span class="pl-kos">.</span><span class="pl-c1">image</span> <span class="pl-k">instanceof</span> <span class="pl-v">Image</span> ? <span class="pl-s1">source</span><span class="pl-kos">.</span><span class="pl-c1">image</span> : <span class="pl-kos">{</span> ...<span class="pl-s1">source</span><span class="pl-kos">.</span><span class="pl-c1">image</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><del>I imagine copy would behave a bit confusingly for <code class="notranslate">DataTexture</code>, as well.</del></p>
<p dir="auto"><em>Edit: I see now that retaining the image data reference is important for dealing with cloning textures before they've been fully loaded and is valuable for minimizing data duplication.</em></p> | <ul dir="auto">
<li>the face.material index is simply copied
<ul dir="auto">
<li><a href="https://github.com/mrdoob/three.js/blob/master/src/extras/GeometryUtils.js#L98">https://github.com/mrdoob/three.js/blob/master/src/extras/GeometryUtils.js#L98</a></li>
</ul>
</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="faceCopy.materialIndex = face.materialIndex;"><pre class="notranslate"><code class="notranslate">faceCopy.materialIndex = face.materialIndex;
</code></pre></div>
<ul dir="auto">
<li>maybe materialInddex should be reindexed as it were before r53
<ul dir="auto">
<li><a href="https://github.com/mrdoob/three.js/blob/r52/src/extras/GeometryUtils.js#L98">https://github.com/mrdoob/three.js/blob/r52/src/extras/GeometryUtils.js#L98</a></li>
</ul>
</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if ( face.materialIndex !== undefined ) {
var material2 = geometry2.materials[ face.materialIndex ];
var materialId2 = material2.id;
var materialIndex = geo1MaterialsMap[ materialId2 ];
if ( materialIndex === undefined ) {
materialIndex = geometry1.materials.length;
geo1MaterialsMap[ materialId2 ] = materialIndex;
geometry1.materials.push( material2 );
}
faceCopy.materialIndex = materialIndex;
}"><pre class="notranslate"><code class="notranslate"> if ( face.materialIndex !== undefined ) {
var material2 = geometry2.materials[ face.materialIndex ];
var materialId2 = material2.id;
var materialIndex = geo1MaterialsMap[ materialId2 ];
if ( materialIndex === undefined ) {
materialIndex = geometry1.materials.length;
geo1MaterialsMap[ materialId2 ] = materialIndex;
geometry1.materials.push( material2 );
}
faceCopy.materialIndex = materialIndex;
}
</code></pre></div> | 0 |
<p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS, Linux</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): Anaconda binary</li>
<li>TensorFlow version (use command below): 1.14</li>
<li>Python version: 3.7.3</li>
<li>Bazel version (if compiling from source): N/A</li>
<li>GCC/Compiler version (if compiling from source): N/A</li>
<li>CUDA/cuDNN version: N/A</li>
<li>GPU model and memory: N/A</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture<br>
<a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br>
You can also obtain the TensorFlow version with: 1. TF 1.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</code> 2. TF 2.0: <code class="notranslate">python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"</code></p>
<p dir="auto">$ python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"<br>
unknown 1.14.0</p>
<p dir="auto"><strong>Describe the current behavior</strong></p>
<p dir="auto">cloudpickle cannot unpickle <code class="notranslate">tf.keras</code> because the <code class="notranslate">deprecation_wrapper</code> introduced in 1.14.</p>
<p dir="auto">In one python session:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import cloudpickle
import tensorflow.keras as K
with open("/tmp/K.pkl", "wb") as f:
cloudpickle.dump(K, f)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">cloudpickle</span>
<span class="pl-k">import</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">keras</span> <span class="pl-k">as</span> <span class="pl-v">K</span>
<span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s">"/tmp/K.pkl"</span>, <span class="pl-s">"wb"</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>:
<span class="pl-s1">cloudpickle</span>.<span class="pl-en">dump</span>(<span class="pl-v">K</span>, <span class="pl-s1">f</span>)</pre></div>
<p dir="auto">Then start another python session:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import cloudpickle
with open("/tmp/K.pkl", "rb") as f:
cloudpickle.load(f)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">cloudpickle</span>
<span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s">"/tmp/K.pkl"</span>, <span class="pl-s">"rb"</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>:
<span class="pl-s1">cloudpickle</span>.<span class="pl-en">load</span>(<span class="pl-s1">f</span>)</pre></div>
<p dir="auto">Error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/meng/conda/envs/tf-1.14/lib/python3.7/site-packages/tensorflow/python/util/deprecation_wrapper.py", line 148, in __setstate__
sys.modules[d]._dw_wrapped_module,
KeyError: 'tensorflow.keras'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "<stdin>", line 2, in <module>
File "/Users/meng/conda/envs/tf-1.14/lib/python3.7/site-packages/tensorflow/python/util/deprecation_wrapper.py", line 148, in __setstate__
sys.modules[d]._dw_wrapped_module,
KeyError: 'tensorflow.keras'
</code></pre></div>
<p dir="auto"><strong>Describe the expected behavior</strong></p>
<p dir="auto">The same code worked in TensorFlow 1.13. In TensorFlow 1.13, <code class="notranslate">K.__module__</code> does not exist, while in TensorFlow 1.14, <code class="notranslate">K.__module__</code> is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'tensorflow.python.util.deprecation_wrapper'"><pre class="notranslate"><code class="notranslate">'tensorflow.python.util.deprecation_wrapper'
</code></pre></div>
<p dir="auto">It makes the <code class="notranslate">tensorflow.keras</code> module not loaded during unpickling.</p>
<p dir="auto">There are multiple applications use pickle to ship TensorFlow code to a remote machine to unpickle and execute, e.g., Spark, horovod.spark. So the behavior change would fail the jobs.</p>
<p dir="auto">Btw, one workaround is to do <code class="notranslate">from tensorflow import keras as K</code> instead of <code class="notranslate">import tensorflow.keras as K</code>. The diff is that <code class="notranslate">K.__name__</code> is <code class="notranslate">'tensorflow.python.keras.api._v1.keras'</code> in the first case and <code class="notranslate">tensorflow.keras</code> in the second. And pickle uses <code class="notranslate">__name__</code> to get global names: <a href="https://github.com/python/cpython/blob/3.7/Lib/pickle.py#L952">https://github.com/python/cpython/blob/3.7/Lib/pickle.py#L952</a></p>
<p dir="auto">cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alsrgv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alsrgv">@alsrgv</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hanyucui/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hanyucui">@hanyucui</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/annarev/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/annarev">@annarev</a></p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<p dir="auto">See above.</p>
<p dir="auto"><strong>Other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> | <p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes (code included below in the issue)</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS 10.14.3</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): pip</li>
<li>TensorFlow version (use command below): v2.0.0-beta1-5101-gc75bb66a99 2.0.0-rc0</li>
<li>Python version: Python 3.6.7 :: Anaconda, Inc.</li>
<li>Bazel version (if compiling from source): N/A</li>
<li>GCC/Compiler version (if compiling from source): N/A</li>
<li>CUDA/cuDNN version: N/A</li>
<li>GPU model and memory: N/A</li>
</ul>
<p dir="auto">Using cloudpickle to serialize a Python function that uses <code class="notranslate">tf.keras.Sequential</code> fails with a recursion error.</p>
<p dir="auto"><strong>Note</strong> that this works with <code class="notranslate">tensorflow==1.14.0</code>.</p>
<p dir="auto">I imagine it also fails with other things, not just <code class="notranslate">tf.keras.Sequential</code>.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import cloudpickle # cloudpickle.__version__ == '1.2.1'
import tensorflow as tf # tf.__version__ == '2.0.0-rc0'
def f():
tf.keras.Sequential
cloudpickle.loads(cloudpickle.dumps(f)) # This fails."><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">cloudpickle</span> <span class="pl-c"># cloudpickle.__version__ == '1.2.1'</span>
<span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> <span class="pl-c"># tf.__version__ == '2.0.0-rc0'</span>
<span class="pl-k">def</span> <span class="pl-en">f</span>():
<span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-v">Sequential</span>
<span class="pl-s1">cloudpickle</span>.<span class="pl-en">loads</span>(<span class="pl-s1">cloudpickle</span>.<span class="pl-en">dumps</span>(<span class="pl-s1">f</span>)) <span class="pl-c"># This fails.</span></pre></div>
<p dir="auto">The last line fails with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
RecursionError Traceback (most recent call last)
<ipython-input-23-25cc307e6227> in <module>
----> 1 cloudpickle.loads(cloudpickle.dumps(f))
~/anaconda3/lib/python3.6/site-packages/tensorflow/__init__.py in __getattr__(self, item)
48
49 def __getattr__(self, item):
---> 50 module = self._load()
51 return getattr(module, item)
52
~/anaconda3/lib/python3.6/site-packages/tensorflow/__init__.py in _load(self)
42 def _load(self):
43 """Import the target module and insert it into the parent's namespace."""
---> 44 module = _importlib.import_module(self.__name__)
45 self._parent_module_globals[self._local_name] = module
46 self.__dict__.update(module.__dict__)
... last 2 frames repeated, from the frame below ...
~/anaconda3/lib/python3.6/site-packages/tensorflow/__init__.py in __getattr__(self, item)
48
49 def __getattr__(self, item):
---> 50 module = self._load()
51 return getattr(module, item)
52
RecursionError: maximum recursion depth exceeded while calling a Python object"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
RecursionError Traceback (most recent call last)
<ipython-input-23-25cc307e6227> in <module>
----> 1 cloudpickle.loads(cloudpickle.dumps(f))
~/anaconda3/lib/python3.6/site-packages/tensorflow/__init__.py in __getattr__(self, item)
48
49 def __getattr__(self, item):
---> 50 module = self._load()
51 return getattr(module, item)
52
~/anaconda3/lib/python3.6/site-packages/tensorflow/__init__.py in _load(self)
42 def _load(self):
43 """Import the target module and insert it into the parent's namespace."""
---> 44 module = _importlib.import_module(self.__name__)
45 self._parent_module_globals[self._local_name] = module
46 self.__dict__.update(module.__dict__)
... last 2 frames repeated, from the frame below ...
~/anaconda3/lib/python3.6/site-packages/tensorflow/__init__.py in __getattr__(self, item)
48
49 def __getattr__(self, item):
---> 50 module = self._load()
51 return getattr(module, item)
52
RecursionError: maximum recursion depth exceeded while calling a Python object
</code></pre></div>
<p dir="auto">See <a href="https://stackoverflow.com/questions/57750920/ray-tensorflow-gpu-2-0-recursionerror/57761034#57761034" rel="nofollow">https://stackoverflow.com/questions/57750920/ray-tensorflow-gpu-2-0-recursionerror/57761034#57761034</a></p> | 1 |
<p dir="auto">Documenting the list of tasks for ubernetes for 1.3 based on various discussions:</p>
<p dir="auto"><strong>APIServer:</strong></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add code for <code class="notranslate">federated-apiserver</code> ( <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143621848" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23509" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/23509/hovercard" href="https://github.com/kubernetes/kubernetes/pull/23509">#23509</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add <code class="notranslate">federation/v1alpha1</code> group version and <code class="notranslate">cluster</code> resource ( <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="145834383" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23847" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/23847/hovercard" href="https://github.com/kubernetes/kubernetes/pull/23847">#23847</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add <code class="notranslate">service</code> resource to federated-apiserver (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="153339728" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/25232" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/25232/hovercard" href="https://github.com/kubernetes/kubernetes/pull/25232">#25232</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add an e2e test for federation apiserver (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/colhom/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/colhom">@colhom</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="152954826" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/25125" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/25125/hovercard" href="https://github.com/kubernetes/kubernetes/pull/25125">#25125</a>)</li>
</ul>
<p dir="auto"><strong>Client:</strong></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Generate auto generated clients (to be used by controllers) (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="147585485" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/24117" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/24117/hovercard" href="https://github.com/kubernetes/kubernetes/pull/24117">#24117</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> kubectl: Add support for cluster objects (kubectl get clusters) (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="146782682" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/24016" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/24016/hovercard" href="https://github.com/kubernetes/kubernetes/pull/24016">#24016</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> kubectl: Add federated-apiserver auth details to kubeconfig so that kubectl can talk to federated-apiserver.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> kubectl: Verify if any change is required for <code class="notranslate">kubectl describe service</code> (not required)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> hack/test-cmd.sh tests</li>
</ul>
<p dir="auto"><strong>Controller:</strong></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Bring up ubernetes controller manager ( <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143246418" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23430" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/23430/hovercard" href="https://github.com/kubernetes/kubernetes/pull/23430">#23430</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Write cluster controller: syncs state of registered kubernetes clusters.(<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143246418" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23430" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/23430/hovercard" href="https://github.com/kubernetes/kubernetes/pull/23430">#23430</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Service controller: delegate service creation to underlying clusters (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="145838254" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23848" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/23848/hovercard" href="https://github.com/kubernetes/kubernetes/issues/23848">#23848</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="146776609" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/24009" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/24009/hovercard" href="https://github.com/kubernetes/kubernetes/pull/24009">#24009</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143246418" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23430" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/23430/hovercard" href="https://github.com/kubernetes/kubernetes/pull/23430">#23430</a> )</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Service controller: Create load balancing apparatus on top of resulting cluster services.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> e2e tests</li>
</ul>
<p dir="auto"><strong>Tying together:</strong></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add a script to bring up the control plane (brings up federation-apiserver, controller managers and atleast one underlying kubernetes cluster) (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="152954826" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/25125" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/25125/hovercard" href="https://github.com/kubernetes/kubernetes/pull/25125">#25125</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Docs and example showing how it works</li>
</ul>
<p dir="auto">Future tasks (post 1.3):</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add <code class="notranslate">replicaset</code> resource to federated-apiserver ( <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="150993530" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/24764" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/24764/hovercard" href="https://github.com/kubernetes/kubernetes/pull/24764">#24764</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Write RS and subRS controllers/scheduler (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="142288106" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23269" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/23269/hovercard" href="https://github.com/kubernetes/kubernetes/issues/23269">#23269</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> HA: Etcd quorum</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> HA: Multiple ubernetes api servers and controller managers (one in each cluster)</li>
</ul>
<p dir="auto">@kubernetes/sig-cluster-federation</p> | <p dir="auto">If you google e.g. "kuberentes ha" you hit <a href="http://kubernetes.io/v1.0/docs/admin/high-availability.html" rel="nofollow">http://kubernetes.io/v1.0/docs/admin/high-availability.html</a>, which itself says that the page is an archived version of 1.1. It would be better to send users straight to the latest version.</p>
<p dir="auto">I think if we add canonical link tags pointing to the latest version that would both avoid a penalty for duplicated content and push people to the latest version by default, though I am sure that someone on the Google team has more knowledge here!</p>
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51628191" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/2838" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/2838/hovercard" href="https://github.com/kubernetes/kubernetes/issues/2838">#2838</a></p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/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>
<h2 dir="auto">Environment</h2>
<ul dir="auto">
<li>Dubbo version: 2.7.0+</li>
<li>Operating System version: mac</li>
<li>Java version: 1.8</li>
</ul>
<h2 dir="auto">Steps to reproduce this issue</h2>
<p dir="auto">Assume that there is an interface below:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package org.apache.dubbo.demo;
public interface DemoService {
String sayHello(String name);
}
package org.apache.dubbo.demo.provider;
import org.apache.dubbo.demo.DemoService;
public class DemoAService implements DemoService {
@Override
public String sayHello(String name) {
return "Hello " + name + ", response from provider: " + this.getClass().getSimpleName();
}
}
package org.apache.dubbo.demo.provider;
import org.apache.dubbo.demo.DemoService;
public class DemoBService implements DemoService {
@Override
public String sayHello(String name) {
return "Hello " + name + ", response from provider: " + this.getClass().getSimpleName();
}
}"><pre class="notranslate"><span class="pl-k">package</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">demo</span>;
<span class="pl-k">public</span> <span class="pl-k">interface</span> <span class="pl-smi">DemoService</span> {
<span class="pl-smi">String</span> <span class="pl-en">sayHello</span>(<span class="pl-smi">String</span> <span class="pl-s1">name</span>);
}
<span class="pl-k">package</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">demo</span>.<span class="pl-s1">provider</span>;
<span class="pl-k">import</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">demo</span>.<span class="pl-s1">DemoService</span>;
<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">DemoAService</span> <span class="pl-k">implements</span> <span class="pl-smi">DemoService</span> {
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-en">sayHello</span>(<span class="pl-smi">String</span> <span class="pl-s1">name</span>) {
<span class="pl-k">return</span> <span class="pl-s">"Hello "</span> + <span class="pl-s1">name</span> + <span class="pl-s">", response from provider: "</span> + <span class="pl-smi">this</span>.<span class="pl-en">getClass</span>().<span class="pl-en">getSimpleName</span>();
}
}
<span class="pl-k">package</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">demo</span>.<span class="pl-s1">provider</span>;
<span class="pl-k">import</span> <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">demo</span>.<span class="pl-s1">DemoService</span>;
<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">DemoBService</span> <span class="pl-k">implements</span> <span class="pl-smi">DemoService</span> {
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-en">sayHello</span>(<span class="pl-smi">String</span> <span class="pl-s1">name</span>) {
<span class="pl-k">return</span> <span class="pl-s">"Hello "</span> + <span class="pl-s1">name</span> + <span class="pl-s">", response from provider: "</span> + <span class="pl-smi">this</span>.<span class="pl-en">getClass</span>().<span class="pl-en">getSimpleName</span>();
}
}</pre></div>
<p dir="auto">dubbo-demo-provider.xml:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" <!-- service implementation, as same as regular local bean -->
<bean id="demoAService" class="org.apache.dubbo.demo.provider.DemoAService"/>
<!-- declare the service interface to be exported -->
<dubbo:service interface="org.apache.dubbo.demo.DemoService" ref="demoAService" group="demoA"/>
<!-- service implementation, as same as regular local bean -->
<bean id="demoBService" class="org.apache.dubbo.demo.provider.DemoBService"/>
<!-- declare the service interface to be exported -->
<dubbo:service interface="org.apache.dubbo.demo.DemoService" ref="demoBService" group="demoB"/>"><pre class="notranslate"><code class="notranslate"> <!-- service implementation, as same as regular local bean -->
<bean id="demoAService" class="org.apache.dubbo.demo.provider.DemoAService"/>
<!-- declare the service interface to be exported -->
<dubbo:service interface="org.apache.dubbo.demo.DemoService" ref="demoAService" group="demoA"/>
<!-- service implementation, as same as regular local bean -->
<bean id="demoBService" class="org.apache.dubbo.demo.provider.DemoBService"/>
<!-- declare the service interface to be exported -->
<dubbo:service interface="org.apache.dubbo.demo.DemoService" ref="demoBService" group="demoB"/>
</code></pre></div>
<h2 dir="auto">Start telnet call service:</h2>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="incubator-dubbo yeling$ telnet localhost 20880
dubbo>ls
org.apache.dubbo.demo.DemoService
org.apache.dubbo.demo.DemoService
dubbo>invoke org.apache.dubbo.demo.DemoService.sayHello("china")
"Hello china, response from provider: DemoAService""><pre class="notranslate">incubator-dubbo yeling$ telnet localhost 20880
dubbo<span class="pl-k">></span>ls
org.apache.dubbo.demo.DemoService
org.apache.dubbo.demo.DemoService
dubbo<span class="pl-k">></span>invoke org.apache.dubbo.demo.DemoService.sayHello(<span class="pl-s"><span class="pl-pds">"</span>china<span class="pl-pds">"</span></span>)
<span class="pl-s"><span class="pl-pds">"</span>Hello china, response from provider: DemoAService<span class="pl-pds">"</span></span></pre></div>
<ul dir="auto">
<li>Always only call the provider DemoAService,There's no way I can invoke to DemoBService.</li>
</ul> | <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 and 2.6.5</li>
<li>Operating System version: common linux vm</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>java process use dubbo 2.7.7 with org.apache package</li>
<li>copy dubbo 2.6.5 to process lib dir</li>
</ol>
<p dir="auto">so we have two ExtensionFactory</p>
<p dir="auto">2.7.7</p>
<p dir="auto">spring=org.apache.dubbo.config.spring.extension.SpringExtensionFactory<br>
adaptive=org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory<br>
spi=org.apache.dubbo.common.extension.factory.SpiExtensionFactory</p>
<p dir="auto">2.6.5<br>
spring=com.alibaba.dubbo.config.spring.extension.SpringExtensionFactory<br>
adaptive=com.alibaba.dubbo.common.extension.factory.AdaptiveExtensionFactory<br>
spi=com.alibaba.dubbo.common.extension.factory.SpiExtensionFactory</p>
<p dir="auto">when class run: org.apache.dubbo.common.extension.ExtensionLoader</p>
<p dir="auto">line:755~758</p>
<blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" for (LoadingStrategy strategy : strategies) {
loadDirectory(extensionClasses, strategy.directory(), type.getName(), strategy.preferExtensionClassLoader(), strategy.overridden(), strategy.excludedPackages());
loadDirectory(extensionClasses, strategy.directory(), type.getName().replace("org.apache", "com.alibaba"), strategy.preferExtensionClassLoader(), strategy.overridden(), strategy.excludedPackages());
}"><pre class="notranslate"><code class="notranslate"> for (LoadingStrategy strategy : strategies) {
loadDirectory(extensionClasses, strategy.directory(), type.getName(), strategy.preferExtensionClassLoader(), strategy.overridden(), strategy.excludedPackages());
loadDirectory(extensionClasses, strategy.directory(), type.getName().replace("org.apache", "com.alibaba"), strategy.preferExtensionClassLoader(), strategy.overridden(), strategy.excludedPackages());
}
</code></pre></div>
</blockquote>
<p dir="auto"><strong>when the secend loadDirectory run and it will find 2.6.5 META properties and load adaptive=com.alibaba.dubbo.common.extension.factory.AdaptiveExtensionFactory</strong></p>
<p dir="auto">and the line 877 can not go into ,for the class name of Adaptive are different ,maybe this judgment statement should change like :<br>
if (clazz.isAnnotationPresent(Adaptive.class) || clazz.isAnnotationPresent(com.alibaba.dubbo.common.extension.Adaptive.class)) {</p>
<p dir="auto">line:870~899</p>
<blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private void loadClass(Map<String, Class<?>> extensionClasses, java.net.URL resourceURL, Class<?> clazz, String name,
boolean overridden) throws NoSuchMethodException {
if (!type.isAssignableFrom(clazz)) {
throw new IllegalStateException("Error occurred when loading extension class (interface: " +
type + ", class line: " + clazz.getName() + "), class "
+ clazz.getName() + " is not subtype of interface.");
}
if (clazz.isAnnotationPresent(Adaptive.class)) {
cacheAdaptiveClass(clazz, overridden);
} else if (isWrapperClass(clazz)) {
cacheWrapperClass(clazz);
} else {
clazz.getConstructor();
if (StringUtils.isEmpty(name)) {
name = findAnnotationName(clazz);
if (name.length() == 0) {
throw new IllegalStateException("No such extension name for the class " + clazz.getName() + " in the config " + resourceURL);
}
}
String[] names = NAME_SEPARATOR.split(name);
if (ArrayUtils.isNotEmpty(names)) {
cacheActivateClass(clazz, names[0]);
for (String n : names) {
cacheName(clazz, n);
saveInExtensionClass(extensionClasses, clazz, n, overridden);
}
}
}
}"><pre class="notranslate"><code class="notranslate">private void loadClass(Map<String, Class<?>> extensionClasses, java.net.URL resourceURL, Class<?> clazz, String name,
boolean overridden) throws NoSuchMethodException {
if (!type.isAssignableFrom(clazz)) {
throw new IllegalStateException("Error occurred when loading extension class (interface: " +
type + ", class line: " + clazz.getName() + "), class "
+ clazz.getName() + " is not subtype of interface.");
}
if (clazz.isAnnotationPresent(Adaptive.class)) {
cacheAdaptiveClass(clazz, overridden);
} else if (isWrapperClass(clazz)) {
cacheWrapperClass(clazz);
} else {
clazz.getConstructor();
if (StringUtils.isEmpty(name)) {
name = findAnnotationName(clazz);
if (name.length() == 0) {
throw new IllegalStateException("No such extension name for the class " + clazz.getName() + " in the config " + resourceURL);
}
}
String[] names = NAME_SEPARATOR.split(name);
if (ArrayUtils.isNotEmpty(names)) {
cacheActivateClass(clazz, names[0]);
for (String n : names) {
cacheName(clazz, n);
saveInExtensionClass(extensionClasses, clazz, n, overridden);
}
}
}
}
</code></pre></div>
</blockquote>
<blockquote>
</blockquote> | 0 |
<p dir="auto">The following code fails with an <code class="notranslate">UndefRefError</code> on Julia 1.7:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct BadStruct{R,S}
named_tuple::NamedTuple{R,S}
n::Int
end
BadStruct(NamedTuple{}(), 0)"><pre class="notranslate"><span class="pl-k">struct</span> BadStruct{R,S}
named_tuple<span class="pl-k">::</span><span class="pl-c1">NamedTuple{R,S}</span>
n<span class="pl-k">::</span><span class="pl-c1">Int</span>
<span class="pl-k">end</span>
<span class="pl-c1">BadStruct</span>(<span class="pl-c1">NamedTuple</span><span class="pl-c1">{}</span>(), <span class="pl-c1">0</span>)</pre></div>
<p dir="auto">It also exits the REPL.</p>
<p dir="auto">I'm not sure what's going on here, but here are some observations:</p>
<ol dir="auto">
<li>I can't reproduce the error with only the named tuple in the struct.</li>
<li>With no type parameters (R, S), there's no crash.</li>
<li>When the Named Tuple is nonempty, there's no crash.</li>
<li>The construction of the struct succeeds, because <code class="notranslate">let x = BadStruct(NamedTuple{}(), 0); x.n end</code> works. But <code class="notranslate">let x = BadStruct(NamedTuple{}(), 0); x.named_tuple end</code> raises the UndefRefError, this time in Base.getproperty. So it seems the struct is being constructed, but the <code class="notranslate">named_tuple</code> field is not getting initialized properly? Note this example gives an error but does not kill the REPL.</li>
<li>This is possibly related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1077959043" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/43411" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/43411/hovercard" href="https://github.com/JuliaLang/julia/issues/43411">#43411</a>.</li>
</ol>
<p dir="auto">My <code class="notranslate">versioninfo()</code> is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.2.0)
CPU: Apple M1 Pro
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, cyclone)"><pre class="notranslate"><code class="notranslate">Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.2.0)
CPU: Apple M1 Pro
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, cyclone)
</code></pre></div>
<p dir="auto">but <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/femtomc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/femtomc">@femtomc</a> has reproduced the error, with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake-avx512)
Environment:
JULIA_VERSION = 1.6.1"><pre class="notranslate"><code class="notranslate">Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake-avx512)
Environment:
JULIA_VERSION = 1.6.1
</code></pre></div>
<p dir="auto">This issue came up because <a href="https://github.com/probcomp/Gen.jl">Gen.jl</a>'s <code class="notranslate">StaticChoiceMap</code> datatype is similar to the <code class="notranslate">BadStruct</code> above, and we noticed crashes when upgrading to Julia 1.7. (<a href="https://github.com/probcomp/Gen.jl/blob/44f5f1408caf05ff95932bb58d9f57907c5084e3/src/choice_map.jl#L350">https://github.com/probcomp/Gen.jl/blob/44f5f1408caf05ff95932bb58d9f57907c5084e3/src/choice_map.jl#L350</a>).</p>
<p dir="auto">The code works fine on my machine on Julia 1.6.3.</p>
<p dir="auto">Thanks!</p> | <p dir="auto">cf brief discussion on <a href="https://discourse.julialang.org/t/struct-wrapping-namedtuple-is-not-isbits-depending-on-how-it-is-defined/72965/9" rel="nofollow">discourse</a></p>
<p dir="auto">This bug(?) occurs on 1.7 but not on 1.6:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Wrapper{SYMS, TT}
x::NamedTuple{SYMS, TT}
end
randnt() = Wrapper((a = randn(), b = rand(), c = rand(1:5), d = randn(SVector{3, Float64})))
X = randnt()
@allocated randnt() # 64
isbits(X) # false
isbits(X.x) # true "><pre class="notranslate"><span class="pl-k">struct</span> Wrapper{SYMS, TT}
x<span class="pl-k">::</span><span class="pl-c1">NamedTuple{SYMS, TT}</span>
<span class="pl-k">end</span>
<span class="pl-en">randnt</span>() <span class="pl-k">=</span> <span class="pl-c1">Wrapper</span>((a <span class="pl-k">=</span> <span class="pl-c1">randn</span>(), b <span class="pl-k">=</span> <span class="pl-c1">rand</span>(), c <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">5</span>), d <span class="pl-k">=</span> <span class="pl-c1">randn</span>(SVector{<span class="pl-c1">3</span>, Float64})))
X <span class="pl-k">=</span> <span class="pl-c1">randnt</span>()
<span class="pl-c1">@allocated</span> <span class="pl-c1">randnt</span>() <span class="pl-c"><span class="pl-c">#</span> 64</span>
<span class="pl-c1">isbits</span>(X) <span class="pl-c"><span class="pl-c">#</span> false</span>
<span class="pl-c1">isbits</span>(X<span class="pl-k">.</span>x) <span class="pl-c"><span class="pl-c">#</span> true </span></pre></div>
<p dir="auto">But if the wrapper is defined differently then the <code class="notranslate">isbits == true</code> is recovered:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Wrapper1{NT}
x::NT
end
randnt1() = Wrapper1((a = randn(), b = rand(), c = rand(1:5), d = randn(SVector{3, Float64})))
X1 = randnt1()
@allocated randnt1() # 0
isbits(X1) # true
isbits(X1.x) # true"><pre class="notranslate"><span class="pl-k">struct</span> Wrapper1{NT}
x<span class="pl-k">::</span><span class="pl-c1">NT</span>
<span class="pl-k">end</span>
<span class="pl-en">randnt1</span>() <span class="pl-k">=</span> <span class="pl-c1">Wrapper1</span>((a <span class="pl-k">=</span> <span class="pl-c1">randn</span>(), b <span class="pl-k">=</span> <span class="pl-c1">rand</span>(), c <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">5</span>), d <span class="pl-k">=</span> <span class="pl-c1">randn</span>(SVector{<span class="pl-c1">3</span>, Float64})))
X1 <span class="pl-k">=</span> <span class="pl-c1">randnt1</span>()
<span class="pl-c1">@allocated</span> <span class="pl-c1">randnt1</span>() <span class="pl-c"><span class="pl-c">#</span> 0 </span>
<span class="pl-c1">isbits</span>(X1) <span class="pl-c"><span class="pl-c">#</span> true</span>
<span class="pl-c1">isbits</span>(X1<span class="pl-k">.</span>x) <span class="pl-c"><span class="pl-c">#</span> true</span></pre></div>
<p dir="auto">Because of this, it is easy enough to produce a work-around, but it feels like that shouldn't be necessary and the behaviour described above should not occur?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> versioninfo()
Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.1.0)
CPU: Apple M1 Max
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, cyclone)"><pre class="notranslate"><code class="notranslate">julia> versioninfo()
Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.1.0)
CPU: Apple M1 Max
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, cyclone)
</code></pre></div>
<p dir="auto">(built from source)</p> | 1 |
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: [1.30.0]</li>
<li>Operating System: [e.g. Windows]</li>
<li>Node.js version: [e.g. 12.22, 14.6]</li>
<li>Browser: [Chromium]</li>
<li>Extra: [electron test]</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<p dir="auto">Help us help you! Put down a short code snippet that illustrates your bug and<br>
that we can run and debug locally. For example:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const fileChooserPromise = window.waitForEvent('filechooser');
await window.getByText('click to select file').click();
const fileChooser = await fileChooserPromise;
await fileChooser.setFiles(`./devices.xlsx`);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">fileChooserPromise</span> <span class="pl-c1">=</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">waitForEvent</span><span class="pl-kos">(</span><span class="pl-s">'filechooser'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-s">'click to select file'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">fileChooser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">fileChooserPromise</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">fileChooser</span><span class="pl-kos">.</span><span class="pl-en">setFiles</span><span class="pl-kos">(</span><span class="pl-s">`./devices.xlsx`</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
If file is too large(more than 50M), it will choose large files mode ,the browser will get the file object containing path, such as {name: "devices. xlsx", row: {name: "devices. xlsx", path: "xxxx/devices. xlsx"...}...},else the browser will get the file object with the path properties is empty, such as {name: "devices. xlsx", row: {name: "devices. xlsx", path: ""...}...}</p> | <p dir="auto">My application uses the q-file feature of the quasar framework.<a href="https://quasar.dev/vue-components/file-picker#qfile-api" rel="nofollow">here</a> is the q-file link. When a file is uploaded, it gets the path parameter of the file in the files object array to find the local address where the file is located.<br>
This is the file object printed in Developer tools after I uploaded the file manually, you can see the properties 'path' is not empty<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/92558550/143387942-2d76574f-a011-41ef-962c-1a7a4b7d674a.jpg"><img src="https://user-images.githubusercontent.com/92558550/143387942-2d76574f-a011-41ef-962c-1a7a4b7d674a.jpg" alt="hand" style="max-width: 100%;"></a><br>
I uploaded the file using setInputFiles() and 'path' is empty.<br>
<code class="notranslate">await window.locator('input[type="file"]').setInputFiles(path.resolve(__dirname, '../cypress/fixtures/samples/GoneNutty.avi'))</code><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/92558550/143388617-f120a9fa-8084-4eef-8aa9-faab6d85b272.jpg"><img src="https://user-images.githubusercontent.com/92558550/143388617-f120a9fa-8084-4eef-8aa9-faab6d85b272.jpg" alt="1637820410(1)" style="max-width: 100%;"></a><br>
I know setInputFiles() has only 3parameters,can I still use other methods to achieve passing 'path',if you see my problem I hope you can help me,thanks a lot.</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.5</li>
<li>Operating System version: Mac OS</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>部署一个机遇tomcat容器的rest的provider,同时开启monitor</li>
<li>使用客服端访问若干次</li>
<li>发现服务端统计的次数要少一次</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?<br>
客服端和服务端的调用次数相同</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?<br>
服务端少一次</p>
<p dir="auto">我debug发现在服务端第一次接受请求的时候才初始化monitorFilter,然后通过org.apache.dubbo.monitor.support.AbstractMonitorFactory来创建monitor,然后走了异步的future,导致第一次的monitor为空,就没有进行统计。</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.7.1-SNAPSHOT</li>
<li>Operating System version: Mac OS 10.14.3</li>
<li>Java version: Java 11</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>use etcd as config center, or choose other config center implementation</li>
<li>Add a new configurator config to etcd</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./etcdctl put /dubbo/config/org.apache.dubbo.demo.DemoService/configurators "
---
configVersion: v2.7
scope: service
key: org.apache.dubbo.demo.DemoService
enabled: true
configs:
- addresses: [\"0.0.0.0:20890\"]
side: provider
parameters:
timeout: 10000
...""><pre class="notranslate"><code class="notranslate">./etcdctl put /dubbo/config/org.apache.dubbo.demo.DemoService/configurators "
---
configVersion: v2.7
scope: service
key: org.apache.dubbo.demo.DemoService
enabled: true
configs:
- addresses: [\"0.0.0.0:20890\"]
side: provider
parameters:
timeout: 10000
..."
</code></pre></div>
<ol start="3" dir="auto">
<li>start <code class="notranslate">org.apache.dubbo.demo.provider.Application</code></li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">No exception is thrown.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">Exception is thrown during startup:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.IllegalStateException: error state, exporter should not be null
at org.apache.dubbo.registry.integration.RegistryProtocol$OverrideListener.doOverrideIfNecessary(RegistryProtocol.java:518)
at org.apache.dubbo.registry.integration.RegistryProtocol$ServiceConfigurationListener.notifyOverrides(RegistryProtocol.java:569)
at org.apache.dubbo.registry.integration.AbstractConfiguratorListener.process(AbstractConfiguratorListener.java:71)
at org.apache.dubbo.registry.integration.AbstractConfiguratorListener.initWith(AbstractConfiguratorListener.java:46)
at org.apache.dubbo.registry.integration.RegistryProtocol$ServiceConfigurationListener.<init>(RegistryProtocol.java:560)
at org.apache.dubbo.registry.integration.RegistryProtocol.overrideUrlWithConfig(RegistryProtocol.java:209)
at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:182)
at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:61)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:106)
at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:55)
at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java)
at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:562)
at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:415)
at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:376)
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:335)
at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:319)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:113)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:59)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at org.apache.dubbo.demo.provider.Application.main(Application.java:27)"><pre class="notranslate"><code class="notranslate">java.lang.IllegalStateException: error state, exporter should not be null
at org.apache.dubbo.registry.integration.RegistryProtocol$OverrideListener.doOverrideIfNecessary(RegistryProtocol.java:518)
at org.apache.dubbo.registry.integration.RegistryProtocol$ServiceConfigurationListener.notifyOverrides(RegistryProtocol.java:569)
at org.apache.dubbo.registry.integration.AbstractConfiguratorListener.process(AbstractConfiguratorListener.java:71)
at org.apache.dubbo.registry.integration.AbstractConfiguratorListener.initWith(AbstractConfiguratorListener.java:46)
at org.apache.dubbo.registry.integration.RegistryProtocol$ServiceConfigurationListener.<init>(RegistryProtocol.java:560)
at org.apache.dubbo.registry.integration.RegistryProtocol.overrideUrlWithConfig(RegistryProtocol.java:209)
at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:182)
at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:61)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:106)
at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:55)
at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java)
at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:562)
at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:415)
at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:376)
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:335)
at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:319)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:113)
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:59)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at org.apache.dubbo.demo.provider.Application.main(Application.java:27)
</code></pre></div> | 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.4.1<br>
Operating System / Platform => macOS/10.14</li>
<li>Compiler => install by brew</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">crash stack like this</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Process: Python [56825]
Path: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.7.0 (3.7.0)
Code Type: X86-64 (Native)
Parent Process: zsh [41439]
Responsible: Python [56825]
User ID: 501
Date/Time: 2018-10-07 23:14:16.125 +0800
OS Version: Mac OS X 10.14 (18A391)
Report Version: 12
Anonymous UUID: 57889008-6E5B-C23F-4882-4D9A6CE4A705
Sleep/Wake UUID: A8BCB0C8-69A6-4B89-9B14-B83427A221B1
Time Awake Since Boot: 470000 seconds
Time Since Wake: 180000 seconds
System Integrity Protection: disabled
Crashed Thread: 2 Dispatch queue: com.apple.root.default-qos
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace TCC, Code 0x0
Application Specific Information:
dyld: in dlopen()
/System/Library/Frameworks/CoreMediaIO.framework/Resources/BaseUnits/CMIOBaseUnits.bundle/Contents/MacOS/CMIOBaseUnits
Thread 0:: Dispatch queue: com.apple.main-thread
0 dyld 0x00000001159bb882 ImageLoaderMachOCompressed::rebase(ImageLoader::LinkContext const&, unsigned long) + 434
1 dyld 0x00000001159b1bb8 ImageLoader::recursiveRebase(ImageLoader::LinkContext const&) + 124
2 dyld 0x00000001159b0a05 ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, bool, ImageLoader::RPathChain const&, char const*) + 339
3 dyld 0x00000001159a3891 dyld::link(ImageLoader*, bool, bool, ImageLoader::RPathChain const&, unsigned int) + 161
4 dyld 0x00000001159ad6de dlopen_internal + 480
5 libdyld.dylib 0x00007fff6e949963 dlopen + 200
6 com.apple.CoreFoundation 0x00007fff418eff1e _CFBundleDlfcnLoadBundle + 148
7 com.apple.CoreFoundation 0x00007fff419922e7 _CFBundleLoadExecutableAndReturnError + 519
8 com.apple.CoreFoundation 0x00007fff418f00b9 CFBundleGetFunctionPointerForName + 27
9 com.apple.CoreMedia 0x00007fff429f68e0 FigRegistryItemGetFactory + 68
10 com.apple.CoreMediaIO 0x00007fff42b2eac2 CMIOUnitCreateFromDescription + 1369
11 com.apple.CoreMediaIO 0x00007fff42b1a70f CMIOUnitNodeInfo::Open() + 59
12 com.apple.CoreMediaIO 0x00007fff42b08f42 CMIOGraph::CreateNode(unsigned int, unsigned int, OpaqueCMIOUnit*, CMIOUnitDescription const&, void const*, int&) + 174
13 com.apple.CoreMediaIO 0x00007fff42b08d70 CMIOGraphCreateNode + 336
14 com.apple.avfoundation 0x00007fff3d82bfdf -[AVCaptureDeviceInput addInputUnitsForInputPort:toGraph:ofCaptureSession:error:] + 437
15 com.apple.avfoundation 0x00007fff3d82bcdb -[AVCaptureSession _buildGraphUnitsForInputPort:error:] + 730
16 com.apple.avfoundation 0x00007fff3d7f9fbe -[AVCaptureSession _buildAndRunGraph] + 643
17 com.apple.avfoundation 0x00007fff3d7fe8da -[AVCaptureSession _setRunning:] + 258
18 com.apple.avfoundation 0x00007fff3d7fe76e -[AVCaptureSession startRunning] + 97
19 cv2.cpython-37m-darwin.so 0x00000001099167e5 CvCaptureCAM::startCaptureDevice(int) + 1109
20 cv2.cpython-37m-darwin.so 0x000000010991617c cvCreateCameraCapture_AVFoundation(int) + 108
21 cv2.cpython-37m-darwin.so 0x00000001098f1965 cv::VideoCapture_create(CvCapture*&, cv::Ptr<cv::IVideoCapture>&, cv::VideoCaptureAPIs, int) + 725
22 cv2.cpython-37m-darwin.so 0x0000000109902f9a cv::VideoCapture::open(int, int) + 346
23 cv2.cpython-37m-darwin.so 0x0000000109903184 cv::VideoCapture::open(int) + 68
24 cv2.cpython-37m-darwin.so 0x000000010990281c cv::VideoCapture::VideoCapture(int) + 92
25 cv2.cpython-37m-darwin.so 0x0000000108e4b15d pyopencv_cv_VideoCapture_VideoCapture(pyopencv_VideoCapture_t*, _object*, _object*) + 765
26 org.python.python 0x000000010886bb69 type_call + 178
27 org.python.python 0x000000010883072d _PyObject_FastCallKeywords + 359
28 org.python.python 0x00000001088c6977 call_function + 592
29 org.python.python 0x00000001088bf5ef _PyEval_EvalFrameDefault + 6994
30 org.python.python 0x00000001088c72db _PyEval_EvalCodeWithName + 1835
31 org.python.python 0x00000001088bda15 PyEval_EvalCode + 42
32 org.python.python 0x00000001088ec2ab run_mod + 54
33 org.python.python 0x00000001088eaf2e PyRun_InteractiveOneObjectEx + 561
34 org.python.python 0x00000001088ea777 PyRun_InteractiveLoopFlags + 116
35 org.python.python 0x00000001088ea6d0 PyRun_AnyFileExFlags + 60
36 org.python.python 0x00000001089023bc pymain_main + 6026
37 org.python.python 0x00000001089027b8 _Py_UnixMain + 104
38 libdyld.dylib 0x00007fff6e95e085 start + 1
Thread 1:
0 libsystem_pthread.dylib 0x00007fff6eb4f408 start_wqthread + 0
1 ??? 0x0000000054485244 0 + 1414025796
Thread 2 Crashed:: Dispatch queue: com.apple.root.default-qos
0 libsystem_kernel.dylib 0x00007fff6eab401e __abort_with_payload + 10
1 libsystem_kernel.dylib 0x00007fff6eaaf561 abort_with_payload_wrapper_internal + 82
2 libsystem_kernel.dylib 0x00007fff6eaaf593 abort_with_payload + 9
3 com.apple.TCC 0x00007fff696aee24 __CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 173
4 com.apple.TCC 0x00007fff696ad18a __TCCAccessRequest_block_invoke.91 + 647
5 com.apple.TCC 0x00007fff696acd0d __tccd_send_message_block_invoke + 242
6 libxpc.dylib 0x00007fff6eb939b1 _xpc_connection_reply_callout + 36
7 libxpc.dylib 0x00007fff6eb93938 _xpc_connection_call_reply_async + 82
8 libdispatch.dylib 0x00007fff6e90fe35 _dispatch_client_callout3 + 8
9 libdispatch.dylib 0x00007fff6e9263b0 _dispatch_mach_msg_async_reply_invoke + 322
10 libdispatch.dylib 0x00007fff6e91ea70 _dispatch_kevent_worker_thread + 1390
11 libsystem_pthread.dylib 0x00007fff6eb4f626 _pthread_wqthread + 419
12 libsystem_pthread.dylib 0x00007fff6eb4f415 start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff6ea96c7e semaphore_timedwait_trap + 10
1 libdispatch.dylib 0x00007fff6e910428 _dispatch_sema4_timedwait + 76
2 libdispatch.dylib 0x00007fff6e910b19 _dispatch_semaphore_wait_slow + 58
3 libdispatch.dylib 0x00007fff6e91db5a _dispatch_worker_thread + 328
4 libsystem_pthread.dylib 0x00007fff6eb5033d _pthread_body + 126
5 libsystem_pthread.dylib 0x00007fff6eb532a7 _pthread_start + 70
6 libsystem_pthread.dylib 0x00007fff6eb4f425 thread_start + 13
Thread 2 crashed with X86 Thread State (64-bit):
rax: 0x0000000002000209 rbx: 0x0000000000000000 rcx: 0x00007000080976d8 rdx: 0x00007f8f9624ef28
rdi: 0x000000000000000b rsi: 0x0000000000000000 rbp: 0x0000700008097720 rsp: 0x00007000080976d8
r8: 0x00007f8f9624ef5c r9: 0x0000000000000000 r10: 0x0000000000000021 r11: 0x0000000000000246
r12: 0x0000000000000021 r13: 0x00007f8f9624ef28 r14: 0x0000000000000000 r15: 0x000000000000000b
rip: 0x00007fff6eab401e rfl: 0x0000000000000246 cr2: 0x0000000108190068
Logical CPU: 0
Error Code: 0x02000209
Trap Number: 133
Binary Images:
0x108812000 - 0x108813fff +org.python.python (3.7.0 - 3.7.0) <D4627827-5A3B-32D1-B84A-4F0E6E920E07> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
0x108817000 - 0x10899bff7 +org.python.python (3.7.0, [c] 2001-2018 Python Software Foundation. - 3.7.0) <BB866CA6-41AB-36A2-93C0-FF28F1154662> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Python
0x108cf5000 - 0x108cf6fff +_heapq.cpython-37m-darwin.so (0) <7F27633E-D5A9-3E71-9B65-5F276DB2F7E5> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_heapq.cpython-37m-darwin.so
0x108d7a000 - 0x108d7dff3 +readline.cpython-37m-darwin.so (0) <238DC538-1F48-3455-ABFB-223E286A8750> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/readline.cpython-37m-darwin.so
0x108d83000 - 0x108da5fff +libreadline.7.dylib (0) <C6ABF766-3BE6-3ADC-81F1-59D554396E63> /usr/local/opt/readline/lib/libreadline.7.dylib
0x108dbd000 - 0x10cdbdfc7 +cv2.cpython-37m-darwin.so (???) <D32B469D-72FE-3469-8C8B-09A7096AA420> /usr/local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-darwin.so
0x10d408000 - 0x10dfacfff +libavcodec.58.18.100.dylib (0) <6101C9D0-906E-397C-A4FA-8C7AEE0AC2BB> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libavcodec.58.18.100.dylib
0x10e5fd000 - 0x10e780fff +libavformat.58.12.100.dylib (0) <782615AD-70BA-349E-AAB8-0E902A48ABD6> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libavformat.58.12.100.dylib
0x10e7c2000 - 0x10e803ff7 +libavutil.56.14.100.dylib (0) <28516D9C-999F-3FB1-8ADB-6CF1C1B91E34> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libavutil.56.14.100.dylib
0x10e81f000 - 0x10e891ff7 +libswscale.5.1.100.dylib (0) <DF7957E5-6BFA-3D19-9B7E-690976D3E2A7> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libswscale.5.1.100.dylib
0x10e89e000 - 0x10e8b7fff +libavresample.4.0.0.dylib (0) <E913A104-C71E-3E91-BA29-EB75B640286F> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libavresample.4.0.0.dylib
0x10e8bb000 - 0x10f187ff7 +QtGui (4.8.7) <E2C32E53-1107-3931-8D2C-8D461E9B952F> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtGui
0x10f45a000 - 0x10f478fff +QtTest (4.8.7) <D6111C0F-1B66-3971-A221-29806B39834A> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtTest
0x10f489000 - 0x10f700ff7 +QtCore (4.8.7) <FFFF9074-81CD-3DD6-8140-A73A387590CF> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtCore
0x10f7ad000 - 0x10f7c4ff7 +libswresample.3.1.100.dylib (0) <FDD2963A-42CB-3D41-ACF9-73E0B0CD4AD9> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libswresample.3.1.100.dylib
0x10f7c9000 - 0x10f800ff3 +libmp3lame.0.dylib (0) <4897A85B-77F6-3F43-9809-BD429A4AB896> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libmp3lame.0.dylib
0x10f8af000 - 0x10f8b3ffb +math.cpython-37m-darwin.so (0) <A073D551-51E7-3814-B4FA-F55C4309B155> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/math.cpython-37m-darwin.so
0x10f8b9000 - 0x10fa49ff7 +multiarray.cpython-37m-darwin.so (0) <E1001D7B-C042-35D5-85D0-756A0266437D> /usr/local/lib/python3.7/site-packages/numpy/core/multiarray.cpython-37m-darwin.so
0x10fb59000 - 0x10fb64ffb +_datetime.cpython-37m-darwin.so (0) <B222724D-DD14-369D-B29D-989903BB5199> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_datetime.cpython-37m-darwin.so
0x10fb6c000 - 0x10fceffff +umath.cpython-37m-darwin.so (0) <0AEC4FB9-7284-3EC9-B539-6534E1797410> /usr/local/lib/python3.7/site-packages/numpy/core/umath.cpython-37m-darwin.so
0x10fd76000 - 0x10fd85fff +_ctypes.cpython-37m-darwin.so (0) <AC7A0615-C2BF-3FBF-A7FA-066E1D5DA8F3> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so
0x10fdd0000 - 0x10fdd3fff +_struct.cpython-37m-darwin.so (0) <BC7BFE77-AFCF-3B30-87E3-6AD443F2A3CA> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_struct.cpython-37m-darwin.so
0x10fe64000 - 0x10fe70ffb +_pickle.cpython-37m-darwin.so (0) <AB313280-89AF-3DE7-8960-D10C0C2BBBA3> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_pickle.cpython-37m-darwin.so
0x11003a000 - 0x11003dfff +zlib.cpython-37m-darwin.so (0) <42D5DF65-E03D-3B65-A47E-467B1B5BFEE2> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/zlib.cpython-37m-darwin.so
0x110042000 - 0x110043fff +_bz2.cpython-37m-darwin.so (0) <68E6C57B-209A-3525-A560-C8AD30DF6EA0> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_bz2.cpython-37m-darwin.so
0x110087000 - 0x11008aff7 +_lzma.cpython-37m-darwin.so (0) <755B1A53-3CC6-37A6-BDE9-1609BE35CADB> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_lzma.cpython-37m-darwin.so
0x11008f000 - 0x1100aaff3 +liblzma.5.dylib (0) <D5E25B2B-6DFB-3233-850B-65F488A14688> /usr/local/opt/xz/lib/liblzma.5.dylib
0x1100b0000 - 0x1100b1fff +grp.cpython-37m-darwin.so (0) <EB90F1F6-2F43-398E-99BB-DCA6F7CD1F5F> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/grp.cpython-37m-darwin.so
0x1100b4000 - 0x1100b7fff +_hashlib.cpython-37m-darwin.so (0) <0C054EC4-AF64-3386-A548-CD8EBBA48925> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_hashlib.cpython-37m-darwin.so
0x1100bb000 - 0x1100fbff7 +libssl.1.0.0.dylib (0) <8BBE0FE2-0934-3729-9C7F-D701190D57E5> /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
0x11011a000 - 0x11026ce3f +libcrypto.1.0.0.dylib (0) <099E3C07-2BD0-3AA4-AAE5-7E33A5921880> /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
0x1102e5000 - 0x1102eaffb +_blake2.cpython-37m-darwin.so (0) <6BCE1DF0-6B1F-3120-B284-8799A2FAF4A9> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_blake2.cpython-37m-darwin.so
0x1102ee000 - 0x1102fefff +_sha3.cpython-37m-darwin.so (0) <1CA59D87-D21C-32DC-92AC-5525A1A1C04E> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_sha3.cpython-37m-darwin.so
0x110303000 - 0x110303fff +_bisect.cpython-37m-darwin.so (0) <9BAE67A9-0F97-382B-A43A-310CFA6003DC> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_bisect.cpython-37m-darwin.so
0x110306000 - 0x110307fff +_random.cpython-37m-darwin.so (0) <96AB86A6-4976-3E2D-98C3-75715A9BD9AC> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_random.cpython-37m-darwin.so
0x11038a000 - 0x11038cfff +lapack_lite.cpython-37m-darwin.so (0) <D8203FBD-7CB0-3E7E-848C-90EC2B82D83D> /usr/local/lib/python3.7/site-packages/numpy/linalg/lapack_lite.cpython-37m-darwin.so
0x110390000 - 0x1103a8ff7 +_umath_linalg.cpython-37m-darwin.so (0) <5A8AE4B1-03BC-3B11-8383-C6FA7C88952D> /usr/local/lib/python3.7/site-packages/numpy/linalg/_umath_linalg.cpython-37m-darwin.so
0x110436000 - 0x110464ff7 +_decimal.cpython-37m-darwin.so (0) <99BA6424-F300-3D8C-8C82-094CB6F388BC> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_decimal.cpython-37m-darwin.so
0x110477000 - 0x110484fff +_multiarray_tests.cpython-37m-darwin.so (0) <A5F86676-A7BB-3273-8CF7-282D49EEE935> /usr/local/lib/python3.7/site-packages/numpy/core/_multiarray_tests.cpython-37m-darwin.so
0x110524000 - 0x110530ffb +fftpack_lite.cpython-37m-darwin.so (0) <65F2854C-C703-30C8-BBE3-6B9BB8D181EC> /usr/local/lib/python3.7/site-packages/numpy/fft/fftpack_lite.cpython-37m-darwin.so
0x110574000 - 0x110619ffb +mtrand.cpython-37m-darwin.so (0) <ADD72AB6-C6EA-379E-95FB-E822BC049631> /usr/local/lib/python3.7/site-packages/numpy/random/mtrand.cpython-37m-darwin.so
0x1107ac000 - 0x1107b0fff com.apple.audio.AppleHDAHALPlugIn (282.10 - 282.10) <94DDF962-09E0-3B3E-B887-9A0301022190> /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
0x1107b6000 - 0x1107d5ff7 com.apple.cmio.DAL.AppleCamera (400.6.7 - AppleCameraDeviceAbstractionLayer-6.7.0) <32FABC39-11D9-359F-96E0-5907DD32CBFE> /Library/CoreMediaIO/*/AppleCamera.plugin/Contents/MacOS/AppleCamera
0x1131e4000 - 0x113223fff com.apple.cmio.DAL.VDC-4 (810.0 - 193.200.13) <561AA900-DDB3-34DC-8F41-3B9156962DB4> /System/Library/Frameworks/CoreMediaIO.framework/Resources/VDC.plugin/Contents/MacOS/VDC
0x113244000 - 0x113382fff com.apple.CMIOUnits (900.0 - 5025) <D2775713-AB68-320C-A1E7-F367F7BA8F9A> /System/Library/Frameworks/CoreMediaIO.framework/Resources/CMIOUnits.bundle/Contents/MacOS/CMIOUnits
0x1133a7000 - 0x113444fff com.apple.CMIOBaseUnits (900.0 - 5025) <8C2A61AE-B592-3463-BC4B-27E0642A37F9> /System/Library/Frameworks/CoreMediaIO.framework/Resources/BaseUnits/CMIOBaseUnits.bundle/Contents/MacOS/CMIOBaseUnits
0x11599e000 - 0x115a1c6a7 dyld (625.13) <D6387150-2FB8-3066-868D-72E1B1C43982> /usr/lib/dyld
0x7fff366ae000 - 0x7fff366bdffb libSimplifiedChineseConverter.dylib (73) <991F3402-E9C7-3BE3-BC60-73326DADB2D5> /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib
0x7fff3d7f5000 - 0x7fff3d9e3ff3 com.apple.avfoundation (2.0 - 1540.118.2) <1EE74E35-F16B-3034-AEA5-723198E519F8> /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation
0x7fff3d9e4000 - 0x7fff3dab2ff7 com.apple.audio.AVFAudio (1.0 - ???) <727A6D92-D1F2-3179-80D3-51F1481F5A87> /System/Library/Frameworks/AVFoundation.framework/Versions/A/Frameworks/AVFAudio.framework/Versions/A/AVFAudio
0x7fff3dbc0000 - 0x7fff3dbc0fff com.apple.Accelerate (1.11 - Accelerate 1.11) <2C602CED-72CA-37C2-BDF5-31697FC9100B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff3dbd8000 - 0x7fff3e278fe3 com.apple.vImage (8.1 - ???) <65912AFB-D4C1-3494-AE97-DDFDAF3BE1EB> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff3e279000 - 0x7fff3e4f0fd7 libBLAS.dylib (1243.200.4) <76710990-AE2B-300E-88BB-797ABAD74956> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x7fff3e4f1000 - 0x7fff3e563fe7 libBNNS.dylib (38.200.5) <5F3A4021-8FF8-30E8-B84A-AA2BD70F4151> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
0x7fff3e564000 - 0x7fff3e90afff libLAPACK.dylib (1243.200.4) <45722A8A-5788-3C4C-ADD9-1812763FA635> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x7fff3e90b000 - 0x7fff3e920ffb libLinearAlgebra.dylib (1243.200.4) <E923DA33-B142-3A73-A80A-642878D19099> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
0x7fff3e921000 - 0x7fff3e926ff3 libQuadrature.dylib (3.200.2) <6FFAC142-415D-3AF0-BC09-336302F11934> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
0x7fff3e927000 - 0x7fff3e9a4ffb libSparse.dylib (79.200.5) <0D7E71A4-10D2-3979-B386-D2426ADAF6D7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
0x7fff3e9a5000 - 0x7fff3e9b8ffb libSparseBLAS.dylib (1243.200.4) <00D6FC17-B739-3259-90A4-92AC8BBE03D6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
0x7fff3e9b9000 - 0x7fff3eb9dff3 libvDSP.dylib (671.201.1) <716585BD-04D7-30A9-B315-689184275E38> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x7fff3eb9e000 - 0x7fff3ec53ff3 libvMisc.dylib (671.201.1) <EDA66C06-A11F-3EE5-96D5-B20893448899> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x7fff3ec54000 - 0x7fff3ec54fff com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) <DADD83A2-550F-3570-8D71-16614C6A4CE0> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x7fff3ee05000 - 0x7fff3fc24ff3 com.apple.AppKit (6.9 - 1671) <E1B2CAF1-9231-3B3D-BD9E-B770FE87F407> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff3fc76000 - 0x7fff3fc76fff com.apple.ApplicationServices (50.1 - 50.1) <1B71604B-9AC5-3A2F-8CB7-0EFA34A20F12> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x7fff3fc77000 - 0x7fff3fce2ff7 com.apple.ApplicationServices.ATS (377 - 453.11) <7599E619-EE21-3EB7-875B-AE3B8D3E13BB> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x7fff3fd7b000 - 0x7fff3fe9afff libFontParser.dylib (228.6) <E800074F-62CF-340A-A5A7-B8BE5B560045> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x7fff3fe9b000 - 0x7fff3fee6fff libFontRegistry.dylib (228.12) <480D472D-C8FB-321D-86EC-2EA6927A97AD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x7fff3ffe2000 - 0x7fff3ffe6ff3 com.apple.ColorSyncLegacy (4.13.0 - 1) <90641B6B-D07B-3577-B594-965825544B60> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSyncLegacy.framework/Versions/A/ColorSyncLegacy
0x7fff40083000 - 0x7fff400d5ff3 com.apple.HIServices (1.22 - 627.14.2) <01F309D6-32E7-3C4F-A38B-8206EE3076CC> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x7fff400d6000 - 0x7fff400e4ff3 com.apple.LangAnalysis (1.7.0 - 1.7.0) <67BC5855-B7A3-39E6-B5DD-52B287EB1532> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x7fff400e5000 - 0x7fff40131fff com.apple.print.framework.PrintCore (14.0 - 503.7) <C13BC56A-65F4-35B1-9E33-51FE6F3B06FD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x7fff40132000 - 0x7fff4016dff7 com.apple.QD (3.12 - 407.2) <94A30038-C545-327A-B1C0-E19C79D62BAB> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x7fff4016e000 - 0x7fff4017aff7 com.apple.speech.synthesis.framework (8.0.15 - 8.0.15) <A96C744B-B1AD-32E3-BA72-7A221684BE3F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x7fff4017b000 - 0x7fff40417ff7 com.apple.audio.toolbox.AudioToolbox (1.14 - 1.14) <89D2529D-CF36-3081-A700-70892F888718> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x7fff40419000 - 0x7fff40419fff com.apple.audio.units.AudioUnit (1.14 - 1.14) <8B9A5ADB-E62C-3838-BB5E-AF20CAE449CC> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x7fff4077d000 - 0x7fff40b3eff7 com.apple.CFNetwork (974.1 - 974.1) <ACC604FA-5D40-34CE-9206-8091010306B7> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff40b53000 - 0x7fff40b53fff com.apple.Carbon (158 - 158) <DAF95685-B793-34EB-96EA-3E292A9E3378> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x7fff40b54000 - 0x7fff40b57ffb com.apple.CommonPanels (1.2.6 - 98) <F1E1C47B-FD1A-30A4-B41B-87BD8B178B56> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x7fff40b58000 - 0x7fff40e5fff7 com.apple.HIToolbox (2.1.1 - 916.32) <B2ED8B1C-FC3E-3FA0-8F6D-E7A448E6FAA7> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x7fff40e60000 - 0x7fff40e63ffb com.apple.help (1.3.8 - 66) <4392A63F-9B58-3248-BF73-B46AD3744E6E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x7fff40e64000 - 0x7fff40e69ff7 com.apple.ImageCapture (9.0 - 1529.7) <364EDC6B-6374-31A7-A637-0044B73F8DBF> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x7fff40e6a000 - 0x7fff40efeff3 com.apple.ink.framework (10.9 - 225) <D6503F37-7EBC-32C1-95CC-A35EFC54E7ED> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x7fff40eff000 - 0x7fff40f19fff com.apple.openscripting (1.7 - 178) <D4A4D130-9C7B-3656-9D58-50F9D09C276E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x7fff40f3a000 - 0x7fff40f3bfff com.apple.print.framework.Print (14.0 - 267.3) <5CD250DF-98AD-30B8-A5D5-47634FF9E74D> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x7fff40f3c000 - 0x7fff40f3eff7 com.apple.securityhi (9.0 - 55006) <C5308CBC-6736-31A7-905B-C635C6D43FDE> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x7fff40f3f000 - 0x7fff40f45ff7 com.apple.speech.recognition.framework (6.0.3 - 6.0.3) <1C38B9CB-DD45-3A7B-9D4C-631855A4EE32> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x7fff4106c000 - 0x7fff4106cfff com.apple.Cocoa (6.11 - 23) <A520D2A3-032B-3C06-81E1-EFDD97C47ACE> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x7fff4107a000 - 0x7fff41146fff com.apple.ColorSync (4.13.0 - 3340) <0618DA46-5A5E-339D-BB2F-ED66A2BFCCF9> /System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x7fff412e1000 - 0x7fff41371fff com.apple.audio.CoreAudio (4.3.0 - 4.3.0) <5845D43B-BBB5-343B-A164-6F9E2C53CFA3> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff413d7000 - 0x7fff41402ff7 com.apple.CoreBluetooth (1.0 - 1) <D2F48E3D-79FC-32D7-B281-658EAD2CC50B> /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
0x7fff41403000 - 0x7fff417a3feb com.apple.CoreData (120 - 865.2) <90A5058F-A5AF-311A-81CC-B20C2AC9E85E> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x7fff417a4000 - 0x7fff4188dfff com.apple.CoreDisplay (101.3 - 101.17.6) <4AE5C221-B8E1-3A4F-91E0-96ED5926E82B> /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay
0x7fff4188e000 - 0x7fff41cddfff com.apple.CoreFoundation (6.9 - 1555.10) <4A4C87BC-4C8E-392A-ABEE-824D4074C485> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff41cdf000 - 0x7fff4236cfff com.apple.CoreGraphics (2.0 - 1245.8.4.8) <FFFFEAF0-14DD-38A3-BD68-AA9AB2C672C1> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff4236e000 - 0x7fff42693ff7 com.apple.CoreImage (14.0.0 - 700.2.220) <E9E7B27C-C4FD-3AD6-923E-DF7EAE36D1FF> /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
0x7fff429e5000 - 0x7fff42ae6ff3 com.apple.CoreMedia (1.0 - 2280.133.4) <5E733D6B-B683-3931-9D02-82300A43378D> /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia
0x7fff42ae7000 - 0x7fff42b49fff com.apple.CoreMediaIO (900.0 - 5025) <BFB3978A-FDBB-352B-A96D-E8761FC51370> /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/CoreMediaIO
0x7fff42b4a000 - 0x7fff42b4afff com.apple.CoreServices (933 - 933) <B79C910E-93B9-3686-8E72-E0B63083AAE5> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff42b4b000 - 0x7fff42bc9ffb com.apple.AE (768 - 768) <E795749D-CE50-3B8C-91A7-8C2618887288> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x7fff42bca000 - 0x7fff42ea2ff7 com.apple.CoreServices.CarbonCore (1178.11 - 1178.11) <9FBE7BFB-3A81-37AC-8E15-E6F7932BBDC0> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x7fff42ea3000 - 0x7fff42eedff7 com.apple.DictionaryServices (1.2 - 284.16.3) <D9388630-E7F2-321E-81FF-EBD5F3B47A52> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x7fff42eee000 - 0x7fff42ef6ffb com.apple.CoreServices.FSEvents (1239.200.12 - 1239.200.12) <E40A3C4A-79C7-37D8-999B-D1169A06870B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
0x7fff42ef7000 - 0x7fff430c2ff7 com.apple.LaunchServices (933 - 933) <4614A4B4-C358-3460-9FA7-DF8D6C466806> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x7fff430c3000 - 0x7fff43165ffb com.apple.Metadata (10.7.0 - 1191.51) <6B9CCA98-6F68-3908-A7A9-96D3E2AE5968> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x7fff43166000 - 0x7fff431b1ff7 com.apple.CoreServices.OSServices (933 - 933) <A92C846F-872D-3534-B60E-6CD445A9BAEE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x7fff431b2000 - 0x7fff43220ff7 com.apple.SearchKit (1.4.0 - 1.4.0) <C6A34D09-9707-3F28-838F-63B59B8A12D5> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x7fff43221000 - 0x7fff43245ffb com.apple.coreservices.SharedFileList (71.27 - 71.27) <B46A15E0-4C10-3616-BE49-58E07EC463FE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
0x7fff43588000 - 0x7fff436edfff com.apple.CoreText (352.0 - 584.24) <5B55B533-F4DE-32CE-8739-16FFFA1A64F8> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
0x7fff436ee000 - 0x7fff4372bfff com.apple.CoreVideo (1.8 - 0.0) <C7BB7D0F-3AF2-3046-A387-A802BCA52A3A> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x7fff4372c000 - 0x7fff437c2ffb com.apple.framework.CoreWLAN (13.0 - 1370.8) <19E41424-B956-34DF-AE02-9822308FA3DC> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
0x7fff43a3f000 - 0x7fff43a44fff com.apple.DiskArbitration (2.7 - 2.7) <C53C1905-9BCF-3AE8-8BB3-C8A2C7DB7D25> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fff43c0d000 - 0x7fff43fdbfff com.apple.Foundation (6.9 - 1555.10) <0CCAF9AF-F7AF-3174-98D4-6C188B1079CC> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff4404c000 - 0x7fff4407cff3 com.apple.GSS (4.0 - 2.0) <74ACB1A1-A5A4-3180-AC00-688C94AA4434> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
0x7fff44195000 - 0x7fff4429eff3 com.apple.Bluetooth (6.0.8 - 6.0.8f6) <6CB8A08E-1154-3333-83CC-2A939AC94562> /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
0x7fff44300000 - 0x7fff44391fff com.apple.framework.IOKit (2.0.2 - 1483.201.1) <DA4ED91F-2CC9-3CFD-9200-9D5D31EEE4F3> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff44393000 - 0x7fff4439dff7 com.apple.IOSurface (255.1 - 255.1) <538F0257-A408-36AF-AB1E-1D7037D6359E> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x7fff443f4000 - 0x7fff44588ff7 com.apple.ImageIO.framework (3.3.0 - 1796.5.4.1) <9D078F50-BB75-3D04-8636-3FDDAB9C95DA> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x7fff44589000 - 0x7fff4458dffb libGIF.dylib (1796.5.4.1) <93AD6FB9-03BA-350E-AF98-D371A2BFD58F> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x7fff4458e000 - 0x7fff44673fef libJP2.dylib (1796.5.4.1) <3780EB9B-5219-385D-9472-17B0397697A5> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x7fff44674000 - 0x7fff44699ff7 libJPEG.dylib (1796.5.4.1) <83CA8BEB-34BD-3B58-A704-C6A875984FAD> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x7fff4496c000 - 0x7fff44992fe7 libPng.dylib (1796.5.4.1) <9F30FA63-8AB2-3646-A6A8-FCE9F8436C35> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x7fff44993000 - 0x7fff44995ff7 libRadiance.dylib (1796.5.4.1) <2C07887C-0584-3538-A9EC-3988AA5B234B> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x7fff44996000 - 0x7fff449e4fff libTIFF.dylib (1796.5.4.1) <F420B0DC-D0F7-3DD5-9E17-00462441635C> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x7fff45a7a000 - 0x7fff45a93fff com.apple.Kerberos (3.0 - 1) <8BE3D524-257D-3663-A937-F1AC76BDF4D9> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x7fff45d50000 - 0x7fff45d5afff com.apple.MediaAccessibility (1.0 - 114.4) <29D89F2B-6254-3D0D-BD0C-8472FCA373F4> /System/Library/Frameworks/MediaAccessibility.framework/Versions/A/MediaAccessibility
0x7fff45e14000 - 0x7fff464b0ff7 com.apple.MediaToolbox (1.0 - 2280.133.4) <FB1C3DD9-A91B-3952-A892-9F009B854F8F> /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox
0x7fff464b2000 - 0x7fff46545fff com.apple.Metal (157.55 - 157.55) <49CD402F-20CB-3930-B997-BBDC495ABF64> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
0x7fff46562000 - 0x7fff46582ff7 com.apple.MetalPerformanceShaders.MPSCore (1.0 - 1) <9A841A76-43BC-3220-A4DA-99137C42A0BC> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Versions/A/MPSCore
0x7fff46583000 - 0x7fff46600fef com.apple.MetalPerformanceShaders.MPSImage (1.0 - 1) <C469D1E5-F621-3E56-87AC-1BD889664FA3> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/Versions/A/MPSImage
0x7fff46601000 - 0x7fff46629fff com.apple.MetalPerformanceShaders.MPSMatrix (1.0 - 1) <8C57A3A2-8EBB-3401-87FC-368D1BE6DAAC> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/Versions/A/MPSMatrix
0x7fff4662a000 - 0x7fff46751ff7 com.apple.MetalPerformanceShaders.MPSNeuralNetwork (1.0 - 1) <CE3201A3-4ACE-3E79-990B-8987C576B31B> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Versions/A/MPSNeuralNetwork
0x7fff46752000 - 0x7fff4676dff7 com.apple.MetalPerformanceShaders.MPSRayIntersector (1.0 - 1) <8F02CFCA-41E1-3194-915F-3106E8B48B32> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSRayIntersector.framework/Versions/A/MPSRayIntersector
0x7fff4676e000 - 0x7fff4676eff7 com.apple.MetalPerformanceShaders.MetalPerformanceShaders (1.0 - 1) <8B715D78-8357-38F4-A03C-926EE967CE71> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders
0x7fff4796d000 - 0x7fff47979ffb com.apple.NetFS (6.0 - 4.0) <529E29A9-5E77-3A8C-A982-CF55F949FE5D> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x7fff4a439000 - 0x7fff4a492ff7 com.apple.opencl (2.12.1 - 2.12.1) <3EAE5BC8-E948-3926-9319-9DAC2A8B5484> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x7fff4a493000 - 0x7fff4a4afff7 com.apple.CFOpenDirectory (10.14 - 207.200.4) <7E4EFF02-2596-31E6-88DE-29C89E2837E4> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x7fff4a4b0000 - 0x7fff4a4bcffb com.apple.OpenDirectory (10.14 - 207.200.4) <52A3918E-0F7A-33FD-87EE-21A37B37D13B> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x7fff4ae1f000 - 0x7fff4ae21fff libCVMSPluginSupport.dylib (17.0.37) <38A18A32-BBF2-3A0F-AE37-51734B6CA91A> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
0x7fff4ae22000 - 0x7fff4ae27ff3 libCoreFSCache.dylib (163.20) <BF8F04DD-C1A1-3D2A-BF3F-639FE907E28D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib
0x7fff4ae28000 - 0x7fff4ae2cfff libCoreVMClient.dylib (163.20) <45A2C724-F3D1-316A-9A41-CAB8E2A390EC> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x7fff4ae2d000 - 0x7fff4ae35ffb libGFXShared.dylib (17.0.37) <267B40DF-2939-3D76-89FA-E8DBDEE96D92> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x7fff4ae36000 - 0x7fff4ae41fff libGL.dylib (17.0.37) <2E25A83B-B560-34A1-B474-3027C8B75BA4> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x7fff4ae42000 - 0x7fff4ae7cfef libGLImage.dylib (17.0.37) <49C5F799-66E5-3A81-AF88-948DD0E583FA> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x7fff4aff0000 - 0x7fff4b02dfff libGLU.dylib (17.0.37) <79555E42-B816-3106-8FA0-FC14A54AE8B3> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x7fff4b9dd000 - 0x7fff4b9ecff3 com.apple.opengl (17.0.37 - 17.0.37) <FA76EAA6-D035-3444-87F5-DD95446D651D> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x7fff4c848000 - 0x7fff4ca9efff com.apple.QuartzCore (1.11 - 693.16.4.2) <2C9E3279-3F97-3440-B937-E5FE888232E2> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x7fff4d2ec000 - 0x7fff4d612fff com.apple.security (7.0 - 58286.200.222) <AEB638D9-BFE9-319E-A70B-557ACF41117A> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff4d613000 - 0x7fff4d6a2fff com.apple.securityfoundation (6.0 - 55185.200.14) <770D67D1-3DA6-3FD3-8531-376712BA4F60> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x7fff4d6d4000 - 0x7fff4d6d8ff3 com.apple.xpc.ServiceManagement (1.0 - 1) <20DB899D-3BAF-36FD-86A6-F66A82074607> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
0x7fff4da95000 - 0x7fff4db05ff3 com.apple.SystemConfiguration (1.17 - 1.17) <EED5BC9B-CE8D-343C-BCDC-04A79F704828> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x7fff4dced000 - 0x7fff4dcedfff com.apple.VideoDecodeAcceleration (1.1 - 11) <0A4E81E6-4F3F-300D-8D42-A687D21BBD9F> /System/Library/Frameworks/VideoDecodeAcceleration.framework/Versions/A/VideoDecodeAcceleration
0x7fff4dd66000 - 0x7fff4e0c8ff7 com.apple.VideoToolbox (1.0 - 2280.133.4) <468A9F6D-33AB-31D3-A8A3-A6A432033C9E> /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox
0x7fff50d6a000 - 0x7fff50e0fff7 com.apple.APFS (1.0 - 1) <CBE5EE83-7A5F-3C10-93FF-F6DA84DFB875> /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS
0x7fff5184b000 - 0x7fff5184cff3 com.apple.AggregateDictionary (1.0 - 1) <1DEBBE36-8945-3AD8-BD48-2850AD845711> /System/Library/PrivateFrameworks/AggregateDictionary.framework/Versions/A/AggregateDictionary
0x7fff51e47000 - 0x7fff51e73ff7 com.apple.framework.Apple80211 (13.0 - 1375.14) <79EBF155-EAB2-37EE-BF8C-57BC453217B1> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
0x7fff5214f000 - 0x7fff5215efcf com.apple.AppleFSCompression (96.200.3 - 1.0) <E093776E-C367-3CCF-BFD5-623476A89E9A> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
0x7fff5225c000 - 0x7fff52267fff com.apple.AppleIDAuthSupport (1.0 - 1) <5362D9AD-A2AE-3436-97CE-C353124504E5> /System/Library/PrivateFrameworks/AppleIDAuthSupport.framework/Versions/A/AppleIDAuthSupport
0x7fff522a8000 - 0x7fff522f1ff3 com.apple.AppleJPEG (1.0 - 1) <9A690E6E-F987-3660-BED6-B1A4D1906B6C> /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
0x7fff52541000 - 0x7fff52569ff7 com.apple.applesauce (1.0 - ???) <60BB16D6-DE7E-356A-B9DE-F73EE179934A> /System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce
0x7fff52634000 - 0x7fff52684fff com.apple.AppleVAFramework (5.0.44 - 5.0.44) <F7B8CD3A-8671-3B2C-B67C-CE39C1442207> /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
0x7fff526cf000 - 0x7fff526e5ffb com.apple.AssertionServices (1.0 - 1) <8FB0D908-6C46-3399-92D6-4E7D4B5F4F19> /System/Library/PrivateFrameworks/AssertionServices.framework/Versions/A/AssertionServices
0x7fff52a15000 - 0x7fff52cb8ffb com.apple.AuthKit (1.0 - 1) <ED375339-69F6-34AE-825D-F16BF0618E3E> /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/AuthKit
0x7fff52e89000 - 0x7fff52e92ff3 com.apple.coreservices.BackgroundTaskManagement (1.0 - 57.1) <972F41B3-7DF7-3BF1-ACCA-A093A4328ADF> /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement
0x7fff52e93000 - 0x7fff52f35ff7 com.apple.backup.framework (1.10 - ???) <46534B04-DD0E-357B-9CB5-F88AAC6AF4ED> /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
0x7fff52f36000 - 0x7fff52fa7ffb com.apple.BaseBoard (360.18.4 - 360.18.4) <709EF03C-5BCE-3F47-BD58-A48C1F9378A5> /System/Library/PrivateFrameworks/BaseBoard.framework/Versions/A/BaseBoard
0x7fff54b56000 - 0x7fff54b5ffff com.apple.CommonAuth (4.0 - 2.0) <7105F266-35C3-3582-9383-A2A9D7184A7B> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
0x7fff5500f000 - 0x7fff553e6fef com.apple.CoreAUC (273.0.0 - 273.0.0) <288EC7ED-A86A-30D0-ADE2-56C33CD93AA8> /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC
0x7fff553e7000 - 0x7fff55418fff com.apple.CoreAVCHD (6.0.0 - 6000.4.1) <507AC58B-4527-353B-99CB-67FF183BD4D5> /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD
0x7fff5585c000 - 0x7fff5586ffff com.apple.CoreEmoji (1.0 - 69.15.9) <011E7853-BDD6-3197-BA8D-D6B977EF56EB> /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
0x7fff55e45000 - 0x7fff55eb7ff7 com.apple.CoreNLP (1.0 - 130.15.22) <401F5284-A984-32A1-A547-CC8156381070> /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP
0x7fff56172000 - 0x7fff5617affb com.apple.CorePhoneNumbers (1.0 - 1) <F47CA56F-6760-3282-BFD8-C8C8D2C33ECF> /System/Library/PrivateFrameworks/CorePhoneNumbers.framework/Versions/A/CorePhoneNumbers
0x7fff566ff000 - 0x7fff5678dff7 com.apple.CoreSymbolication (10.0 - 64235.3.1) <912C63C0-473B-3352-A255-60F7CA3FE3F2> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
0x7fff5681d000 - 0x7fff56949fff com.apple.coreui (2.1 - 498.46) <05F9736C-5A62-33B3-9607-551A332AEF28> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x7fff5694a000 - 0x7fff56ac9ffb com.apple.CoreUtils (5.7 - 570.70) <2554BA12-16A2-399F-A13A-E5C8EB4FC1EC> /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils
0x7fff56b20000 - 0x7fff56b83ffb com.apple.framework.CoreWiFi (13.0 - 1370.8) <5C6ACF32-14D3-35FD-8A4A-629521090F41> /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
0x7fff56b84000 - 0x7fff56b95ffb com.apple.CrashReporterSupport (10.13 - 938.23) <36754BB2-680F-36AE-A5DE-548B4F41F0AE> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
0x7fff56c18000 - 0x7fff56c27ff3 com.apple.framework.DFRFoundation (1.0 - 210) <61EF0583-E946-3201-932D-7D117BC62CB2> /System/Library/PrivateFrameworks/DFRFoundation.framework/Versions/A/DFRFoundation
0x7fff56c28000 - 0x7fff56c2cff7 com.apple.DSExternalDisplay (3.1 - 380) <B6B26BB3-2DC9-34D0-817E-EB612432EC96> /System/Library/PrivateFrameworks/DSExternalDisplay.framework/Versions/A/DSExternalDisplay
0x7fff56caf000 - 0x7fff56d26ffb com.apple.datadetectorscore (7.0 - 590.24) <2D4CFF51-BCD4-3D08-AE73-AB2B8BEC8659> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
0x7fff56d74000 - 0x7fff56db5fff com.apple.DebugSymbols (185 - 185) <01F561DA-4724-32FD-B2C7-6436F4CEB980> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
0x7fff56db6000 - 0x7fff56f0fff7 com.apple.desktopservices (1.13 - ???) <053D3A96-9263-3242-8625-101DDB9350DE> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x7fff57f28000 - 0x7fff57f52fff com.apple.FWAVC (501.47 - 47) <336586CB-772D-39D6-BBCD-119AF7EF03DD> /System/Library/PrivateFrameworks/FWAVC.framework/Versions/A/FWAVC
0x7fff57f53000 - 0x7fff5837bfff com.apple.vision.FaceCore (3.3.4 - 3.3.4) <CCBC466A-1AD4-3B0B-80B2-D6CFCBB37FC0> /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
0x7fff5d343000 - 0x7fff5d348ff7 com.apple.GPUWrangler (3.22.9 - 3.22.9) <A7FF28DC-3576-3E53-AFAF-0E29CB45E9AE> /System/Library/PrivateFrameworks/GPUWrangler.framework/Versions/A/GPUWrangler
0x7fff5e1a7000 - 0x7fff5e1b6fff com.apple.GraphVisualizer (1.0 - 5) <C7040CD7-6CAB-3878-B29E-21F1665341D0> /System/Library/PrivateFrameworks/GraphVisualizer.framework/Versions/A/GraphVisualizer
0x7fff5e29d000 - 0x7fff5e311fff com.apple.Heimdal (4.0 - 2.0) <793E1D31-6166-37F2-A989-F98FE1706E5D> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
0x7fff5f6ed000 - 0x7fff5f6f4ffb com.apple.IOAccelerator (400.24 - 400.24) <01551ED8-6AE1-307D-A3F0-DCA85FAA5210> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
0x7fff5f6f8000 - 0x7fff5f711ff7 com.apple.IOPresentment (1.0 - 37) <751130A1-8639-3BDA-BF8F-A3BE54427E43> /System/Library/PrivateFrameworks/IOPresentment.framework/Versions/A/IOPresentment
0x7fff5fb24000 - 0x7fff5fb53ff7 com.apple.IconServices (379 - 379) <BE9E71B4-C00E-317D-9093-6E637C905A09> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
0x7fff5fc7e000 - 0x7fff5fc82fff com.apple.InternationalSupport (1.0 - 10.15.6) <F0E300AD-1E67-3D57-B179-C2212F7CD00C> /System/Library/PrivateFrameworks/InternationalSupport.framework/Versions/A/InternationalSupport
0x7fff5fdf2000 - 0x7fff5fe05fff com.apple.security.KeychainCircle.KeychainCircle (1.0 - 1) <10A17A9D-564E-3841-A433-D6D7401ED733> /System/Library/PrivateFrameworks/KeychainCircle.framework/Versions/A/KeychainCircle
0x7fff5fe20000 - 0x7fff5ff17fff com.apple.LanguageModeling (1.0 - 159.15.15) <E524CC46-42C7-3046-AD6C-5D5D768EA478> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
0x7fff5ff18000 - 0x7fff5ff59ff7 com.apple.Lexicon-framework (1.0 - 33.15.10) <90C1CFE1-9935-3F4F-8A9B-1DD697F2FF3D> /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
0x7fff5ff60000 - 0x7fff5ff66ff7 com.apple.LinguisticData (1.0 - 238.15.29) <D27B30BA-3F5D-3AF2-895C-3B64569EEA1B> /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData
0x7fff607c3000 - 0x7fff607c6fff com.apple.Mangrove (1.0 - 25) <8744DBF9-3375-392C-8EE6-24373E0D19E8> /System/Library/PrivateFrameworks/Mangrove.framework/Versions/A/Mangrove
0x7fff60cc0000 - 0x7fff60ce8ffb com.apple.spotlight.metadata.utilities (1.0 - 1191.51) <7CD28A81-F0D6-3575-8F83-3D45D53F72BB> /System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities
0x7fff60ce9000 - 0x7fff60d7bfff com.apple.gpusw.MetalTools (1.0 - 1) <60BE7793-D8DE-3DF1-94D7-503301EC1E72> /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools
0x7fff60f25000 - 0x7fff60f40fff com.apple.MobileKeyBag (2.0 - 1.0) <E9F2FF73-22D0-35B5-BD2C-9DD8FDB12BCC> /System/Library/PrivateFrameworks/MobileKeyBag.framework/Versions/A/MobileKeyBag
0x7fff60fce000 - 0x7fff60ff8ff7 com.apple.MultitouchSupport.framework (2400.15 - 2400.15) <A2BB198C-0B1A-3988-8611-9A9BCCE650B5> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x7fff6126a000 - 0x7fff61274fff com.apple.NetAuth (6.2 - 6.2) <55DC741A-A01A-380C-B2D3-244241DA1F2C> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x7fff61b3f000 - 0x7fff61b95fff com.apple.OTSVG (1.0 - ???) <A0E0FC0B-B48F-3639-9C50-BAECC72988D5> /System/Library/PrivateFrameworks/OTSVG.framework/Versions/A/OTSVG
0x7fff62cf8000 - 0x7fff62d07ff3 com.apple.PerformanceAnalysis (1.217 - 217) <8560F263-31F4-3CCA-84B1-30C296DC1A7D> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
0x7fff64cc0000 - 0x7fff64cdeff7 com.apple.ProtocolBuffer (1 - 263) <C5AC21FB-74AD-3FC2-B231-B1376751BBAE> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer
0x7fff64e8d000 - 0x7fff64ee5f0f com.apple.ROCKit (24 - 24) <5437F6F7-453F-3D75-9E87-D2A090D82D25> /System/Library/PrivateFrameworks/ROCKit.framework/Versions/A/ROCKit
0x7fff64fa6000 - 0x7fff64fb2ff3 com.apple.xpc.RemoteServiceDiscovery (1.0 - 1336.201.2) <FB030135-1633-378F-A7A6-B1A81AD068A2> /System/Library/PrivateFrameworks/RemoteServiceDiscovery.framework/Versions/A/RemoteServiceDiscovery
0x7fff64fc5000 - 0x7fff64fe8ffb com.apple.RemoteViewServices (2.0 - 128) <68530B4D-B2C0-3271-941B-D9EA62095727> /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
0x7fff64fe9000 - 0x7fff64ffdfff com.apple.xpc.RemoteXPC (1.0 - 1336.201.2) <1E00A78B-1934-39A0-8F35-48CBEB93D04C> /System/Library/PrivateFrameworks/RemoteXPC.framework/Versions/A/RemoteXPC
0x7fff66956000 - 0x7fff66a75fff com.apple.Sharing (1176.11 - 1176.11) <9881AEAD-5410-33F7-A852-770C7FE677C9> /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
0x7fff67827000 - 0x7fff67ad7ff7 com.apple.SkyLight (1.600.0 - 336.80.6) <5F7D2312-0003-354C-82BC-DC346B1A98E6> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
0x7fff682a6000 - 0x7fff682b3fff com.apple.SpeechRecognitionCore (5.0.21 - 5.0.21) <816EC315-3E76-37B7-A495-B4AE031DA439> /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
0x7fff69114000 - 0x7fff691a1ff7 com.apple.Symbolication (10.0 - 64254.5) <7D5FB79E-1121-3DB0-9CBE-C023835ACE60> /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
0x7fff696aa000 - 0x7fff696b7ff3 com.apple.TCC (1.0 - 1) <55C045F7-D8AB-3BE6-970B-9457FA78E7E3> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x7fff69926000 - 0x7fff699edff7 com.apple.TextureIO (3.8.4 - 3.8.1) <F9D5F55D-9A33-326E-8B2F-B533CC91DD64> /System/Library/PrivateFrameworks/TextureIO.framework/Versions/A/TextureIO
0x7fff69aae000 - 0x7fff69c68fff com.apple.UIFoundation (1.0 - 550.35) <1CAAA3AC-1477-3E24-B55C-07A704D7CA03> /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
0x7fff6b25a000 - 0x7fff6b25dfff com.apple.dt.XCTTargetBootstrap (1.0 - 1) <63A533F6-988D-3FED-A1C7-20BC725A0D4B> /System/Library/PrivateFrameworks/XCTTargetBootstrap.framework/Versions/A/XCTTargetBootstrap
0x7fff6b68e000 - 0x7fff6b690ff3 com.apple.loginsupport (1.0 - 1) <5F1E000D-0674-3413-AB3E-83F7974666FB> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
0x7fff6b94a000 - 0x7fff6b982fff libCRFSuite.dylib (41.15.4) <62EDD39F-6D1B-334B-A9A2-5800714255BB> /usr/lib/libCRFSuite.dylib
0x7fff6b985000 - 0x7fff6b990ff7 libChineseTokenizer.dylib (28.15.3) <8CD1C213-7F62-3F02-BFB1-D0A5EFF92AB0> /usr/lib/libChineseTokenizer.dylib
0x7fff6ba21000 - 0x7fff6ba22ff7 libDiagnosticMessagesClient.dylib (107) <C542CB3C-AA44-3D7F-B88C-79CC31B481AB> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff6ba59000 - 0x7fff6bc1cff7 libFosl_dynamic.dylib (18.3.2) <6EF1CB2A-2BDA-3458-B631-F794D72660FD> /usr/lib/libFosl_dynamic.dylib
0x7fff6bc72000 - 0x7fff6bc91ffb libMobileGestalt.dylib (645.200.76) <A2C32318-0E35-3963-B9B7-E1E92AD33BA6> /usr/lib/libMobileGestalt.dylib
0x7fff6bc92000 - 0x7fff6bc92fff libOpenScriptingUtil.dylib (178) <2EEBF84D-9E00-3570-AC0C-C49C8D25A8BF> /usr/lib/libOpenScriptingUtil.dylib
0x7fff6bdd3000 - 0x7fff6bdd4ffb libSystem.B.dylib (1252.200.5) <D5133811-9D66-3DEB-9521-0A67347C9A54> /usr/lib/libSystem.B.dylib
0x7fff6be5e000 - 0x7fff6be5ffff libThaiTokenizer.dylib (2.15.1) <A8235B04-F541-3856-BE2E-B58EE0483AD9> /usr/lib/libThaiTokenizer.dylib
0x7fff6be72000 - 0x7fff6be88ffb libapple_nghttp2.dylib (1.24.1) <B8D45114-3868-3154-BC35-22597E3E7D8A> /usr/lib/libapple_nghttp2.dylib
0x7fff6be89000 - 0x7fff6beb2ffb libarchive.2.dylib (54.200.3) <B47C54A0-3A30-374A-BD99-2304B9B0EC82> /usr/lib/libarchive.2.dylib
0x7fff6beb3000 - 0x7fff6bf32fef libate.dylib (1.13.8) <C647A80F-6F80-3FDA-A9B4-92800999F963> /usr/lib/libate.dylib
0x7fff6bf36000 - 0x7fff6bf36ff3 libauto.dylib (187) <01824E49-F2EF-3FC1-ABF3-782EFDF6CA17> /usr/lib/libauto.dylib
0x7fff6c00e000 - 0x7fff6c01eff3 libbsm.0.dylib (39.200.18) <5E5098D0-F7B2-32A1-8038-E709F6718D4E> /usr/lib/libbsm.0.dylib
0x7fff6c01f000 - 0x7fff6c02dfff libbz2.1.0.dylib (38.200.3) <4EE3C5E8-BEF3-3910-A231-B1AE2B437E01> /usr/lib/libbz2.1.0.dylib
0x7fff6c02e000 - 0x7fff6c085ff7 libc++.1.dylib (400.9.4) <D4AB366F-48A9-3C7D-91BD-41198F69DD57> /usr/lib/libc++.1.dylib
0x7fff6c086000 - 0x7fff6c09bfff libc++abi.dylib (400.17) <BA948A32-9024-3E55-98D4-18E31F6AED25> /usr/lib/libc++abi.dylib
0x7fff6c09c000 - 0x7fff6c09cff3 libcharset.1.dylib (51.200.6) <D998A58B-E4A8-3685-9A6A-43AFC28100EB> /usr/lib/libcharset.1.dylib
0x7fff6c09d000 - 0x7fff6c0adffb libcmph.dylib (6.15.1) <5D776FF6-DF7F-3EDD-B920-C07ED76C672B> /usr/lib/libcmph.dylib
0x7fff6c0ae000 - 0x7fff6c0c6ffb libcompression.dylib (52.200.13) <EA767836-CBDC-318D-AC14-963C90D6CC67> /usr/lib/libcompression.dylib
0x7fff6c371000 - 0x7fff6c387fff libcoretls.dylib (155.200.6) <6E68F922-752C-311F-B56D-EE391E6AE1F7> /usr/lib/libcoretls.dylib
0x7fff6c388000 - 0x7fff6c389ff3 libcoretls_cfhelpers.dylib (155.200.6) <7300BA76-39D2-349E-9FB8-EBE5947A708A> /usr/lib/libcoretls_cfhelpers.dylib
0x7fff6ca00000 - 0x7fff6ca56ffb libcups.2.dylib (462.9) <51E06E95-891F-3B88-A8C3-35B514C57239> /usr/lib/libcups.2.dylib
0x7fff6cb8e000 - 0x7fff6cb8efff libenergytrace.dylib (17.200.1) <D62ED169-B91C-3CCB-ADF5-E66AE4007B51> /usr/lib/libenergytrace.dylib
0x7fff6cbc0000 - 0x7fff6cbc5ff7 libgermantok.dylib (17.15.2) <9CBF0658-E83B-32E6-B674-3EE72D22C041> /usr/lib/libgermantok.dylib
0x7fff6cbc6000 - 0x7fff6cbcbff7 libheimdal-asn1.dylib (520.200.17) <58971629-3850-3905-A9A1-09FCF7A32815> /usr/lib/libheimdal-asn1.dylib
0x7fff6cbf7000 - 0x7fff6cce8ff7 libiconv.2.dylib (51.200.6) <3240A278-F537-3EC8-BE0C-983797520A50> /usr/lib/libiconv.2.dylib
0x7fff6cce9000 - 0x7fff6cf4cffb libicucore.A.dylib (62107.0.1) <EAE6FC43-3AD2-3A53-9F7A-4E5E5F66D006> /usr/lib/libicucore.A.dylib
0x7fff6cf99000 - 0x7fff6cf9afff liblangid.dylib (128.15.1) <F79B6250-C0B1-3E8E-851F-6CA33B4311A3> /usr/lib/liblangid.dylib
0x7fff6cf9b000 - 0x7fff6cfb3fff liblzma.5.dylib (10.200.3) <3ADDFA63-F37A-3C9C-91E4-58EE3113B9A1> /usr/lib/liblzma.5.dylib
0x7fff6cfcb000 - 0x7fff6d07bfff libmecab.1.0.0.dylib (779.15.23) <6A38FCDA-17CE-30C3-AB66-A714CF645384> /usr/lib/libmecab.1.0.0.dylib
0x7fff6d07c000 - 0x7fff6d2b9fff libmecabra.dylib (779.15.23) <30E102AA-F3D3-3572-A1AE-1F2287DEF696> /usr/lib/libmecabra.dylib
0x7fff6d2be000 - 0x7fff6d2eeff7 libncurses.5.4.dylib (53.200.3) <F29546FD-148A-3784-931F-1E5BC9C76412> /usr/lib/libncurses.5.4.dylib
0x7fff6d491000 - 0x7fff6d7e9fff libnetwork.dylib (1229.200.109) <AD59D28C-CCB2-3B34-B904-8CCCEB2CF320> /usr/lib/libnetwork.dylib
0x7fff6d87a000 - 0x7fff6e000fe7 libobjc.A.dylib (750) <2E868147-8818-359E-8CD7-A8B80665928F> /usr/lib/libobjc.A.dylib
0x7fff6e013000 - 0x7fff6e017ffb libpam.2.dylib (22.200.1) <8C419238-675A-3C41-B8D4-95E391CA630F> /usr/lib/libpam.2.dylib
0x7fff6e01a000 - 0x7fff6e050ff7 libpcap.A.dylib (79.200.4) <5939AB23-B2A9-3C03-B6C1-4F0E5A21D9FC> /usr/lib/libpcap.A.dylib
0x7fff6e16a000 - 0x7fff6e182ffb libresolv.9.dylib (65.200.2) <0FEAEB01-B926-37FA-AB47-99BAC481C10B> /usr/lib/libresolv.9.dylib
0x7fff6e1d4000 - 0x7fff6e1d5ffb libspindump.dylib (266) <0E60D709-0A48-3905-ACD1-9DDE6FD8B476> /usr/lib/libspindump.dylib
0x7fff6e1d6000 - 0x7fff6e3adfe7 libsqlite3.dylib (274.20) <4434B695-BC65-30D6-AFED-1B6488DB3D2E> /usr/lib/libsqlite3.dylib
0x7fff6e63a000 - 0x7fff6e63dffb libutil.dylib (51.200.4) <91EE9BF4-FB06-3260-B502-7EFDAD5AF59B> /usr/lib/libutil.dylib
0x7fff6e63e000 - 0x7fff6e64bfff libxar.1.dylib (404) <4B4D0206-0B62-3E89-AD07-E7BB9E4DFA68> /usr/lib/libxar.1.dylib
0x7fff6e650000 - 0x7fff6e733fff libxml2.2.dylib (32.6) <BFF70F01-6755-36B9-B7AA-724743E63503> /usr/lib/libxml2.2.dylib
0x7fff6e734000 - 0x7fff6e75cff3 libxslt.1.dylib (16.1) <F191E8B9-7530-30CA-873B-2FA2BF2D6374> /usr/lib/libxslt.1.dylib
0x7fff6e75d000 - 0x7fff6e76fffb libz.1.dylib (70.200.4) <99A3D725-8388-38B4-B66C-5E9006E6F072> /usr/lib/libz.1.dylib
0x7fff6e7e0000 - 0x7fff6e7e4ff3 libcache.dylib (81) <FE21A7E9-DBEB-33AC-836B-785AD036ACF4> /usr/lib/system/libcache.dylib
0x7fff6e7e5000 - 0x7fff6e7efff3 libcommonCrypto.dylib (60118.200.6) <78093D4F-91DB-35C8-981A-13375778B2E7> /usr/lib/system/libcommonCrypto.dylib
0x7fff6e7f0000 - 0x7fff6e7f7fff libcompiler_rt.dylib (63.4) <A4D9CF37-D076-3CE9-95F1-DA89DA1601B6> /usr/lib/system/libcompiler_rt.dylib
0x7fff6e7f8000 - 0x7fff6e801ff3 libcopyfile.dylib (146.200.3) <4BCDADBF-79F5-3829-B47D-64DA0D44BCBF> /usr/lib/system/libcopyfile.dylib
0x7fff6e802000 - 0x7fff6e886fff libcorecrypto.dylib (602.200.50) <7AEC5B72-0B92-37E8-808B-6732DB714139> /usr/lib/system/libcorecrypto.dylib
0x7fff6e90c000 - 0x7fff6e946ff7 libdispatch.dylib (1008.200.78) <B8962879-AD55-3CF0-9B0A-5F1D57D1E14B> /usr/lib/system/libdispatch.dylib
0x7fff6e947000 - 0x7fff6e976fff libdyld.dylib (625.13) <4B16C209-83D4-3817-9B62-C2F7FFB23755> /usr/lib/system/libdyld.dylib
0x7fff6e977000 - 0x7fff6e977ffb libkeymgr.dylib (30) <A73AA788-C35C-3284-BFCA-95B1BBDF0CF3> /usr/lib/system/libkeymgr.dylib
0x7fff6e978000 - 0x7fff6e984ff7 libkxld.dylib (4903.201.2) <EAF1CF8D-3843-33BE-8126-30994685B8F0> /usr/lib/system/libkxld.dylib
0x7fff6e985000 - 0x7fff6e985ff7 liblaunch.dylib (1336.201.2) <43E6698E-155E-3EAE-BAFF-CA5FCB35325C> /usr/lib/system/liblaunch.dylib
0x7fff6e986000 - 0x7fff6e98bfff libmacho.dylib (917) <17BF7038-9C70-3EE1-9E96-3AE10D49669E> /usr/lib/system/libmacho.dylib
0x7fff6e98c000 - 0x7fff6e98eff3 libquarantine.dylib (86.200.11) <C70DA995-0D6E-302C-A15E-F7F03A3857B4> /usr/lib/system/libquarantine.dylib
0x7fff6e98f000 - 0x7fff6e990ff3 libremovefile.dylib (45.200.2) <D74A307B-3DC7-3992-B16C-DACB8207BE13> /usr/lib/system/libremovefile.dylib
0x7fff6e991000 - 0x7fff6e9a8ff3 libsystem_asl.dylib (356.200.4) <EC9D8AD4-E5CB-3765-804A-9E1E9DC045D2> /usr/lib/system/libsystem_asl.dylib
0x7fff6e9a9000 - 0x7fff6e9a9fff libsystem_blocks.dylib (73) <26419398-C30C-30F1-B656-A92AFA9560F6> /usr/lib/system/libsystem_blocks.dylib
0x7fff6e9aa000 - 0x7fff6ea32fff libsystem_c.dylib (1272.200.26) <3DEEE96E-6DF6-35AD-8654-D69AC26B907B> /usr/lib/system/libsystem_c.dylib
0x7fff6ea33000 - 0x7fff6ea36ff7 libsystem_configuration.dylib (963.200.27) <02CC3996-B34E-333C-8806-AE2699D34424> /usr/lib/system/libsystem_configuration.dylib
0x7fff6ea37000 - 0x7fff6ea3aff7 libsystem_coreservices.dylib (66) <254B6849-2C8F-302C-8616-B8324A11AB30> /usr/lib/system/libsystem_coreservices.dylib
0x7fff6ea3b000 - 0x7fff6ea41ffb libsystem_darwin.dylib (1272.200.26) <974E9EF7-DE72-34B7-B056-0A81C10DF8EB> /usr/lib/system/libsystem_darwin.dylib
0x7fff6ea42000 - 0x7fff6ea48ff7 libsystem_dnssd.dylib (878.200.35) <FFC665AA-B257-35AD-BD8B-32FD42C2EEC1> /usr/lib/system/libsystem_dnssd.dylib
0x7fff6ea49000 - 0x7fff6ea95ff3 libsystem_info.dylib (517.200.9) <0707C387-D7DE-372E-8FF1-3DE5C91932D6> /usr/lib/system/libsystem_info.dylib
0x7fff6ea96000 - 0x7fff6eabdff7 libsystem_kernel.dylib (4903.201.2) <45FAA4C0-D553-34FD-ADF8-884886AE0D2A> /usr/lib/system/libsystem_kernel.dylib
0x7fff6eabe000 - 0x7fff6eb09ff7 libsystem_m.dylib (3158.200.7) <43D1796B-954F-37D6-B1AC-9D80DF0655A2> /usr/lib/system/libsystem_m.dylib
0x7fff6eb0a000 - 0x7fff6eb2eff7 libsystem_malloc.dylib (166.200.60) <846F6898-117C-3427-A8FB-3772FFC2410B> /usr/lib/system/libsystem_malloc.dylib
0x7fff6eb2f000 - 0x7fff6eb3affb libsystem_networkextension.dylib (767.200.40) <F84D5474-4DC1-3E1A-AE00-8CE9593278B4> /usr/lib/system/libsystem_networkextension.dylib
0x7fff6eb3b000 - 0x7fff6eb42fff libsystem_notify.dylib (172.200.21) <BCCB222F-DC64-3954-A836-DCCE6659CA5A> /usr/lib/system/libsystem_notify.dylib
0x7fff6eb43000 - 0x7fff6eb4cfef libsystem_platform.dylib (177.200.16) <B75B04AD-69FE-3ADE-84D2-C17972FC8F49> /usr/lib/system/libsystem_platform.dylib
0x7fff6eb4d000 - 0x7fff6eb57fff libsystem_pthread.dylib (330.201.1) <87A6B136-E423-3B6D-A58A-137F392D7D9D> /usr/lib/system/libsystem_pthread.dylib
0x7fff6eb58000 - 0x7fff6eb5bff7 libsystem_sandbox.dylib (851.201.1) <FBA7E09B-F10F-3424-90EA-B4999B7FB461> /usr/lib/system/libsystem_sandbox.dylib
0x7fff6eb5c000 - 0x7fff6eb5eff7 libsystem_secinit.dylib (30.200.13) <CBEAB62B-F0A0-342F-9878-CADC14A3CB0D> /usr/lib/system/libsystem_secinit.dylib
0x7fff6eb5f000 - 0x7fff6eb66ff7 libsystem_symptoms.dylib (820.207.88) <B6E22FA8-0F7B-36FD-9D99-284056D3CB47> /usr/lib/system/libsystem_symptoms.dylib
0x7fff6eb67000 - 0x7fff6eb7cff7 libsystem_trace.dylib (906.200.86) <7983ED77-18B5-39A5-BE19-AE4F2832ADEA> /usr/lib/system/libsystem_trace.dylib
0x7fff6eb7e000 - 0x7fff6eb83ffb libunwind.dylib (35.4) <41222EF6-2233-3CF4-947A-15D48CB8C030> /usr/lib/system/libunwind.dylib
0x7fff6eb84000 - 0x7fff6ebb4fff libxpc.dylib (1336.201.2) <0A8747D1-33AA-37E1-B97A-BA9B95FE4E8C> /usr/lib/system/libxpc.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 627953
thread_create: 0
thread_set_state: 10705
VM Region Summary:
ReadOnly portion of Libraries: Total=494.0M resident=0K(0%) swapped_out_or_unallocated=494.0M(100%)
Writable regions: Total=115.6M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=115.6M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Activity Tracing 256K 2
Dispatch continuations 16.0M 2
Kernel Alloc Once 8K 2
MALLOC 66.3M 15
MALLOC guard page 16K 5
MALLOC_LARGE (reserved) 512K 3 reserved VM address space (unallocated)
STACK GUARD 16K 5
Stack 17.5M 5
VM_ALLOCATE 7940K 18
__DATA 35.1M 310
__FONT_DATA 4K 2
__LINKEDIT 227.1M 49
__TEXT 266.9M 295
__UNICODE 560K 2
mapped file 25.9M 3
shared memory 44K 5
=========== ======= =======
TOTAL 663.9M 707
TOTAL, minus reserved VM space 663.4M 707
Model: MacBookPro11,5, BootROM MBP114.0184.B00, 4 processors, Intel Core i7, 2.8 GHz, 16 GB, SMC 2.30f2
Graphics: AMD Radeon R9 M370X, AMD Radeon R9 M370X, PCIe
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.77.61.1 AirPortDriverBrcmNIC-1305.2)
Bluetooth: Version 6.0.8f6, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Network Service: Thunderbolt Ethernet, Ethernet, en5
PCI Card: Apple 57762-A0, Ethernet Controller, Thunderbolt@195,0,0
Serial ATA Device: APPLE SSD SM1024G, 1 TB
USB Device: USB 3.0 Bus
USB Device: 4-Port USB 3.0 Hub
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Bluetooth USB Host Controller
USB Device: 4-Port USB 2.0 Hub
USB Device: USB Keyboard
USB Device: Gaming Mouse G502
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
Thunderbolt Device: Thunderbolt to Gigabit Ethernet Adapter, Apple Inc., 3, 5.5
"><pre class="notranslate"><code class="notranslate">Process: Python [56825]
Path: /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.7.0 (3.7.0)
Code Type: X86-64 (Native)
Parent Process: zsh [41439]
Responsible: Python [56825]
User ID: 501
Date/Time: 2018-10-07 23:14:16.125 +0800
OS Version: Mac OS X 10.14 (18A391)
Report Version: 12
Anonymous UUID: 57889008-6E5B-C23F-4882-4D9A6CE4A705
Sleep/Wake UUID: A8BCB0C8-69A6-4B89-9B14-B83427A221B1
Time Awake Since Boot: 470000 seconds
Time Since Wake: 180000 seconds
System Integrity Protection: disabled
Crashed Thread: 2 Dispatch queue: com.apple.root.default-qos
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace TCC, Code 0x0
Application Specific Information:
dyld: in dlopen()
/System/Library/Frameworks/CoreMediaIO.framework/Resources/BaseUnits/CMIOBaseUnits.bundle/Contents/MacOS/CMIOBaseUnits
Thread 0:: Dispatch queue: com.apple.main-thread
0 dyld 0x00000001159bb882 ImageLoaderMachOCompressed::rebase(ImageLoader::LinkContext const&, unsigned long) + 434
1 dyld 0x00000001159b1bb8 ImageLoader::recursiveRebase(ImageLoader::LinkContext const&) + 124
2 dyld 0x00000001159b0a05 ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, bool, ImageLoader::RPathChain const&, char const*) + 339
3 dyld 0x00000001159a3891 dyld::link(ImageLoader*, bool, bool, ImageLoader::RPathChain const&, unsigned int) + 161
4 dyld 0x00000001159ad6de dlopen_internal + 480
5 libdyld.dylib 0x00007fff6e949963 dlopen + 200
6 com.apple.CoreFoundation 0x00007fff418eff1e _CFBundleDlfcnLoadBundle + 148
7 com.apple.CoreFoundation 0x00007fff419922e7 _CFBundleLoadExecutableAndReturnError + 519
8 com.apple.CoreFoundation 0x00007fff418f00b9 CFBundleGetFunctionPointerForName + 27
9 com.apple.CoreMedia 0x00007fff429f68e0 FigRegistryItemGetFactory + 68
10 com.apple.CoreMediaIO 0x00007fff42b2eac2 CMIOUnitCreateFromDescription + 1369
11 com.apple.CoreMediaIO 0x00007fff42b1a70f CMIOUnitNodeInfo::Open() + 59
12 com.apple.CoreMediaIO 0x00007fff42b08f42 CMIOGraph::CreateNode(unsigned int, unsigned int, OpaqueCMIOUnit*, CMIOUnitDescription const&, void const*, int&) + 174
13 com.apple.CoreMediaIO 0x00007fff42b08d70 CMIOGraphCreateNode + 336
14 com.apple.avfoundation 0x00007fff3d82bfdf -[AVCaptureDeviceInput addInputUnitsForInputPort:toGraph:ofCaptureSession:error:] + 437
15 com.apple.avfoundation 0x00007fff3d82bcdb -[AVCaptureSession _buildGraphUnitsForInputPort:error:] + 730
16 com.apple.avfoundation 0x00007fff3d7f9fbe -[AVCaptureSession _buildAndRunGraph] + 643
17 com.apple.avfoundation 0x00007fff3d7fe8da -[AVCaptureSession _setRunning:] + 258
18 com.apple.avfoundation 0x00007fff3d7fe76e -[AVCaptureSession startRunning] + 97
19 cv2.cpython-37m-darwin.so 0x00000001099167e5 CvCaptureCAM::startCaptureDevice(int) + 1109
20 cv2.cpython-37m-darwin.so 0x000000010991617c cvCreateCameraCapture_AVFoundation(int) + 108
21 cv2.cpython-37m-darwin.so 0x00000001098f1965 cv::VideoCapture_create(CvCapture*&, cv::Ptr<cv::IVideoCapture>&, cv::VideoCaptureAPIs, int) + 725
22 cv2.cpython-37m-darwin.so 0x0000000109902f9a cv::VideoCapture::open(int, int) + 346
23 cv2.cpython-37m-darwin.so 0x0000000109903184 cv::VideoCapture::open(int) + 68
24 cv2.cpython-37m-darwin.so 0x000000010990281c cv::VideoCapture::VideoCapture(int) + 92
25 cv2.cpython-37m-darwin.so 0x0000000108e4b15d pyopencv_cv_VideoCapture_VideoCapture(pyopencv_VideoCapture_t*, _object*, _object*) + 765
26 org.python.python 0x000000010886bb69 type_call + 178
27 org.python.python 0x000000010883072d _PyObject_FastCallKeywords + 359
28 org.python.python 0x00000001088c6977 call_function + 592
29 org.python.python 0x00000001088bf5ef _PyEval_EvalFrameDefault + 6994
30 org.python.python 0x00000001088c72db _PyEval_EvalCodeWithName + 1835
31 org.python.python 0x00000001088bda15 PyEval_EvalCode + 42
32 org.python.python 0x00000001088ec2ab run_mod + 54
33 org.python.python 0x00000001088eaf2e PyRun_InteractiveOneObjectEx + 561
34 org.python.python 0x00000001088ea777 PyRun_InteractiveLoopFlags + 116
35 org.python.python 0x00000001088ea6d0 PyRun_AnyFileExFlags + 60
36 org.python.python 0x00000001089023bc pymain_main + 6026
37 org.python.python 0x00000001089027b8 _Py_UnixMain + 104
38 libdyld.dylib 0x00007fff6e95e085 start + 1
Thread 1:
0 libsystem_pthread.dylib 0x00007fff6eb4f408 start_wqthread + 0
1 ??? 0x0000000054485244 0 + 1414025796
Thread 2 Crashed:: Dispatch queue: com.apple.root.default-qos
0 libsystem_kernel.dylib 0x00007fff6eab401e __abort_with_payload + 10
1 libsystem_kernel.dylib 0x00007fff6eaaf561 abort_with_payload_wrapper_internal + 82
2 libsystem_kernel.dylib 0x00007fff6eaaf593 abort_with_payload + 9
3 com.apple.TCC 0x00007fff696aee24 __CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 173
4 com.apple.TCC 0x00007fff696ad18a __TCCAccessRequest_block_invoke.91 + 647
5 com.apple.TCC 0x00007fff696acd0d __tccd_send_message_block_invoke + 242
6 libxpc.dylib 0x00007fff6eb939b1 _xpc_connection_reply_callout + 36
7 libxpc.dylib 0x00007fff6eb93938 _xpc_connection_call_reply_async + 82
8 libdispatch.dylib 0x00007fff6e90fe35 _dispatch_client_callout3 + 8
9 libdispatch.dylib 0x00007fff6e9263b0 _dispatch_mach_msg_async_reply_invoke + 322
10 libdispatch.dylib 0x00007fff6e91ea70 _dispatch_kevent_worker_thread + 1390
11 libsystem_pthread.dylib 0x00007fff6eb4f626 _pthread_wqthread + 419
12 libsystem_pthread.dylib 0x00007fff6eb4f415 start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff6ea96c7e semaphore_timedwait_trap + 10
1 libdispatch.dylib 0x00007fff6e910428 _dispatch_sema4_timedwait + 76
2 libdispatch.dylib 0x00007fff6e910b19 _dispatch_semaphore_wait_slow + 58
3 libdispatch.dylib 0x00007fff6e91db5a _dispatch_worker_thread + 328
4 libsystem_pthread.dylib 0x00007fff6eb5033d _pthread_body + 126
5 libsystem_pthread.dylib 0x00007fff6eb532a7 _pthread_start + 70
6 libsystem_pthread.dylib 0x00007fff6eb4f425 thread_start + 13
Thread 2 crashed with X86 Thread State (64-bit):
rax: 0x0000000002000209 rbx: 0x0000000000000000 rcx: 0x00007000080976d8 rdx: 0x00007f8f9624ef28
rdi: 0x000000000000000b rsi: 0x0000000000000000 rbp: 0x0000700008097720 rsp: 0x00007000080976d8
r8: 0x00007f8f9624ef5c r9: 0x0000000000000000 r10: 0x0000000000000021 r11: 0x0000000000000246
r12: 0x0000000000000021 r13: 0x00007f8f9624ef28 r14: 0x0000000000000000 r15: 0x000000000000000b
rip: 0x00007fff6eab401e rfl: 0x0000000000000246 cr2: 0x0000000108190068
Logical CPU: 0
Error Code: 0x02000209
Trap Number: 133
Binary Images:
0x108812000 - 0x108813fff +org.python.python (3.7.0 - 3.7.0) <D4627827-5A3B-32D1-B84A-4F0E6E920E07> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
0x108817000 - 0x10899bff7 +org.python.python (3.7.0, [c] 2001-2018 Python Software Foundation. - 3.7.0) <BB866CA6-41AB-36A2-93C0-FF28F1154662> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/Python
0x108cf5000 - 0x108cf6fff +_heapq.cpython-37m-darwin.so (0) <7F27633E-D5A9-3E71-9B65-5F276DB2F7E5> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_heapq.cpython-37m-darwin.so
0x108d7a000 - 0x108d7dff3 +readline.cpython-37m-darwin.so (0) <238DC538-1F48-3455-ABFB-223E286A8750> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/readline.cpython-37m-darwin.so
0x108d83000 - 0x108da5fff +libreadline.7.dylib (0) <C6ABF766-3BE6-3ADC-81F1-59D554396E63> /usr/local/opt/readline/lib/libreadline.7.dylib
0x108dbd000 - 0x10cdbdfc7 +cv2.cpython-37m-darwin.so (???) <D32B469D-72FE-3469-8C8B-09A7096AA420> /usr/local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-darwin.so
0x10d408000 - 0x10dfacfff +libavcodec.58.18.100.dylib (0) <6101C9D0-906E-397C-A4FA-8C7AEE0AC2BB> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libavcodec.58.18.100.dylib
0x10e5fd000 - 0x10e780fff +libavformat.58.12.100.dylib (0) <782615AD-70BA-349E-AAB8-0E902A48ABD6> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libavformat.58.12.100.dylib
0x10e7c2000 - 0x10e803ff7 +libavutil.56.14.100.dylib (0) <28516D9C-999F-3FB1-8ADB-6CF1C1B91E34> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libavutil.56.14.100.dylib
0x10e81f000 - 0x10e891ff7 +libswscale.5.1.100.dylib (0) <DF7957E5-6BFA-3D19-9B7E-690976D3E2A7> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libswscale.5.1.100.dylib
0x10e89e000 - 0x10e8b7fff +libavresample.4.0.0.dylib (0) <E913A104-C71E-3E91-BA29-EB75B640286F> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libavresample.4.0.0.dylib
0x10e8bb000 - 0x10f187ff7 +QtGui (4.8.7) <E2C32E53-1107-3931-8D2C-8D461E9B952F> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtGui
0x10f45a000 - 0x10f478fff +QtTest (4.8.7) <D6111C0F-1B66-3971-A221-29806B39834A> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtTest
0x10f489000 - 0x10f700ff7 +QtCore (4.8.7) <FFFF9074-81CD-3DD6-8140-A73A387590CF> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtCore
0x10f7ad000 - 0x10f7c4ff7 +libswresample.3.1.100.dylib (0) <FDD2963A-42CB-3D41-ACF9-73E0B0CD4AD9> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libswresample.3.1.100.dylib
0x10f7c9000 - 0x10f800ff3 +libmp3lame.0.dylib (0) <4897A85B-77F6-3F43-9809-BD429A4AB896> /usr/local/lib/python3.7/site-packages/cv2/.dylibs/libmp3lame.0.dylib
0x10f8af000 - 0x10f8b3ffb +math.cpython-37m-darwin.so (0) <A073D551-51E7-3814-B4FA-F55C4309B155> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/math.cpython-37m-darwin.so
0x10f8b9000 - 0x10fa49ff7 +multiarray.cpython-37m-darwin.so (0) <E1001D7B-C042-35D5-85D0-756A0266437D> /usr/local/lib/python3.7/site-packages/numpy/core/multiarray.cpython-37m-darwin.so
0x10fb59000 - 0x10fb64ffb +_datetime.cpython-37m-darwin.so (0) <B222724D-DD14-369D-B29D-989903BB5199> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_datetime.cpython-37m-darwin.so
0x10fb6c000 - 0x10fceffff +umath.cpython-37m-darwin.so (0) <0AEC4FB9-7284-3EC9-B539-6534E1797410> /usr/local/lib/python3.7/site-packages/numpy/core/umath.cpython-37m-darwin.so
0x10fd76000 - 0x10fd85fff +_ctypes.cpython-37m-darwin.so (0) <AC7A0615-C2BF-3FBF-A7FA-066E1D5DA8F3> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_ctypes.cpython-37m-darwin.so
0x10fdd0000 - 0x10fdd3fff +_struct.cpython-37m-darwin.so (0) <BC7BFE77-AFCF-3B30-87E3-6AD443F2A3CA> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_struct.cpython-37m-darwin.so
0x10fe64000 - 0x10fe70ffb +_pickle.cpython-37m-darwin.so (0) <AB313280-89AF-3DE7-8960-D10C0C2BBBA3> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_pickle.cpython-37m-darwin.so
0x11003a000 - 0x11003dfff +zlib.cpython-37m-darwin.so (0) <42D5DF65-E03D-3B65-A47E-467B1B5BFEE2> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/zlib.cpython-37m-darwin.so
0x110042000 - 0x110043fff +_bz2.cpython-37m-darwin.so (0) <68E6C57B-209A-3525-A560-C8AD30DF6EA0> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_bz2.cpython-37m-darwin.so
0x110087000 - 0x11008aff7 +_lzma.cpython-37m-darwin.so (0) <755B1A53-3CC6-37A6-BDE9-1609BE35CADB> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_lzma.cpython-37m-darwin.so
0x11008f000 - 0x1100aaff3 +liblzma.5.dylib (0) <D5E25B2B-6DFB-3233-850B-65F488A14688> /usr/local/opt/xz/lib/liblzma.5.dylib
0x1100b0000 - 0x1100b1fff +grp.cpython-37m-darwin.so (0) <EB90F1F6-2F43-398E-99BB-DCA6F7CD1F5F> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/grp.cpython-37m-darwin.so
0x1100b4000 - 0x1100b7fff +_hashlib.cpython-37m-darwin.so (0) <0C054EC4-AF64-3386-A548-CD8EBBA48925> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_hashlib.cpython-37m-darwin.so
0x1100bb000 - 0x1100fbff7 +libssl.1.0.0.dylib (0) <8BBE0FE2-0934-3729-9C7F-D701190D57E5> /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
0x11011a000 - 0x11026ce3f +libcrypto.1.0.0.dylib (0) <099E3C07-2BD0-3AA4-AAE5-7E33A5921880> /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
0x1102e5000 - 0x1102eaffb +_blake2.cpython-37m-darwin.so (0) <6BCE1DF0-6B1F-3120-B284-8799A2FAF4A9> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_blake2.cpython-37m-darwin.so
0x1102ee000 - 0x1102fefff +_sha3.cpython-37m-darwin.so (0) <1CA59D87-D21C-32DC-92AC-5525A1A1C04E> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_sha3.cpython-37m-darwin.so
0x110303000 - 0x110303fff +_bisect.cpython-37m-darwin.so (0) <9BAE67A9-0F97-382B-A43A-310CFA6003DC> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_bisect.cpython-37m-darwin.so
0x110306000 - 0x110307fff +_random.cpython-37m-darwin.so (0) <96AB86A6-4976-3E2D-98C3-75715A9BD9AC> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_random.cpython-37m-darwin.so
0x11038a000 - 0x11038cfff +lapack_lite.cpython-37m-darwin.so (0) <D8203FBD-7CB0-3E7E-848C-90EC2B82D83D> /usr/local/lib/python3.7/site-packages/numpy/linalg/lapack_lite.cpython-37m-darwin.so
0x110390000 - 0x1103a8ff7 +_umath_linalg.cpython-37m-darwin.so (0) <5A8AE4B1-03BC-3B11-8383-C6FA7C88952D> /usr/local/lib/python3.7/site-packages/numpy/linalg/_umath_linalg.cpython-37m-darwin.so
0x110436000 - 0x110464ff7 +_decimal.cpython-37m-darwin.so (0) <99BA6424-F300-3D8C-8C82-094CB6F388BC> /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/_decimal.cpython-37m-darwin.so
0x110477000 - 0x110484fff +_multiarray_tests.cpython-37m-darwin.so (0) <A5F86676-A7BB-3273-8CF7-282D49EEE935> /usr/local/lib/python3.7/site-packages/numpy/core/_multiarray_tests.cpython-37m-darwin.so
0x110524000 - 0x110530ffb +fftpack_lite.cpython-37m-darwin.so (0) <65F2854C-C703-30C8-BBE3-6B9BB8D181EC> /usr/local/lib/python3.7/site-packages/numpy/fft/fftpack_lite.cpython-37m-darwin.so
0x110574000 - 0x110619ffb +mtrand.cpython-37m-darwin.so (0) <ADD72AB6-C6EA-379E-95FB-E822BC049631> /usr/local/lib/python3.7/site-packages/numpy/random/mtrand.cpython-37m-darwin.so
0x1107ac000 - 0x1107b0fff com.apple.audio.AppleHDAHALPlugIn (282.10 - 282.10) <94DDF962-09E0-3B3E-B887-9A0301022190> /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
0x1107b6000 - 0x1107d5ff7 com.apple.cmio.DAL.AppleCamera (400.6.7 - AppleCameraDeviceAbstractionLayer-6.7.0) <32FABC39-11D9-359F-96E0-5907DD32CBFE> /Library/CoreMediaIO/*/AppleCamera.plugin/Contents/MacOS/AppleCamera
0x1131e4000 - 0x113223fff com.apple.cmio.DAL.VDC-4 (810.0 - 193.200.13) <561AA900-DDB3-34DC-8F41-3B9156962DB4> /System/Library/Frameworks/CoreMediaIO.framework/Resources/VDC.plugin/Contents/MacOS/VDC
0x113244000 - 0x113382fff com.apple.CMIOUnits (900.0 - 5025) <D2775713-AB68-320C-A1E7-F367F7BA8F9A> /System/Library/Frameworks/CoreMediaIO.framework/Resources/CMIOUnits.bundle/Contents/MacOS/CMIOUnits
0x1133a7000 - 0x113444fff com.apple.CMIOBaseUnits (900.0 - 5025) <8C2A61AE-B592-3463-BC4B-27E0642A37F9> /System/Library/Frameworks/CoreMediaIO.framework/Resources/BaseUnits/CMIOBaseUnits.bundle/Contents/MacOS/CMIOBaseUnits
0x11599e000 - 0x115a1c6a7 dyld (625.13) <D6387150-2FB8-3066-868D-72E1B1C43982> /usr/lib/dyld
0x7fff366ae000 - 0x7fff366bdffb libSimplifiedChineseConverter.dylib (73) <991F3402-E9C7-3BE3-BC60-73326DADB2D5> /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib
0x7fff3d7f5000 - 0x7fff3d9e3ff3 com.apple.avfoundation (2.0 - 1540.118.2) <1EE74E35-F16B-3034-AEA5-723198E519F8> /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation
0x7fff3d9e4000 - 0x7fff3dab2ff7 com.apple.audio.AVFAudio (1.0 - ???) <727A6D92-D1F2-3179-80D3-51F1481F5A87> /System/Library/Frameworks/AVFoundation.framework/Versions/A/Frameworks/AVFAudio.framework/Versions/A/AVFAudio
0x7fff3dbc0000 - 0x7fff3dbc0fff com.apple.Accelerate (1.11 - Accelerate 1.11) <2C602CED-72CA-37C2-BDF5-31697FC9100B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff3dbd8000 - 0x7fff3e278fe3 com.apple.vImage (8.1 - ???) <65912AFB-D4C1-3494-AE97-DDFDAF3BE1EB> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff3e279000 - 0x7fff3e4f0fd7 libBLAS.dylib (1243.200.4) <76710990-AE2B-300E-88BB-797ABAD74956> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x7fff3e4f1000 - 0x7fff3e563fe7 libBNNS.dylib (38.200.5) <5F3A4021-8FF8-30E8-B84A-AA2BD70F4151> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib
0x7fff3e564000 - 0x7fff3e90afff libLAPACK.dylib (1243.200.4) <45722A8A-5788-3C4C-ADD9-1812763FA635> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x7fff3e90b000 - 0x7fff3e920ffb libLinearAlgebra.dylib (1243.200.4) <E923DA33-B142-3A73-A80A-642878D19099> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
0x7fff3e921000 - 0x7fff3e926ff3 libQuadrature.dylib (3.200.2) <6FFAC142-415D-3AF0-BC09-336302F11934> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib
0x7fff3e927000 - 0x7fff3e9a4ffb libSparse.dylib (79.200.5) <0D7E71A4-10D2-3979-B386-D2426ADAF6D7> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib
0x7fff3e9a5000 - 0x7fff3e9b8ffb libSparseBLAS.dylib (1243.200.4) <00D6FC17-B739-3259-90A4-92AC8BBE03D6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
0x7fff3e9b9000 - 0x7fff3eb9dff3 libvDSP.dylib (671.201.1) <716585BD-04D7-30A9-B315-689184275E38> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x7fff3eb9e000 - 0x7fff3ec53ff3 libvMisc.dylib (671.201.1) <EDA66C06-A11F-3EE5-96D5-B20893448899> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x7fff3ec54000 - 0x7fff3ec54fff com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) <DADD83A2-550F-3570-8D71-16614C6A4CE0> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
0x7fff3ee05000 - 0x7fff3fc24ff3 com.apple.AppKit (6.9 - 1671) <E1B2CAF1-9231-3B3D-BD9E-B770FE87F407> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff3fc76000 - 0x7fff3fc76fff com.apple.ApplicationServices (50.1 - 50.1) <1B71604B-9AC5-3A2F-8CB7-0EFA34A20F12> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x7fff3fc77000 - 0x7fff3fce2ff7 com.apple.ApplicationServices.ATS (377 - 453.11) <7599E619-EE21-3EB7-875B-AE3B8D3E13BB> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x7fff3fd7b000 - 0x7fff3fe9afff libFontParser.dylib (228.6) <E800074F-62CF-340A-A5A7-B8BE5B560045> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x7fff3fe9b000 - 0x7fff3fee6fff libFontRegistry.dylib (228.12) <480D472D-C8FB-321D-86EC-2EA6927A97AD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x7fff3ffe2000 - 0x7fff3ffe6ff3 com.apple.ColorSyncLegacy (4.13.0 - 1) <90641B6B-D07B-3577-B594-965825544B60> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSyncLegacy.framework/Versions/A/ColorSyncLegacy
0x7fff40083000 - 0x7fff400d5ff3 com.apple.HIServices (1.22 - 627.14.2) <01F309D6-32E7-3C4F-A38B-8206EE3076CC> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x7fff400d6000 - 0x7fff400e4ff3 com.apple.LangAnalysis (1.7.0 - 1.7.0) <67BC5855-B7A3-39E6-B5DD-52B287EB1532> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x7fff400e5000 - 0x7fff40131fff com.apple.print.framework.PrintCore (14.0 - 503.7) <C13BC56A-65F4-35B1-9E33-51FE6F3B06FD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x7fff40132000 - 0x7fff4016dff7 com.apple.QD (3.12 - 407.2) <94A30038-C545-327A-B1C0-E19C79D62BAB> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x7fff4016e000 - 0x7fff4017aff7 com.apple.speech.synthesis.framework (8.0.15 - 8.0.15) <A96C744B-B1AD-32E3-BA72-7A221684BE3F> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x7fff4017b000 - 0x7fff40417ff7 com.apple.audio.toolbox.AudioToolbox (1.14 - 1.14) <89D2529D-CF36-3081-A700-70892F888718> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x7fff40419000 - 0x7fff40419fff com.apple.audio.units.AudioUnit (1.14 - 1.14) <8B9A5ADB-E62C-3838-BB5E-AF20CAE449CC> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x7fff4077d000 - 0x7fff40b3eff7 com.apple.CFNetwork (974.1 - 974.1) <ACC604FA-5D40-34CE-9206-8091010306B7> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff40b53000 - 0x7fff40b53fff com.apple.Carbon (158 - 158) <DAF95685-B793-34EB-96EA-3E292A9E3378> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x7fff40b54000 - 0x7fff40b57ffb com.apple.CommonPanels (1.2.6 - 98) <F1E1C47B-FD1A-30A4-B41B-87BD8B178B56> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x7fff40b58000 - 0x7fff40e5fff7 com.apple.HIToolbox (2.1.1 - 916.32) <B2ED8B1C-FC3E-3FA0-8F6D-E7A448E6FAA7> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x7fff40e60000 - 0x7fff40e63ffb com.apple.help (1.3.8 - 66) <4392A63F-9B58-3248-BF73-B46AD3744E6E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x7fff40e64000 - 0x7fff40e69ff7 com.apple.ImageCapture (9.0 - 1529.7) <364EDC6B-6374-31A7-A637-0044B73F8DBF> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x7fff40e6a000 - 0x7fff40efeff3 com.apple.ink.framework (10.9 - 225) <D6503F37-7EBC-32C1-95CC-A35EFC54E7ED> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x7fff40eff000 - 0x7fff40f19fff com.apple.openscripting (1.7 - 178) <D4A4D130-9C7B-3656-9D58-50F9D09C276E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x7fff40f3a000 - 0x7fff40f3bfff com.apple.print.framework.Print (14.0 - 267.3) <5CD250DF-98AD-30B8-A5D5-47634FF9E74D> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x7fff40f3c000 - 0x7fff40f3eff7 com.apple.securityhi (9.0 - 55006) <C5308CBC-6736-31A7-905B-C635C6D43FDE> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x7fff40f3f000 - 0x7fff40f45ff7 com.apple.speech.recognition.framework (6.0.3 - 6.0.3) <1C38B9CB-DD45-3A7B-9D4C-631855A4EE32> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x7fff4106c000 - 0x7fff4106cfff com.apple.Cocoa (6.11 - 23) <A520D2A3-032B-3C06-81E1-EFDD97C47ACE> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x7fff4107a000 - 0x7fff41146fff com.apple.ColorSync (4.13.0 - 3340) <0618DA46-5A5E-339D-BB2F-ED66A2BFCCF9> /System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x7fff412e1000 - 0x7fff41371fff com.apple.audio.CoreAudio (4.3.0 - 4.3.0) <5845D43B-BBB5-343B-A164-6F9E2C53CFA3> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff413d7000 - 0x7fff41402ff7 com.apple.CoreBluetooth (1.0 - 1) <D2F48E3D-79FC-32D7-B281-658EAD2CC50B> /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
0x7fff41403000 - 0x7fff417a3feb com.apple.CoreData (120 - 865.2) <90A5058F-A5AF-311A-81CC-B20C2AC9E85E> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
0x7fff417a4000 - 0x7fff4188dfff com.apple.CoreDisplay (101.3 - 101.17.6) <4AE5C221-B8E1-3A4F-91E0-96ED5926E82B> /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay
0x7fff4188e000 - 0x7fff41cddfff com.apple.CoreFoundation (6.9 - 1555.10) <4A4C87BC-4C8E-392A-ABEE-824D4074C485> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff41cdf000 - 0x7fff4236cfff com.apple.CoreGraphics (2.0 - 1245.8.4.8) <FFFFEAF0-14DD-38A3-BD68-AA9AB2C672C1> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x7fff4236e000 - 0x7fff42693ff7 com.apple.CoreImage (14.0.0 - 700.2.220) <E9E7B27C-C4FD-3AD6-923E-DF7EAE36D1FF> /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
0x7fff429e5000 - 0x7fff42ae6ff3 com.apple.CoreMedia (1.0 - 2280.133.4) <5E733D6B-B683-3931-9D02-82300A43378D> /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia
0x7fff42ae7000 - 0x7fff42b49fff com.apple.CoreMediaIO (900.0 - 5025) <BFB3978A-FDBB-352B-A96D-E8761FC51370> /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/CoreMediaIO
0x7fff42b4a000 - 0x7fff42b4afff com.apple.CoreServices (933 - 933) <B79C910E-93B9-3686-8E72-E0B63083AAE5> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff42b4b000 - 0x7fff42bc9ffb com.apple.AE (768 - 768) <E795749D-CE50-3B8C-91A7-8C2618887288> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x7fff42bca000 - 0x7fff42ea2ff7 com.apple.CoreServices.CarbonCore (1178.11 - 1178.11) <9FBE7BFB-3A81-37AC-8E15-E6F7932BBDC0> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x7fff42ea3000 - 0x7fff42eedff7 com.apple.DictionaryServices (1.2 - 284.16.3) <D9388630-E7F2-321E-81FF-EBD5F3B47A52> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x7fff42eee000 - 0x7fff42ef6ffb com.apple.CoreServices.FSEvents (1239.200.12 - 1239.200.12) <E40A3C4A-79C7-37D8-999B-D1169A06870B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
0x7fff42ef7000 - 0x7fff430c2ff7 com.apple.LaunchServices (933 - 933) <4614A4B4-C358-3460-9FA7-DF8D6C466806> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x7fff430c3000 - 0x7fff43165ffb com.apple.Metadata (10.7.0 - 1191.51) <6B9CCA98-6F68-3908-A7A9-96D3E2AE5968> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x7fff43166000 - 0x7fff431b1ff7 com.apple.CoreServices.OSServices (933 - 933) <A92C846F-872D-3534-B60E-6CD445A9BAEE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x7fff431b2000 - 0x7fff43220ff7 com.apple.SearchKit (1.4.0 - 1.4.0) <C6A34D09-9707-3F28-838F-63B59B8A12D5> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x7fff43221000 - 0x7fff43245ffb com.apple.coreservices.SharedFileList (71.27 - 71.27) <B46A15E0-4C10-3616-BE49-58E07EC463FE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
0x7fff43588000 - 0x7fff436edfff com.apple.CoreText (352.0 - 584.24) <5B55B533-F4DE-32CE-8739-16FFFA1A64F8> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
0x7fff436ee000 - 0x7fff4372bfff com.apple.CoreVideo (1.8 - 0.0) <C7BB7D0F-3AF2-3046-A387-A802BCA52A3A> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
0x7fff4372c000 - 0x7fff437c2ffb com.apple.framework.CoreWLAN (13.0 - 1370.8) <19E41424-B956-34DF-AE02-9822308FA3DC> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
0x7fff43a3f000 - 0x7fff43a44fff com.apple.DiskArbitration (2.7 - 2.7) <C53C1905-9BCF-3AE8-8BB3-C8A2C7DB7D25> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x7fff43c0d000 - 0x7fff43fdbfff com.apple.Foundation (6.9 - 1555.10) <0CCAF9AF-F7AF-3174-98D4-6C188B1079CC> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x7fff4404c000 - 0x7fff4407cff3 com.apple.GSS (4.0 - 2.0) <74ACB1A1-A5A4-3180-AC00-688C94AA4434> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
0x7fff44195000 - 0x7fff4429eff3 com.apple.Bluetooth (6.0.8 - 6.0.8f6) <6CB8A08E-1154-3333-83CC-2A939AC94562> /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
0x7fff44300000 - 0x7fff44391fff com.apple.framework.IOKit (2.0.2 - 1483.201.1) <DA4ED91F-2CC9-3CFD-9200-9D5D31EEE4F3> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x7fff44393000 - 0x7fff4439dff7 com.apple.IOSurface (255.1 - 255.1) <538F0257-A408-36AF-AB1E-1D7037D6359E> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x7fff443f4000 - 0x7fff44588ff7 com.apple.ImageIO.framework (3.3.0 - 1796.5.4.1) <9D078F50-BB75-3D04-8636-3FDDAB9C95DA> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
0x7fff44589000 - 0x7fff4458dffb libGIF.dylib (1796.5.4.1) <93AD6FB9-03BA-350E-AF98-D371A2BFD58F> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x7fff4458e000 - 0x7fff44673fef libJP2.dylib (1796.5.4.1) <3780EB9B-5219-385D-9472-17B0397697A5> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x7fff44674000 - 0x7fff44699ff7 libJPEG.dylib (1796.5.4.1) <83CA8BEB-34BD-3B58-A704-C6A875984FAD> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
0x7fff4496c000 - 0x7fff44992fe7 libPng.dylib (1796.5.4.1) <9F30FA63-8AB2-3646-A6A8-FCE9F8436C35> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x7fff44993000 - 0x7fff44995ff7 libRadiance.dylib (1796.5.4.1) <2C07887C-0584-3538-A9EC-3988AA5B234B> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
0x7fff44996000 - 0x7fff449e4fff libTIFF.dylib (1796.5.4.1) <F420B0DC-D0F7-3DD5-9E17-00462441635C> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x7fff45a7a000 - 0x7fff45a93fff com.apple.Kerberos (3.0 - 1) <8BE3D524-257D-3663-A937-F1AC76BDF4D9> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
0x7fff45d50000 - 0x7fff45d5afff com.apple.MediaAccessibility (1.0 - 114.4) <29D89F2B-6254-3D0D-BD0C-8472FCA373F4> /System/Library/Frameworks/MediaAccessibility.framework/Versions/A/MediaAccessibility
0x7fff45e14000 - 0x7fff464b0ff7 com.apple.MediaToolbox (1.0 - 2280.133.4) <FB1C3DD9-A91B-3952-A892-9F009B854F8F> /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox
0x7fff464b2000 - 0x7fff46545fff com.apple.Metal (157.55 - 157.55) <49CD402F-20CB-3930-B997-BBDC495ABF64> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
0x7fff46562000 - 0x7fff46582ff7 com.apple.MetalPerformanceShaders.MPSCore (1.0 - 1) <9A841A76-43BC-3220-A4DA-99137C42A0BC> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Versions/A/MPSCore
0x7fff46583000 - 0x7fff46600fef com.apple.MetalPerformanceShaders.MPSImage (1.0 - 1) <C469D1E5-F621-3E56-87AC-1BD889664FA3> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/Versions/A/MPSImage
0x7fff46601000 - 0x7fff46629fff com.apple.MetalPerformanceShaders.MPSMatrix (1.0 - 1) <8C57A3A2-8EBB-3401-87FC-368D1BE6DAAC> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/Versions/A/MPSMatrix
0x7fff4662a000 - 0x7fff46751ff7 com.apple.MetalPerformanceShaders.MPSNeuralNetwork (1.0 - 1) <CE3201A3-4ACE-3E79-990B-8987C576B31B> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Versions/A/MPSNeuralNetwork
0x7fff46752000 - 0x7fff4676dff7 com.apple.MetalPerformanceShaders.MPSRayIntersector (1.0 - 1) <8F02CFCA-41E1-3194-915F-3106E8B48B32> /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSRayIntersector.framework/Versions/A/MPSRayIntersector
0x7fff4676e000 - 0x7fff4676eff7 com.apple.MetalPerformanceShaders.MetalPerformanceShaders (1.0 - 1) <8B715D78-8357-38F4-A03C-926EE967CE71> /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders
0x7fff4796d000 - 0x7fff47979ffb com.apple.NetFS (6.0 - 4.0) <529E29A9-5E77-3A8C-A982-CF55F949FE5D> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
0x7fff4a439000 - 0x7fff4a492ff7 com.apple.opencl (2.12.1 - 2.12.1) <3EAE5BC8-E948-3926-9319-9DAC2A8B5484> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
0x7fff4a493000 - 0x7fff4a4afff7 com.apple.CFOpenDirectory (10.14 - 207.200.4) <7E4EFF02-2596-31E6-88DE-29C89E2837E4> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
0x7fff4a4b0000 - 0x7fff4a4bcffb com.apple.OpenDirectory (10.14 - 207.200.4) <52A3918E-0F7A-33FD-87EE-21A37B37D13B> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
0x7fff4ae1f000 - 0x7fff4ae21fff libCVMSPluginSupport.dylib (17.0.37) <38A18A32-BBF2-3A0F-AE37-51734B6CA91A> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
0x7fff4ae22000 - 0x7fff4ae27ff3 libCoreFSCache.dylib (163.20) <BF8F04DD-C1A1-3D2A-BF3F-639FE907E28D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib
0x7fff4ae28000 - 0x7fff4ae2cfff libCoreVMClient.dylib (163.20) <45A2C724-F3D1-316A-9A41-CAB8E2A390EC> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
0x7fff4ae2d000 - 0x7fff4ae35ffb libGFXShared.dylib (17.0.37) <267B40DF-2939-3D76-89FA-E8DBDEE96D92> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x7fff4ae36000 - 0x7fff4ae41fff libGL.dylib (17.0.37) <2E25A83B-B560-34A1-B474-3027C8B75BA4> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x7fff4ae42000 - 0x7fff4ae7cfef libGLImage.dylib (17.0.37) <49C5F799-66E5-3A81-AF88-948DD0E583FA> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x7fff4aff0000 - 0x7fff4b02dfff libGLU.dylib (17.0.37) <79555E42-B816-3106-8FA0-FC14A54AE8B3> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x7fff4b9dd000 - 0x7fff4b9ecff3 com.apple.opengl (17.0.37 - 17.0.37) <FA76EAA6-D035-3444-87F5-DD95446D651D> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x7fff4c848000 - 0x7fff4ca9efff com.apple.QuartzCore (1.11 - 693.16.4.2) <2C9E3279-3F97-3440-B937-E5FE888232E2> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x7fff4d2ec000 - 0x7fff4d612fff com.apple.security (7.0 - 58286.200.222) <AEB638D9-BFE9-319E-A70B-557ACF41117A> /System/Library/Frameworks/Security.framework/Versions/A/Security
0x7fff4d613000 - 0x7fff4d6a2fff com.apple.securityfoundation (6.0 - 55185.200.14) <770D67D1-3DA6-3FD3-8531-376712BA4F60> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
0x7fff4d6d4000 - 0x7fff4d6d8ff3 com.apple.xpc.ServiceManagement (1.0 - 1) <20DB899D-3BAF-36FD-86A6-F66A82074607> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
0x7fff4da95000 - 0x7fff4db05ff3 com.apple.SystemConfiguration (1.17 - 1.17) <EED5BC9B-CE8D-343C-BCDC-04A79F704828> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x7fff4dced000 - 0x7fff4dcedfff com.apple.VideoDecodeAcceleration (1.1 - 11) <0A4E81E6-4F3F-300D-8D42-A687D21BBD9F> /System/Library/Frameworks/VideoDecodeAcceleration.framework/Versions/A/VideoDecodeAcceleration
0x7fff4dd66000 - 0x7fff4e0c8ff7 com.apple.VideoToolbox (1.0 - 2280.133.4) <468A9F6D-33AB-31D3-A8A3-A6A432033C9E> /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox
0x7fff50d6a000 - 0x7fff50e0fff7 com.apple.APFS (1.0 - 1) <CBE5EE83-7A5F-3C10-93FF-F6DA84DFB875> /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS
0x7fff5184b000 - 0x7fff5184cff3 com.apple.AggregateDictionary (1.0 - 1) <1DEBBE36-8945-3AD8-BD48-2850AD845711> /System/Library/PrivateFrameworks/AggregateDictionary.framework/Versions/A/AggregateDictionary
0x7fff51e47000 - 0x7fff51e73ff7 com.apple.framework.Apple80211 (13.0 - 1375.14) <79EBF155-EAB2-37EE-BF8C-57BC453217B1> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
0x7fff5214f000 - 0x7fff5215efcf com.apple.AppleFSCompression (96.200.3 - 1.0) <E093776E-C367-3CCF-BFD5-623476A89E9A> /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression
0x7fff5225c000 - 0x7fff52267fff com.apple.AppleIDAuthSupport (1.0 - 1) <5362D9AD-A2AE-3436-97CE-C353124504E5> /System/Library/PrivateFrameworks/AppleIDAuthSupport.framework/Versions/A/AppleIDAuthSupport
0x7fff522a8000 - 0x7fff522f1ff3 com.apple.AppleJPEG (1.0 - 1) <9A690E6E-F987-3660-BED6-B1A4D1906B6C> /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
0x7fff52541000 - 0x7fff52569ff7 com.apple.applesauce (1.0 - ???) <60BB16D6-DE7E-356A-B9DE-F73EE179934A> /System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce
0x7fff52634000 - 0x7fff52684fff com.apple.AppleVAFramework (5.0.44 - 5.0.44) <F7B8CD3A-8671-3B2C-B67C-CE39C1442207> /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
0x7fff526cf000 - 0x7fff526e5ffb com.apple.AssertionServices (1.0 - 1) <8FB0D908-6C46-3399-92D6-4E7D4B5F4F19> /System/Library/PrivateFrameworks/AssertionServices.framework/Versions/A/AssertionServices
0x7fff52a15000 - 0x7fff52cb8ffb com.apple.AuthKit (1.0 - 1) <ED375339-69F6-34AE-825D-F16BF0618E3E> /System/Library/PrivateFrameworks/AuthKit.framework/Versions/A/AuthKit
0x7fff52e89000 - 0x7fff52e92ff3 com.apple.coreservices.BackgroundTaskManagement (1.0 - 57.1) <972F41B3-7DF7-3BF1-ACCA-A093A4328ADF> /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement
0x7fff52e93000 - 0x7fff52f35ff7 com.apple.backup.framework (1.10 - ???) <46534B04-DD0E-357B-9CB5-F88AAC6AF4ED> /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
0x7fff52f36000 - 0x7fff52fa7ffb com.apple.BaseBoard (360.18.4 - 360.18.4) <709EF03C-5BCE-3F47-BD58-A48C1F9378A5> /System/Library/PrivateFrameworks/BaseBoard.framework/Versions/A/BaseBoard
0x7fff54b56000 - 0x7fff54b5ffff com.apple.CommonAuth (4.0 - 2.0) <7105F266-35C3-3582-9383-A2A9D7184A7B> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
0x7fff5500f000 - 0x7fff553e6fef com.apple.CoreAUC (273.0.0 - 273.0.0) <288EC7ED-A86A-30D0-ADE2-56C33CD93AA8> /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC
0x7fff553e7000 - 0x7fff55418fff com.apple.CoreAVCHD (6.0.0 - 6000.4.1) <507AC58B-4527-353B-99CB-67FF183BD4D5> /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD
0x7fff5585c000 - 0x7fff5586ffff com.apple.CoreEmoji (1.0 - 69.15.9) <011E7853-BDD6-3197-BA8D-D6B977EF56EB> /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji
0x7fff55e45000 - 0x7fff55eb7ff7 com.apple.CoreNLP (1.0 - 130.15.22) <401F5284-A984-32A1-A547-CC8156381070> /System/Library/PrivateFrameworks/CoreNLP.framework/Versions/A/CoreNLP
0x7fff56172000 - 0x7fff5617affb com.apple.CorePhoneNumbers (1.0 - 1) <F47CA56F-6760-3282-BFD8-C8C8D2C33ECF> /System/Library/PrivateFrameworks/CorePhoneNumbers.framework/Versions/A/CorePhoneNumbers
0x7fff566ff000 - 0x7fff5678dff7 com.apple.CoreSymbolication (10.0 - 64235.3.1) <912C63C0-473B-3352-A255-60F7CA3FE3F2> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
0x7fff5681d000 - 0x7fff56949fff com.apple.coreui (2.1 - 498.46) <05F9736C-5A62-33B3-9607-551A332AEF28> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x7fff5694a000 - 0x7fff56ac9ffb com.apple.CoreUtils (5.7 - 570.70) <2554BA12-16A2-399F-A13A-E5C8EB4FC1EC> /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils
0x7fff56b20000 - 0x7fff56b83ffb com.apple.framework.CoreWiFi (13.0 - 1370.8) <5C6ACF32-14D3-35FD-8A4A-629521090F41> /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
0x7fff56b84000 - 0x7fff56b95ffb com.apple.CrashReporterSupport (10.13 - 938.23) <36754BB2-680F-36AE-A5DE-548B4F41F0AE> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
0x7fff56c18000 - 0x7fff56c27ff3 com.apple.framework.DFRFoundation (1.0 - 210) <61EF0583-E946-3201-932D-7D117BC62CB2> /System/Library/PrivateFrameworks/DFRFoundation.framework/Versions/A/DFRFoundation
0x7fff56c28000 - 0x7fff56c2cff7 com.apple.DSExternalDisplay (3.1 - 380) <B6B26BB3-2DC9-34D0-817E-EB612432EC96> /System/Library/PrivateFrameworks/DSExternalDisplay.framework/Versions/A/DSExternalDisplay
0x7fff56caf000 - 0x7fff56d26ffb com.apple.datadetectorscore (7.0 - 590.24) <2D4CFF51-BCD4-3D08-AE73-AB2B8BEC8659> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
0x7fff56d74000 - 0x7fff56db5fff com.apple.DebugSymbols (185 - 185) <01F561DA-4724-32FD-B2C7-6436F4CEB980> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
0x7fff56db6000 - 0x7fff56f0fff7 com.apple.desktopservices (1.13 - ???) <053D3A96-9263-3242-8625-101DDB9350DE> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x7fff57f28000 - 0x7fff57f52fff com.apple.FWAVC (501.47 - 47) <336586CB-772D-39D6-BBCD-119AF7EF03DD> /System/Library/PrivateFrameworks/FWAVC.framework/Versions/A/FWAVC
0x7fff57f53000 - 0x7fff5837bfff com.apple.vision.FaceCore (3.3.4 - 3.3.4) <CCBC466A-1AD4-3B0B-80B2-D6CFCBB37FC0> /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
0x7fff5d343000 - 0x7fff5d348ff7 com.apple.GPUWrangler (3.22.9 - 3.22.9) <A7FF28DC-3576-3E53-AFAF-0E29CB45E9AE> /System/Library/PrivateFrameworks/GPUWrangler.framework/Versions/A/GPUWrangler
0x7fff5e1a7000 - 0x7fff5e1b6fff com.apple.GraphVisualizer (1.0 - 5) <C7040CD7-6CAB-3878-B29E-21F1665341D0> /System/Library/PrivateFrameworks/GraphVisualizer.framework/Versions/A/GraphVisualizer
0x7fff5e29d000 - 0x7fff5e311fff com.apple.Heimdal (4.0 - 2.0) <793E1D31-6166-37F2-A989-F98FE1706E5D> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
0x7fff5f6ed000 - 0x7fff5f6f4ffb com.apple.IOAccelerator (400.24 - 400.24) <01551ED8-6AE1-307D-A3F0-DCA85FAA5210> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
0x7fff5f6f8000 - 0x7fff5f711ff7 com.apple.IOPresentment (1.0 - 37) <751130A1-8639-3BDA-BF8F-A3BE54427E43> /System/Library/PrivateFrameworks/IOPresentment.framework/Versions/A/IOPresentment
0x7fff5fb24000 - 0x7fff5fb53ff7 com.apple.IconServices (379 - 379) <BE9E71B4-C00E-317D-9093-6E637C905A09> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
0x7fff5fc7e000 - 0x7fff5fc82fff com.apple.InternationalSupport (1.0 - 10.15.6) <F0E300AD-1E67-3D57-B179-C2212F7CD00C> /System/Library/PrivateFrameworks/InternationalSupport.framework/Versions/A/InternationalSupport
0x7fff5fdf2000 - 0x7fff5fe05fff com.apple.security.KeychainCircle.KeychainCircle (1.0 - 1) <10A17A9D-564E-3841-A433-D6D7401ED733> /System/Library/PrivateFrameworks/KeychainCircle.framework/Versions/A/KeychainCircle
0x7fff5fe20000 - 0x7fff5ff17fff com.apple.LanguageModeling (1.0 - 159.15.15) <E524CC46-42C7-3046-AD6C-5D5D768EA478> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
0x7fff5ff18000 - 0x7fff5ff59ff7 com.apple.Lexicon-framework (1.0 - 33.15.10) <90C1CFE1-9935-3F4F-8A9B-1DD697F2FF3D> /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon
0x7fff5ff60000 - 0x7fff5ff66ff7 com.apple.LinguisticData (1.0 - 238.15.29) <D27B30BA-3F5D-3AF2-895C-3B64569EEA1B> /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData
0x7fff607c3000 - 0x7fff607c6fff com.apple.Mangrove (1.0 - 25) <8744DBF9-3375-392C-8EE6-24373E0D19E8> /System/Library/PrivateFrameworks/Mangrove.framework/Versions/A/Mangrove
0x7fff60cc0000 - 0x7fff60ce8ffb com.apple.spotlight.metadata.utilities (1.0 - 1191.51) <7CD28A81-F0D6-3575-8F83-3D45D53F72BB> /System/Library/PrivateFrameworks/MetadataUtilities.framework/Versions/A/MetadataUtilities
0x7fff60ce9000 - 0x7fff60d7bfff com.apple.gpusw.MetalTools (1.0 - 1) <60BE7793-D8DE-3DF1-94D7-503301EC1E72> /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools
0x7fff60f25000 - 0x7fff60f40fff com.apple.MobileKeyBag (2.0 - 1.0) <E9F2FF73-22D0-35B5-BD2C-9DD8FDB12BCC> /System/Library/PrivateFrameworks/MobileKeyBag.framework/Versions/A/MobileKeyBag
0x7fff60fce000 - 0x7fff60ff8ff7 com.apple.MultitouchSupport.framework (2400.15 - 2400.15) <A2BB198C-0B1A-3988-8611-9A9BCCE650B5> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x7fff6126a000 - 0x7fff61274fff com.apple.NetAuth (6.2 - 6.2) <55DC741A-A01A-380C-B2D3-244241DA1F2C> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x7fff61b3f000 - 0x7fff61b95fff com.apple.OTSVG (1.0 - ???) <A0E0FC0B-B48F-3639-9C50-BAECC72988D5> /System/Library/PrivateFrameworks/OTSVG.framework/Versions/A/OTSVG
0x7fff62cf8000 - 0x7fff62d07ff3 com.apple.PerformanceAnalysis (1.217 - 217) <8560F263-31F4-3CCA-84B1-30C296DC1A7D> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
0x7fff64cc0000 - 0x7fff64cdeff7 com.apple.ProtocolBuffer (1 - 263) <C5AC21FB-74AD-3FC2-B231-B1376751BBAE> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer
0x7fff64e8d000 - 0x7fff64ee5f0f com.apple.ROCKit (24 - 24) <5437F6F7-453F-3D75-9E87-D2A090D82D25> /System/Library/PrivateFrameworks/ROCKit.framework/Versions/A/ROCKit
0x7fff64fa6000 - 0x7fff64fb2ff3 com.apple.xpc.RemoteServiceDiscovery (1.0 - 1336.201.2) <FB030135-1633-378F-A7A6-B1A81AD068A2> /System/Library/PrivateFrameworks/RemoteServiceDiscovery.framework/Versions/A/RemoteServiceDiscovery
0x7fff64fc5000 - 0x7fff64fe8ffb com.apple.RemoteViewServices (2.0 - 128) <68530B4D-B2C0-3271-941B-D9EA62095727> /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
0x7fff64fe9000 - 0x7fff64ffdfff com.apple.xpc.RemoteXPC (1.0 - 1336.201.2) <1E00A78B-1934-39A0-8F35-48CBEB93D04C> /System/Library/PrivateFrameworks/RemoteXPC.framework/Versions/A/RemoteXPC
0x7fff66956000 - 0x7fff66a75fff com.apple.Sharing (1176.11 - 1176.11) <9881AEAD-5410-33F7-A852-770C7FE677C9> /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
0x7fff67827000 - 0x7fff67ad7ff7 com.apple.SkyLight (1.600.0 - 336.80.6) <5F7D2312-0003-354C-82BC-DC346B1A98E6> /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight
0x7fff682a6000 - 0x7fff682b3fff com.apple.SpeechRecognitionCore (5.0.21 - 5.0.21) <816EC315-3E76-37B7-A495-B4AE031DA439> /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
0x7fff69114000 - 0x7fff691a1ff7 com.apple.Symbolication (10.0 - 64254.5) <7D5FB79E-1121-3DB0-9CBE-C023835ACE60> /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
0x7fff696aa000 - 0x7fff696b7ff3 com.apple.TCC (1.0 - 1) <55C045F7-D8AB-3BE6-970B-9457FA78E7E3> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
0x7fff69926000 - 0x7fff699edff7 com.apple.TextureIO (3.8.4 - 3.8.1) <F9D5F55D-9A33-326E-8B2F-B533CC91DD64> /System/Library/PrivateFrameworks/TextureIO.framework/Versions/A/TextureIO
0x7fff69aae000 - 0x7fff69c68fff com.apple.UIFoundation (1.0 - 550.35) <1CAAA3AC-1477-3E24-B55C-07A704D7CA03> /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
0x7fff6b25a000 - 0x7fff6b25dfff com.apple.dt.XCTTargetBootstrap (1.0 - 1) <63A533F6-988D-3FED-A1C7-20BC725A0D4B> /System/Library/PrivateFrameworks/XCTTargetBootstrap.framework/Versions/A/XCTTargetBootstrap
0x7fff6b68e000 - 0x7fff6b690ff3 com.apple.loginsupport (1.0 - 1) <5F1E000D-0674-3413-AB3E-83F7974666FB> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
0x7fff6b94a000 - 0x7fff6b982fff libCRFSuite.dylib (41.15.4) <62EDD39F-6D1B-334B-A9A2-5800714255BB> /usr/lib/libCRFSuite.dylib
0x7fff6b985000 - 0x7fff6b990ff7 libChineseTokenizer.dylib (28.15.3) <8CD1C213-7F62-3F02-BFB1-D0A5EFF92AB0> /usr/lib/libChineseTokenizer.dylib
0x7fff6ba21000 - 0x7fff6ba22ff7 libDiagnosticMessagesClient.dylib (107) <C542CB3C-AA44-3D7F-B88C-79CC31B481AB> /usr/lib/libDiagnosticMessagesClient.dylib
0x7fff6ba59000 - 0x7fff6bc1cff7 libFosl_dynamic.dylib (18.3.2) <6EF1CB2A-2BDA-3458-B631-F794D72660FD> /usr/lib/libFosl_dynamic.dylib
0x7fff6bc72000 - 0x7fff6bc91ffb libMobileGestalt.dylib (645.200.76) <A2C32318-0E35-3963-B9B7-E1E92AD33BA6> /usr/lib/libMobileGestalt.dylib
0x7fff6bc92000 - 0x7fff6bc92fff libOpenScriptingUtil.dylib (178) <2EEBF84D-9E00-3570-AC0C-C49C8D25A8BF> /usr/lib/libOpenScriptingUtil.dylib
0x7fff6bdd3000 - 0x7fff6bdd4ffb libSystem.B.dylib (1252.200.5) <D5133811-9D66-3DEB-9521-0A67347C9A54> /usr/lib/libSystem.B.dylib
0x7fff6be5e000 - 0x7fff6be5ffff libThaiTokenizer.dylib (2.15.1) <A8235B04-F541-3856-BE2E-B58EE0483AD9> /usr/lib/libThaiTokenizer.dylib
0x7fff6be72000 - 0x7fff6be88ffb libapple_nghttp2.dylib (1.24.1) <B8D45114-3868-3154-BC35-22597E3E7D8A> /usr/lib/libapple_nghttp2.dylib
0x7fff6be89000 - 0x7fff6beb2ffb libarchive.2.dylib (54.200.3) <B47C54A0-3A30-374A-BD99-2304B9B0EC82> /usr/lib/libarchive.2.dylib
0x7fff6beb3000 - 0x7fff6bf32fef libate.dylib (1.13.8) <C647A80F-6F80-3FDA-A9B4-92800999F963> /usr/lib/libate.dylib
0x7fff6bf36000 - 0x7fff6bf36ff3 libauto.dylib (187) <01824E49-F2EF-3FC1-ABF3-782EFDF6CA17> /usr/lib/libauto.dylib
0x7fff6c00e000 - 0x7fff6c01eff3 libbsm.0.dylib (39.200.18) <5E5098D0-F7B2-32A1-8038-E709F6718D4E> /usr/lib/libbsm.0.dylib
0x7fff6c01f000 - 0x7fff6c02dfff libbz2.1.0.dylib (38.200.3) <4EE3C5E8-BEF3-3910-A231-B1AE2B437E01> /usr/lib/libbz2.1.0.dylib
0x7fff6c02e000 - 0x7fff6c085ff7 libc++.1.dylib (400.9.4) <D4AB366F-48A9-3C7D-91BD-41198F69DD57> /usr/lib/libc++.1.dylib
0x7fff6c086000 - 0x7fff6c09bfff libc++abi.dylib (400.17) <BA948A32-9024-3E55-98D4-18E31F6AED25> /usr/lib/libc++abi.dylib
0x7fff6c09c000 - 0x7fff6c09cff3 libcharset.1.dylib (51.200.6) <D998A58B-E4A8-3685-9A6A-43AFC28100EB> /usr/lib/libcharset.1.dylib
0x7fff6c09d000 - 0x7fff6c0adffb libcmph.dylib (6.15.1) <5D776FF6-DF7F-3EDD-B920-C07ED76C672B> /usr/lib/libcmph.dylib
0x7fff6c0ae000 - 0x7fff6c0c6ffb libcompression.dylib (52.200.13) <EA767836-CBDC-318D-AC14-963C90D6CC67> /usr/lib/libcompression.dylib
0x7fff6c371000 - 0x7fff6c387fff libcoretls.dylib (155.200.6) <6E68F922-752C-311F-B56D-EE391E6AE1F7> /usr/lib/libcoretls.dylib
0x7fff6c388000 - 0x7fff6c389ff3 libcoretls_cfhelpers.dylib (155.200.6) <7300BA76-39D2-349E-9FB8-EBE5947A708A> /usr/lib/libcoretls_cfhelpers.dylib
0x7fff6ca00000 - 0x7fff6ca56ffb libcups.2.dylib (462.9) <51E06E95-891F-3B88-A8C3-35B514C57239> /usr/lib/libcups.2.dylib
0x7fff6cb8e000 - 0x7fff6cb8efff libenergytrace.dylib (17.200.1) <D62ED169-B91C-3CCB-ADF5-E66AE4007B51> /usr/lib/libenergytrace.dylib
0x7fff6cbc0000 - 0x7fff6cbc5ff7 libgermantok.dylib (17.15.2) <9CBF0658-E83B-32E6-B674-3EE72D22C041> /usr/lib/libgermantok.dylib
0x7fff6cbc6000 - 0x7fff6cbcbff7 libheimdal-asn1.dylib (520.200.17) <58971629-3850-3905-A9A1-09FCF7A32815> /usr/lib/libheimdal-asn1.dylib
0x7fff6cbf7000 - 0x7fff6cce8ff7 libiconv.2.dylib (51.200.6) <3240A278-F537-3EC8-BE0C-983797520A50> /usr/lib/libiconv.2.dylib
0x7fff6cce9000 - 0x7fff6cf4cffb libicucore.A.dylib (62107.0.1) <EAE6FC43-3AD2-3A53-9F7A-4E5E5F66D006> /usr/lib/libicucore.A.dylib
0x7fff6cf99000 - 0x7fff6cf9afff liblangid.dylib (128.15.1) <F79B6250-C0B1-3E8E-851F-6CA33B4311A3> /usr/lib/liblangid.dylib
0x7fff6cf9b000 - 0x7fff6cfb3fff liblzma.5.dylib (10.200.3) <3ADDFA63-F37A-3C9C-91E4-58EE3113B9A1> /usr/lib/liblzma.5.dylib
0x7fff6cfcb000 - 0x7fff6d07bfff libmecab.1.0.0.dylib (779.15.23) <6A38FCDA-17CE-30C3-AB66-A714CF645384> /usr/lib/libmecab.1.0.0.dylib
0x7fff6d07c000 - 0x7fff6d2b9fff libmecabra.dylib (779.15.23) <30E102AA-F3D3-3572-A1AE-1F2287DEF696> /usr/lib/libmecabra.dylib
0x7fff6d2be000 - 0x7fff6d2eeff7 libncurses.5.4.dylib (53.200.3) <F29546FD-148A-3784-931F-1E5BC9C76412> /usr/lib/libncurses.5.4.dylib
0x7fff6d491000 - 0x7fff6d7e9fff libnetwork.dylib (1229.200.109) <AD59D28C-CCB2-3B34-B904-8CCCEB2CF320> /usr/lib/libnetwork.dylib
0x7fff6d87a000 - 0x7fff6e000fe7 libobjc.A.dylib (750) <2E868147-8818-359E-8CD7-A8B80665928F> /usr/lib/libobjc.A.dylib
0x7fff6e013000 - 0x7fff6e017ffb libpam.2.dylib (22.200.1) <8C419238-675A-3C41-B8D4-95E391CA630F> /usr/lib/libpam.2.dylib
0x7fff6e01a000 - 0x7fff6e050ff7 libpcap.A.dylib (79.200.4) <5939AB23-B2A9-3C03-B6C1-4F0E5A21D9FC> /usr/lib/libpcap.A.dylib
0x7fff6e16a000 - 0x7fff6e182ffb libresolv.9.dylib (65.200.2) <0FEAEB01-B926-37FA-AB47-99BAC481C10B> /usr/lib/libresolv.9.dylib
0x7fff6e1d4000 - 0x7fff6e1d5ffb libspindump.dylib (266) <0E60D709-0A48-3905-ACD1-9DDE6FD8B476> /usr/lib/libspindump.dylib
0x7fff6e1d6000 - 0x7fff6e3adfe7 libsqlite3.dylib (274.20) <4434B695-BC65-30D6-AFED-1B6488DB3D2E> /usr/lib/libsqlite3.dylib
0x7fff6e63a000 - 0x7fff6e63dffb libutil.dylib (51.200.4) <91EE9BF4-FB06-3260-B502-7EFDAD5AF59B> /usr/lib/libutil.dylib
0x7fff6e63e000 - 0x7fff6e64bfff libxar.1.dylib (404) <4B4D0206-0B62-3E89-AD07-E7BB9E4DFA68> /usr/lib/libxar.1.dylib
0x7fff6e650000 - 0x7fff6e733fff libxml2.2.dylib (32.6) <BFF70F01-6755-36B9-B7AA-724743E63503> /usr/lib/libxml2.2.dylib
0x7fff6e734000 - 0x7fff6e75cff3 libxslt.1.dylib (16.1) <F191E8B9-7530-30CA-873B-2FA2BF2D6374> /usr/lib/libxslt.1.dylib
0x7fff6e75d000 - 0x7fff6e76fffb libz.1.dylib (70.200.4) <99A3D725-8388-38B4-B66C-5E9006E6F072> /usr/lib/libz.1.dylib
0x7fff6e7e0000 - 0x7fff6e7e4ff3 libcache.dylib (81) <FE21A7E9-DBEB-33AC-836B-785AD036ACF4> /usr/lib/system/libcache.dylib
0x7fff6e7e5000 - 0x7fff6e7efff3 libcommonCrypto.dylib (60118.200.6) <78093D4F-91DB-35C8-981A-13375778B2E7> /usr/lib/system/libcommonCrypto.dylib
0x7fff6e7f0000 - 0x7fff6e7f7fff libcompiler_rt.dylib (63.4) <A4D9CF37-D076-3CE9-95F1-DA89DA1601B6> /usr/lib/system/libcompiler_rt.dylib
0x7fff6e7f8000 - 0x7fff6e801ff3 libcopyfile.dylib (146.200.3) <4BCDADBF-79F5-3829-B47D-64DA0D44BCBF> /usr/lib/system/libcopyfile.dylib
0x7fff6e802000 - 0x7fff6e886fff libcorecrypto.dylib (602.200.50) <7AEC5B72-0B92-37E8-808B-6732DB714139> /usr/lib/system/libcorecrypto.dylib
0x7fff6e90c000 - 0x7fff6e946ff7 libdispatch.dylib (1008.200.78) <B8962879-AD55-3CF0-9B0A-5F1D57D1E14B> /usr/lib/system/libdispatch.dylib
0x7fff6e947000 - 0x7fff6e976fff libdyld.dylib (625.13) <4B16C209-83D4-3817-9B62-C2F7FFB23755> /usr/lib/system/libdyld.dylib
0x7fff6e977000 - 0x7fff6e977ffb libkeymgr.dylib (30) <A73AA788-C35C-3284-BFCA-95B1BBDF0CF3> /usr/lib/system/libkeymgr.dylib
0x7fff6e978000 - 0x7fff6e984ff7 libkxld.dylib (4903.201.2) <EAF1CF8D-3843-33BE-8126-30994685B8F0> /usr/lib/system/libkxld.dylib
0x7fff6e985000 - 0x7fff6e985ff7 liblaunch.dylib (1336.201.2) <43E6698E-155E-3EAE-BAFF-CA5FCB35325C> /usr/lib/system/liblaunch.dylib
0x7fff6e986000 - 0x7fff6e98bfff libmacho.dylib (917) <17BF7038-9C70-3EE1-9E96-3AE10D49669E> /usr/lib/system/libmacho.dylib
0x7fff6e98c000 - 0x7fff6e98eff3 libquarantine.dylib (86.200.11) <C70DA995-0D6E-302C-A15E-F7F03A3857B4> /usr/lib/system/libquarantine.dylib
0x7fff6e98f000 - 0x7fff6e990ff3 libremovefile.dylib (45.200.2) <D74A307B-3DC7-3992-B16C-DACB8207BE13> /usr/lib/system/libremovefile.dylib
0x7fff6e991000 - 0x7fff6e9a8ff3 libsystem_asl.dylib (356.200.4) <EC9D8AD4-E5CB-3765-804A-9E1E9DC045D2> /usr/lib/system/libsystem_asl.dylib
0x7fff6e9a9000 - 0x7fff6e9a9fff libsystem_blocks.dylib (73) <26419398-C30C-30F1-B656-A92AFA9560F6> /usr/lib/system/libsystem_blocks.dylib
0x7fff6e9aa000 - 0x7fff6ea32fff libsystem_c.dylib (1272.200.26) <3DEEE96E-6DF6-35AD-8654-D69AC26B907B> /usr/lib/system/libsystem_c.dylib
0x7fff6ea33000 - 0x7fff6ea36ff7 libsystem_configuration.dylib (963.200.27) <02CC3996-B34E-333C-8806-AE2699D34424> /usr/lib/system/libsystem_configuration.dylib
0x7fff6ea37000 - 0x7fff6ea3aff7 libsystem_coreservices.dylib (66) <254B6849-2C8F-302C-8616-B8324A11AB30> /usr/lib/system/libsystem_coreservices.dylib
0x7fff6ea3b000 - 0x7fff6ea41ffb libsystem_darwin.dylib (1272.200.26) <974E9EF7-DE72-34B7-B056-0A81C10DF8EB> /usr/lib/system/libsystem_darwin.dylib
0x7fff6ea42000 - 0x7fff6ea48ff7 libsystem_dnssd.dylib (878.200.35) <FFC665AA-B257-35AD-BD8B-32FD42C2EEC1> /usr/lib/system/libsystem_dnssd.dylib
0x7fff6ea49000 - 0x7fff6ea95ff3 libsystem_info.dylib (517.200.9) <0707C387-D7DE-372E-8FF1-3DE5C91932D6> /usr/lib/system/libsystem_info.dylib
0x7fff6ea96000 - 0x7fff6eabdff7 libsystem_kernel.dylib (4903.201.2) <45FAA4C0-D553-34FD-ADF8-884886AE0D2A> /usr/lib/system/libsystem_kernel.dylib
0x7fff6eabe000 - 0x7fff6eb09ff7 libsystem_m.dylib (3158.200.7) <43D1796B-954F-37D6-B1AC-9D80DF0655A2> /usr/lib/system/libsystem_m.dylib
0x7fff6eb0a000 - 0x7fff6eb2eff7 libsystem_malloc.dylib (166.200.60) <846F6898-117C-3427-A8FB-3772FFC2410B> /usr/lib/system/libsystem_malloc.dylib
0x7fff6eb2f000 - 0x7fff6eb3affb libsystem_networkextension.dylib (767.200.40) <F84D5474-4DC1-3E1A-AE00-8CE9593278B4> /usr/lib/system/libsystem_networkextension.dylib
0x7fff6eb3b000 - 0x7fff6eb42fff libsystem_notify.dylib (172.200.21) <BCCB222F-DC64-3954-A836-DCCE6659CA5A> /usr/lib/system/libsystem_notify.dylib
0x7fff6eb43000 - 0x7fff6eb4cfef libsystem_platform.dylib (177.200.16) <B75B04AD-69FE-3ADE-84D2-C17972FC8F49> /usr/lib/system/libsystem_platform.dylib
0x7fff6eb4d000 - 0x7fff6eb57fff libsystem_pthread.dylib (330.201.1) <87A6B136-E423-3B6D-A58A-137F392D7D9D> /usr/lib/system/libsystem_pthread.dylib
0x7fff6eb58000 - 0x7fff6eb5bff7 libsystem_sandbox.dylib (851.201.1) <FBA7E09B-F10F-3424-90EA-B4999B7FB461> /usr/lib/system/libsystem_sandbox.dylib
0x7fff6eb5c000 - 0x7fff6eb5eff7 libsystem_secinit.dylib (30.200.13) <CBEAB62B-F0A0-342F-9878-CADC14A3CB0D> /usr/lib/system/libsystem_secinit.dylib
0x7fff6eb5f000 - 0x7fff6eb66ff7 libsystem_symptoms.dylib (820.207.88) <B6E22FA8-0F7B-36FD-9D99-284056D3CB47> /usr/lib/system/libsystem_symptoms.dylib
0x7fff6eb67000 - 0x7fff6eb7cff7 libsystem_trace.dylib (906.200.86) <7983ED77-18B5-39A5-BE19-AE4F2832ADEA> /usr/lib/system/libsystem_trace.dylib
0x7fff6eb7e000 - 0x7fff6eb83ffb libunwind.dylib (35.4) <41222EF6-2233-3CF4-947A-15D48CB8C030> /usr/lib/system/libunwind.dylib
0x7fff6eb84000 - 0x7fff6ebb4fff libxpc.dylib (1336.201.2) <0A8747D1-33AA-37E1-B97A-BA9B95FE4E8C> /usr/lib/system/libxpc.dylib
External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 627953
thread_create: 0
thread_set_state: 10705
VM Region Summary:
ReadOnly portion of Libraries: Total=494.0M resident=0K(0%) swapped_out_or_unallocated=494.0M(100%)
Writable regions: Total=115.6M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=115.6M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced)
=========== ======= =======
Activity Tracing 256K 2
Dispatch continuations 16.0M 2
Kernel Alloc Once 8K 2
MALLOC 66.3M 15
MALLOC guard page 16K 5
MALLOC_LARGE (reserved) 512K 3 reserved VM address space (unallocated)
STACK GUARD 16K 5
Stack 17.5M 5
VM_ALLOCATE 7940K 18
__DATA 35.1M 310
__FONT_DATA 4K 2
__LINKEDIT 227.1M 49
__TEXT 266.9M 295
__UNICODE 560K 2
mapped file 25.9M 3
shared memory 44K 5
=========== ======= =======
TOTAL 663.9M 707
TOTAL, minus reserved VM space 663.4M 707
Model: MacBookPro11,5, BootROM MBP114.0184.B00, 4 processors, Intel Core i7, 2.8 GHz, 16 GB, SMC 2.30f2
Graphics: AMD Radeon R9 M370X, AMD Radeon R9 M370X, PCIe
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x802C, 0x31364B544631473634485A2D314736453120
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.77.61.1 AirPortDriverBrcmNIC-1305.2)
Bluetooth: Version 6.0.8f6, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Network Service: Thunderbolt Ethernet, Ethernet, en5
PCI Card: Apple 57762-A0, Ethernet Controller, Thunderbolt@195,0,0
Serial ATA Device: APPLE SSD SM1024G, 1 TB
USB Device: USB 3.0 Bus
USB Device: 4-Port USB 3.0 Hub
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Bluetooth USB Host Controller
USB Device: 4-Port USB 2.0 Hub
USB Device: USB Keyboard
USB Device: Gaming Mouse G502
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1
Thunderbolt Device: Thunderbolt to Gigabit Ethernet Adapter, Apple Inc., 3, 5.5
</code></pre></div>
<h5 dir="auto">Steps to reproduce</h5> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.3.3 (see <code class="notranslate">cv2.getBuildInformation()</code> string below)</li>
<li>Operating System / Platform => macOS Sierra 10.12.5</li>
<li>Compiler => Apple Clang (see <code class="notranslate">gcc --version</code> string below)</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> print cv2.getBuildInformation()
General configuration for OpenCV 3.3.0 =====================================
Version control: unknown
Platform:
Timestamp: 2017-08-14T00:41:18Z
Host: Darwin 16.6.0 x86_64
CMake: 3.9.1
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/make
Configuration: Release
CPU/HW features:
Baseline: SSE SSE2 SSE3
requested: SSE3
Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2
requested: SSE4_1 SSE4_2 AVX FP16 AVX2
SSE4_1 (2 files): + SSSE3 SSE4_1
SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2
FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
AVX2 (7 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
C/C++:
Built as dynamic libs?: YES
C++ Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ (ver 8.1.0.8020042)
C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -fno-omit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -fno-omit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -fno-omit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -fno-omit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release):
Linker flags (Debug):
ccache: NO
Precompiled headers: NO
Extra dependencies: -framework OpenCL /System/Library/Frameworks/Accelerate.framework -framework Accelerate -framework AVFoundation -framework CoreGraphics -framework CoreMedia -framework CoreVideo -framework QuartzCore vtkRenderingOpenGL2 vtkCommonCore vtksys vtkCommonDataModel vtkCommonMath vtkCommonMisc vtkCommonSystem vtkCommonTransforms vtkCommonExecutionModel vtkRenderingCore vtkCommonColor vtkCommonComputationalGeometry vtkFiltersCore vtkFiltersGeneral vtkFiltersGeometry vtkFiltersSources vtkglew vtkInteractionStyle vtkFiltersExtraction vtkFiltersStatistics vtkImagingFourier vtkImagingCore vtkalglib vtkRenderingLOD vtkFiltersModeling vtkIOPLY vtkIOCore vtklz4 /usr/lib/libz.dylib vtkFiltersTexture vtkRenderingFreeType vtkfreetype vtkIOExport vtkIOImage vtkDICOMParser vtkmetaio /usr/local/lib/libjpeg.dylib /usr/local/lib/libpng.dylib /usr/local/lib/libtiff.dylib vtkRenderingContext2D vtkRenderingGL2PSOpenGL2 vtkgl2ps vtklibharu vtkIOGeometry vtkIOLegacy -framework Cocoa
3rdparty dependencies:
OpenCV modules:
To be built: core flann imgproc ml objdetect photo video viz dnn imgcodecs shape videoio highgui superres ts features2d calib3d stitching videostab python2
Disabled: world
Disabled by dependency: -
Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python3
GUI:
QT: NO
Cocoa: YES
OpenGL support: NO
VTK support: YES (ver 8.0.0)
Media I/O:
ZLib: build (ver 1.2.8)
JPEG: build (ver 90)
WEBP: build (ver encoder: 0x020e)
PNG: build (ver 1.6.24)
TIFF: build (ver 42 - 4.0.2)
JPEG 2000: build (ver 1.900.1)
OpenEXR: build (ver 1.7.1)
GDAL: NO
GDCM: NO
Video I/O:
DC1394 1.x: NO
DC1394 2.x: NO
FFMPEG: NO
avcodec: NO
avformat: NO
avutil: NO
swscale: NO
avresample: NO
GStreamer: NO
OpenNI: NO
OpenNI PrimeSensor Modules: NO
OpenNI2: NO
PvAPI: NO
GigEVisionSDK: NO
Aravis SDK: NO
AVFoundation: YES
V4L/V4L2: NO/NO
XIMEA: NO
Intel Media SDK: NO
gPhoto2: NO
Parallel framework: GCD
Trace: YES (with Intel ITT)
Other third-party libraries:
Use Intel IPP: 2017.0.2 [2017.0.2]
at: /Users/mike/Code/Local/OpenCV/opencv-3.3.0/BUILD/3rdparty/ippicv/ippicv_mac
Use Intel IPP IW: prebuilt binaries (2017.0.2)
Use Intel IPP Async: NO
Use VA: NO
Use Intel VA-API/OpenCL: NO
Use Lapack: YES (/System/Library/Frameworks/Accelerate.framework /System/Library/Frameworks/Accelerate.framework)
Use Eigen: YES (ver 3.3.4)
Use Cuda: NO
Use OpenCL: YES
Use OpenVX: NO
Use custom HAL: NO
OpenCL: <Link with OpenCL library>
Link libraries: -framework OpenCL
Use AMDFFT: NO
Use AMDBLAS: NO
Python 2:
Interpreter: /Users/mike/Library/Enthought/Canopy_64bit/User/bin/python (ver 2.7.11)
Libraries: /Users/mike/Library/Enthought/Canopy_64bit/User/lib/libpython2.7.dylib (ver 2.7.11)
numpy: /Users/mike/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/include (ver 1.11.3)
packages path: lib/python2.7/site-packages
Python 3:
Interpreter: NO
Python (for build): /Users/mike/Library/Enthought/Canopy_64bit/User/bin/python
Java:
ant: NO
JNI: /System/Library/Frameworks/JavaVM.framework/Headers /System/Library/Frameworks/JavaVM.framework/Headers /System/Library/Frameworks/JavaVM.framework/Headers
Java wrappers: NO
Java tests: NO
Matlab:
mex: /Applications/MATLAB_R2016b.app/bin/mex
Compiler/generator: Not working (bindings will not be generated)
Documentation:
Doxygen: /usr/local/bin/doxygen (ver 1.8.13)
Tests and samples:
Tests: YES
Performance tests: YES
C/C++ Examples: NO
Install path: /usr/local
cvconfig.h is in: /Users/mike/Code/Local/OpenCV/opencv-3.3.0/BUILD"><pre class="notranslate"><code class="notranslate">>>> print cv2.getBuildInformation()
General configuration for OpenCV 3.3.0 =====================================
Version control: unknown
Platform:
Timestamp: 2017-08-14T00:41:18Z
Host: Darwin 16.6.0 x86_64
CMake: 3.9.1
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/make
Configuration: Release
CPU/HW features:
Baseline: SSE SSE2 SSE3
requested: SSE3
Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2
requested: SSE4_1 SSE4_2 AVX FP16 AVX2
SSE4_1 (2 files): + SSSE3 SSE4_1
SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2
FP16 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
AVX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
AVX2 (7 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
C/C++:
Built as dynamic libs?: YES
C++ Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ (ver 8.1.0.8020042)
C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -fno-omit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -fno-omit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -fno-omit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -fdiagnostics-show-option -Wno-long-long -Qunused-arguments -Wno-semicolon-before-method-body -fno-omit-frame-pointer -ffunction-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release):
Linker flags (Debug):
ccache: NO
Precompiled headers: NO
Extra dependencies: -framework OpenCL /System/Library/Frameworks/Accelerate.framework -framework Accelerate -framework AVFoundation -framework CoreGraphics -framework CoreMedia -framework CoreVideo -framework QuartzCore vtkRenderingOpenGL2 vtkCommonCore vtksys vtkCommonDataModel vtkCommonMath vtkCommonMisc vtkCommonSystem vtkCommonTransforms vtkCommonExecutionModel vtkRenderingCore vtkCommonColor vtkCommonComputationalGeometry vtkFiltersCore vtkFiltersGeneral vtkFiltersGeometry vtkFiltersSources vtkglew vtkInteractionStyle vtkFiltersExtraction vtkFiltersStatistics vtkImagingFourier vtkImagingCore vtkalglib vtkRenderingLOD vtkFiltersModeling vtkIOPLY vtkIOCore vtklz4 /usr/lib/libz.dylib vtkFiltersTexture vtkRenderingFreeType vtkfreetype vtkIOExport vtkIOImage vtkDICOMParser vtkmetaio /usr/local/lib/libjpeg.dylib /usr/local/lib/libpng.dylib /usr/local/lib/libtiff.dylib vtkRenderingContext2D vtkRenderingGL2PSOpenGL2 vtkgl2ps vtklibharu vtkIOGeometry vtkIOLegacy -framework Cocoa
3rdparty dependencies:
OpenCV modules:
To be built: core flann imgproc ml objdetect photo video viz dnn imgcodecs shape videoio highgui superres ts features2d calib3d stitching videostab python2
Disabled: world
Disabled by dependency: -
Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python3
GUI:
QT: NO
Cocoa: YES
OpenGL support: NO
VTK support: YES (ver 8.0.0)
Media I/O:
ZLib: build (ver 1.2.8)
JPEG: build (ver 90)
WEBP: build (ver encoder: 0x020e)
PNG: build (ver 1.6.24)
TIFF: build (ver 42 - 4.0.2)
JPEG 2000: build (ver 1.900.1)
OpenEXR: build (ver 1.7.1)
GDAL: NO
GDCM: NO
Video I/O:
DC1394 1.x: NO
DC1394 2.x: NO
FFMPEG: NO
avcodec: NO
avformat: NO
avutil: NO
swscale: NO
avresample: NO
GStreamer: NO
OpenNI: NO
OpenNI PrimeSensor Modules: NO
OpenNI2: NO
PvAPI: NO
GigEVisionSDK: NO
Aravis SDK: NO
AVFoundation: YES
V4L/V4L2: NO/NO
XIMEA: NO
Intel Media SDK: NO
gPhoto2: NO
Parallel framework: GCD
Trace: YES (with Intel ITT)
Other third-party libraries:
Use Intel IPP: 2017.0.2 [2017.0.2]
at: /Users/mike/Code/Local/OpenCV/opencv-3.3.0/BUILD/3rdparty/ippicv/ippicv_mac
Use Intel IPP IW: prebuilt binaries (2017.0.2)
Use Intel IPP Async: NO
Use VA: NO
Use Intel VA-API/OpenCL: NO
Use Lapack: YES (/System/Library/Frameworks/Accelerate.framework /System/Library/Frameworks/Accelerate.framework)
Use Eigen: YES (ver 3.3.4)
Use Cuda: NO
Use OpenCL: YES
Use OpenVX: NO
Use custom HAL: NO
OpenCL: <Link with OpenCL library>
Link libraries: -framework OpenCL
Use AMDFFT: NO
Use AMDBLAS: NO
Python 2:
Interpreter: /Users/mike/Library/Enthought/Canopy_64bit/User/bin/python (ver 2.7.11)
Libraries: /Users/mike/Library/Enthought/Canopy_64bit/User/lib/libpython2.7.dylib (ver 2.7.11)
numpy: /Users/mike/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/numpy/core/include (ver 1.11.3)
packages path: lib/python2.7/site-packages
Python 3:
Interpreter: NO
Python (for build): /Users/mike/Library/Enthought/Canopy_64bit/User/bin/python
Java:
ant: NO
JNI: /System/Library/Frameworks/JavaVM.framework/Headers /System/Library/Frameworks/JavaVM.framework/Headers /System/Library/Frameworks/JavaVM.framework/Headers
Java wrappers: NO
Java tests: NO
Matlab:
mex: /Applications/MATLAB_R2016b.app/bin/mex
Compiler/generator: Not working (bindings will not be generated)
Documentation:
Doxygen: /usr/local/bin/doxygen (ver 1.8.13)
Tests and samples:
Tests: YES
Performance tests: YES
C/C++ Examples: NO
Install path: /usr/local
cvconfig.h is in: /Users/mike/Code/Local/OpenCV/opencv-3.3.0/BUILD
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Mikes-MacBook-Pro:lib mike$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin"><pre class="notranslate"><code class="notranslate">Mikes-MacBook-Pro:lib mike$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
</code></pre></div>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Reading EXR files using the Python <code class="notranslate">cv2</code> bindings fails on Mac due to a build configuration issue.</p>
<h5 dir="auto">Steps to reproduce</h5>
<ol dir="auto">
<li>Download the OpenCV 3.3.0 source code.</li>
<li>Run the CMake GUI to generate a makefile. Set the <code class="notranslate">BUILD_EXR</code> option to true, and to configure the Python 2.7 bindings appropriately for your system.</li>
<li>Run make to build OpenCV.</li>
<li>Navigate to the folder where the the <code class="notranslate">cv2.so</code> library was built, start Python from the terminal, and execute the following program to read <a href="https://github.com/opencv/opencv/files/1221061/depth.exr.zip">this EXR file</a>:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import cv2
print cv2.getBuildInformation()
d = cv2.imread("depth.exr", cv2.IMREAD_UNCHANGED)[:,:,0] # "depth.exr" is included in this post"><pre class="notranslate"><code class="notranslate">import cv2
print cv2.getBuildInformation()
d = cv2.imread("depth.exr", cv2.IMREAD_UNCHANGED)[:,:,0] # "depth.exr" is included in this post
</code></pre></div>
<p dir="auto">I get the following error when attempting to read the EXR file:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="libc++abi.dylib: terminating with uncaught exception of type Iex::EnosysExc: Cannot initialize semaphore (Function not implemented).
Abort trap: 6"><pre class="notranslate"><code class="notranslate">libc++abi.dylib: terminating with uncaught exception of type Iex::EnosysExc: Cannot initialize semaphore (Function not implemented).
Abort trap: 6
</code></pre></div>
<h5 dir="auto">Fix</h5>
<p dir="auto">I was inspired by <a href="https://stackoverflow.com/questions/14368647/opencv-2-4-3-throws-error-when-reading-or-writing-openexr-on-osx-10-7" rel="nofollow">this StackOverflow post</a>, which basically contains the fix.</p>
<p dir="auto">So I changed <code class="notranslate">opencv-3.3.0/3rdparty/openexr/IlmBaseConfig.h.cmakein</code> as follows. I changed the line that says <code class="notranslate">#cmakedefine01 HAVE_POSIX_SEMAPHORES</code> to say <code class="notranslate">#undef HAVE_POSIX_SEMAPHORES</code>. I ran make again, which did a minimal rebuild, and then I was able to successfully read the EXR file.</p>
<p dir="auto">It is worth mentioning that <code class="notranslate">#undef HAVE_POSIX_SEMAPHORES</code> seems to be the default configuration option in the OpenEXR GitHub repository (see <a href="https://github.com/openexr/openexr/blob/20d043d017d4b752356bb76946ffdffaa9c15c72/IlmBase/config/IlmBaseConfig.h.in#L14">here</a>). So the version of OpenEXR that gets distributed with OpenCV, seems to contain a non-default configuration option that causes problems on Mac.</p>
<p dir="auto">I hope this bug report is useful for others. I tried to search for duplicate issues on GitHub and couldn't find any, and I also tried to conform to the recommended OpenCV issue template. Cheers <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p> | 0 |
<p dir="auto">If there are two textFields in the screen.<br>
when I input text at the first textField in Chinese Pin Yin<br>
then I tap the second textField and the second textField become first responser.<br>
The app crash.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20470157/48749452-ff399680-ecb5-11e8-8b1d-2fd22df0e6b8.png"><img src="https://user-images.githubusercontent.com/20470157/48749452-ff399680-ecb5-11e8-8b1d-2fd22df0e6b8.png" alt="textfieldbug" style="max-width: 100%;"></a></p> | <p dir="auto">My app crash when clear() on TextEditingController is run while a user is composing Japanese in TextField.<br>
It might be caused on not only Japanese but also languages that have composing state.<br>
Maybe it's only for iOS devices. It isn't caused in my Android device.</p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Compose Japanese text in TextField using TextEditingController.</li>
<li>Run clear() while composing text.</li>
<li>Then the app will crash.</li>
</ol>
<p dir="auto">My minimum example is here.<br>
If you tap clear button while composing text, the app will crash.</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyHomePage extends StatefulWidget {
MyHomePage({Key key}) : super(key: key);
@override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
TextEditingController controller = TextEditingController();
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Debug')),
body: Center(
child: Container(
padding: EdgeInsets.symmetric(horizontal: 24.0),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
_buildTextField(),
_buildClearButton(),
],
),
),
),
);
}
Widget _buildTextField() {
return Flexible(
child: TextField(
controller: controller,
style: TextStyle(
color: Colors.black,
fontSize: 16.0,
),
),
);
}
Widget _buildClearButton() {
return Container(
width: 50.0,
child: FlatButton(
padding: EdgeInsets.zero,
child: Text(
'Clear',
style: TextStyle(
fontSize: 16.0,
fontWeight: FontWeight.bold,
),
),
onPressed: () {
controller.clear();
},
),
);
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">MyHomePage</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> {
<span class="pl-c1">MyHomePage</span>({<span class="pl-c1">Key</span> key}) <span class="pl-k">:</span> <span class="pl-c1">super</span>(key<span class="pl-k">:</span> key);
<span class="pl-k">@override</span>
<span class="pl-c1">_MyHomePageState</span> <span class="pl-en">createState</span>() <span class="pl-k">=></span> <span class="pl-c1">_MyHomePageState</span>();
}
<span class="pl-k">class</span> <span class="pl-c1">_MyHomePageState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span><<span class="pl-c1">MyHomePage</span>> {
<span class="pl-c1">TextEditingController</span> controller <span class="pl-k">=</span> <span class="pl-c1">TextEditingController</span>();
<span class="pl-k">@override</span>
<span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
<span class="pl-k">return</span> <span class="pl-c1">Scaffold</span>(
appBar<span class="pl-k">:</span> <span class="pl-c1">AppBar</span>(title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Debug'</span>)),
body<span class="pl-k">:</span> <span class="pl-c1">Center</span>(
child<span class="pl-k">:</span> <span class="pl-c1">Container</span>(
padding<span class="pl-k">:</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">symmetric</span>(horizontal<span class="pl-k">:</span> <span class="pl-c1">24.0</span>),
child<span class="pl-k">:</span> <span class="pl-c1">Row</span>(
crossAxisAlignment<span class="pl-k">:</span> <span class="pl-c1">CrossAxisAlignment</span>.center,
children<span class="pl-k">:</span> [
<span class="pl-en">_buildTextField</span>(),
<span class="pl-en">_buildClearButton</span>(),
],
),
),
),
);
}
<span class="pl-c1">Widget</span> <span class="pl-en">_buildTextField</span>() {
<span class="pl-k">return</span> <span class="pl-c1">Flexible</span>(
child<span class="pl-k">:</span> <span class="pl-c1">TextField</span>(
controller<span class="pl-k">:</span> controller,
style<span class="pl-k">:</span> <span class="pl-c1">TextStyle</span>(
color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.black,
fontSize<span class="pl-k">:</span> <span class="pl-c1">16.0</span>,
),
),
);
}
<span class="pl-c1">Widget</span> <span class="pl-en">_buildClearButton</span>() {
<span class="pl-k">return</span> <span class="pl-c1">Container</span>(
width<span class="pl-k">:</span> <span class="pl-c1">50.0</span>,
child<span class="pl-k">:</span> <span class="pl-c1">FlatButton</span>(
padding<span class="pl-k">:</span> <span class="pl-c1">EdgeInsets</span>.zero,
child<span class="pl-k">:</span> <span class="pl-c1">Text</span>(
<span class="pl-s">'Clear'</span>,
style<span class="pl-k">:</span> <span class="pl-c1">TextStyle</span>(
fontSize<span class="pl-k">:</span> <span class="pl-c1">16.0</span>,
fontWeight<span class="pl-k">:</span> <span class="pl-c1">FontWeight</span>.bold,
),
),
onPressed<span class="pl-k">:</span> () {
controller.<span class="pl-en">clear</span>();
},
),
);
}
}</pre></div>
<p dir="auto">If you reset <code class="notranslate">composing</code> parameter before running clear(), you can prevent crashing.</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="controller.value = controller.value.copyWith(
composing: TextRange(start: 0, end: 0),
);
controller.clear();"><pre class="notranslate">controller.value <span class="pl-k">=</span> controller.value.<span class="pl-en">copyWith</span>(
composing<span class="pl-k">:</span> <span class="pl-c1">TextRange</span>(start<span class="pl-k">:</span> <span class="pl-c1">0</span>, end<span class="pl-k">:</span> <span class="pl-c1">0</span>),
);
controller.<span class="pl-en">clear</span>();</pre></div>
<h2 dir="auto">Logs</h2>
<h3 dir="auto">flutter run --verbose</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ +269 ms] ------ Debug phase ------
[ ] Starting debug of dabff3d7df79cccb54e110d1cc49dc18eb8433bd (D21AP, D21AP, uknownos, unkarch) a.k.a. 'iPhone' connected through USB...
[+2231 ms] [ 0%] Looking up developer disk image
[ +28 ms] [ 95%] Developer disk image mounted successfully
[ +183 ms] [100%] Connecting to remote debug server
[ ] -------------------------
[ +44 ms] (lldb) command source -s 0 '/tmp/12D98327-8756-4FDE-BE93-862C394B797E/fruitstrap-lldb-prep-cmds-dabff3d7df79cccb54e110d1cc49dc18eb8433bd'
[ +2 ms] Executing commands in '/tmp/12D98327-8756-4FDE-BE93-862C394B797E/fruitstrap-lldb-prep-cmds-dabff3d7df79cccb54e110d1cc49dc18eb8433bd'.
[ ] (lldb) platform select remote-ios --sysroot '/Users/a13906/Library/Developer/Xcode/iOS DeviceSupport/12.0.1 (16A404)/Symbols'
[ ] Platform: remote-ios
[ ] Connected: no
[ ] SDK Path: "/Users/a13906/Library/Developer/Xcode/iOS DeviceSupport/12.0.1 (16A404)/Symbols"
[ ] (lldb) target create "/Users/a13906/Development/test_something/build/ios/iphoneos/Runner.app"
[+3873 ms] Current executable set to '/Users/a13906/Development/test_something/build/ios/iphoneos/Runner.app' (arm64).
[ ] (lldb) script fruitstrap_device_app="/private/var/containers/Bundle/Application/81AA08C0-1403-47D5-95E0-CD97D87A1049/Runner.app"
[ ] (lldb) script fruitstrap_connect_url="connect://127.0.0.1:51695"
[ ] (lldb) target modules search-paths add /usr "/Users/a13906/Library/Developer/Xcode/iOS DeviceSupport/12.0.1 (16A404)/Symbols/usr" /System "/Users/a13906/Library/Developer/Xcode/iOS DeviceSupport/12.0.1 (16A404)/Symbols/System" "/private/var/containers/Bundle/Application/81AA08C0-1403-47D5-95E0-CD97D87A1049" "/Users/a13906/Development/test_something/build/ios/iphoneos" "/var/containers/Bundle/Application/81AA08C0-1403-47D5-95E0-CD97D87A1049" "/Users/a13906/Development/test_something/build/ios/iphoneos" /Developer "/Users/a13906/Library/Developer/Xcode/iOS DeviceSupport/12.0.1 (16A404)/Symbols/Developer"
[ +59 ms] (lldb) command script import "/tmp/12D98327-8756-4FDE-BE93-862C394B797E/fruitstrap_dabff3d7df79cccb54e110d1cc49dc18eb8433bd.py"
[ +7 ms] (lldb) command script add -f fruitstrap_dabff3d7df79cccb54e110d1cc49dc18eb8433bd.connect_command connect
[ ] (lldb) command script add -s asynchronous -f fruitstrap_dabff3d7df79cccb54e110d1cc49dc18eb8433bd.run_command run
[ ] (lldb) command script add -s asynchronous -f fruitstrap_dabff3d7df79cccb54e110d1cc49dc18eb8433bd.autoexit_command autoexit
[ ] (lldb) command script add -s asynchronous -f fruitstrap_dabff3d7df79cccb54e110d1cc49dc18eb8433bd.safequit_command safequit
[ ] (lldb) connect
[ +34 ms] (lldb) run
[ +126 ms] success
[ ] (lldb) safequit
[ +113 ms] Process 2258 detached
[ +37 ms] Application launched on the device. Waiting for observatory port.
[ +389 ms] Observatory URL on device: http://127.0.0.1:53330/
[ +1 ms] attempting to forward device port 53330 to host port 1024
[ ] executing: /usr/local/bin/iproxy 1024 53330 dabff3d7df79cccb54e110d1cc49dc18eb8433bd
[ +9 ms] attempting to forward device port 53330 to host port 1025
[ ] executing: /usr/local/bin/iproxy 1025 53330 dabff3d7df79cccb54e110d1cc49dc18eb8433bd
[+1018 ms] Forwarded port ForwardedPort HOST:1025 to DEVICE:53330
[ ] Forwarded host port 1025 to device port 53330 for Observatory
[ +1 ms] Installing and launching... (completed)
[ +3 ms] Connecting to service protocol: http://127.0.0.1:1025/
[ +163 ms] Successfully connected to service protocol: http://127.0.0.1:1025/
[ +2 ms] Sending to VM service: getVM({})
[ +5 ms] Result: {type: VM, name: vm, architectureBits: 64, targetCPU: dbc, hostCPU: Unknown, version: 2.1.0-dev.9.3.flutter-9c07fb64c4 (Wed Nov 7 06:47:47 2018 +0100) on "ios_dbc", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 2258, startTime: 1542084414182,...
[ +3 ms] Sending to VM service: getIsolate({isolateId: isolates/594973977})
[ +3 ms] Sending to VM service: _flutter.listViews({})
[ +33 ms] Result: {type: Isolate, fixedId: true, id: isolates/594973977, name: main.dart:main.dart(), number: 594973977, _originNumber: 594973977, startTime: 1542084414194, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 4, avgCollectionP...
[ +9 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x108813568, isolate: {type: @Isolate, fixedId: true, id: isolates/594973977, name: main.dart$main.dart-594973977, number: 594973977}}]}
[ +4 ms] DevFS: Creating new filesystem on the device (null)
[ ] Sending to VM service: _createDevFS({fsName: test_something})
[ +14 ms] Result: {type: FileSystem, name: test_something, uri: file:///private/var/mobile/Containers/Data/Application/AE8AEC9E-84FA-43BC-BBE4-DCA9AFB38661/tmp/test_somethingx7rLDX/test_something/}
[ ] DevFS: Created new filesystem on the device (file:///private/var/mobile/Containers/Data/Application/AE8AEC9E-84FA-43BC-BBE4-DCA9AFB38661/tmp/test_somethingx7rLDX/test_something/)
[ +1 ms] Updating assets
[ +110 ms] Syncing files to device iPhone...
[ +1 ms] DevFS: Starting sync from LocalDirectory: '/Users/a13906/Development/test_something'
[ ] Scanning project files
[ +3 ms] Scanning package files
[ +88 ms] Scanning asset files
[ +1 ms] Scanning for deleted files
[ +10 ms] Compiling dart to kernel with 443 updated files
[ +5 ms] /Users/a13906/Development/flutter/bin/cache/dart-sdk/bin/dart /Users/a13906/Development/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/a13906/Development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build/app.dill --packages /Users/a13906/Development/test_something/.packages --filesystem-scheme org-dartlang-root
[+1114 ms] Updating files
[ +115 ms] DevFS: Sync finished
[ ] Syncing files to device iPhone... (completed)
[ ] Synced 0.8MB.
[ +1 ms] Sending to VM service: _flutter.listViews({})
[ +3 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x108813568, isolate: {type: @Isolate, fixedId: true, id: isolates/594973977, name: main.dart$main.dart-594973977, number: 594973977}}]}
[ ] Connected to _flutterView/0x108813568.
[ +1 ms] 🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[ ] An Observatory debugger and profiler on iPhone is available at: http://127.0.0.1:1025/
[ ] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
[+8804 ms] Service protocol connection closed.
[ +1 ms] Lost connection to device.
[ +1 ms] DevFS: Deleting filesystem on the device (file:///private/var/mobile/Containers/Data/Application/AE8AEC9E-84FA-43BC-BBE4-DCA9AFB38661/tmp/test_somethingx7rLDX/test_something/)
[ ] Sending to VM service: _deleteDevFS({fsName: test_something})
[ +260 ms] TimeoutException after 0:00:00.250000: Future not completed
[ +6 ms] "flutter run" took 37,754ms."><pre class="notranslate"><code class="notranslate">[ +269 ms] ------ Debug phase ------
[ ] Starting debug of dabff3d7df79cccb54e110d1cc49dc18eb8433bd (D21AP, D21AP, uknownos, unkarch) a.k.a. 'iPhone' connected through USB...
[+2231 ms] [ 0%] Looking up developer disk image
[ +28 ms] [ 95%] Developer disk image mounted successfully
[ +183 ms] [100%] Connecting to remote debug server
[ ] -------------------------
[ +44 ms] (lldb) command source -s 0 '/tmp/12D98327-8756-4FDE-BE93-862C394B797E/fruitstrap-lldb-prep-cmds-dabff3d7df79cccb54e110d1cc49dc18eb8433bd'
[ +2 ms] Executing commands in '/tmp/12D98327-8756-4FDE-BE93-862C394B797E/fruitstrap-lldb-prep-cmds-dabff3d7df79cccb54e110d1cc49dc18eb8433bd'.
[ ] (lldb) platform select remote-ios --sysroot '/Users/a13906/Library/Developer/Xcode/iOS DeviceSupport/12.0.1 (16A404)/Symbols'
[ ] Platform: remote-ios
[ ] Connected: no
[ ] SDK Path: "/Users/a13906/Library/Developer/Xcode/iOS DeviceSupport/12.0.1 (16A404)/Symbols"
[ ] (lldb) target create "/Users/a13906/Development/test_something/build/ios/iphoneos/Runner.app"
[+3873 ms] Current executable set to '/Users/a13906/Development/test_something/build/ios/iphoneos/Runner.app' (arm64).
[ ] (lldb) script fruitstrap_device_app="/private/var/containers/Bundle/Application/81AA08C0-1403-47D5-95E0-CD97D87A1049/Runner.app"
[ ] (lldb) script fruitstrap_connect_url="connect://127.0.0.1:51695"
[ ] (lldb) target modules search-paths add /usr "/Users/a13906/Library/Developer/Xcode/iOS DeviceSupport/12.0.1 (16A404)/Symbols/usr" /System "/Users/a13906/Library/Developer/Xcode/iOS DeviceSupport/12.0.1 (16A404)/Symbols/System" "/private/var/containers/Bundle/Application/81AA08C0-1403-47D5-95E0-CD97D87A1049" "/Users/a13906/Development/test_something/build/ios/iphoneos" "/var/containers/Bundle/Application/81AA08C0-1403-47D5-95E0-CD97D87A1049" "/Users/a13906/Development/test_something/build/ios/iphoneos" /Developer "/Users/a13906/Library/Developer/Xcode/iOS DeviceSupport/12.0.1 (16A404)/Symbols/Developer"
[ +59 ms] (lldb) command script import "/tmp/12D98327-8756-4FDE-BE93-862C394B797E/fruitstrap_dabff3d7df79cccb54e110d1cc49dc18eb8433bd.py"
[ +7 ms] (lldb) command script add -f fruitstrap_dabff3d7df79cccb54e110d1cc49dc18eb8433bd.connect_command connect
[ ] (lldb) command script add -s asynchronous -f fruitstrap_dabff3d7df79cccb54e110d1cc49dc18eb8433bd.run_command run
[ ] (lldb) command script add -s asynchronous -f fruitstrap_dabff3d7df79cccb54e110d1cc49dc18eb8433bd.autoexit_command autoexit
[ ] (lldb) command script add -s asynchronous -f fruitstrap_dabff3d7df79cccb54e110d1cc49dc18eb8433bd.safequit_command safequit
[ ] (lldb) connect
[ +34 ms] (lldb) run
[ +126 ms] success
[ ] (lldb) safequit
[ +113 ms] Process 2258 detached
[ +37 ms] Application launched on the device. Waiting for observatory port.
[ +389 ms] Observatory URL on device: http://127.0.0.1:53330/
[ +1 ms] attempting to forward device port 53330 to host port 1024
[ ] executing: /usr/local/bin/iproxy 1024 53330 dabff3d7df79cccb54e110d1cc49dc18eb8433bd
[ +9 ms] attempting to forward device port 53330 to host port 1025
[ ] executing: /usr/local/bin/iproxy 1025 53330 dabff3d7df79cccb54e110d1cc49dc18eb8433bd
[+1018 ms] Forwarded port ForwardedPort HOST:1025 to DEVICE:53330
[ ] Forwarded host port 1025 to device port 53330 for Observatory
[ +1 ms] Installing and launching... (completed)
[ +3 ms] Connecting to service protocol: http://127.0.0.1:1025/
[ +163 ms] Successfully connected to service protocol: http://127.0.0.1:1025/
[ +2 ms] Sending to VM service: getVM({})
[ +5 ms] Result: {type: VM, name: vm, architectureBits: 64, targetCPU: dbc, hostCPU: Unknown, version: 2.1.0-dev.9.3.flutter-9c07fb64c4 (Wed Nov 7 06:47:47 2018 +0100) on "ios_dbc", _profilerMode: VM, _nativeZoneMemoryUsage: 0, pid: 2258, startTime: 1542084414182,...
[ +3 ms] Sending to VM service: getIsolate({isolateId: isolates/594973977})
[ +3 ms] Sending to VM service: _flutter.listViews({})
[ +33 ms] Result: {type: Isolate, fixedId: true, id: isolates/594973977, name: main.dart:main.dart(), number: 594973977, _originNumber: 594973977, startTime: 1542084414194, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 4, avgCollectionP...
[ +9 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x108813568, isolate: {type: @Isolate, fixedId: true, id: isolates/594973977, name: main.dart$main.dart-594973977, number: 594973977}}]}
[ +4 ms] DevFS: Creating new filesystem on the device (null)
[ ] Sending to VM service: _createDevFS({fsName: test_something})
[ +14 ms] Result: {type: FileSystem, name: test_something, uri: file:///private/var/mobile/Containers/Data/Application/AE8AEC9E-84FA-43BC-BBE4-DCA9AFB38661/tmp/test_somethingx7rLDX/test_something/}
[ ] DevFS: Created new filesystem on the device (file:///private/var/mobile/Containers/Data/Application/AE8AEC9E-84FA-43BC-BBE4-DCA9AFB38661/tmp/test_somethingx7rLDX/test_something/)
[ +1 ms] Updating assets
[ +110 ms] Syncing files to device iPhone...
[ +1 ms] DevFS: Starting sync from LocalDirectory: '/Users/a13906/Development/test_something'
[ ] Scanning project files
[ +3 ms] Scanning package files
[ +88 ms] Scanning asset files
[ +1 ms] Scanning for deleted files
[ +10 ms] Compiling dart to kernel with 443 updated files
[ +5 ms] /Users/a13906/Development/flutter/bin/cache/dart-sdk/bin/dart /Users/a13906/Development/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/a13906/Development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build/app.dill --packages /Users/a13906/Development/test_something/.packages --filesystem-scheme org-dartlang-root
[+1114 ms] Updating files
[ +115 ms] DevFS: Sync finished
[ ] Syncing files to device iPhone... (completed)
[ ] Synced 0.8MB.
[ +1 ms] Sending to VM service: _flutter.listViews({})
[ +3 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x108813568, isolate: {type: @Isolate, fixedId: true, id: isolates/594973977, name: main.dart$main.dart-594973977, number: 594973977}}]}
[ ] Connected to _flutterView/0x108813568.
[ +1 ms] 🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[ ] An Observatory debugger and profiler on iPhone is available at: http://127.0.0.1:1025/
[ ] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
[+8804 ms] Service protocol connection closed.
[ +1 ms] Lost connection to device.
[ +1 ms] DevFS: Deleting filesystem on the device (file:///private/var/mobile/Containers/Data/Application/AE8AEC9E-84FA-43BC-BBE4-DCA9AFB38661/tmp/test_somethingx7rLDX/test_something/)
[ ] Sending to VM service: _deleteDevFS({fsName: test_something})
[ +260 ms] TimeoutException after 0:00:00.250000: Future not completed
[ +6 ms] "flutter run" took 37,754ms.
</code></pre></div>
<h3 dir="auto">flutter analyze</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No issues found! (ran in 3.5s)"><pre class="notranslate"><code class="notranslate">No issues found! (ran in 3.5s)
</code></pre></div>
<h3 dir="auto">flutter doctor</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel dev, v0.11.3, on Mac OS X 10.13.6 17G65, locale ja-JP)
• Flutter version 0.11.3 at /Users/a13906/Development/flutter
• Framework revision 72bf075e8d (3 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/a13906/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.0, Build version 10A255
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] IntelliJ IDEA Community Edition (version 2018.1.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 24.1.2
• Dart plugin version 181.4668.60
[!] VS Code (version 1.27.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)
• iPhone • dabff3d7df79cccb54e110d1cc49dc18eb8433bd • ios • iOS 12.0.1
! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel dev, v0.11.3, on Mac OS X 10.13.6 17G65, locale ja-JP)
• Flutter version 0.11.3 at /Users/a13906/Development/flutter
• Framework revision 72bf075e8d (3 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/a13906/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.0, Build version 10A255
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[✓] IntelliJ IDEA Community Edition (version 2018.1.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 24.1.2
• Dart plugin version 181.4668.60
[!] VS Code (version 1.27.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)
• iPhone • dabff3d7df79cccb54e110d1cc49dc18eb8433bd • ios • iOS 12.0.1
! Doctor found issues in 1 category.
</code></pre></div> | 1 |
<p dir="auto">I saw several issues regarding this from a few years ago (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="248276540" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/11898" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/11898/hovercard" href="https://github.com/mrdoob/three.js/issues/11898">#11898</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="60186495" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/6191" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/6191/hovercard" href="https://github.com/mrdoob/three.js/issues/6191">#6191</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143198603" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/8458" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/8458/hovercard" href="https://github.com/mrdoob/three.js/issues/8458">#8458</a>), but I did not understand why didn't this go anywhere. The oldest one is still opened, but no activity since 2016?</p>
<p dir="auto">The problem is that when I create a <code class="notranslate">BufferGeometry</code> from <code class="notranslate">Geometry</code>, there are a lot of duplicated vertices. Now, I know what you are thinking: normals are different, there are UV seams etc. Alas this is not the case (as far as I can tell).</p>
<p dir="auto">For example, if I convert a <code class="notranslate">Sphere(Buffer)Geometry</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var geometry1 = new THREE.SphereBufferGeometry( 0.7, 10, 10 );
var geometry2 = new THREE.Geometry().fromBufferGeometry(geometry1);
var geometry3 = new THREE.BufferGeometry().fromGeometry(geometry2);"><pre class="notranslate"><code class="notranslate">var geometry1 = new THREE.SphereBufferGeometry( 0.7, 10, 10 );
var geometry2 = new THREE.Geometry().fromBufferGeometry(geometry1);
var geometry3 = new THREE.BufferGeometry().fromGeometry(geometry2);
</code></pre></div>
<p dir="auto">Then there are 4+ (!) times as many vertices in geometry3 than in geometry1.</p>
<p dir="auto">What I actually want is the position-based merge function (<code class="notranslate">.mergeVertices</code>) in the regular <code class="notranslate">Geometry</code> class. I started converting all my code to use <code class="notranslate">BufferGeometry</code>, but some functionality is not available there (like the merge). So I now want to convert my BufferGeometry to Geometry, parse it, and get it back to BufferGeometry for rendering. But this happens with the vertex count:</p>
<table role="table">
<thead>
<tr>
<th>Shape</th>
<th>Original BG</th>
<th>Converted G</th>
<th>Converted BG</th>
<th>Indexed and merged BG</th>
</tr>
</thead>
<tbody>
<tr>
<td>Plane</td>
<td>4</td>
<td>4</td>
<td><strong>6</strong></td>
<td>4</td>
</tr>
<tr>
<td>Box</td>
<td>24</td>
<td>24</td>
<td><strong>36</strong></td>
<td>24</td>
</tr>
<tr>
<td>Sphere</td>
<td>121</td>
<td>121</td>
<td><strong>540</strong></td>
<td>119</td>
</tr>
</tbody>
</table>
<p dir="auto">In the last column is the result from a merging and indexing function I created. That function checks all the attributes from the vertices of an un-indexed BG, removes duplicates and indexes it.</p>
<p dir="auto">Live: <a href="http://tume-maailm.pri.ee/ylikool/muu/threejs/indexedBG/" rel="nofollow">http://tume-maailm.pri.ee/ylikool/muu/threejs/indexedBG/</a><br>
(counts are in the Console)</p>
<p dir="auto">I don't know, maybe there are some models where the resulting BufferGeometry cannot be indexed like that. But perhaps automatic indexing could be at least some option somewhere?</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r106</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul> | <p dir="auto">Sometimes? Most of the times? In fact, it could be done even in case with face normals - if the model has enough neighbour faces with the same normal, it could even make sense :) File it under suggestions.</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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Context</h2>
<p dir="auto">Thanks for making this library <3. I am currently using the library and am building a selectbox and when I read the docs I stumbled upon this description for <code class="notranslate">renderValue</code>: <a href="https://material-ui.com/api/select/#props" rel="nofollow">https://material-ui.com/api/select/#props</a></p>
<p dir="auto">Important part:</p>
<blockquote>
<p dir="auto">Render the selected value. You can only use it when the native property is false (default).</p>
</blockquote>
<p dir="auto">I just wanted to ask if it's planned to add this feature for native selectboxes as well? To be more precise:<br>
I want to have EVERY feature of <code class="notranslate">material-ui-next</code> but when I open the select box on mobile a "real" select should open. I found other libraries having this included. They build a <code class="notranslate"><div></code> with <code class="notranslate"><li></code> like you do already, but when you click on the <code class="notranslate"><div</code>> a <code class="notranslate"><select></code> is triggered, so you can use both the features of the plugin AND the native select box.</p>
<p dir="auto">Is this something you would do, or maybe something a contributor could do or would you reject both the idea and a PR? I'm not so fluent in JS, so not 100% sure if I can fix this problem without making huge BC breaks, but I wanted to know if there are any plans on doing so?</p>
<p dir="auto">Reason is, we have a country selection where we display the country flag when a country has been selected and only display the country names when the select box is open and we wanted to use the same approach for mobile.</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>v1.0.0-beta.29</td>
</tr>
<tr>
<td>React</td>
<td>16</td>
</tr>
<tr>
<td>browser</td>
<td>any</td>
</tr>
</tbody>
</table> | <p dir="auto">Here are screenshots of 3 charts I've whipped up so far:</p>
<h3 dir="auto">Vertical Bar Chart</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6101610/10434733/57443476-70e9-11e5-8ce1-030e6270e97c.png"><img width="615" alt="screen shot 2015-10-12 at 1 57 45 pm" src="https://cloud.githubusercontent.com/assets/6101610/10434733/57443476-70e9-11e5-8ce1-030e6270e97c.png" style="max-width: 100%;"></a></p>
<h3 dir="auto">Horizontal Bar Chart</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6101610/10434736/5cee026c-70e9-11e5-8169-7b74217ef1f8.png"><img width="616" alt="screen shot 2015-10-12 at 1 57 57 pm" src="https://cloud.githubusercontent.com/assets/6101610/10434736/5cee026c-70e9-11e5-8169-7b74217ef1f8.png" style="max-width: 100%;"></a></p>
<h3 dir="auto">Bullet Chart</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6101610/10434742/60d5b118-70e9-11e5-817a-cfaef8930401.png"><img width="624" alt="screen shot 2015-10-12 at 1 56 57 pm" src="https://cloud.githubusercontent.com/assets/6101610/10434742/60d5b118-70e9-11e5-817a-cfaef8930401.png" style="max-width: 100%;"></a></p>
<p dir="auto">The charts are made using <a href="https://github.com/nvd3-community/nvd3">nvd3</a> and each chart's theme inherits from the calling component's mui theme. The screenshots are showing the default-light-theme (they look especially nice when wrapped in the <Paper> component!).</p>
<p dir="auto">I've got a forked branch set up <a href="https://github.com/jessjohn/material-ui/tree/add-chart-components/src/charts">here</a> that you can look at to see the code.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/shaurya947/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/shaurya947">@shaurya947</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hai-cea/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hai-cea">@hai-cea</a> - I'd love to hear some thoughts and feedback on adding these components to mui src code.</p> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">modules-extra / cloud / openstack / os_recordset</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version
ansible 2.2.0.0
config file = /home/ubuntu/work/playbooks/ansible.cfg
configured module search path = Default w/o overrides
"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 2.2.0.0
config file = /home/ubuntu/work/playbooks/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
inventory=inventory/openstack.py
[ssh_connection]
pipelining=False"><pre class="notranslate"><code class="notranslate">[defaults]
inventory=inventory/openstack.py
[ssh_connection]
pipelining=False
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ubuntu 16.04. The task uses delegate_to: localhost</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">It seems the os_recordset module is unable to create domain records with both A and AAAA records if they both have the same name. This isn't uncommon in IPv4 and IPv6 deployments. I should be able to create both A and AAAA records for the same name.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: testhost
tasks:
- name: Setting up testhost IPv4
delegate_to: localhost
os_recordset:
cloud: dev
state: present
zone: "example.com."
name: "www"
recordset_type: A
records: "{{ openstack.accessIPv4 }}"
ttl: 3600
- name: Setting up testhost IPv6
delegate_to: localhost
os_recordset:
cloud: dev
state: present
zone: "example.com."
name: "www"
recordset_type: AAAA
records: "{{ openstack.accessIPv6 }}"
ttl: 3600
"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">testhost</span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">Setting up testhost IPv4</span>
<span class="pl-ent">delegate_to</span>: <span class="pl-s">localhost</span>
<span class="pl-ent">os_recordset</span>:
<span class="pl-ent">cloud</span>: <span class="pl-s">dev</span>
<span class="pl-ent">state</span>: <span class="pl-s">present</span>
<span class="pl-ent">zone</span>: <span class="pl-s"><span class="pl-pds">"</span>example.com.<span class="pl-pds">"</span></span>
<span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>www<span class="pl-pds">"</span></span>
<span class="pl-ent">recordset_type</span>: <span class="pl-s">A</span>
<span class="pl-ent">records</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ openstack.accessIPv4 }}<span class="pl-pds">"</span></span>
<span class="pl-ent">ttl</span>: <span class="pl-c1">3600</span>
- <span class="pl-ent">name</span>: <span class="pl-s">Setting up testhost IPv6</span>
<span class="pl-ent">delegate_to</span>: <span class="pl-s">localhost</span>
<span class="pl-ent">os_recordset</span>:
<span class="pl-ent">cloud</span>: <span class="pl-s">dev</span>
<span class="pl-ent">state</span>: <span class="pl-s">present</span>
<span class="pl-ent">zone</span>: <span class="pl-s"><span class="pl-pds">"</span>example.com.<span class="pl-pds">"</span></span>
<span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>www<span class="pl-pds">"</span></span>
<span class="pl-ent">recordset_type</span>: <span class="pl-s">AAAA</span>
<span class="pl-ent">records</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ openstack.accessIPv6 }}<span class="pl-pds">"</span></span>
<span class="pl-ent">ttl</span>: <span class="pl-c1">3600</span>
</pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">I would expect both A and AAAA records to be created without error.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Creating A/AAAA record and both an A and AAAA records already exist in OpenStack:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [Setting up testhost IPv4] ************************************************
fatal: [www.example.com -> localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to create recordset www (Inner Exception: Duplicate RecordSet)"}"><pre class="notranslate"><code class="notranslate">TASK [Setting up testhost IPv4] ************************************************
fatal: [www.example.com -> localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Unable to create recordset www (Inner Exception: Duplicate RecordSet)"}
</code></pre></div>
<p dir="auto">Creating A record and only an AAAA record already exists in OpenStack:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [Setting up testhost IPv4] ************************************************
fatal: [www.example.com -> localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Error updating recordset www.example.com. (Inner Exception: u'10.0.0.1' is not a 'ipv6')"}"><pre class="notranslate"><code class="notranslate">TASK [Setting up testhost IPv4] ************************************************
fatal: [www.example.com -> localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Error updating recordset www.example.com. (Inner Exception: u'10.0.0.1' is not a 'ipv6')"}
</code></pre></div>
<p dir="auto">Verbose on:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [www.example.com -> localhost]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"api_timeout": null,
"auth": null,
"auth_type": null,
"availability_zone": null,
"cacert": null,
"cert": null,
"cloud": "dev",
"description": null,
"endpoint_type": "public",
"key": null,
"name": "www",
"records": [
"10.0.0.1"
],
"recordset_type": "A",
"region_name": null,
"state": "present",
"timeout": 180,
"ttl": 3600,
"verify": true,
"wait": true,
"zone": "example.com."
},
"module_name": "os_recordset"
},
"msg": "Error updating recordset www.example.com. (Inner Exception: u'10.0.0.1' is not a 'ipv6')"
}
"><pre class="notranslate"><code class="notranslate">fatal: [www.example.com -> localhost]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_args": {
"api_timeout": null,
"auth": null,
"auth_type": null,
"availability_zone": null,
"cacert": null,
"cert": null,
"cloud": "dev",
"description": null,
"endpoint_type": "public",
"key": null,
"name": "www",
"records": [
"10.0.0.1"
],
"recordset_type": "A",
"region_name": null,
"state": "present",
"timeout": 180,
"ttl": 3600,
"verify": true,
"wait": true,
"zone": "example.com."
},
"module_name": "os_recordset"
},
"msg": "Error updating recordset www.example.com. (Inner Exception: u'10.0.0.1' is not a 'ipv6')"
}
</code></pre></div>
<p dir="auto">Creating an AAAA record and an A record already exists in OpenStack</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "msg": "Error updating recordset www.example.com. (Inner Exception: u'<ipv6 address removed>' is not a 'ipv4')"
"><pre class="notranslate"><code class="notranslate"> "msg": "Error updating recordset www.example.com. (Inner Exception: u'<ipv6 address removed>' is not a 'ipv4')"
</code></pre></div> | <p dir="auto">Ansible URI module remove plus sign when we do a post method call.<br>
Am using credential API to create credentials in Jenkins. My payload has the attribute which carries SSH private key. am using ansible vault to store my key and feeding my vault variable to the payload.<br>
Am getting successful response and even the credentials are created in jenkins.<br>
However it removes the plus (+) sign from the credential.</p>
<p dir="auto">Note: am using header</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" headers:
Content-Type: "application/x-www-form-urlencoded""><pre class="notranslate"><code class="notranslate"> headers:
Content-Type: "application/x-www-form-urlencoded"
</code></pre></div>
<p dir="auto">My Request:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: configure gerrit credential
uri:
url: https://ipaddress/credentials/store/system/domain/_/createCredentials
method: POST
headers:
Content-Type: "x-www-form-urlencoded"
body: 'json={
"": "0",
"credentials": {
"scope": "GLOBAL",
"id": "AADO-Jenkins-gerrit-ssh-credentials",
"username": "Jenkins-test",
"passphrase": "{{ jenkins_passphrase }}",
"privateKeySource": {
"stapler-class": "com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey$DirectEntryPrivateKeySource",
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\nABCCC+cccd+fff\n-----END RSA PRIVATE KEY-----\n"
},
"description": "apicredentials",
"stapler-class": "com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey"
}
}'
validate_certs: no
follow_redirects: yes
register: login
return_content: yes"><pre class="notranslate"><code class="notranslate">- name: configure gerrit credential
uri:
url: https://ipaddress/credentials/store/system/domain/_/createCredentials
method: POST
headers:
Content-Type: "x-www-form-urlencoded"
body: 'json={
"": "0",
"credentials": {
"scope": "GLOBAL",
"id": "AADO-Jenkins-gerrit-ssh-credentials",
"username": "Jenkins-test",
"passphrase": "{{ jenkins_passphrase }}",
"privateKeySource": {
"stapler-class": "com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey$DirectEntryPrivateKeySource",
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\nABCCC+cccd+fff\n-----END RSA PRIVATE KEY-----\n"
},
"description": "apicredentials",
"stapler-class": "com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey"
}
}'
validate_certs: no
follow_redirects: yes
register: login
return_content: yes
</code></pre></div>
<p dir="auto">Output:</p>
<p dir="auto">In jenkins the credential are stored as</p>
<p dir="auto">-----BEGIN RSA PRIVATE KEY-----<br>
ABCCC cccd fff<br>
-----END RSA PRIVATE KEY-----<br>
It removes the plus(+) sign and added spaces</p> | 0 |
<p dir="auto">the Fourier transform have many properties.<br>
one is the following equation, regarding complex conjugation:<br>
$$ \widetilde{\overline{f(t)}} = \overline{\widetilde{f}(-\omega)} $$<br>
(where the overline indicates the complex conjugation and the tilde the Fourier transform)<br>
and another one is this other equation, regarding time reversal:<br>
$$ F(x(-t)) = (F(x))(-\omega) $$<br>
(with the Fourier transform indicated by F)</p>
<p dir="auto">let's start talking about the first equation.<br>
when checking this analytical property numerically, I find that it is verified only for sequences with an odd number of samples, while with even numbers the two terms (left and right) are shifted by one sample. this seems a bug. if you do <code class="notranslate">numpy.roll(right, 1)</code> you obtain back the <code class="notranslate">left</code> term (within negligible numerical errors).</p>
<p dir="auto">the second properties is instead never correctly verified, since with both odd and even numbers the two results appear to be shifted by one sample one with respect to the other. this seems a bug to me.</p>
<p dir="auto">I'm reporting those two bugs together, since I believe they are strictly related.</p>
<p dir="auto">with the following code you can reproduce those bugs.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy
import matplotlib
#matplotlib.use('Qt5Agg')
from matplotlib import pyplot
"""
check complex conjugation
$\widetilde{\overline{f(t)}} = \overline{\widetilde{f}(-\omega)}$
"""
length = 1024
complex_data = numpy.random.normal(size=length) + 1j*numpy.random.normal(size=length)
left = numpy.fft.fftshift(numpy.fft.fft(numpy.conjugate(complex_data)))
right = numpy.conjugate(numpy.flip(numpy.fft.fftshift(numpy.fft.fft(complex_data))))
print(numpy.isclose(left, right, atol=0.00001).all())
pyplot.plot(abs(left), label='abs(left)')
pyplot.plot(abs(right), label='abs(right)')
pyplot.legend()
pyplot.show()
# with length=1023 everything is ok, but with length=1024 there is a shift of one sample. if you zoom the plot you can clearly see it. it can be resolved with numpy.roll(abs(right), 1)
##############################
"""
check time reversal
$F(x(-t)) = (F(x))(-\omega)$
"""
left = numpy.fft.fftshift(numpy.fft.fft(numpy.flip(complex_data)))
right = numpy.flip(numpy.fft.fftshift(numpy.fft.fft(complex_data)))
print(numpy.isclose(left, right, atol=0.00001).all())
pyplot.plot(abs(left), label='abs(left)')
pyplot.plot(abs(right), label='abs(right)')
pyplot.legend()
pyplot.show()
# both with length=1023 and length=1024 there is a shift of one sample. if you zoom the plot you can clearly see it. it can be resolved with numpy.roll(abs(right), 1)"><pre class="notranslate"><code class="notranslate">import numpy
import matplotlib
#matplotlib.use('Qt5Agg')
from matplotlib import pyplot
"""
check complex conjugation
$\widetilde{\overline{f(t)}} = \overline{\widetilde{f}(-\omega)}$
"""
length = 1024
complex_data = numpy.random.normal(size=length) + 1j*numpy.random.normal(size=length)
left = numpy.fft.fftshift(numpy.fft.fft(numpy.conjugate(complex_data)))
right = numpy.conjugate(numpy.flip(numpy.fft.fftshift(numpy.fft.fft(complex_data))))
print(numpy.isclose(left, right, atol=0.00001).all())
pyplot.plot(abs(left), label='abs(left)')
pyplot.plot(abs(right), label='abs(right)')
pyplot.legend()
pyplot.show()
# with length=1023 everything is ok, but with length=1024 there is a shift of one sample. if you zoom the plot you can clearly see it. it can be resolved with numpy.roll(abs(right), 1)
##############################
"""
check time reversal
$F(x(-t)) = (F(x))(-\omega)$
"""
left = numpy.fft.fftshift(numpy.fft.fft(numpy.flip(complex_data)))
right = numpy.flip(numpy.fft.fftshift(numpy.fft.fft(complex_data)))
print(numpy.isclose(left, right, atol=0.00001).all())
pyplot.plot(abs(left), label='abs(left)')
pyplot.plot(abs(right), label='abs(right)')
pyplot.legend()
pyplot.show()
# both with length=1023 and length=1024 there is a shift of one sample. if you zoom the plot you can clearly see it. it can be resolved with numpy.roll(abs(right), 1)
</code></pre></div>
<p dir="auto">Numpy/Python version information:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import sys, numpy
print(numpy.__version__)
print(sys.version)
>>> 1.15.3
>>> 3.6.7 |Anaconda custom (64-bit)| (default, Oct 23 2018, 19:16:44) [GCC 7.3.0]"><pre class="notranslate"><code class="notranslate">import sys, numpy
print(numpy.__version__)
print(sys.version)
>>> 1.15.3
>>> 3.6.7 |Anaconda custom (64-bit)| (default, Oct 23 2018, 19:16:44) [GCC 7.3.0]
</code></pre></div> | <p dir="auto"><em>Background</em>: Quite frequently I would like (<a href="https://stackoverflow.com/questions/30031828/multiply-numpy-ndarray-with-1d-array-along-a-given-axis" rel="nofollow">and others</a>, it seems, too) to multiply a 1D array by an array of other arrays, say:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
c = np.array([1, 2, 3])
E = np.ones((3, 3))
Ev = np.array([E, E, E])
# and I'd like to do this using NumPy broadcasting possibilities:
c * Ev"><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-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>])
<span class="pl-v">E</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>((<span class="pl-c1">3</span>, <span class="pl-c1">3</span>))
<span class="pl-v">Ev</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-v">E</span>, <span class="pl-v">E</span>, <span class="pl-v">E</span>])
<span class="pl-c"># and I'd like to do this using NumPy broadcasting possibilities: </span>
<span class="pl-s1">c</span> <span class="pl-c1">*</span> <span class="pl-v">Ev</span></pre></div>
<p dir="auto">Clearly, one option is to use comprehensions. Another is to expand <code class="notranslate">c</code> to have a suitable shape <code class="notranslate">(3,1,1)</code> by <code class="notranslate">expand_dims</code> or by <code class="notranslate">c[:, np.newaxis, np.newaxis]</code>.</p>
<p dir="auto"><em>Enh</em>: allow <code class="notranslate">expand_dims</code> accept a tuple that shows where insert new dimensions.<br>
If an int is passed, then do the same it does now.<br>
If a tuple <code class="notranslate">(p, q, r, s, ...)</code> of length <code class="notranslate">d</code> is passed, then increase <code class="notranslate">ndim</code> by <code class="notranslate">d</code>, fill <code class="notranslate">shape</code> elements at the indices <code class="notranslate">p, q, r, s ...</code> with 1, fill the rest with the original array's dimensions.</p>
<p dir="auto">Some examples that illustrate the idea:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def new_expand_dims(a, axes):
# if int is passed, retain the same behaviour
if type(axes) == int:
return np.expand_dims(a, axes)
# insert axes to given indices
for ax in sorted(axes):
a = np.expand_dims(a, ax)
return a
c = np.array([1, 3, 3])
csize = c.size
M = np.random.rand(8, 3, 4)
def test_int():
assert new_expand_dims(c, 0).shape == (1, csize)
def test_consecutive_tpl():
assert new_expand_dims(c, (0, 1)).shape == (1, 1, csize)
def test_non_consecutive_tpl():
assert new_expand_dims(c, (0, 2)).shape == (1, csize, 1)
def test_302_tpl():
assert new_expand_dims(c, (3, 0, 2)).shape == (1, csize, 1, 1)
def test_123_tpl():
assert new_expand_dims(c, (1, 2, 3)).shape == (csize, 1, 1, 1)
def test_int_nd():
assert new_expand_dims(M, 0).shape == (1, *M.shape)
def test_302_tpl_nd():
assert new_expand_dims(M, (3, 0, 2)).shape == (1, 8, 1, 1, 3, 4)"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">new_expand_dims</span>(<span class="pl-s1">a</span>, <span class="pl-s1">axes</span>):
<span class="pl-c"># if int is passed, retain the same behaviour</span>
<span class="pl-k">if</span> <span class="pl-en">type</span>(<span class="pl-s1">axes</span>) <span class="pl-c1">==</span> <span class="pl-s1">int</span>:
<span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">expand_dims</span>(<span class="pl-s1">a</span>, <span class="pl-s1">axes</span>)
<span class="pl-c"># insert axes to given indices</span>
<span class="pl-k">for</span> <span class="pl-s1">ax</span> <span class="pl-c1">in</span> <span class="pl-en">sorted</span>(<span class="pl-s1">axes</span>):
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">expand_dims</span>(<span class="pl-s1">a</span>, <span class="pl-s1">ax</span>)
<span class="pl-k">return</span> <span class="pl-s1">a</span>
<span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>])
<span class="pl-s1">csize</span> <span class="pl-c1">=</span> <span class="pl-s1">c</span>.<span class="pl-s1">size</span>
<span class="pl-v">M</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">rand</span>(<span class="pl-c1">8</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>)
<span class="pl-k">def</span> <span class="pl-en">test_int</span>():
<span class="pl-k">assert</span> <span class="pl-en">new_expand_dims</span>(<span class="pl-s1">c</span>, <span class="pl-c1">0</span>).<span class="pl-s1">shape</span> <span class="pl-c1">==</span> (<span class="pl-c1">1</span>, <span class="pl-s1">csize</span>)
<span class="pl-k">def</span> <span class="pl-en">test_consecutive_tpl</span>():
<span class="pl-k">assert</span> <span class="pl-en">new_expand_dims</span>(<span class="pl-s1">c</span>, (<span class="pl-c1">0</span>, <span class="pl-c1">1</span>)).<span class="pl-s1">shape</span> <span class="pl-c1">==</span> (<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-s1">csize</span>)
<span class="pl-k">def</span> <span class="pl-en">test_non_consecutive_tpl</span>():
<span class="pl-k">assert</span> <span class="pl-en">new_expand_dims</span>(<span class="pl-s1">c</span>, (<span class="pl-c1">0</span>, <span class="pl-c1">2</span>)).<span class="pl-s1">shape</span> <span class="pl-c1">==</span> (<span class="pl-c1">1</span>, <span class="pl-s1">csize</span>, <span class="pl-c1">1</span>)
<span class="pl-k">def</span> <span class="pl-en">test_302_tpl</span>():
<span class="pl-k">assert</span> <span class="pl-en">new_expand_dims</span>(<span class="pl-s1">c</span>, (<span class="pl-c1">3</span>, <span class="pl-c1">0</span>, <span class="pl-c1">2</span>)).<span class="pl-s1">shape</span> <span class="pl-c1">==</span> (<span class="pl-c1">1</span>, <span class="pl-s1">csize</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>)
<span class="pl-k">def</span> <span class="pl-en">test_123_tpl</span>():
<span class="pl-k">assert</span> <span class="pl-en">new_expand_dims</span>(<span class="pl-s1">c</span>, (<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>)).<span class="pl-s1">shape</span> <span class="pl-c1">==</span> (<span class="pl-s1">csize</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>)
<span class="pl-k">def</span> <span class="pl-en">test_int_nd</span>():
<span class="pl-k">assert</span> <span class="pl-en">new_expand_dims</span>(<span class="pl-v">M</span>, <span class="pl-c1">0</span>).<span class="pl-s1">shape</span> <span class="pl-c1">==</span> (<span class="pl-c1">1</span>, <span class="pl-c1">*</span><span class="pl-v">M</span>.<span class="pl-s1">shape</span>)
<span class="pl-k">def</span> <span class="pl-en">test_302_tpl_nd</span>():
<span class="pl-k">assert</span> <span class="pl-en">new_expand_dims</span>(<span class="pl-v">M</span>, (<span class="pl-c1">3</span>, <span class="pl-c1">0</span>, <span class="pl-c1">2</span>)).<span class="pl-s1">shape</span> <span class="pl-c1">==</span> (<span class="pl-c1">1</span>, <span class="pl-c1">8</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>)</pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">1.15.3 3.7.1 (default, Oct 22 2018, 10:41:28)<br>
[GCC 8.2.1 20180831]</p> | 0 |
<p dir="auto">See details here: <a href="http://stackoverflow.com/questions/33986633/angular-2-dependency-injection-error-on-ngfor-in-dynamically-created-component" rel="nofollow">http://stackoverflow.com/questions/33986633/angular-2-dependency-injection-error-on-ngfor-in-dynamically-created-component</a></p>
<p dir="auto">This is a showstopper for loadAsRoot. All I get is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!--template bindings={}-->"><pre class="notranslate"><code class="notranslate"><!--template bindings={}-->
</code></pre></div>
<p dir="auto">where the repeated elements shoud be.</p> | <p dir="auto">When you add a component via DynamicComponentLoader.loadAsRoot, you can't use data binding in your loaded component template.<br>
Plunker: <a href="http://plnkr.co/edit/yzKAiXQQQwKi88g6wIdY?p=preview" rel="nofollow">http://plnkr.co/edit/yzKAiXQQQwKi88g6wIdY?p=preview</a></p> | 1 |
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Vector3<S>(S, S, S);
// passes type checking
fn into_vec3_arg<S>([x, y, z]: [S, ..3]) -> Vector3<S> {
Vector3(x, y, z)
}
fn into_vec3_let<S>(v: [S, ..3]) -> Vector3<S> {
let [x, y, z] = v; // error: use of moved value: `v[..]`
Vector3(x, y, z)
}
fn into_vec3_match<S>(v: [S, ..3]) -> Vector3<S> {
match v {
// error: use of moved value: `v[..]`
[x, y, z] => Vector3(x, y, z),
}
}"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">Vector3</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-smi">S</span><span class="pl-kos">,</span> <span class="pl-smi">S</span><span class="pl-kos">,</span> <span class="pl-smi">S</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// passes type checking</span>
<span class="pl-k">fn</span> <span class="pl-en">into_vec3_arg</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-kos">[</span>x<span class="pl-kos">,</span> y<span class="pl-kos">,</span> z<span class="pl-kos">]</span><span class="pl-kos">:</span> <span class="pl-kos">[</span><span class="pl-smi">S</span><span class="pl-kos"></span><span class="pl-kos">,</span> ..<span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span> -> <span class="pl-smi">Vector3</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-v">Vector3</span><span class="pl-kos">(</span>x<span class="pl-kos">,</span> y<span class="pl-kos">,</span> z<span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">into_vec3_let</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s1">v</span><span class="pl-kos">:</span> <span class="pl-kos">[</span><span class="pl-smi">S</span><span class="pl-kos"></span><span class="pl-kos">,</span> ..<span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span> -> <span class="pl-smi">Vector3</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-kos">[</span>x<span class="pl-kos">,</span> y<span class="pl-kos">,</span> z<span class="pl-kos">]</span> = v<span class="pl-kos">;</span> <span class="pl-c">// error: use of moved value: `v[..]`</span>
<span class="pl-v">Vector3</span><span class="pl-kos">(</span>x<span class="pl-kos">,</span> y<span class="pl-kos">,</span> z<span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">into_vec3_match</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s1">v</span><span class="pl-kos">:</span> <span class="pl-kos">[</span><span class="pl-smi">S</span><span class="pl-kos"></span><span class="pl-kos">,</span> ..<span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span> -> <span class="pl-smi">Vector3</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">match</span> v <span class="pl-kos">{</span>
<span class="pl-c">// error: use of moved value: `v[..]`</span>
<span class="pl-kos">[</span>x<span class="pl-kos">,</span> y<span class="pl-kos">,</span> z<span class="pl-kos">]</span> => <span class="pl-v">Vector3</span><span class="pl-kos">(</span>x<span class="pl-kos">,</span> y<span class="pl-kos">,</span> z<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"><a href="http://is.gd/bc1U2v" rel="nofollow">http://is.gd/bc1U2v</a></p>
<p dir="auto">Note that it is impossible to work around this using transmute, because:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Vector3<S>(S, S, S);
fn into_vec3_transmute<S>(v: [S, ..3]) -> Vector3<S> {
// error: cannot transmute from a type that contains type parameters
unsafe { mem::transmute(v) }
}"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">Vector3</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-smi">S</span><span class="pl-kos">,</span> <span class="pl-smi">S</span><span class="pl-kos">,</span> <span class="pl-smi">S</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">into_vec3_transmute</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s1">v</span><span class="pl-kos">:</span> <span class="pl-kos">[</span><span class="pl-smi">S</span><span class="pl-kos"></span><span class="pl-kos">,</span> ..<span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span> -> <span class="pl-smi">Vector3</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-c">// error: cannot transmute from a type that contains type parameters</span>
<span class="pl-k">unsafe</span> <span class="pl-kos">{</span> mem<span class="pl-kos">::</span><span class="pl-en">transmute</span><span class="pl-kos">(</span>v<span class="pl-kos">)</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><a href="http://is.gd/BeSWOs" rel="nofollow">http://is.gd/BeSWOs</a></p> | <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let arr = [Box::new(1), Box::new(2), Box::new(3)];
let [a, b, c] = arr;"><pre class="notranslate"><span class="pl-k">let</span> arr = <span class="pl-kos">[</span><span class="pl-smi">Box</span><span class="pl-kos">::</span><span class="pl-en">new</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-smi">Box</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-smi">Box</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-kos">[</span>a<span class="pl-kos">,</span> b<span class="pl-kos">,</span> c<span class="pl-kos">]</span> = arr<span class="pl-kos">;</span></pre></div>
<p dir="auto">fails with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<anon>:5:13: 5:14 error: use of moved value: `arr[..]` [E0382]
<anon>:5 let [a, b, c] = arr;
^
<anon>:5:10: 5:11 note: `arr[..]` moved here because it has type `Box<i32>`, which is moved by default
<anon>:5 let [a, b, c] = arr;
^
<anon>:5:10: 5:11 help: use `ref` to override"><pre class="notranslate"><code class="notranslate"><anon>:5:13: 5:14 error: use of moved value: `arr[..]` [E0382]
<anon>:5 let [a, b, c] = arr;
^
<anon>:5:10: 5:11 note: `arr[..]` moved here because it has type `Box<i32>`, which is moved by default
<anon>:5 let [a, b, c] = arr;
^
<anon>:5:10: 5:11 help: use `ref` to override
</code></pre></div>
<p dir="auto">while the following work fine:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let arr = [Box::new(1)];
let [a] = arr;"><pre class="notranslate"><span class="pl-k">let</span> arr = <span class="pl-kos">[</span><span class="pl-smi">Box</span><span class="pl-kos">::</span><span class="pl-en">new</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-kos">;</span>
<span class="pl-k">let</span> <span class="pl-kos">[</span>a<span class="pl-kos">]</span> = arr<span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
enum Dummy<T> {
Val([T; 2]),
}
let arr = [Box::new(1), Box::new(2)];
let Dummy::Val([a, b]) = Dummy::Val(arr);"><pre class="notranslate"><span class="pl-k">enum</span> <span class="pl-smi">Dummy</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-v">Val</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-c1">2</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> arr = <span class="pl-kos">[</span><span class="pl-smi">Box</span><span class="pl-kos">::</span><span class="pl-en">new</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-smi">Box</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-smi">Dummy</span><span class="pl-kos">::</span><span class="pl-v">Val</span><span class="pl-kos">(</span><span class="pl-kos">[</span>a<span class="pl-kos">,</span> b<span class="pl-kos">]</span><span class="pl-kos">)</span> = <span class="pl-smi">Dummy</span><span class="pl-kos">::</span><span class="pl-v">Val</span><span class="pl-kos">(</span>arr<span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | 1 |
<blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yangchenyun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yangchenyun">@yangchenyun</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.3.17 (babel-core 6.3.21)</li>
<li><strong>Node version:</strong> 5.3.0</li>
<li><strong>npm version:</strong> 3.3.12</li>
</ul>
<h3 dir="auto">Options</h3>
<p dir="auto">$ cat .babelrc</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"presets": ["es2015"]
}"><pre class="notranslate"><code class="notranslate">{
"presets": ["es2015"]
}
</code></pre></div>
<p dir="auto">$ cat > script.js</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function f2(x, ...y) {
// y is an Array
return x * y.length;
}"><pre class="notranslate"><code class="notranslate">function f2(x, ...y) {
// y is an Array
return x * y.length;
}
</code></pre></div>
<p dir="auto">$ babel script.js --out-file script-compiled.js && cat script-compiled.js</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""use strict";
function f2(x) {
// y is an Array
return x * arguments.length + 1;
};"><pre class="notranslate"><code class="notranslate">"use strict";
function f2(x) {
// y is an Array
return x * arguments.length + 1;
};
</code></pre></div>
<h3 dir="auto">Input code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"presets": ["es2015"]
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"es2015"</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">The compiled code seems to be incorrect optimization when the value of y is not needed; but the correct optimization should be:</p>
<p dir="auto">return x * (arguments.length - 1)</p> | <p dir="auto">Let's say we have the following piece of code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export async function beforeBluebirdRequire() {
await getMeSomePromise();
}
export default async function afterBluebirdRequire() {
await getMeSomePromise();
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">beforeBluebirdRequire</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-en">getMeSomePromise</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-k">async</span> <span class="pl-k">function</span> <span class="pl-en">afterBluebirdRequire</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-en">getMeSomePromise</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">To deal with the async/wait we transpile this with a <code class="notranslate">.babelrc</code> as follows:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"plugins": [
["transform-async-to-module-method", {
"module": "bluebird",
"method": "coroutine"
}]
]
}"><pre class="notranslate">{
<span class="pl-ent">"plugins"</span>: [
[<span class="pl-s"><span class="pl-pds">"</span>transform-async-to-module-method<span class="pl-pds">"</span></span>, {
<span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>bluebird<span class="pl-pds">"</span></span>,
<span class="pl-ent">"method"</span>: <span class="pl-s"><span class="pl-pds">"</span>coroutine<span class="pl-pds">"</span></span>
}]
]
}</pre></div>
<p dir="auto">This results in the following code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { coroutine as _coroutine } from "bluebird";
export default _coroutine(function* afterBluebirdRequire() {
yield getMeSomePromise();
});
export let beforeBluebirdRequire = (function () {
var ref = _coroutine(function* beforeBluebirdRequire() {
yield getMeSomePromise();
});
return function beforeBluebirdRequire() {
return ref.apply(this, arguments);
};
})();"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">coroutine</span> <span class="pl-k">as</span> <span class="pl-s1">_coroutine</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"bluebird"</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">_coroutine</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-s1">afterBluebirdRequire</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">yield</span> <span class="pl-en">getMeSomePromise</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-k">export</span> <span class="pl-k">let</span> <span class="pl-s1">beforeBluebirdRequire</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">ref</span> <span class="pl-c1">=</span> <span class="pl-en">_coroutine</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-s1">beforeBluebirdRequire</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">yield</span> <span class="pl-en">getMeSomePromise</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-k">return</span> <span class="pl-k">function</span> <span class="pl-s1">beforeBluebirdRequire</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">ref</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Which will not run on Node because it assumes ES6 modules, so we change <code class="notranslate">.babelrc</code> to:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"plugins": [
["transform-async-to-module-method", {
"module": "bluebird",
"method": "coroutine"
}],
"transform-es2015-modules-commonjs"
]
}"><pre class="notranslate">{
<span class="pl-ent">"plugins"</span>: [
[<span class="pl-s"><span class="pl-pds">"</span>transform-async-to-module-method<span class="pl-pds">"</span></span>, {
<span class="pl-ent">"module"</span>: <span class="pl-s"><span class="pl-pds">"</span>bluebird<span class="pl-pds">"</span></span>,
<span class="pl-ent">"method"</span>: <span class="pl-s"><span class="pl-pds">"</span>coroutine<span class="pl-pds">"</span></span>
}],
<span class="pl-s"><span class="pl-pds">"</span>transform-es2015-modules-commonjs<span class="pl-pds">"</span></span>
]
}</pre></div>
<p dir="auto">But now the transpiled code ends up as:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""use strict";
let beforeBluebirdRequire = exports.beforeBluebirdRequire = (function () {
var ref = (0, _bluebird.coroutine)(function* beforeBluebirdRequire() {
yield getMeSomePromise();
});
return function beforeBluebirdRequire() {
return ref.apply(this, arguments);
};
})();
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.beforeBluebirdRequire = undefined;
var _bluebird = require("bluebird");
exports.default = (0, _bluebird.coroutine)(function* afterBluebirdRequire() {
yield getMeSomePromise();
});"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">beforeBluebirdRequire</span> <span class="pl-c1">=</span> <span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">beforeBluebirdRequire</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">ref</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_bluebird</span><span class="pl-kos">.</span><span class="pl-c1">coroutine</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-s1">beforeBluebirdRequire</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">yield</span> <span class="pl-en">getMeSomePromise</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-k">return</span> <span class="pl-k">function</span> <span class="pl-s1">beforeBluebirdRequire</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">ref</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">value</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">beforeBluebirdRequire</span> <span class="pl-c1">=</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_bluebird</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"bluebird"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">default</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_bluebird</span><span class="pl-kos">.</span><span class="pl-c1">coroutine</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-s1">afterBluebirdRequire</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">yield</span> <span class="pl-en">getMeSomePromise</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">This won't run because <code class="notranslate">_bluebird.coroutine</code> is used before it is required.</p>
<hr>
<p dir="auto">The silly thing is that when you separate the two transpile operations into two steps, it will all work fine and as expected.</p>
<p dir="auto">So first we substitute the async/await using <code class="notranslate">transform-async-to-module-method</code>, and then we take the result as input to another transpilation call that substitutes the ES6 modules for CommonJS modules using <code class="notranslate">transform-es2015-modules-commonjs</code>.</p>
<p dir="auto">The result is exactly what we need:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.beforeBluebirdRequire = undefined;
var _bluebird = require("bluebird");
exports.default = (0, _bluebird.coroutine)(function* afterBluebirdRequire() {
yield getMeSomePromise();
});
let beforeBluebirdRequire = exports.beforeBluebirdRequire = (function () {
var ref = (0, _bluebird.coroutine)(function* beforeBluebirdRequire() {
yield getMeSomePromise();
});
return function beforeBluebirdRequire() {
return ref.apply(this, arguments);
};
})();"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">value</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">beforeBluebirdRequire</span> <span class="pl-c1">=</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_bluebird</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"bluebird"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">default</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_bluebird</span><span class="pl-kos">.</span><span class="pl-c1">coroutine</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-s1">afterBluebirdRequire</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">yield</span> <span class="pl-en">getMeSomePromise</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-k">let</span> <span class="pl-s1">beforeBluebirdRequire</span> <span class="pl-c1">=</span> <span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">beforeBluebirdRequire</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">ref</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_bluebird</span><span class="pl-kos">.</span><span class="pl-c1">coroutine</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-s1">beforeBluebirdRequire</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">yield</span> <span class="pl-en">getMeSomePromise</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-k">return</span> <span class="pl-k">function</span> <span class="pl-s1">beforeBluebirdRequire</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">ref</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Why won't we get this result when using the two plugins together, in the same transpile operation?</strong></p>
<p dir="auto">P.S. I'm using Babel 6</p> | 0 |
<p dir="auto">This is a problem of implementation decisions. The adjusted mutual information (AMI) between two labelings is an adjusted-for-chance version of the normalized mutual information (NMI) of those labelings. There are numerous choices for how to normalize; four listed in <a href="http://jmlr.csail.mit.edu/papers/volume11/vinh10a/vinh10a.pdf" rel="nofollow">Vinh et al. (2010)</a> are min, sum, sqrt, and max. We use sqrt in <code class="notranslate">metrics.normalized_mutual_info_score</code> but max in <code class="notranslate">metrics.adjusted_mutual_info_score</code>.</p>
<p dir="auto">Consistency makes sense, especially when comparing these two measures to each other. I think it makes sense to make the two definitions consistent with each other. Alternatively, a parameter could be added to each, letting the user choose their normalizing method. Since there hasn't been much study into when to use which normalizing method (and the choice doesn't alter results much), I think it's better to make a unilateral shift so both consistently use just one normalizing method.</p> | <p dir="auto">There exist many defintions of NMI and AMI.</p>
<blockquote>
<p dir="auto">Vinh, N. X., Epps, J., & Bailey, J. (2010). Information theoretic measures for clusterings comparison: Variants, properties, normalization and correction for chance. Journal of Machine Learning Research, 11(Oct), 2837-2854.</p>
</blockquote>
<p dir="auto">mention 5 different definitions of NMI, and based on that give 4 different AMI.</p>
<p dir="auto">The NMI implemented in sklearn uses <code class="notranslate">sqrt(H(U), H(V))</code> for normalization.<br>
The AMI implemented in sklearn uses <code class="notranslate">max(H(U), H(V))</code> for normalization.</p>
<p dir="auto">There exists an NMI with the max normalization, and a AMI with the sqrt normalization, so this is inconsistent in sklearn. Ideally, they would both use the same definition by default, and allow using any of the others via an option.</p> | 1 |
<p dir="auto">The link that states "Requests 3.0 development is underway, and your financial help is appreciated!"<br>
at the top of every doc page (eg: <a href="http://docs.python-requests.org/en/master/" rel="nofollow">http://docs.python-requests.org/en/master/</a>), currently points to the url:</p>
<p dir="auto"><a href="https://www.kennethreitz.org/requests3" rel="nofollow">https://www.kennethreitz.org/requests3</a></p>
<p dir="auto">Which, at the time of writing is a "404 not found" page.</p>
<p dir="auto">I'd like to learn about requests 3, so this should point somewhere useful :) (or be removed temporarily)</p> | <p dir="auto">Summary.</p>
<p dir="auto">link to support requests for py3 isn't working at the top of<br>
<a href="http://docs.python-requests.org/en/master/" rel="nofollow">http://docs.python-requests.org/en/master/</a><br>
leads to <a href="https://www.kennethreitz.org/requests3" rel="nofollow">https://www.kennethreitz.org/requests3</a></p>
<p dir="auto">What you expected.</p>
<p dir="auto">a website</p>
<p dir="auto">What happened instead.</p>
<p dir="auto">404</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span></pre></div>
<h2 dir="auto">System Information</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="404"><pre class="notranslate"><code class="notranslate">404
</code></pre></div>
<p dir="auto">Thanks</p> | 1 |
<p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/scipy/scipy/blob/f57e5bf577c0d2ac6c611047961269348fd49315/scipy/stats/_distn_infrastructure.py#L2402">scipy/scipy/stats/_distn_infrastructure.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 2402
in
<a data-pjax="true" class="commit-tease-sha" href="/scipy/scipy/commit/f57e5bf577c0d2ac6c611047961269348fd49315">f57e5bf</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="L2402" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="2402"></td>
<td id="LC2402" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">raise</span> <span class="pl-v">RuntimeError</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">I hit this message by running <code class="notranslate">scipy.stats.skewnorm.fit([1,2,np.nan])</code></p>
<p dir="auto">It would be good if the error was more descriptive. Perhaps "NaNs in data" or something, but I'm not sure if there are any other reasons that this error might get hit.</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1757" rel="nofollow">http://projects.scipy.org/scipy/ticket/1757</a> on 2012-10-29 by trac user stevenj, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>.</em></p>
<p dir="auto">In <a href="http://projects.scipy.org/scipy/ticket/1741" rel="nofollow">http://projects.scipy.org/scipy/ticket/1741</a> you replaced the original non-free complex error function ("wofz") code with a version written by me. You should update to the latest version of my code, which improves accuracy and performance:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="http://ab-initio.mit.edu/wiki/index.php/Faddeeva_w"><pre class="notranslate"><code class="notranslate">http://ab-initio.mit.edu/wiki/index.php/Faddeeva_w
</code></pre></div>
<p dir="auto">There are also a few new test cases in the test program at the end of my code.</p> | 0 |
<p dir="auto">This behavior seems very weird to me.</p>
<p dir="auto">If I run test.ts with</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run test.ts --allow-net"><pre class="notranslate">deno run test.ts --allow-net</pre></div>
<p dir="auto">I get the following error</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error: Uncaught PermissionDenied: network access to "http://127.0.0.1:3333/", run again with the --allow-net flag
at unwrapResponse (rt/10_dispatch_json.js:24:13)
at sendAsync (rt/10_dispatch_json.js:75:12)
at async fetch (rt/26_fetch.js:279:29)"><pre class="notranslate">error: Uncaught PermissionDenied: network access to <span class="pl-s"><span class="pl-pds">"</span>http://127.0.0.1:3333/<span class="pl-pds">"</span></span>, run again with the --allow-net flag
at unwrapResponse (rt/10_dispatch_json.js:24:13)
at sendAsync (rt/10_dispatch_json.js:75:12)
at async fetch (rt/26_fetch.js:279:29)</pre></div>
<p dir="auto">However, this works if I run it like this</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run --allow-net test.ts"><pre class="notranslate">deno run --allow-net test.ts</pre></div>
<p dir="auto">Everything works fine.</p>
<p dir="auto">I feel like most users expect the same behavior from both examples.</p>
<p dir="auto">Deno version 1.3.3</p> | <p dir="auto">I'm not hugely familiar with CLI standards, but I don't think I've ever run in to the requirement that --flags precede the positional arguments. I spent a long while trying to get <code class="notranslate">--allow-net</code> to work before realising this was necessary.</p>
<p dir="auto"><code class="notranslate">deno run --allow-net something.ts</code> vs <code class="notranslate">deno run something.ts --allow-net</code></p>
<p dir="auto">Is there any reason not to support both forms?</p>
<p dir="auto">Alternately, a warning that the arguments were being ignored as invalid would have helped me understand.</p> | 1 |
<p dir="auto">When I make predictions on two samples, separately and appended to one another, I get different results. For example, this is as simple as it get (both X_train and y_train are pandas DataFrames):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="model = linear_model.LinearRegression(normalize=True)
model.fit(X_train, y_train)"><pre class="notranslate"><code class="notranslate">model = linear_model.LinearRegression(normalize=True)
model.fit(X_train, y_train)
</code></pre></div>
<p dir="auto">But when I predict, I get inconsistent results. Predicting for a and b separately:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mode.predict(a)
--> array([[ -4.91992866e+19],
[ -9.44975142e+18],
[ -6.28885430e+19],
[ -5.99072700e+19],
[ -9.97222845e+19]])
model.predict(b):
--> array([[ 273408.]])"><pre class="notranslate"><code class="notranslate">mode.predict(a)
--> array([[ -4.91992866e+19],
[ -9.44975142e+18],
[ -6.28885430e+19],
[ -5.99072700e+19],
[ -9.97222845e+19]])
model.predict(b):
--> array([[ 273408.]])
</code></pre></div>
<p dir="auto">Predicting for the two together:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="model.predict(a.append(b))
--> array([[ 1.82526373e+17],
[ 1.82526373e+17],
[ 4.86912000e+05],
[ 2.41920000e+05],
[ -1.45384048e+18],
[ 2.73408000e+05]])"><pre class="notranslate"><code class="notranslate">model.predict(a.append(b))
--> array([[ 1.82526373e+17],
[ 1.82526373e+17],
[ 4.86912000e+05],
[ 2.41920000e+05],
[ -1.45384048e+18],
[ 2.73408000e+05]])
</code></pre></div>
<p dir="auto">Which is completely different, except for b, which is the same result. This also seems to be model agnostic as far as I can tell (although all within linear regression).</p> | <h4 dir="auto">Description</h4>
<p dir="auto">Sometimes it is convenient to first build a model on a recent dataset, save it as a .pkl file and then apply the model to the new dataset. However, in the last project, my friends and I found that the results turned quite wired after applying the .pkl file on the new dataset. Actually, we implemented a binary classifier. We found the probability distribution turned from unimodal distribution to bimodal distribution. Finally, we found out the problem was that the column order of the new dataset was different from the old one. Thus the predictions were totally wrong.<br>
I have checked the source code and discovered that the fit function of sklean didn't save the column values during the process of model training. Thus there was no mean to check whether the column values were consistent during the processing of prediction. We thought it would be better if the column values could be saved during training and then be used to check the column values during predicting.</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#for simplification, consider a very simple case
from sklearn.datasets import load_iris
import pandas as pd
#make a dataframe
iris = load_iris()
X, y = iris.data[:-1,:], iris.target[:-1]
iris_pd = pd.DataFrame(X)
iris_pd.columns = iris.feature_names
iris_pd['target'] = y
from sklearn.cross_validation import train_test_split
train, test = train_test_split(iris_pd, test_size= 0.3)
feature_columns_train = ['sepal length (cm)','sepal width (cm)','petal length (cm)','petal width (cm)']
feature_columns_test = ['sepal length (cm)','sepal width (cm)','petal width (cm)','petal length (cm)']
from sklearn.linear_model import LogisticRegression
lg = LogisticRegression(n_jobs=4, random_state=123, verbose=0, penalty='l1', C=1.0)
lg.fit(train[feature_columns_train], train['target'])
prob1 = lg.predict_proba(test[feature_columns_train])
prob2 = lg.predict_proba(test[feature_columns_test])"><pre class="notranslate"><span class="pl-c">#for simplification, consider a very simple case</span>
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span> <span class="pl-k">import</span> <span class="pl-s1">load_iris</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-c">#make a dataframe</span>
<span class="pl-s1">iris</span> <span class="pl-c1">=</span> <span class="pl-en">load_iris</span>()
<span class="pl-v">X</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">iris</span>.<span class="pl-s1">data</span>[:<span class="pl-c1">-</span><span class="pl-c1">1</span>,:], <span class="pl-s1">iris</span>.<span class="pl-s1">target</span>[:<span class="pl-c1">-</span><span class="pl-c1">1</span>]
<span class="pl-s1">iris_pd</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-v">X</span>)
<span class="pl-s1">iris_pd</span>.<span class="pl-s1">columns</span> <span class="pl-c1">=</span> <span class="pl-s1">iris</span>.<span class="pl-s1">feature_names</span>
<span class="pl-s1">iris_pd</span>[<span class="pl-s">'target'</span>] <span class="pl-c1">=</span> <span class="pl-s1">y</span>
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">cross_validation</span> <span class="pl-k">import</span> <span class="pl-s1">train_test_split</span>
<span class="pl-s1">train</span>, <span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-en">train_test_split</span>(<span class="pl-s1">iris_pd</span>, <span class="pl-s1">test_size</span><span class="pl-c1">=</span> <span class="pl-c1">0.3</span>)
<span class="pl-s1">feature_columns_train</span> <span class="pl-c1">=</span> [<span class="pl-s">'sepal length (cm)'</span>,<span class="pl-s">'sepal width (cm)'</span>,<span class="pl-s">'petal length (cm)'</span>,<span class="pl-s">'petal width (cm)'</span>]
<span class="pl-s1">feature_columns_test</span> <span class="pl-c1">=</span> [<span class="pl-s">'sepal length (cm)'</span>,<span class="pl-s">'sepal width (cm)'</span>,<span class="pl-s">'petal width (cm)'</span>,<span class="pl-s">'petal length (cm)'</span>]
<span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">linear_model</span> <span class="pl-k">import</span> <span class="pl-v">LogisticRegression</span>
<span class="pl-s1">lg</span> <span class="pl-c1">=</span> <span class="pl-v">LogisticRegression</span>(<span class="pl-s1">n_jobs</span><span class="pl-c1">=</span><span class="pl-c1">4</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">123</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">penalty</span><span class="pl-c1">=</span><span class="pl-s">'l1'</span>, <span class="pl-v">C</span><span class="pl-c1">=</span><span class="pl-c1">1.0</span>)
<span class="pl-s1">lg</span>.<span class="pl-en">fit</span>(<span class="pl-s1">train</span>[<span class="pl-s1">feature_columns_train</span>], <span class="pl-s1">train</span>[<span class="pl-s">'target'</span>])
<span class="pl-s1">prob1</span> <span class="pl-c1">=</span> <span class="pl-s1">lg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>])
<span class="pl-s1">prob2</span> <span class="pl-c1">=</span> <span class="pl-s1">lg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_test</span>])</pre></div>
<h4 dir="auto">Expected Results</h4>
<p dir="auto">Because feature_columns_test is different from feature_columns_train, it is not surprised that prob1 is totally different from prob2 and prob1 should be the right result.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob1[:5] =
array([[ 3.89507414e-04, 3.20099743e-01, 6.79510750e-01],
[ 4.63256526e-04, 4.65385156e-01, 5.34151587e-01],
[ 8.79704318e-01, 1.20295572e-01, 1.10268420e-07],
[ 7.80611983e-01, 2.19385827e-01, 2.19046022e-06],
[ 2.78898454e-02, 7.77243988e-01, 1.94866167e-01]])"><pre class="notranslate"><span class="pl-s1">prob1</span>[:<span class="pl-c1">5</span>] <span class="pl-c1">=</span>
<span class="pl-en">array</span>([[ <span class="pl-c1">3.89507414e-04</span>, <span class="pl-c1">3.20099743e-01</span>, <span class="pl-c1">6.79510750e-01</span>],
[ <span class="pl-c1">4.63256526e-04</span>, <span class="pl-c1">4.65385156e-01</span>, <span class="pl-c1">5.34151587e-01</span>],
[ <span class="pl-c1">8.79704318e-01</span>, <span class="pl-c1">1.20295572e-01</span>, <span class="pl-c1">1.10268420e-07</span>],
[ <span class="pl-c1">7.80611983e-01</span>, <span class="pl-c1">2.19385827e-01</span>, <span class="pl-c1">2.19046022e-06</span>],
[ <span class="pl-c1">2.78898454e-02</span>, <span class="pl-c1">7.77243988e-01</span>, <span class="pl-c1">1.94866167e-01</span>]])</pre></div>
<h4 dir="auto">Actual Results</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob2[:5] =
array([[ 4.36321678e-01, 2.25057553e-04, 5.63453265e-01],
[ 4.92513658e-01, 1.76391882e-05, 5.07468703e-01],
[ 9.92946715e-01, 7.05167151e-03, 1.61346947e-06],
[ 9.83726756e-01, 1.62387090e-02, 3.45348884e-05],
[ 5.01392274e-01, 5.37144591e-04, 4.98070581e-01]])"><pre class="notranslate"><span class="pl-s1">prob2</span>[:<span class="pl-c1">5</span>] <span class="pl-c1">=</span>
<span class="pl-en">array</span>([[ <span class="pl-c1">4.36321678e-01</span>, <span class="pl-c1">2.25057553e-04</span>, <span class="pl-c1">5.63453265e-01</span>],
[ <span class="pl-c1">4.92513658e-01</span>, <span class="pl-c1">1.76391882e-05</span>, <span class="pl-c1">5.07468703e-01</span>],
[ <span class="pl-c1">9.92946715e-01</span>, <span class="pl-c1">7.05167151e-03</span>, <span class="pl-c1">1.61346947e-06</span>],
[ <span class="pl-c1">9.83726756e-01</span>, <span class="pl-c1">1.62387090e-02</span>, <span class="pl-c1">3.45348884e-05</span>],
[ <span class="pl-c1">5.01392274e-01</span>, <span class="pl-c1">5.37144591e-04</span>, <span class="pl-c1">4.98070581e-01</span>]])</pre></div>
<h4 dir="auto">Versions</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Linux-2.6.32-642.1.1.el6.x86_64-x86_64-with-redhat-6.7-Santiago
('Python', '2.7.11 |Anaconda 2.4.1 (64-bit)| (default, Dec 6 2015, 18:08:32) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]')
('NumPy', '1.10.1')
('SciPy', '0.16.0')
('Scikit-Learn', '0.17')"><pre class="notranslate"><span class="pl-v">Linux</span><span class="pl-c1">-</span><span class="pl-c1">2.6</span>.<span class="pl-c1">32</span><span class="pl-c1">-</span><span class="pl-c1">642.1</span>.<span class="pl-c1">1.</span><span class="pl-s1">el6</span>.<span class="pl-s1">x86_64</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span><span class="pl-c1">-</span><span class="pl-s1">with</span><span class="pl-c1">-</span><span class="pl-s1">redhat</span><span class="pl-c1">-</span><span class="pl-c1">6.7</span><span class="pl-c1">-</span><span class="pl-v">Santiago</span>
(<span class="pl-s">'Python'</span>, <span class="pl-s">'2.7.11 |Anaconda 2.4.1 (64-bit)| (default, Dec 6 2015, 18:08:32) <span class="pl-cce">\n</span>[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]'</span>)
(<span class="pl-s">'NumPy'</span>, <span class="pl-s">'1.10.1'</span>)
(<span class="pl-s">'SciPy'</span>, <span class="pl-s">'0.16.0'</span>)
(<span class="pl-s">'Scikit-Learn'</span>, <span class="pl-s">'0.17'</span>)</pre></div>
<h2 dir="auto">The probable solution</h2>
<p dir="auto">I also implement a very simple solution. Hope this would help. :)</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class SafeLogisticRegression(LogisticRegression):
def fit(self, X, y, sample_weight=None):
self.columns = X.columns
LogisticRegression.fit(self, X, y, sample_weight=None)
def predict_proba(self, X):
new_columns = list(X.columns)
old_columns = list(self.columns)
if new_columns != old_columns:
if len(new_columns) == len(old_columns):
try:
X = X[old_columns]
print "The order of columns has changed. Fixed."
except:
raise ValueError('The columns has changed. Please check.')
else:
raise ValueError('The number of columns has changed.')
return LogisticRegression.predict_proba(self, X)"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">SafeLogisticRegression</span>(<span class="pl-v">LogisticRegression</span>):
<span class="pl-k">def</span> <span class="pl-en">fit</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>, <span class="pl-s1">y</span>, <span class="pl-s1">sample_weight</span><span class="pl-c1">=</span><span class="pl-c1">None</span>):
<span class="pl-s1">self</span>.<span class="pl-s1">columns</span> <span class="pl-c1">=</span> <span class="pl-v">X</span>.<span class="pl-s1">columns</span>
<span class="pl-v">LogisticRegression</span>.<span class="pl-en">fit</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>, <span class="pl-s1">y</span>, <span class="pl-s1">sample_weight</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)
<span class="pl-k">def</span> <span class="pl-en">predict_proba</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>):
<span class="pl-s1">new_columns</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-v">X</span>.<span class="pl-s1">columns</span>)
<span class="pl-s1">old_columns</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">self</span>.<span class="pl-s1">columns</span>)
<span class="pl-k">if</span> <span class="pl-s1">new_columns</span> <span class="pl-c1">!=</span> <span class="pl-s1">old_columns</span>:
<span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">new_columns</span>) <span class="pl-c1">==</span> <span class="pl-en">len</span>(<span class="pl-s1">old_columns</span>):
<span class="pl-k">try</span>:
<span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-v">X</span>[<span class="pl-s1">old_columns</span>]
<span class="pl-k">print</span> <span class="pl-s">"The order of columns has changed. Fixed."</span>
<span class="pl-k">except</span>:
<span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The columns has changed. Please check.'</span>)
<span class="pl-k">else</span>:
<span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The number of columns has changed.'</span>)
<span class="pl-k">return</span> <span class="pl-v">LogisticRegression</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>)</pre></div>
<p dir="auto">Then apply this new class:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="slg = SafeLogisticRegression(n_jobs=4, random_state=123, verbose=0, penalty='l1', C=1.0)
slg.fit(train[feature_columns_train], train['target']) "><pre class="notranslate"><span class="pl-s1">slg</span> <span class="pl-c1">=</span> <span class="pl-v">SafeLogisticRegression</span>(<span class="pl-s1">n_jobs</span><span class="pl-c1">=</span><span class="pl-c1">4</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">123</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">penalty</span><span class="pl-c1">=</span><span class="pl-s">'l1'</span>, <span class="pl-v">C</span><span class="pl-c1">=</span><span class="pl-c1">1.0</span>)
<span class="pl-s1">slg</span>.<span class="pl-en">fit</span>(<span class="pl-s1">train</span>[<span class="pl-s1">feature_columns_train</span>], <span class="pl-s1">train</span>[<span class="pl-s">'target'</span>]) </pre></div>
<h4 dir="auto">Test one: if the column order is changed</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob1 = slg.predict_proba(test[feature_columns_train])
prob2 = slg.predict_proba(test[feature_columns_test])
#The order of columns has changed. Fixed."><pre class="notranslate"><span class="pl-s1">prob1</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>])
<span class="pl-s1">prob2</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_test</span>])
<span class="pl-c">#The order of columns has changed. Fixed.</span></pre></div>
<p dir="auto">Result for test one:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob1[:5] =
array([[ 3.89507414e-04, 3.20099743e-01, 6.79510750e-01],
[ 4.63256526e-04, 4.65385156e-01, 5.34151587e-01],
[ 8.79704318e-01, 1.20295572e-01, 1.10268420e-07],
[ 7.80611983e-01, 2.19385827e-01, 2.19046022e-06],
[ 2.78898454e-02, 7.77243988e-01, 1.94866167e-01]])
prob2[:5] =
array([[ 3.89507414e-04, 3.20099743e-01, 6.79510750e-01],
[ 4.63256526e-04, 4.65385156e-01, 5.34151587e-01],
[ 8.79704318e-01, 1.20295572e-01, 1.10268420e-07],
[ 7.80611983e-01, 2.19385827e-01, 2.19046022e-06],
[ 2.78898454e-02, 7.77243988e-01, 1.94866167e-01]])"><pre class="notranslate"><span class="pl-s1">prob1</span>[:<span class="pl-c1">5</span>] <span class="pl-c1">=</span>
<span class="pl-en">array</span>([[ <span class="pl-c1">3.89507414e-04</span>, <span class="pl-c1">3.20099743e-01</span>, <span class="pl-c1">6.79510750e-01</span>],
[ <span class="pl-c1">4.63256526e-04</span>, <span class="pl-c1">4.65385156e-01</span>, <span class="pl-c1">5.34151587e-01</span>],
[ <span class="pl-c1">8.79704318e-01</span>, <span class="pl-c1">1.20295572e-01</span>, <span class="pl-c1">1.10268420e-07</span>],
[ <span class="pl-c1">7.80611983e-01</span>, <span class="pl-c1">2.19385827e-01</span>, <span class="pl-c1">2.19046022e-06</span>],
[ <span class="pl-c1">2.78898454e-02</span>, <span class="pl-c1">7.77243988e-01</span>, <span class="pl-c1">1.94866167e-01</span>]])
<span class="pl-s1">prob2</span>[:<span class="pl-c1">5</span>] <span class="pl-c1">=</span>
<span class="pl-en">array</span>([[ <span class="pl-c1">3.89507414e-04</span>, <span class="pl-c1">3.20099743e-01</span>, <span class="pl-c1">6.79510750e-01</span>],
[ <span class="pl-c1">4.63256526e-04</span>, <span class="pl-c1">4.65385156e-01</span>, <span class="pl-c1">5.34151587e-01</span>],
[ <span class="pl-c1">8.79704318e-01</span>, <span class="pl-c1">1.20295572e-01</span>, <span class="pl-c1">1.10268420e-07</span>],
[ <span class="pl-c1">7.80611983e-01</span>, <span class="pl-c1">2.19385827e-01</span>, <span class="pl-c1">2.19046022e-06</span>],
[ <span class="pl-c1">2.78898454e-02</span>, <span class="pl-c1">7.77243988e-01</span>, <span class="pl-c1">1.94866167e-01</span>]])</pre></div>
<h4 dir="auto">Test two: if the columns are different (different columns)</h4>
<p dir="auto">Simulate by changing one of the column names</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob3 = slg.predict_proba(test[feature_columns_train].rename(columns={'sepal width (cm)': 'sepal wid (cm)'}))"><pre class="notranslate"><span class="pl-s1">prob3</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>].<span class="pl-en">rename</span>(<span class="pl-s1">columns</span><span class="pl-c1">=</span>{<span class="pl-s">'sepal width (cm)'</span>: <span class="pl-s">'sepal wid (cm)'</span>}))</pre></div>
<p dir="auto">error message:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-47-84cea68536fe> in <module>()
----> 1 prob3 = slg.predict_proba(test[feature_columns_train].rename(columns={'sepal width (cm)': 'sepal wid (cm)'}))
<ipython-input-21-c3000b030a21> in predict_proba(self, X)
12 print "The order of columns has changed. Fixed."
13 except:
---> 14 raise ValueError('The columns has changed. Please check.')
15 else:
16 raise ValueError('The number of columns has changed.')
ValueError: The columns has changed. Please check."><pre class="notranslate"><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-v">ValueError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>)
<span class="pl-c1"><</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">47</span><span class="pl-c1">-</span><span class="pl-c1">84</span><span class="pl-s1">cea68536fe</span><span class="pl-c1">></span> <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>()
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">1</span> <span class="pl-s1">prob3</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>].<span class="pl-en">rename</span>(<span class="pl-s1">columns</span><span class="pl-c1">=</span>{<span class="pl-s">'sepal width (cm)'</span>: <span class="pl-s">'sepal wid (cm)'</span>}))
<span class="pl-c1"><</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">21</span><span class="pl-c1">-</span><span class="pl-s1">c3000b030a21</span><span class="pl-c1">></span> <span class="pl-s1">in</span> <span class="pl-en">predict_proba</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>)
<span class="pl-c1">12</span> <span class="pl-k">print</span> <span class="pl-s">"The order of columns has changed. Fixed."</span>
<span class="pl-c1">13</span> <span class="pl-s1">except</span>:
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">14</span> <span class="pl-s1">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The columns has changed. Please check.'</span>)
<span class="pl-c1">15</span> <span class="pl-s1">else</span>:
<span class="pl-c1">16</span> <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The number of columns has changed.'</span>)
<span class="pl-v">ValueError</span>: <span class="pl-v">The</span> <span class="pl-s1">columns</span> <span class="pl-s1">has</span> <span class="pl-s1">changed</span>. <span class="pl-v">Please</span> <span class="pl-s1">check</span>.</pre></div>
<h4 dir="auto">Test three: if the number of columns changes</h4>
<p dir="auto">Simulate by dropping one column</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="prob4 = slg.predict_proba(test[feature_columns_train].drop(['sepal width (cm)'], axis=1))"><pre class="notranslate"><span class="pl-s1">prob4</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>].<span class="pl-en">drop</span>([<span class="pl-s">'sepal width (cm)'</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>))</pre></div>
<p dir="auto">error message:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-48-47c63ae1ac22> in <module>()
----> 1 prob4 = slg.predict_proba(test[feature_columns_train].drop(['sepal width (cm)'], axis=1))
<ipython-input-21-c3000b030a21> in predict_proba(self, X)
14 raise ValueError('The columns has changed. Please check.')
15 else:
---> 16 raise ValueError('The number of columns has changed.')
17 return LogisticRegression.predict_proba(self, X)
ValueError: The number of columns has changed."><pre class="notranslate"><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-v">ValueError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>)
<span class="pl-c1"><</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">48</span><span class="pl-c1">-</span><span class="pl-c1">47</span><span class="pl-s1">c63ae1ac22</span><span class="pl-c1">></span> <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>()
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">1</span> <span class="pl-s1">prob4</span> <span class="pl-c1">=</span> <span class="pl-s1">slg</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">test</span>[<span class="pl-s1">feature_columns_train</span>].<span class="pl-en">drop</span>([<span class="pl-s">'sepal width (cm)'</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>))
<span class="pl-c1"><</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">21</span><span class="pl-c1">-</span><span class="pl-s1">c3000b030a21</span><span class="pl-c1">></span> <span class="pl-s1">in</span> <span class="pl-en">predict_proba</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>)
<span class="pl-c1">14</span> <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The columns has changed. Please check.'</span>)
<span class="pl-c1">15</span> <span class="pl-s1">else</span>:
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">16</span> <span class="pl-s1">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The number of columns has changed.'</span>)
<span class="pl-c1">17</span> <span class="pl-k">return</span> <span class="pl-v">LogisticRegression</span>.<span class="pl-en">predict_proba</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>)
<span class="pl-v">ValueError</span>: <span class="pl-v">The</span> <span class="pl-s1">number</span> <span class="pl-s1">of</span> <span class="pl-s1">columns</span> <span class="pl-s1">has</span> <span class="pl-s1">changed</span>.</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/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When running <code class="notranslate">NODE_ENV=staging next build</code> I expect the <code class="notranslate">.next</code> folder to be generated with "staging" as <code class="notranslate">process.env.NODE_ENV</code> but I get "production" instead.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Run <code class="notranslate">NODE_ENV=staging next build</code></li>
</ol>
<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.1-canary.14</td>
</tr>
<tr>
<td>node</td>
<td>6.10</td>
</tr>
</tbody>
</table> | <h1 dir="auto">Feature request</h1>
<h2 dir="auto">Is your feature request related to a problem? Please describe.</h2>
<p dir="auto">There are many different methods of codebase organization in the wild and one popular one is to use an <code class="notranslate">index.js</code> file for the page component itself and surround it with sibling files for various subviews that are specific to that page.</p>
<p dir="auto">However, next doesn't support this kind of structure because it automatically assumes <em>all</em> files inside of <code class="notranslate">pages/</code> are real pages.</p>
<h2 dir="auto">Describe the solution you'd like</h2>
<p dir="auto">There already is precedent in the codebase for convention over configuration when it comes to filenaming:</p>
<ul dir="auto">
<li>the <code class="notranslate">[id].js</code> pattern for dynamic routing</li>
<li>the <code class="notranslate">_(app|document|error).js</code> pattern for overriding built-in pages</li>
</ul>
<p dir="auto">I propose extending the leading-underscore naming pattern such that any file inside <code class="notranslate">pages/</code> prefixed with an underscore will not be considered as a public page and can simply live in the folder.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pages/
index.js <- page
accounts/
index.js <- page
_constants.js <- not a page
_modal.js <- not a page"><pre class="notranslate"><code class="notranslate">pages/
index.js <- page
accounts/
index.js <- page
_constants.js <- not a page
_modal.js <- not a page
</code></pre></div>
<h2 dir="auto">Describe alternatives you've considered</h2>
<p dir="auto">Another prefix I thought of was "$", e.g. <code class="notranslate">$constants.js</code> but this felt a little strange to write and actually is <a href="https://en.wikipedia.org/wiki/Filename" rel="nofollow">not supported in some filesystems</a>.</p> | 0 |
<p dir="auto">Hello,</p>
<p dir="auto">It seems this line is duplicated, just one after the other.<br>
Both in min and full 3.02 version.</p>
<p dir="auto">.container:before,.container:after{display:table;content:" "}.container:after{clear:both}<br>
.container:before,.container:after{display:table;content:" "}.container:after{clear:both}</p>
<p dir="auto">Sincerely,</p> | <p dir="auto">show on bootstrap.css</p>
<p dir="auto"><a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L581">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L581</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L723">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L723</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L743">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L743</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2023">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2023</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2433">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2433</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2617">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2617</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2637">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L2637</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3032">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3032</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3296">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3296</a><br>
<a href="https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3453">https://github.com/twbs/bootstrap/blob/3.0.0-wip/dist/css/bootstrap.css#L3453</a></p> | 1 |
<p dir="auto">The message <code class="notranslate">valid_resources</code> should instead be a list of "primary resources", their shortcuts, and an optional description returned by the <code class="notranslate">Factory</code> (and probably generated by the same code that is used to resolve resource names, so as not to duplicate it). Or it should be generated by p.HandledResources (although that doesn't have shortcut info).</p>
<p dir="auto">Ideal structure:</p>
<ul dir="auto">
<li>get invokes p.HandledResources and iterates</li>
<li>it retrieves shortcut (if any) from the RESTMapper or factory</li>
<li>it retrieves a short description from the description we generate for swagger (first sentence?)</li>
</ul>
<p dir="auto">As is, it is easy for someone to miss.</p> | <p dir="auto">Continued from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44511031" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1518" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1518/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1518">#1518</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="52354377" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/3024" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/3024/hovercard" href="https://github.com/kubernetes/kubernetes/issues/3024">#3024</a>, and also relates to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="45130990" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1624" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1624/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1624">#1624</a>.</p>
<p dir="auto">Since there will necessarily be a higher barrier to entry for new objects, we should make replication controller composable (e.g., with auto-scalers and deployment managers), pluggable, hookable (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51375798" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/2804" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/2804/hovercard" href="https://github.com/kubernetes/kubernetes/issues/2804">#2804</a>), to delegate decisions like which pod to kill to decrease the replica count, when pods should be killed and replaced (esp. moving to new nodes), when the whole collection should terminate (for RestartPolicyOnFailure), etc.</p>
<p dir="auto">For jobs that terminate (RestartPolicyOnFailure), I'd make the count auto-decrement on success. I'm tempted to say we should support terminating jobs of the per-node variety, but then we'd have to keep track on which nodes the pods had executed, which seems ugly.</p>
<p dir="auto">It should support graceful termination (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44641725" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1535" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1535/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1535">#1535</a>), but I've removed that from this sketch, since it's not specific to replication controller.</p>
<p dir="auto">Stab at a definition, also using my latest proposed name change:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type OverseerSpec struct {
ReplicationPolicy *ReplicationPolicy `json:"replicationPolicy,omitempty"`
Selector map[string]string `json:"selector,omitempty"`
TemplateRef *ObjectReference `json:"templateRef,omitempty"`
Template *PodTemplateSpec `json:"template,omitempty"`
}
type ReplicationPolicy struct {
Count *ReplicationPolicyCount `json:"count,omitempty"`
PerNode *ReplicationPolicyPerNode `json:"perNode,omitempty"`
}
type ReplicationPolicyCount struct {
Count int `json:"count"`
}
type ReplicationPolicyPerNode struct {
}"><pre class="notranslate"><code class="notranslate">type OverseerSpec struct {
ReplicationPolicy *ReplicationPolicy `json:"replicationPolicy,omitempty"`
Selector map[string]string `json:"selector,omitempty"`
TemplateRef *ObjectReference `json:"templateRef,omitempty"`
Template *PodTemplateSpec `json:"template,omitempty"`
}
type ReplicationPolicy struct {
Count *ReplicationPolicyCount `json:"count,omitempty"`
PerNode *ReplicationPolicyPerNode `json:"perNode,omitempty"`
}
type ReplicationPolicyCount struct {
Count int `json:"count"`
}
type ReplicationPolicyPerNode struct {
}
</code></pre></div>
<p dir="auto">Forgiveness example was moved to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44849943" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1574" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1574/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1574">#1574</a>.</p>
<p dir="auto">Additional example policies have been removed.</p>
<p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/smarterclayton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smarterclayton">@smarterclayton</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thockin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thockin">@thockin</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/brendandburns/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/brendandburns">@brendandburns</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/erictune/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/erictune">@erictune</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lavalamp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lavalamp">@lavalamp</a></p> | 0 |
<p dir="auto">Repro:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1871912/13680508/ab011482-e6ad-11e5-91ae-266d624e7939.png"><img src="https://cloud.githubusercontent.com/assets/1871912/13680508/ab011482-e6ad-11e5-91ae-266d624e7939.png" alt="screenshot from 2016-03-10 10-46-57" style="max-width: 100%;"></a></p>
<p dir="auto">Repro'd on <code class="notranslate">22dd214678739e71bf51fcba7697e98f33ce191d</code> for me. This only repros in C++ mode - C mode correctly ends the string literal in the right place.</p> | <ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Windows 7</li>
</ul>
<h2 dir="auto">Issue 1:</h2>
<p dir="auto">In the following code (using C++ syntax highlighting), the string literal(s) are not highlighted at all.<br>
This issue is exclusive to C++ syntax highlighting and does not occur with C syntax highlighting.</p>
<h4 dir="auto">Code:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="int main()
{
printf("%s\n", "a string");
}"><pre class="notranslate"><code class="notranslate">int main()
{
printf("%s\n", "a string");
}
</code></pre></div>
<h4 dir="auto">Result</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/c-vs-cpp.png"><img src="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/c-vs-cpp.png" alt="Bug Screenshot" style="max-width: 100%;"></a></p>
<h2 dir="auto">Issue 2:</h2>
<p dir="auto">In custom tmLanguage based colorizers that reference source.c from within rules that begin with certain patterns, the inlined C highlighting is incorrect (this issue also applies to rules using source.c++ but does not occur in rules using source.js).</p>
<h4 dir="auto">Code</h4>
<p dir="auto">(See <a href="https://github.com/SE2Dev/VSCode-BugExample">https://github.com/SE2Dev/VSCode-BugExample</a>)</p>
<h4 dir="auto">Result</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/screenshot.png"><img src="https://raw.githubusercontent.com/SE2Dev/VSCode-BugExample/master/resources/screenshot.png" alt="Bug Screenshot" style="max-width: 100%;"></a></p> | 1 |
<h3 dir="auto">Bug summary</h3>
<p dir="auto">Based on this code below, the line is exactly on top of the surface plot but by rotating along the z-axis, it's obvious that the perspective of the line with respect to the surface changes, as it should not.</p>
<h3 dir="auto">Code for reproduction</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import numpy as np
import math
pi = math.pi
x, y = np.meshgrid( np.linspace(-3, 7, 100) , np.linspace(-3, 7, 100))
V = np.linspace(-4, 4, 100)
U = np.linspace(-4, 4, 100)
U, V = np.meshgrid(U, V)
X = U**2
Y = V**2
Z = U + 2*V
fig = plt.figure('1', figsize=(8,7))
ax = fig.add_subplot(111, projection='3d')
ax.plot_surface(X, Y, Z, cmap = plt.cm.coolwarm)
k=10
ax.plot(np.linspace(-2-k, 1+k, 10), np.linspace(-4-k, 1+k, 10), np.linspace(3-k, 4+k, 10), 'k' )
ax.set_xlabel('x')
ax.set_ylabel('y')
ax.set_zlabel('z')
plt.tight_layout()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">mplot3d</span> <span class="pl-k">import</span> <span class="pl-v">Axes3D</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">math</span>
<span class="pl-s1">pi</span> <span class="pl-c1">=</span> <span class="pl-s1">math</span>.<span class="pl-s1">pi</span>
<span class="pl-s1">x</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>( <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">3</span>, <span class="pl-c1">7</span>, <span class="pl-c1">100</span>) , <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">3</span>, <span class="pl-c1">7</span>, <span class="pl-c1">100</span>))
<span class="pl-v">V</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">4</span>, <span class="pl-c1">4</span>, <span class="pl-c1">100</span>)
<span class="pl-v">U</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">4</span>, <span class="pl-c1">4</span>, <span class="pl-c1">100</span>)
<span class="pl-v">U</span>, <span class="pl-v">V</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>(<span class="pl-v">U</span>, <span class="pl-v">V</span>)
<span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-v">U</span><span class="pl-c1">**</span><span class="pl-c1">2</span>
<span class="pl-v">Y</span> <span class="pl-c1">=</span> <span class="pl-v">V</span><span class="pl-c1">**</span><span class="pl-c1">2</span>
<span class="pl-v">Z</span> <span class="pl-c1">=</span> <span class="pl-v">U</span> <span class="pl-c1">+</span> <span class="pl-c1">2</span><span class="pl-c1">*</span><span class="pl-v">V</span>
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s">'1'</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">8</span>,<span class="pl-c1">7</span>))
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">111</span>, <span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">plot_surface</span>(<span class="pl-v">X</span>, <span class="pl-v">Y</span>, <span class="pl-v">Z</span>, <span class="pl-s1">cmap</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-s1">cm</span>.<span class="pl-s1">coolwarm</span>)
<span class="pl-s1">k</span><span class="pl-c1">=</span><span class="pl-c1">10</span>
<span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">2</span><span class="pl-c1">-</span><span class="pl-s1">k</span>, <span class="pl-c1">1</span><span class="pl-c1">+</span><span class="pl-s1">k</span>, <span class="pl-c1">10</span>), <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">4</span><span class="pl-c1">-</span><span class="pl-s1">k</span>, <span class="pl-c1">1</span><span class="pl-c1">+</span><span class="pl-s1">k</span>, <span class="pl-c1">10</span>), <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">3</span><span class="pl-c1">-</span><span class="pl-s1">k</span>, <span class="pl-c1">4</span><span class="pl-c1">+</span><span class="pl-s1">k</span>, <span class="pl-c1">10</span>), <span class="pl-s">'k'</span> )
<span class="pl-s1">ax</span>.<span class="pl-en">set_xlabel</span>(<span class="pl-s">'x'</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_ylabel</span>(<span class="pl-s">'y'</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_zlabel</span>(<span class="pl-s">'z'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">tight_layout</span>()</pre></div>
<h3 dir="auto">Actual outcome</h3>
<p dir="auto">The line seems to be plotted below the surface for some azimuthal angles.</p>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto">The line should always be seen on top of the surface.</p>
<h3 dir="auto">Additional information</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">Windows 10</p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">3.2.2</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto">Qt5Agg</p>
<h3 dir="auto">Python version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Installation</h3>
<p dir="auto">conda</p> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When using the voxels rendering for Axes3D, surfaces and lines are not stacked correctly in the visual perspective of the axes.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<p dir="auto">Adding the following lines to the example from matplotlib's example <a href="https://matplotlib.org/gallery/mplot3d/voxels.html" rel="nofollow">https://matplotlib.org/gallery/mplot3d/voxels.html</a> produces the glitch:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(xx, yy) = np.meshgrid(x, x, indexing='ij')
zz = np.ones_like(xx) * 4
ax.plot_surface(xx, yy, zz)"><pre lang="x" class="notranslate"><code class="notranslate">(xx, yy) = np.meshgrid(x, x, indexing='ij')
zz = np.ones_like(xx) * 4
ax.plot_surface(xx, yy, zz)
</code></pre></div>
<p dir="auto">or<br>
<code class="notranslate">ax.plot_wireframe(xx, yy, zz)</code></p>
<p dir="auto">before the line<br>
<code class="notranslate">plt.show()</code></p>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/106832/53702363-6236df80-3e06-11e9-92f9-a19a0fd5cceb.png"><img src="https://user-images.githubusercontent.com/106832/53702363-6236df80-3e06-11e9-92f9-a19a0fd5cceb.png" alt="voxels_surface" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">The plane should be rendered below the green voxels and some of the red voxels.<br>
When rotating, some of the voxels become visible.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/106832/53702387-a3c78a80-3e06-11e9-985c-4c432aa3fe1a.png"><img src="https://user-images.githubusercontent.com/106832/53702387-a3c78a80-3e06-11e9-985c-4c432aa3fe1a.png" alt="voxels_surface_2" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong><br>
Using matplotlib from a miniconda distribution:</p>
<ul dir="auto">
<li>Operating system: linux64</li>
<li>Matplotlib version: 3.0.2</li>
<li>Matplotlib backend : Qt5Agg</li>
<li>Python version: 3.6</li>
</ul>
<p dir="auto">Thank you in advance!</p>
<p dir="auto">Cheers,<br>
Nicola</p> | 1 |
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript" rel="nofollow">http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">Section "Waypoint: Generate Random Whole Numbers with JavaScript"<br>
Just a typo , the word "lot"</p>
<p dir="auto">but it's even more useful if we "lot" more useful to generate a random whole number.</p> | <p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript" rel="nofollow">http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">I believe there is a typo in the first paragraph of the tutorial:</p>
<p dir="auto">"It's great that we can create random decimal numbers, but it's even more useful if we lot more useful to generate a random whole number."</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>
Return key event was not fired when the following criteria were met (all): 1. bluetooth input device 2. iOS, 3. Angular 2</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Return key event was fired</p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
Connect your iPhone or iPad with a bluetooth keyboard<br>
On your iOS device, iPhone or iPad, open your favourite browser.<br>
Visit the TODO MVC for angular 2, <a href="http://todomvc.com/examples/angular2/" rel="nofollow">http://todomvc.com/examples/angular2/</a><br>
or the contact list app on Made with Angular 2: <a href="https://embed.plnkr.co/ns1tfi/" rel="nofollow">https://embed.plnkr.co/ns1tfi/</a><br>
Type something on bluetooth connected physical keyboard and hit Enter key.<br>
Nothing happened.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
My app was built using Angular 2, and targeted to all device, including iOS environment.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.0-rc.6</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</p>
<p dir="auto">All</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br>
all</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p>
</li>
</ul> | <p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">When you bind <code class="notranslate">(keyup.enter)</code> to an element it doesn't trigger in IE10.</p>
<p dir="auto"><strong>Other information</strong></p>
<p dir="auto">I tried to create a plnkr from the issues' one and it doesn't run in IE10.</p>
<p dir="auto"><a href="http://plnkr.co/edit/YhxMmgqL9YKcFF2Qm035?p=preview" rel="nofollow">http://plnkr.co/edit/YhxMmgqL9YKcFF2Qm035?p=preview</a></p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=soleg" rel="nofollow">Oleg Soloviov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5528?redirect=false" rel="nofollow">SPR-5528</a></strong> and commented</p>
<ol dir="auto">
<li>You do some entries into the HTML form</li>
<li>submits the form</li>
<li>you do some changes to the form's entries on the server side</li>
<li>the changes are not displayed to the user, old entries remind in the form</li>
</ol>
<p dir="auto">Probably the bug is here:</p>
<p dir="auto">in the Constructor of the org.springframework.web.servlet.support.BindStatus<br>
it is<br>
=><br>
...<br>
this.errors = requestContext.getErrors(beanName, false);<br>
if (this.errors != null) {<br>
...<br>
} else {<br>
...<br>
}<br>
=><br>
the requestContext.getErrors returns errors Object that is not null but empty so (this.errors.hasErrors() is false)<br>
the else block is NEVER EXECUTED !!!</p>
<p dir="auto">The solution could be:<br>
=><br>
if (this.errors != null && this.errors.hasErrors()) {<br>
...<br>
} else {<br>
...<br>
}<br>
=></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398093597" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10212" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10212/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10212">#10212</a> MVC BindStatus does not interact with Web Flow's BindingModel (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=magnus" rel="nofollow">Magnus Heino</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1047?redirect=false" rel="nofollow">SPR-1047</a></strong> and commented</p>
<p dir="auto">Bean definitions are required to provide a value for bean attributes defined as required using jdk1.5 annotation.</p>
<p dir="auto">This provides a check to validate that values are not "forgotten" when creating new bean definitions. Values that are not properly set in the bean definition and are not be used immediately after bean instantiation will not be found otherwise.</p>
<p dir="auto">package se.lantmateriet.jollen.bryggan.support;</p>
<p dir="auto">import java.lang.annotation.Documented;<br>
import java.lang.annotation.ElementType;<br>
import java.lang.annotation.Retention;<br>
import java.lang.annotation.RetentionPolicy;<br>
import java.lang.annotation.Target;</p>
<p dir="auto">/**</p>
<ul dir="auto">
<li>JDK 1.5+ method-level annotation that indicates that the value</li>
<li>is required to be non-null.</li>
<li></li>
<li><code class="notranslate">@author</code> Magnus Heino<br>
*/<br>
<code class="notranslate">@Target</code>(ElementType.FIELD)<br>
<code class="notranslate">@Retention</code>(RetentionPolicy.RUNTIME)<br>
<code class="notranslate">@Documented</code><br>
public <code class="notranslate">@interface</code> RequiredAttribute {<br>
}</li>
</ul>
<p dir="auto">/**<br>
*<br>
*/<br>
package se.lantmateriet.jollen.bryggan.support;</p>
<p dir="auto">import java.lang.reflect.Field;</p>
<p dir="auto">import org.springframework.beans.BeansException;<br>
import org.springframework.beans.MutablePropertyValues;<br>
import org.springframework.beans.factory.config.BeanDefinition;<br>
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;<br>
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;<br>
import org.springframework.beans.factory.support.BeanDefinitionValidationException;</p>
<p dir="auto">/**</p>
<ul dir="auto">
<li><code class="notranslate">@author</code> maghei</li>
<li></li>
</ul>
<p dir="auto">*/<br>
public class RequiredAttributeValidator implements BeanFactoryPostProcessor {</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/* (non-Javadoc)
* @see org.springframework.beans.factory.config.BeanFactoryPostProcessor#postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory)
*/
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
for(String beanName: beanFactory.getBeanDefinitionNames()) {
BeanDefinition beanDefinition = beanFactory.getBeanDefinition(beanName);
if(beanDefinition.isAbstract()) {
continue;
}
MutablePropertyValues beanProperties = beanDefinition.getPropertyValues();
for(Field field: beanFactory.getType(beanName).getDeclaredFields()) {
RequiredAttribute requiredAttribute = field.getAnnotation(RequiredAttribute.class);
if(requiredAttribute != null) {
Object value = beanProperties.getPropertyValue(field.getName());
if(value == null) {
throw new BeanDefinitionValidationException("Required attribute '" + field.getName() + "' of class '" + beanDefinition.getClass().getName() + "' defined in bean '" + beanName + "' in file '" + beanDefinition.getResourceDescription() + "' is null.");
}
}
}
}
}"><pre class="notranslate"><code class="notranslate">/* (non-Javadoc)
* @see org.springframework.beans.factory.config.BeanFactoryPostProcessor#postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory)
*/
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
for(String beanName: beanFactory.getBeanDefinitionNames()) {
BeanDefinition beanDefinition = beanFactory.getBeanDefinition(beanName);
if(beanDefinition.isAbstract()) {
continue;
}
MutablePropertyValues beanProperties = beanDefinition.getPropertyValues();
for(Field field: beanFactory.getType(beanName).getDeclaredFields()) {
RequiredAttribute requiredAttribute = field.getAnnotation(RequiredAttribute.class);
if(requiredAttribute != null) {
Object value = beanProperties.getPropertyValue(field.getName());
if(value == null) {
throw new BeanDefinitionValidationException("Required attribute '" + field.getName() + "' of class '" + beanDefinition.getClass().getName() + "' defined in bean '" + beanName + "' in file '" + beanDefinition.getResourceDescription() + "' is null.");
}
}
}
}
}
</code></pre></div>
<p dir="auto">}</p>
<hr>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/11395/RequiredPropertyValidator.java" rel="nofollow">RequiredPropertyValidator.java</a> (<em>9.67 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/11187/RequiredPropertyValidator.java" rel="nofollow">RequiredPropertyValidator.java</a> (<em>8.82 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398061029" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6119" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6119/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6119">#6119</a> Annotations for dependency checking (<em><strong>"is duplicated by"</strong></em>)</li>
</ul> | 0 |
<ul dir="auto">
<li>VSCode Version:1.8.2</li>
<li>OS Version:ubuntu 15.10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<p dir="auto">i can create multi cursors by alt-shift+(down/up) but not all the time where i wanna place cursor is exactly under the line in sublime i can press and hold ctrl and click to add cursor to any location but seems theres no way to do this in vscode . is there a way to to this without hacking ctrl-d combination by adding prefix?</p> | <ul dir="auto">
<li>VSCode Version: 1.2.0-insider<br>
Commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/24e811aaa256f9d45c10fbe2491a5938f57482c0/hovercard" href="https://github.com/microsoft/vscode/commit/24e811aaa256f9d45c10fbe2491a5938f57482c0"><tt>24e811a</tt></a><br>
Date 2016-06-07T07:55:32.262Z<br>
Shell 0.37.6<br>
Renderer 49.0.2623.75<br>
Node 5.10.0</li>
<li>OS Version: Windows 10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8449892/15878824/1e11457c-2d59-11e6-8457-db73927d8392.png"><img src="https://cloud.githubusercontent.com/assets/8449892/15878824/1e11457c-2d59-11e6-8457-db73927d8392.png" alt="image" style="max-width: 100%;"></a></li>
</ol> | 0 |
<p dir="auto">version:0.19.1<br>
if I set the series limit to 100 -> query works<br>
SELECT tenant AS tenant,<br>
ymd_ts AS <strong>timestamp,<br>
SUM(myschema.marathonreservation.weightedtotal) AS sum__weightedtotal<br>
FROM myschema.marathonreservation<br>
JOIN<br>
(SELECT tenant AS tenant</strong>,<br>
SUM(myschema.marathonreservation.weightedtotal) AS mme_inner__<br>
FROM myschema.marathonreservation<br>
WHERE ymd_ts >= '1917-09-14 00:00:00'<br>
AND ymd_ts <= '2017-09-14 14:21:08'<br>
GROUP BY tenant<br>
ORDER BY mme_inner__ DESC<br>
LIMIT 100) AS anon_1 ON tenant = tenant__<br>
WHERE ymd_ts >= '1917-09-14 00:00:00'<br>
AND ymd_ts <= '2017-09-14 14:21:08'<br>
GROUP BY tenant,<br>
ymd_ts<br>
ORDER BY sum__weightedtotal DESC<br>
LIMIT 5000</p>
<p dir="auto">if I remove the series limit (by putting on 0) -> '>' not supported between instances of 'str' and 'int'<br>
SELECT tenant AS tenant,<br>
ymd_ts AS __timestamp,<br>
SUM(myschema.marathonreservation.weightedtotal) AS sum__weightedtotal<br>
FROM myschema.marathonreservation<br>
WHERE ymd_ts >= '1917-09-14 00:00:00'<br>
AND ymd_ts <= '2017-09-14 14:21:35'<br>
GROUP BY tenant,<br>
ymd_ts<br>
ORDER BY sum__weightedtotal DESC<br>
LIMIT 5000</p>
<p dir="auto">Traceback (most recent call last):<br>
File "/usr/local/lib/python3.6/site-packages/superset/viz.py", line 251, in get_payload<br>
data = self.get_data(df)<br>
File "/usr/local/lib/python3.6/site-packages/superset/viz.py", line 916, in get_data<br>
df = self.process_data(df)<br>
File "/usr/local/lib/python3.6/site-packages/superset/viz.py", line 865, in process_data<br>
values=fd.get('metrics'))<br>
File "/usr/local/lib/python3.6/site-packages/pandas/core/reshape/pivot.py", line 160, in pivot_table<br>
table = table.sort_index(axis=1)<br>
File "/usr/local/lib/python3.6/site-packages/pandas/core/frame.py", line 3243, in sort_index<br>
labels = labels._sort_levels_monotonic()<br>
File "/usr/local/lib/python3.6/site-packages/pandas/core/indexes/multi.py", line 1240, in _sort_levels_monotonic<br>
indexer = lev.argsort()<br>
File "/usr/local/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2091, in argsort<br>
return result.argsort(*args, **kwargs)<br>
TypeError: '>' not supported between instances of 'str' and 'int'</p> | <p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p>
<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 superset logs for python stacktraces and included it here as text if any</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar</li>
</ul>
<h3 dir="auto">Superset version</h3>
<p dir="auto">0.18.5</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">the slice loads fine, as it did in caravel 0.14.X</p>
<h3 dir="auto">Actual results</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2017-06-23 15:36:22,271:ERROR:root:unorderable types: str() > int()
Traceback (most recent call last):
File "/venv/lib/python3.4/site-packages/superset/viz.py", line 240, in get_payload
data = self.get_data(df)
File "/venv/lib/python3.4/site-packages/superset/viz.py", line 1095, in get_data
values=self.metrics)
File "/venv/lib/python3.4/site-packages/pandas/core/reshape/pivot.py", line 160, in pivot_table
table = table.sort_index(axis=1)
File "/venv/lib/python3.4/site-packages/pandas/core/frame.py", line 3243, in sort_index
labels = labels._sort_levels_monotonic()
File "/venv/lib/python3.4/site-packages/pandas/core/indexes/multi.py", line 1240, in _sort_levels_monotonic
indexer = lev.argsort()
File "/venv/lib/python3.4/site-packages/pandas/core/indexes/base.py", line 2091, in argsort
return result.argsort(*args, **kwargs)
TypeError: unorderable types: str() > int()"><pre class="notranslate"><code class="notranslate">2017-06-23 15:36:22,271:ERROR:root:unorderable types: str() > int()
Traceback (most recent call last):
File "/venv/lib/python3.4/site-packages/superset/viz.py", line 240, in get_payload
data = self.get_data(df)
File "/venv/lib/python3.4/site-packages/superset/viz.py", line 1095, in get_data
values=self.metrics)
File "/venv/lib/python3.4/site-packages/pandas/core/reshape/pivot.py", line 160, in pivot_table
table = table.sort_index(axis=1)
File "/venv/lib/python3.4/site-packages/pandas/core/frame.py", line 3243, in sort_index
labels = labels._sort_levels_monotonic()
File "/venv/lib/python3.4/site-packages/pandas/core/indexes/multi.py", line 1240, in _sort_levels_monotonic
indexer = lev.argsort()
File "/venv/lib/python3.4/site-packages/pandas/core/indexes/base.py", line 2091, in argsort
return result.argsort(*args, **kwargs)
TypeError: unorderable types: str() > int()
</code></pre></div>
<h3 dir="auto">Steps to reproduce</h3>
<ul dir="auto">
<li>open the slice</li>
</ul>
<p dir="auto">It happens on a specific slice that i cannot share unfortunately. Note to self: this is "distribuzione uso complessivo per scuola"</p> | 1 |
<p dir="auto">I'm trying to use the new (introduced in r70 with <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/mrdoob/three.js/commit/d4334724b0207d28ceb3495eece1fd7ab35bfee9/hovercard" href="https://github.com/mrdoob/three.js/commit/d4334724b0207d28ceb3495eece1fd7ab35bfee9"><tt>d433472</tt></a>) <code class="notranslate">THREE.BufferGeometry.prototype.merge()</code> functionality on buffer geometries created with <code class="notranslate">THREE.PlaneBufferGeometry</code> but I'm getting this error during the subsequent render call (the merging itself does not throw an error):</p>
<p dir="auto"><code class="notranslate">Uncaught TypeError: Cannot read property 'array' of undefined</code> (in Chrome) or<br>
<code class="notranslate">TypeError: this.attributes.position is undefined</code> (in Firefox)<br>
at <a href="https://github.com/mrdoob/three.js/blob/r70/src/core/BufferGeometry.js#L301">this line</a> in <code class="notranslate">THREE.BufferGeometry.prototype.computeBoundingSphere()</code>:</p>
<p dir="auto">I was able to reduce the test case to a simple scene where I try to merge all 6 faces of a cube into a single <code class="notranslate">THREE.BufferGeometry</code>. Here is a jsfiddle of how it should look using normal non buffer geometries <a href="http://jsfiddle.net/3vwj3rj1/" rel="nofollow">http://jsfiddle.net/3vwj3rj1/</a> and here is the jsfiddle for the same scene using buffer geometries throwing the error: <a href="http://jsfiddle.net/3vwj3rj1/1/" rel="nofollow">http://jsfiddle.net/3vwj3rj1/1/</a> .</p>
<p dir="auto">Using the Java Script debugger it looks like that <code class="notranslate">THREE.BufferGeometry.prototype.merge()</code> does not have copied the attributes at all.</p>
<p dir="auto"><em>I opened <a href="http://stackoverflow.com/questions/28870492/three-js-r70-issues-merging-three-planebuffergeometries" rel="nofollow">this stackoverflow question</a> about the same issue</em></p>
<p dir="auto">Edit: I think I somehow understand the problem now: <code class="notranslate">THREE.BufferGeometry.prototype.merge()</code> doesn't take care of resizing the buffer attributes at all and I should do something like this <a href="http://jsfiddle.net/3vwj3rj1/3/" rel="nofollow">http://jsfiddle.net/3vwj3rj1/3/</a> , but I still have no idea what to do with the index attribute.</p> | <p dir="auto">Was there a significant change in the GLTFLoader in version 90? We're having problems with gltf/glb files that we export from Paraview, the colors are not visible in our viewer. If changing the version to version 89, the colors are visible. Here is an example file:<br>
<a href="https://github.com/mrdoob/three.js/files/3619423/005.zip">005.zip</a></p> | 0 |
<p dir="auto">such as</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="file: '/node_modules/material-ui/BottomNavigation/BottomNavigationButton.js.flow'
severity: 'Error'
message: 'React element `Icon` (This type is incompatible with empty See also: React element `Icon`)'
at: '145,16'
source: 'flow'"><pre class="notranslate"><code class="notranslate">file: '/node_modules/material-ui/BottomNavigation/BottomNavigationButton.js.flow'
severity: 'Error'
message: 'React element `Icon` (This type is incompatible with empty See also: React element `Icon`)'
at: '145,16'
source: 'flow'
</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/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">No errors.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Config the flow config with create-react-app settings. it seems to work with previous version.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>create-react-app</li>
<li>eject</li>
<li>flow-init</li>
<li>copy paste .flowconfig</li>
<li>if use the MUI component to nested in, say, a div</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div>
<Button>test</Button>
</div>"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">Button</span><span class="pl-c1">></span>test<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Button</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span></pre></div>
<ol start="6" dir="auto">
<li>then run <code class="notranslate">flow</code></li>
<li>error comes out</li>
</ol>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>^1.0.0-beta.19</td>
</tr>
<tr>
<td>React</td>
<td>^16.0.0</td>
</tr>
<tr>
<td>browser</td>
<td></td>
</tr>
<tr>
<td>flow-bin</td>
<td>0.58.0</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/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">I have set a callback function for the onItemClick property of Menu. I expect the call back function to be executed for all nested levels of menu items upon clicking that item</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">As of now only the first level of menu items work as expected. The nested menu items below the first level do not invoke the call back function</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">My render function code is as described below</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" render() {
if (this.state.redirect) {
return <Redirect push to={{ pathname: this.state.redirectPath }} />
}
return(
<MuiThemeProvider>
<div style={styles.megaMenuContainerStyle} >
<Menu
desktop={true}
width={100}
onItemClick={this.menuItemClicked}
>
<MenuItem primaryText="Map View" insetChildren={true} />
<MenuItem
primaryText="Chart View"
insetChildren={true}
rightIcon={<ArrowDropRight />}
menuItems={[
<MenuItem primaryText="Time Series Chart View" />,
<MenuItem primaryText="Scatter Chart View" />,
<MenuItem primaryText="Calendar Chart View" insetChildren={true} />
]}
/>
<MenuItem primaryText="Table View" insetChildren={true} />
<MenuItem primaryText="Schematic View" insetChildren={true} />
</Menu>
</div>
</MuiThemeProvider>
)
}
"><pre class="notranslate"><code class="notranslate"> render() {
if (this.state.redirect) {
return <Redirect push to={{ pathname: this.state.redirectPath }} />
}
return(
<MuiThemeProvider>
<div style={styles.megaMenuContainerStyle} >
<Menu
desktop={true}
width={100}
onItemClick={this.menuItemClicked}
>
<MenuItem primaryText="Map View" insetChildren={true} />
<MenuItem
primaryText="Chart View"
insetChildren={true}
rightIcon={<ArrowDropRight />}
menuItems={[
<MenuItem primaryText="Time Series Chart View" />,
<MenuItem primaryText="Scatter Chart View" />,
<MenuItem primaryText="Calendar Chart View" insetChildren={true} />
]}
/>
<MenuItem primaryText="Table View" insetChildren={true} />
<MenuItem primaryText="Schematic View" insetChildren={true} />
</Menu>
</div>
</MuiThemeProvider>
)
}
</code></pre></div>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>0.20</td>
</tr>
<tr>
<td>React</td>
<td>16.0</td>
</tr>
<tr>
<td>browser Chrome</td>
<td>63.0.3239.84</td>
</tr>
</tbody>
</table> | 0 |
<h3 dir="auto">Website or app</h3>
<p dir="auto"><a href="https://angular.io/start" rel="nofollow">https://angular.io/start</a></p>
<h3 dir="auto">Repro steps</h3>
<ol dir="auto">
<li>Go to <a href="https://angular.io/start" rel="nofollow">https://angular.io/start</a> or <a href="https://vuejs.org/" rel="nofollow">https://vuejs.org/</a></li>
<li>Click on React Dev Tools extension</li>
<li>You should see message <strong>This page is using the production build of React. ✅</strong></li>
</ol>
<h3 dir="auto">How often does this bug happen?</h3>
<p dir="auto">Every time</p>
<h3 dir="auto">DevTools package (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">DevTools version (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Error message (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Error call stack (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Error component stack (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">GitHub query string (automated)</h3>
<p dir="auto"><em>No response</em></p> | <h3 dir="auto">Website or app</h3>
<p dir="auto">youtube.com, github.com, gmail.com, lucidchart.app</p>
<h3 dir="auto">Repro steps</h3>
<ol dir="auto">
<li>Open any web app not made with React (e.g.: youtube.com, amazon.com, github.com, gmail.com, lucidchart.app)</li>
<li>The react icon is ON and the popover message says:<br>
'This page is using the production build of React. ✅'</li>
</ol>
<h3 dir="auto">How often does this bug happen?</h3>
<p dir="auto">Every time</p>
<h3 dir="auto">DevTools package (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">DevTools version (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Error message (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Error call stack (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Error component stack (automated)</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">GitHub query string (automated)</h3>
<p dir="auto"><em>No response</em></p> | 1 |
<p dir="auto">Javascript editor duplicate characters</p>
<h4 dir="auto">How to reproduce the bug</h4>
<ol dir="auto">
<li>Go to new chart with deck.gl Screen Grid</li>
<li>Enable ENABLE_JAVASCRIPT_CONTROLS and start input characters into window</li>
<li>Input "1234"</li>
<li>See error</li>
</ol>
<p dir="auto">Expected characters in this window "1234", actual characters "1234123121"</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto"><code class="notranslate">1234</code></p>
<h3 dir="auto">Actual results</h3>
<p dir="auto"><code class="notranslate">1234123121</code></p>
<h4 dir="auto">Screenshots</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10183440/150188688-425686ba-fba5-4094-b3a0-50c80987f4ab.png"><img src="https://user-images.githubusercontent.com/10183440/150188688-425686ba-fba5-4094-b3a0-50c80987f4ab.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>browser type and version: Chrome Version 97.0.4692.71 (Official Build) (x86_64)</li>
<li>superset version: <code class="notranslate">1.4.0</code></li>
<li>python version: <code class="notranslate">Python 3.8.10</code></li>
<li>node.js version: <code class="notranslate">v10.19.0</code><br>
DISTRIB_ID=Ubuntu<br>
DISTRIB_RELEASE=20.04</li>
</ul>
<h3 dir="auto">Checklist</h3>
<p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p>
<ul dir="auto">
<li>[V] I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li>[V] I have reproduced the issue with at least the latest released version of superset.</li>
<li>[V] I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul> | <p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong><br>
It's difficult to find specific charts and dashboards that I've created.</p>
<p dir="auto"><strong>Describe the solution you'd like</strong><br>
As a user, I would like to be able to logically group my charts and my dashboards. I would like either folders or to be able to filter by tags when accessing the list of charts and dashboards.</p>
<p dir="auto"><strong>Additional context</strong><br>
This is a much requested feature with many closed issues:</p>
<ul dir="auto">
<li><a href="https://github.com/apache/incubator-superset/issues/3821" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/3821/hovercard">Allow users to tag dashboards</a> from November, 2017</li>
<li><a href="https://github.com/apache/incubator-superset/issues/4055" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/4055/hovercard">Folder structure for dashboard and slice</a> from December, 2017</li>
<li><a href="https://github.com/apache/incubator-superset/issues/7367" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/7367/hovercard">Organising Charts List</a> from April, 2019</li>
<li><a href="https://github.com/apache/incubator-superset/issues/7239" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/7239/hovercard">Group Dashboards folders or tags</a> from April, 2019</li>
<li><a href="https://github.com/apache/incubator-superset/issues/7968" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/7968/hovercard">Ability to Tag Charts for Easy Filtering</a></li>
</ul>
<p dir="auto">There's even a PR but it appears that it may need to be rewritten to be accepted:<br>
<a href="https://github.com/apache/incubator-superset/pull/7418#pullrequestreview-251214308" data-hovercard-type="pull_request" data-hovercard-url="/apache/superset/pull/7418/hovercard">Tagging frontend</a></p> | 0 |
<p dir="auto">Currently to get the size of a widget you need to do this:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" Size get _size {
assert(mounted);
RenderBox box = context.findRenderObject();
assert(box != null);
assert(box.hasSize);
return box.size;
}"><pre class="notranslate"> <span class="pl-c1">Size</span> <span class="pl-k">get</span> _size {
<span class="pl-k">assert</span>(mounted);
<span class="pl-c1">RenderBox</span> box <span class="pl-k">=</span> context.<span class="pl-en">findRenderObject</span>();
<span class="pl-k">assert</span>(box <span class="pl-k">!=</span> <span class="pl-c1">null</span>);
<span class="pl-k">assert</span>(box.hasSize);
<span class="pl-k">return</span> box.size;
}</pre></div>
<p dir="auto">It'd be nice to have this as a built in api.</p>
<p dir="auto">((I'm copying this code all over the place.))</p>
<p dir="auto">Similarly getting the size of the widget via GlobalKey would be good too. Maybe something can be added to GlobalKey?</p> | <p dir="auto">In the tabs section of the gallery, the beach ball can get in a state where it sits slightly under the header. The resting state should be sitting fully underneath the header.</p>
<p dir="auto">Steps to Reproduce</p>
<ul dir="auto">
<li>Build and install latest Flutter Gallery from the repo, enter "Tabs" section,</li>
<li>scroll "Left" section to the bottom,</li>
<li>select to "Right" tab,</li>
<li>Notice that the beach ball is scrolled under the header a little bit, and will sit there.</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9346834/27092131-5d79b4c4-5030-11e7-9305-0bf7f51e7f98.png"><img width="369" alt="screen shot 2017-06-13 at 12 02 53 pm" src="https://user-images.githubusercontent.com/9346834/27092131-5d79b4c4-5030-11e7-9305-0bf7f51e7f98.png" style="max-width: 100%;"></a></p>
<p dir="auto">Flutter Doctor</p>
<p dir="auto">[✓] Flutter (on Mac OS X 10.12.4 16E195, locale en-US, channel master)<br>
• Flutter at /Users/KG/Developer/Flutter/flutter<br>
• Framework revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/37e32d5aeec9e4ab79c7d5987db97c4bb9cd8181/hovercard" href="https://github.com/flutter/flutter/commit/37e32d5aeec9e4ab79c7d5987db97c4bb9cd8181"><tt>37e32d5</tt></a> (21 hours ago), 2017-06-12 12:23:13 -0700<br>
• Engine revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/ffe8181ffe7432b61a67323c80fd8025704e4695/hovercard" href="https://github.com/flutter/flutter/commit/ffe8181ffe7432b61a67323c80fd8025704e4695"><tt>ffe8181</tt></a><br>
• Tools Dart version 1.24.0-dev.6.7</p>
<p dir="auto">[✓] Android toolchain - develop for Android devices (Android SDK 25.0.3)<br>
• Android SDK at /Users/KG/Library/Android/sdk<br>
• Platform android-25, build-tools 25.0.3<br>
• ANDROID_HOME = /Users/KG/Library/Android/sdk<br>
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java<br>
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)</p>
<p dir="auto">[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.3)<br>
• Xcode at /Applications/Xcode.app/Contents/Developer<br>
• Xcode 8.3.3, Build version 8E3004b<br>
• ios-deploy 1.9.1<br>
• CocoaPods version 1.2.1</p>
<p dir="auto">[✓] Android Studio (version 2.3)<br>
• Android Studio at /Applications/Android Studio.app/Contents<br>
• Gradle version 3.2<br>
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)</p>
<p dir="auto">[✓] IntelliJ IDEA Community Edition (version 2017.1.4)<br>
• Flutter plugin version 14.0<br>
• Dart plugin version 171.4694.29</p> | 0 |
<p dir="auto">I have seen similar bug reports, apologies if this is a duplicate. In my case, when I am using a collection field as follows:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$builder->add('goods', 'collection', array(
'type' => new GoodType(),
'allow_add' => true,
'allow_delete' => true,
'prototype' => true,
'by_reference' => 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">'goods'</span>, <span class="pl-s">'collection'</span>, <span class="pl-en">array</span>(
<span class="pl-s">'type'</span> => <span class="pl-k">new</span> <span class="pl-v">GoodType</span>(),
<span class="pl-s">'allow_add'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'allow_delete'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'prototype'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'by_reference'</span> => <span class="pl-c1">false</span>
));</pre></div>
<p dir="auto">And a callback validator</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" constraints:
- Callback:
methods: [checkGoods]"><pre class="notranslate"> <span class="pl-ent">constraints</span>:
- <span class="pl-ent">Callback</span>:
<span class="pl-ent">methods</span>: <span class="pl-s">[checkGoods]</span></pre></div>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" /**
* Callback validator for Goods
* @param ExecutionContext $context
*/
public function checkGoods(\Symfony\Component\Validator\ExecutionContext $context) {
if (! is_null($this->goods) && $this->goods->count() == 0) {
$propertyPath = $context->getPropertyPath() . '.goods';
$context->setPropertyPath($propertyPath);
$context->addViolation('Please provide at least one good', array(), null);
}
}"><pre class="notranslate"> <span class="pl-c">/**</span>
<span class="pl-c"> * Callback validator for Goods</span>
<span class="pl-c"> * @param ExecutionContext $context</span>
<span class="pl-c"> */</span>
<span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">checkGoods</span>(<span class="pl-smi"><span class="pl-smi">\<span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">Validator</span>\<span class="pl-v">ExecutionContext</span></span></span> <span class="pl-s1"><span class="pl-c1">$</span>context</span>) {
<span class="pl-k">if</span> (! is_null(<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">goods</span>) && <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">goods</span>-><span class="pl-en">count</span>() == <span class="pl-c1">0</span>) {
<span class="pl-s1"><span class="pl-c1">$</span>propertyPath</span> = <span class="pl-s1"><span class="pl-c1">$</span>context</span>-><span class="pl-en">getPropertyPath</span>() . <span class="pl-s">'.goods'</span>;
<span class="pl-s1"><span class="pl-c1">$</span>context</span>-><span class="pl-en">setPropertyPath</span>(<span class="pl-s1"><span class="pl-c1">$</span>propertyPath</span>);
<span class="pl-s1"><span class="pl-c1">$</span>context</span>-><span class="pl-en">addViolation</span>(<span class="pl-s">'Please provide at least one good'</span>, <span class="pl-en">array</span>(), <span class="pl-c1">null</span>);
}
}</pre></div>
<p dir="auto">I see the "Please provide at least one good" at the root of the form, where</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{{ form_errors(form) }} "><pre lang="text" class="notranslate"><code class="notranslate">{{ form_errors(form) }}
</code></pre></div>
<p dir="auto">is called, but I expect it to be output with the field itself, presumably in the div that contains the data-prototype definition.</p> | <p dir="auto">Hello,</p>
<p dir="auto">I'm having a problem with collection field type. If I set error_bubbling to false in order to display errors next to collection field label I will get these errors output twice. Seems that errors get written in form_row and then in form_widget:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{% block collection_widget %}
{% spaceless %}
{% if prototype is defined %}
{% set attr = attr|merge({'data-prototype': form_row(prototype) }) %}
{% endif %}
{{ block('form_widget') }}
{% endspaceless %}"><pre class="notranslate">{% block collection_widget %}
{% spaceless %}
{% if prototype is defined %}
{% set attr = attr|merge({'data-prototype': form_row(prototype) }) %}
{% endif %}
{{ block('form_widget') }}
{% endspaceless %}</pre></div>
<p dir="auto">The following fix worked for me</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{% block collection_row %}
{{ form_label(form) }}
{{ form_widget(form) }}
{% endblock %}"><pre class="notranslate">{% block collection_row %}
{{ form_label(form) }}
{{ form_widget(form) }}
{% endblock %}</pre></div>
<p dir="auto">BTW why render forms with form_widget instead of form_row? The problem was generally caused by this and at first glance the form_row approach seems more consistent (in regard field types).</p> | 1 |
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<p dir="auto"><a href="http://stackoverflow.com/questions/24829769/module-object-has-no-attribute-main-django" rel="nofollow">Similar errors identified as name conflicts between module and directory</a></p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: macOS Sierra</p>
<p dir="auto">If installed from binary pip package, provide:</p>
<ol dir="auto">
<li>A link to the pip package you installed:<br>
current osx <a href="https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-cpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=mac-slave/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow-0.11.0rc0-py2-none-any.whl" rel="nofollow">nightly</a></li>
<li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.<br>
0.11.0rc0</li>
</ol>
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3>
<p dir="auto">In terminal window run 'tensorboard'</p>
<p dir="auto">Output:</p>
<blockquote>
<p dir="auto">File "/tensorflow/lib/python2.7/site-packages/tensorflow/tensorboard/tensorboard.py", line 43, in main<br>
logdir = os.path.expanduser(FLAGS.logdir)<br>
AttributeError: 'NoneType' object has no attribute 'logdir'</p>
</blockquote>
<h3 dir="auto">What other attempted solutions have you tried?</h3>
<p dir="auto">A workaround is to rename tensorboard.py (I used tensorboard1.py) and execute with full path to that file.</p>
<p dir="auto">Originally I printed <code class="notranslate">__name__</code> and learned it was 'tensorflow.tensorboard.tensorboard'.</p> | <p dir="auto">Running tensorboard results in this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" logdir = os.path.expanduser(FLAGS.logdir)
AttributeError: 'NoneType' object has no attribute 'logdir'"><pre class="notranslate"><code class="notranslate"> logdir = os.path.expanduser(FLAGS.logdir)
AttributeError: 'NoneType' object has no attribute 'logdir'
</code></pre></div>
<p dir="auto">Best practice in this case is arg(opt)parse.</p> | 1 |
<pre class="notranslate">This section is fine and can stay, but it duplicates existing functionality of the
template package. Instead, the program could create a single template, load both the
.html files in one call to ParseFiles, and use ExecuteTemplate instead of its own map.
Would be nice to show users that the caching stuff is done for them if you ask politely.</pre> | <pre class="notranslate">What steps will reproduce the problem?
See attached zip file for reproduction
What is the expected output? What do you see instead?
This sample passes with -compiler gc
% go test -compiler gc -v issue/...
=== RUN TestData
--- PASS: TestData (0.00 seconds)
a_test.go:6: 0 false
=== RUN TestXData
--- PASS: TestXData (0.00 seconds)
x_test.go:7: foo &{0 false }
PASS
ok issue/a 0.005s
? issue/b [no test files]
But blows up due to duplicate symbols during linking of a/a.test
ucky(~/src) % go test -compiler gccgo -v issue/...
# testmain
/tmp/go-build896181789/issue/a/_test/issue/liba.a(a.o):(.rodata.__go_tdn_issue_a..issue_a.t+0x0):
multiple definition of `__go_tdn_issue_a..issue_a.t'
/tmp/go-build896181789/issue/liba.a(a.o):(.rodata.__go_tdn_issue_a..issue_a.t+0x0):
first defined here
/tmp/go-build896181789/issue/a/_test/issue/liba.a(a.o): In function `issue_a.TestData':
/home/dfc/src/issue/a/a_test.go:5: multiple definition of `issue_a.Data'
/tmp/go-build896181789/issue/liba.a(a.o):(.bss+0x0): first defined here
/tmp/go-build896181789/issue/a/_test/issue/liba.a(a.o): In function `issue_a..import':
/home/dfc/src/issue/a/a.go:1: multiple definition of `issue_a..import'
/tmp/go-build896181789/issue/liba.a(a.o):/home/dfc/src/issue/a/a.go:1: first defined here
collect2: error: ld returned 1 exit status
FAIL issue/a [build failed]
? issue/b [no test files]
Please use labels and text to provide additional information.
Looking at the -x output for go test issue/a
gccgo -o $WORK/issue/a/_test/a.test $WORK/issue/a/_test/main.o -Wl,-( -m64
$WORK/issue/a/_test/issue/liba_test.a $WORK/issue/libb.a $WORK/issue/liba.a
$WORK/issue/a/_test/issue/liba.a -Wl,-)
liba.a is present twice, once in it's normal form, and once in it's extended (due to the
export_test.go) form.
I am guessing that the first liba.a leaks in due to the transitive import via issue/b.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/7627/0/issue.tar.gz" rel="nofollow">issue.tar.gz</a> (487 bytes)</li>
</ol> | 0 |
Subsets and Splits