text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<ul dir="auto">
<li>VSCode Version: 1.1.1</li>
<li>OS Version: Windows 10 x64</li>
</ul>
<p dir="auto">Steps to Reproduce:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13858505/15593349/0753f4b4-23b4-11e6-92bd-aa73baaef5eb.png"><img src="https://cloud.githubusercontent.com/assets/13858505/15593349/0753f4b4-23b4-11e6-92bd-aa73baaef5eb.png" alt="unnamed" style="max-width: 100%;"></a></p>
<ol dir="auto">
<li>When i write this kind of code, part of it is highlighted as green</li>
<li>Example if i write <code class="notranslate">var testing = test ? console.log('true') : console.log('false')</code> it highlights text after <strong>:</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13858505/15593467/23efad1a-23b5-11e6-90f2-a9d03b9210a8.png"><img src="https://cloud.githubusercontent.com/assets/13858505/15593467/23efad1a-23b5-11e6-90f2-a9d03b9210a8.png" alt="image" style="max-width: 100%;"></a></li>
<li>So i think it happens when i use "var" and ":" in same line! and green color ends at "="</li>
</ol> | <ul dir="auto">
<li>VSCode Version: 1.2.0 - insider</li>
<li>OS Version: Elementary OS</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>In elementary os, I am able to use ctrl+c/ctrl+v within terminal, This functionality is missing in integrated terminal.</li>
<li>So please add direct paste and copy functionality in integrated terminal. It's a cool feature.</li>
</ol> | 0 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>7.1.3</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 10</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>Unkown</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">To prevent the creation of the new window without crashing and unresponsive.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">The subprocess gets unresponsive and crashes.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto"><a href="https://gist.github.com/4d36be07d7b1cfc6244477cb989b86d3">https://gist.github.com/4d36be07d7b1cfc6244477cb989b86d3</a></p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5815794/70123868-350cab80-167c-11ea-842b-47a41b3a005b.png"><img src="https://user-images.githubusercontent.com/5815794/70123868-350cab80-167c-11ea-842b-47a41b3a005b.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5815794/70123915-4950a880-167c-11ea-8455-41853ea76dac.png"><img src="https://user-images.githubusercontent.com/5815794/70123915-4950a880-167c-11ea-8455-41853ea76dac.png" alt="image" style="max-width: 100%;"></a></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>
<p dir="auto">I have enabled nativeWindowOpen and nodeIntegrationInSubFrames for main window, and I have a preload script which required a remote from electron. Which this configuration I open a child window and then I close it. The main window render process hangs for ever so I have to restart whole app. Here is and example app <a href="https://github.com/zarubond/electron-quick-start/tree/child_hang">https://github.com/zarubond/electron-quick-start/tree/child_hang</a></p>
<ul dir="auto">
<li><strong>Electron Version:</strong><br>
6.0.7, 7.0.0-beta3</li>
<li><strong>Operating System:</strong><br>
Windows, Linux, MacOS</li>
<li><strong>Last Known Working Electron version:</strong><br>
5.0.10</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Closing child window should not hang main window for ever</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Main window hangs after closing child window.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Open child window and then close it</p>
<h3 dir="auto">Screenshots</h3>
<h3 dir="auto">Additional Information</h3> | 1 |
<p dir="auto">denoland extension is installed in the VSCode IDE, but it still doesn't works.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6489613/84145237-24981c00-aa77-11ea-9a5e-7ffbaac4cc4e.png"><img src="https://user-images.githubusercontent.com/6489613/84145237-24981c00-aa77-11ea-9a5e-7ffbaac4cc4e.png" alt="deno error" style="max-width: 100%;"></a></p> | <p dir="auto">I switched from one of the now-deprecated extensions, which was working, and this one isn't working properly. In fact, it seems to have all the same errors that you get with plain TypeScript and no Deno extension:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3674979/83954187-991b5280-a80c-11ea-9f85-1f794ed74dc7.png"><img width="985" alt="main_ts_—_jlox_and_Issues_·_denoland_vscode_deno" src="https://user-images.githubusercontent.com/3674979/83954187-991b5280-a80c-11ea-9f85-1f794ed74dc7.png" style="max-width: 100%;"></a></p>
<p dir="auto">On the references to <code class="notranslate">Deno</code> it says <code class="notranslate">Cannot find name 'Deno'.</code>.</p>
<p dir="auto">The extension is definitely active (I can see <code class="notranslate">Deno 1.0.5</code> in the corner) and I've restarted my editor, upgraded to the latest deno runtime, etc.</p>
<p dir="auto">Edit: In case it matters, I'm on macOS</p> | 1 |
<p dir="auto">I am now experimenting with the ES6 import syntax (at least I think it's ES6) and I noticed that the following is formatted, in my opinion, wrongly:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {
Controller as UploadController,
State as UploadState
} from './controllers/upload';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span>
<span class="pl-smi">Controller</span> <span class="pl-k">as</span> <span class="pl-smi">UploadController</span><span class="pl-kos">,</span>
<span class="pl-smi">State</span> <span class="pl-k">as</span> <span class="pl-smi">UploadState</span>
<span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./controllers/upload'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">should be:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {
Controller as UploadController,
State as UploadState
} from './controllers/upload';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span>
<span class="pl-smi">Controller</span> <span class="pl-k">as</span> <span class="pl-smi">UploadController</span><span class="pl-kos">,</span>
<span class="pl-smi">State</span> <span class="pl-k">as</span> <span class="pl-smi">UploadState</span>
<span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./controllers/upload'</span><span class="pl-kos">;</span></pre></div> | <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export{x,y as yy,z}from "foo""><pre class="notranslate"><span class="pl-k">export</span><span class="pl-kos">{</span><span class="pl-s1">x</span><span class="pl-kos">,</span><span class="pl-s1">y</span> <span class="pl-k">as</span> <span class="pl-s1">yy</span><span class="pl-kos">,</span><span class="pl-s1">z</span><span class="pl-kos">}</span><span class="pl-k">from</span> <span class="pl-s">"foo"</span></pre></div>
<p dir="auto">Should be fixed to</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export { x, y as yy, z } from "foo""><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-s1">y</span> <span class="pl-k">as</span> <span class="pl-s1">yy</span><span class="pl-kos">,</span> <span class="pl-s1">z</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"foo"</span></pre></div>
<p dir="auto">Similarly,</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import{x,y as yy,z}from "foo""><pre class="notranslate"><span class="pl-k">import</span><span class="pl-kos">{</span><span class="pl-s1">x</span><span class="pl-kos">,</span><span class="pl-s1">y</span> <span class="pl-k">as</span> <span class="pl-s1">yy</span><span class="pl-kos">,</span><span class="pl-s1">z</span><span class="pl-kos">}</span><span class="pl-k">from</span> <span class="pl-s">"foo"</span></pre></div>
<p dir="auto">Should be fixed to</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { x, y as yy, z } from "foo""><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">x</span><span class="pl-kos">,</span> <span class="pl-s1">y</span> <span class="pl-k">as</span> <span class="pl-s1">yy</span><span class="pl-kos">,</span> <span class="pl-s1">z</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"foo"</span></pre></div> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=guru_simpa" rel="nofollow">Gurpreet Singh</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3410?redirect=false" rel="nofollow">SPR-3410</a></strong> and commented</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>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=saucier" rel="nofollow">Stephen R. Saucier</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4718?redirect=false" rel="nofollow">SPR-4718</a></strong> and commented</p>
<p dir="auto">the formatFieldValue method in AbstractPropertyBindingResult does not locate any PropertyEditors using PropertyEditorManager.find(...). This means that any PropertyEditors located using the JavaBeans convention of having the name the same as the class it is editing with the suffix "Editor" are not used during the binding process.</p>
<p dir="auto">I had been registering my PropertyEditors with a PropertyEditorRegistrar (and then with a org.springframework.web.bind.support.ConfigurableWebBindingInitializer) but when I switched to allowing the PropertyEditorManager to discover my PropertyEditor, binding no longer works.</p>
<p dir="auto">Note that TypeConverterDelegate does use PropertyEditorManager to find PropertyEditors, so my PropertyEditors are used in other places (the setAsText use case, e.g. coercing Strings in my spring configuration files to the appropriate type), but not during web binding (the getAsText use case).</p>
<hr>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/13963/AbstractPropertyBindingResult.patch" rel="nofollow">AbstractPropertyBindingResult.patch</a> (<em>1.49 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/13968/BeanUtils.patch" rel="nofollow">BeanUtils.patch</a> (<em>688 bytes</em>)</li>
</ul> | 0 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-manage-packages-with-npm" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-manage-packages-with-npm</a> has an issue.</p>
<p dir="auto">This waypoint should be updated to match cloud9's updates, however, there is a legitimate issue that could confuse a beginner on item 12. The command listed in item 12 should be changed to 'how-to-npm' in order to run the tutorial program.</p> | <p dir="auto">The directives of the challenge <a href="http://www.freecodecamp.com/challenges/waypoint-build-web-apps-with-express.js" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-build-web-apps-with-express.js</a> need to be updated to the new C9 user interface.</p> | 1 |
<p dir="auto">TL;DR : I think this can be done in the <strong>density tests</strong>, we just need to vary them so that there are <strong>collisions</strong> (dupe pods) being submitted.</p>
<p dir="auto">... In a real kube system, there is a likliehood that 10 or 20 RC's might be created simultaneously.</p>
<p dir="auto">We should ensure that the if we submit, say 100 concurrent pod creation requests,</p>
<ul dir="auto">
<li>(consistency) The systems state is consistent such that <em>duplicate</em> pods aren't created, and at least some requests are <em>rejected</em>.</li>
<li>(availability) every unique submission is eventually created.</li>
</ul> | <p dir="auto"><em>Problem</em></p>
<p dir="auto">There is alot of jargon in the scheduler code, some examples:</p>
<ul dir="auto">
<li><code class="notranslate">hardPodAffinityWeight</code> == RequiredDuringSchedulingScheduling</li>
<li><code class="notranslate">softPod...</code> == "PreferredDuringScheduling pod affinity."</li>
<li>Symmetry, a major part of the affinity algorithm implementation, is also undocumented in docs/devel/scheduler.</li>
</ul>
<p dir="auto">Reading podaffinity along side the scheduler docs + the code gives a good picture.</p>
<p dir="auto"><em>Solution</em></p>
<p dir="auto">Since the affinity, symmetry, hard/soft pod stuff is now in the production code, lets migrate out of the proposal (or maybe duplicate if proposals are meant to live forever), and Lets converge podaffinity proposal into the first class docs/devel/scheduler* area.</p>
<p dir="auto">cc @kubernetes/sig-scheduling</p> | 0 |
<p dir="auto">Currently we can create a layout by setting the width (col-<em>-</em>) of the elements.<br>
We can also create spaces between them by leaving cols blanks.</p>
<p dir="auto">It would be great if we can create vertical spaces between elements with the same logic.<br>
In a tiny project I made, you can see an exemple of a possible implementation :<br>
<a href="https://github.com/GuillaumeAmat/bootstrap-more/blob/master/bootstrap-more.css#L35">https://github.com/GuillaumeAmat/bootstrap-more/blob/master/bootstrap-more.css#L35</a></p> | <p dir="auto">Bootstrap CSS adds <code class="notranslate">margin-bottom</code> to some components and <code class="notranslate">margin-top</code> to others. Then if, for example, you start a new row with a <code class="notranslate">h1</code> (which has <code class="notranslate">margin-top</code>) it will be "natively" pushed away from the previous component creating a good sense of component separation right out-of-the-box. In contrast if you start the row with something like a <code class="notranslate">div.carousel</code> (which has NO <code class="notranslate">margin-top</code>) it'll stick to the previous component without any spacing in between, breaking the rhythm reached so far.</p>
<p dir="auto">Also double margins create collapsing margins very often. Thus we have to create unnecessary "spacer" divs and custom CSS classes either to add margins or to keep collapsing margins under control.</p>
<p dir="auto"><a href="https://twitter.com/csswizardry/status/190090844181774336" rel="nofollow">Harry Roberts</a> has made a great work explaining why this is important: <a href="http://csswizardry.com/2012/06/single-direction-margin-declarations/" rel="nofollow">http://csswizardry.com/2012/06/single-direction-margin-declarations/</a>.</p>
<p dir="auto">Now can vertical rhythm be re-considered to eliminate <code class="notranslate">margin-top</code> in favor of <code class="notranslate">margin-bottom</code> only?</p> | 1 |
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">Other Airflow 2 version (please specify below)</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">Airflow 2.2.5<br>
Running a DAG and got this error for a task.<br>
[2023-02-22, 09:38:16 EST] {standard_task_runner.py:79} INFO - Running: ['airflow', 'tasks', 'run', 'icwg_fastqsr_ftp_service_volume', 'find_service_volume_for_fastqsr', 'manual__2023-02-22T14:38:11.752718+00:00', '--job-id', '36461', '--raw', '--subdir', 'DAGS_FOLDER/icwg_fastqsr/icwg_fastqsr_ftp_service_volume.py', '--cfg-path', '/tmp/tmp5lgl246c', '--error-file', '/tmp/tmpc2q98hw9']<br>
[2023-02-22, 09:38:16 EST] {standard_task_runner.py:80} INFO - Job 36461: Subtask find_service_volume_for_fastqsr<br>
[2023-02-22, 09:38:17 EST] {task_command.py:298} INFO - Running <TaskInstance: icwg_fastqsr_ftp_service_volume.find_service_volume_for_fastqsr manual__2023-02-22T14:38:11.752718+00:00 [running]> on host airflow-worker-vtgg4<br>
[2023-02-22, 09:38:17 EST] {taskinstance.py:1745} WARNING - We expected to get frame set in local storage but it was not. Please report this as an issue with full logs at <a href="https://github.com/apache/airflow/issues/new">https://github.com/apache/airflow/issues/new</a><br>
Traceback (most recent call last):</p>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">No idea as the same DAG was running fine in another composer in same project. We just copied this DAG from there and ran first time in order to migrate the DAG to this composer.</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Copy a DAG with Big Query operator from one composer to another running in same project and start running it.</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Ubuntu</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">Big Query Operator related</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Google Cloud Composer</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">Airflow on Google Cloud Composer 2.1.3</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto">NA</p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.4.1</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">Running <code class="notranslate">airflow db upgrade</code> on an Airflow installation with 100 DAGs fails with this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR [airflow.models.dagbag.DagBag] Failed to write serialized DAG: /usr/local/airflow/dags/REDACTED.py
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/airflow/models/dagbag.py", line 615, in _serialize_dag_capturing_errors
dag_was_updated = SerializedDagModel.write_dag(
File "/usr/local/lib/python3.9/site-packages/airflow/utils/session.py", line 72, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/airflow/models/serialized_dag.py", line 146, in write_dag
session.query(literal(True))
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 2810, in first
return self.limit(1)._iter().first()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 2894, in _iter
result = self.session.execute(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1688, in execute
conn = self._connection_for_bind(bind)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1529, in _connection_for_bind
return self._transaction._connection_for_bind(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 721, in _connection_for_bind
self._assert_active()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 601, in _assert_active
raise sa_exc.PendingRollbackError(
sqlalchemy.exc.PendingRollbackError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "serialized_dag_pkey"
DETAIL: Key (dag_id)=(REDACTED) already exists.
[SQL: INSERT INTO serialized_dag (dag_id, fileloc, fileloc_hash, data, data_compressed, last_updated, dag_hash, ..."><pre class="notranslate"><code class="notranslate">ERROR [airflow.models.dagbag.DagBag] Failed to write serialized DAG: /usr/local/airflow/dags/REDACTED.py
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/airflow/models/dagbag.py", line 615, in _serialize_dag_capturing_errors
dag_was_updated = SerializedDagModel.write_dag(
File "/usr/local/lib/python3.9/site-packages/airflow/utils/session.py", line 72, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/airflow/models/serialized_dag.py", line 146, in write_dag
session.query(literal(True))
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 2810, in first
return self.limit(1)._iter().first()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 2894, in _iter
result = self.session.execute(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1688, in execute
conn = self._connection_for_bind(bind)
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1529, in _connection_for_bind
return self._transaction._connection_for_bind(
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 721, in _connection_for_bind
self._assert_active()
File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 601, in _assert_active
raise sa_exc.PendingRollbackError(
sqlalchemy.exc.PendingRollbackError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session, first issue Session.rollback(). Original exception was: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "serialized_dag_pkey"
DETAIL: Key (dag_id)=(REDACTED) already exists.
[SQL: INSERT INTO serialized_dag (dag_id, fileloc, fileloc_hash, data, data_compressed, last_updated, dag_hash, ...
</code></pre></div>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto"><code class="notranslate">airflow db upgrade</code> should successfully reserialize DAGs at the end of the upgrade just like the <code class="notranslate">airflow dags reserialize</code> command.</p>
<h3 dir="auto">How to reproduce</h3>
<ol dir="auto">
<li>Upgrade to <code class="notranslate">airflow 2.4.1</code> on an existing codebase</li>
<li>Run <code class="notranslate">airflow db upgrade</code></li>
</ol>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Debian GNU/Linux 10 (buster)</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apache-airflow-providers-amazon==5.1.0
apache-airflow-providers-celery==3.0.0
apache-airflow-providers-cncf-kubernetes==4.3.0
apache-airflow-providers-common-sql==1.2.0
apache-airflow-providers-datadog==3.0.0
apache-airflow-providers-ftp==3.1.0
apache-airflow-providers-http==4.0.0
apache-airflow-providers-imap==3.0.0
apache-airflow-providers-postgres==5.2.1
apache-airflow-providers-redis==3.0.0
apache-airflow-providers-sendgrid==3.0.0
apache-airflow-providers-sftp==4.0.0
apache-airflow-providers-slack==5.1.0
apache-airflow-providers-sqlite==3.2.1
apache-airflow-providers-ssh==3.1.0"><pre class="notranslate"><code class="notranslate">apache-airflow-providers-amazon==5.1.0
apache-airflow-providers-celery==3.0.0
apache-airflow-providers-cncf-kubernetes==4.3.0
apache-airflow-providers-common-sql==1.2.0
apache-airflow-providers-datadog==3.0.0
apache-airflow-providers-ftp==3.1.0
apache-airflow-providers-http==4.0.0
apache-airflow-providers-imap==3.0.0
apache-airflow-providers-postgres==5.2.1
apache-airflow-providers-redis==3.0.0
apache-airflow-providers-sendgrid==3.0.0
apache-airflow-providers-sftp==4.0.0
apache-airflow-providers-slack==5.1.0
apache-airflow-providers-sqlite==3.2.1
apache-airflow-providers-ssh==3.1.0
</code></pre></div>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Other Docker-based deployment</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">k8s deployment</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto">Fails consistently in these two scenarios:</p>
<ol dir="auto">
<li>
<p dir="auto">Run db upgrade only:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" airflow db upgrade"><pre class="notranslate"><code class="notranslate"> airflow db upgrade
</code></pre></div>
</li>
<li>
<p dir="auto">Run along with reserialize</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" airflow dags reserialize --clear-only
airflow db upgrade"><pre class="notranslate"><code class="notranslate"> airflow dags reserialize --clear-only
airflow db upgrade
</code></pre></div>
</li>
</ol>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 0 |
<p dir="auto">I believe this framework is very well put together and I know its based on LESS but are you thinking about adding an option for the people that use SASS.</p> | <p dir="auto">As of <code class="notranslate">3.0.0</code> you had the ability (albeit undocumented) to use nested containers, as such;</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div class="container">
<div class="row">
<div class="col-md-12 col-lg-10 col-lg-offset-1">
<div class="container">
<!-- centered elements here -->
</div>
</div>
</div>
</div>"><pre class="notranslate"><code class="notranslate"><div class="container">
<div class="row">
<div class="col-md-12 col-lg-10 col-lg-offset-1">
<div class="container">
<!-- centered elements here -->
</div>
</div>
</div>
</div>
</code></pre></div>
<p dir="auto">However as of <code class="notranslate">3.0.3</code> this functionality no longer works and the documention states that nested containers are not supported due to hard coded width's on container media query.</p>
<p dir="auto">I was able to get this working by creating CSS for <code class="notranslate">.container-nested</code>, which duplicates everything from <code class="notranslate">.container</code>, apart from the media queries;</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".container-nested {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
.container-nested:before,
.container-nested:after {
display: table;
content: " ";
}
.container-nested:after {
clear: both;
}
.container-nested:before,
.container-nested:after {
display: table;
content: " ";
}
.container-nested:after {
clear: both;
}"><pre class="notranslate"><code class="notranslate">.container-nested {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
.container-nested:before,
.container-nested:after {
display: table;
content: " ";
}
.container-nested:after {
clear: both;
}
.container-nested:before,
.container-nested:after {
display: table;
content: " ";
}
.container-nested:after {
clear: both;
}
</code></pre></div>
<p dir="auto">I've tested this in IE11/Chrome, and it seems to work fine.</p>
<p dir="auto">Could a core dev please confirm if such functionality would be considered for merge? If so then I'd be happy to submit a PR to add this functionality.</p> | 0 |
<p dir="auto">See below for Minimum Working Example or whatever that's called (<strong>edit</strong>: add versioninfo()):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> x = [1 2; 3 4]
2×2 Array{Int64,2}:
1 2
3 4
julia> using LinearAlgebra
julia> x .-= LinearAlgebra.I
┌ Warning: broadcast will default to iterating over its arguments in the future. Wrap arguments of
│ type `x::UniformScaling{Bool}` with `Ref(x)` to ensure they broadcast as "scalar" elements.
│ caller = ip:0x0
└ @ Core :-1
2×2 Array{Int64,2}:
0 1
2 3
julia> x .-= Ref(LinearAlgebra.I)
2×2 Array{Int64,2}:
-1 0
1 2
julia> versioninfo()
Julia Version 0.7.0-beta2.90
Commit 789ad046b1 (2018-07-24 03:59 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.0.0)
CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, skylake)"><pre class="notranslate"><code class="notranslate">julia> x = [1 2; 3 4]
2×2 Array{Int64,2}:
1 2
3 4
julia> using LinearAlgebra
julia> x .-= LinearAlgebra.I
┌ Warning: broadcast will default to iterating over its arguments in the future. Wrap arguments of
│ type `x::UniformScaling{Bool}` with `Ref(x)` to ensure they broadcast as "scalar" elements.
│ caller = ip:0x0
└ @ Core :-1
2×2 Array{Int64,2}:
0 1
2 3
julia> x .-= Ref(LinearAlgebra.I)
2×2 Array{Int64,2}:
-1 0
1 2
julia> versioninfo()
Julia Version 0.7.0-beta2.90
Commit 789ad046b1 (2018-07-24 03:59 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.0.0)
CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
</code></pre></div> | <p dir="auto">Broadcasting is not only super convenient, but it also gives new features. For example, broadcasted operations can generate GPU kernels with GPUArrays.jl. So it's really nice to be able to broadcast operations... but this one seems missing. I can't seem to do:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" for j in 1:length(u), i in 1:length(u)
W[i,j] = I[i,j]-J[i,j]
end"><pre class="notranslate"> <span class="pl-k">for</span> j <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">length</span>(u), i <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">length</span>(u)
W[i,j] <span class="pl-k">=</span> I[i,j]<span class="pl-k">-</span>J[i,j]
<span class="pl-k">end</span></pre></div>
<p dir="auto">If you try to do something similar with broadcast, it's incorrect:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="I .- ones(4,4) # == zeros(4,4)"><pre class="notranslate">I <span class="pl-k">.-</span> <span class="pl-c1">ones</span>(<span class="pl-c1">4</span>,<span class="pl-c1">4</span>) <span class="pl-c"><span class="pl-c">#</span> == zeros(4,4)</span></pre></div>
<p dir="auto">It would be nice if broadcast worked on the UniformScaling operator.</p> | 1 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217)</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// A self-contained demonstration of the problem follows...
"><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto"><strong>Actual behavior:</strong></p> | <p dir="auto">I'm trying to follow the instructions <a href="https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#transpiling-single-file">here</a>, specifically this part:</p>
<blockquote>
<p dir="auto">If file name is omitted then compiler will check if jsx options is specified - if it is set and is not JsxEmit.None then source text will be interpreted as '.tsx'.</p>
</blockquote>
<p dir="auto">However, I'm not getting the expected result.</p>
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.10</p>
<p dir="auto"><strong>Code</strong></p>
<h2 dir="auto">index.js</h2>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const ts = require('typescript');
const fs = require('fs');
const str = fs.readFileSync(__dirname + '/test.tsx', 'utf8');
const result = ts.transpileModule(str, { fileName: 'test.tsx', compilerOptions: { 'jsx': 'React' });
console.log(result.outputText);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">ts</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'typescript'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">fs</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'fs'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s1">fs</span><span class="pl-kos">.</span><span class="pl-en">readFileSync</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span> <span class="pl-c1">+</span> <span class="pl-s">'/test.tsx'</span><span class="pl-kos">,</span> <span class="pl-s">'utf8'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">ts</span><span class="pl-kos">.</span><span class="pl-en">transpileModule</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">fileName</span>: <span class="pl-s">'test.tsx'</span><span class="pl-kos">,</span> <span class="pl-c1">compilerOptions</span>: <span class="pl-kos">{</span> <span class="pl-s">'jsx'</span>: <span class="pl-s">'React'</span> <span class="pl-kos">}</span><span class="pl-kos"></span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">result</span><span class="pl-kos">.</span><span class="pl-c1">outputText</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h2 dir="auto">test.tsx</h2>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// <reference path="./typings/react/react-global.d.ts" />
interface HelloProps {
name: string;
};
const Hello = (props: HelloProps) => (
<div>Hello, {props.name}</div>
);"><pre class="notranslate"><span class="pl-c">/// <reference path="./typings/react/react-global.d.ts" /></span>
<span class="pl-k">interface</span> <span class="pl-smi">HelloProps</span> <span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-smi">string</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-smi">Hello</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">props</span>: <span class="pl-smi">HelloProps</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-kos"><</span><span class="pl-smi">div</span><span class="pl-kos">></span><span class="pl-smi">Hello</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-s1">props</span><span class="pl-kos">.</span>name<span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-pds"><span class="pl-c1">/</span>div></span><span class="pl-c1"></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto">The output I'm looking for is the same as what I get if I use <code class="notranslate">tsc</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> tsc --jsx react test.tsx
> cat test.js
/// <reference path="./typings/react/react-global.d.ts" />
;
var Hello = function (props) { return (React.createElement("div", null, "Hello, ", props.name)); };"><pre class="notranslate"><code class="notranslate">> tsc --jsx react test.tsx
> cat test.js
/// <reference path="./typings/react/react-global.d.ts" />
;
var Hello = function (props) { return (React.createElement("div", null, "Hello, ", props.name)); };
</code></pre></div>
<p dir="auto"><strong>Actual behavior:</strong></p>
<p dir="auto">However, the output I get is instead:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="> node index.js
"use strict";
/// <reference path="./typings/react/react-global.d.ts" />
;
var Hello = function (props) { return (<div>Hello, {props.name}</div>); };"><pre class="notranslate"><span class="pl-k">></span> node index.js
<span class="pl-s"><span class="pl-pds">"</span>use strict<span class="pl-pds">"</span></span><span class="pl-k">;</span>
/// <span class="pl-k"><</span>reference path=<span class="pl-s"><span class="pl-pds">"</span>./typings/react/react-global.d.ts<span class="pl-pds">"</span></span> /<span class="pl-k">></span>
<span class="pl-k">;</span>
var Hello = <span class="pl-k">function</span> <span class="pl-en">(props)</span> { <span class="pl-k">return</span> (<span class="pl-k"><</span>div<span class="pl-k">></span>Hello, {props.name}<span class="pl-k"><</span>/div<span class="pl-k">></span>)<span class="pl-k">;</span> };</pre></div> | 0 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>:</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b>
</summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
software -> celery:5.2.0rc1 (dawn-chorus) kombu:5.2.0rc1 py:3.7.12
billiard:3.6.4.0 py-amqp:5.0.6
platform -> system:Linux arch:64bit, ELF
kernel version:5.10.47-linuxkit imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:pyamqp results:disabled
broker_url: 'amqp://guest:********@broker:5672//'
deprecated_settings: None
"><pre class="notranslate"><code class="notranslate">
software -> celery:5.2.0rc1 (dawn-chorus) kombu:5.2.0rc1 py:3.7.12
billiard:3.6.4.0 py-amqp:5.0.6
platform -> system:Linux arch:64bit, ELF
kernel version:5.10.47-linuxkit imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:pyamqp results:disabled
broker_url: 'amqp://guest:********@broker:5672//'
deprecated_settings: None
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: 3.7</li>
<li><strong>Minimal Celery Version</strong>: 5.1.2</li>
<li><strong>Minimal Kombu Version</strong>: N/A</li>
<li><strong>Minimal Broker Version</strong>: N/A</li>
<li><strong>Minimal Result Backend Version</strong>: N/A</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A</li>
<li><strong>Minimal Broker Client Version</strong>: N/A</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==5.0.6
billiard==3.6.4.0
cached-property==1.5.2
celery @ git+https://github.com/celery/celery@49452916f94d5ec60af246cea600855e6d976b48
click==8.0.1
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
importlib-metadata==4.8.1
kombu==5.2.0rc1
prompt-toolkit==3.0.20
pytz==2021.3
six==1.16.0
typing-extensions==3.10.0.2
vine==5.0.0
wcwidth==0.2.5
zipp==3.6.0"><pre class="notranslate"><code class="notranslate">amqp==5.0.6
billiard==3.6.4.0
cached-property==1.5.2
celery @ git+https://github.com/celery/celery@49452916f94d5ec60af246cea600855e6d976b48
click==8.0.1
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
importlib-metadata==4.8.1
kombu==5.2.0rc1
prompt-toolkit==3.0.20
pytz==2021.3
six==1.16.0
typing-extensions==3.10.0.2
vine==5.0.0
wcwidth==0.2.5
zipp==3.6.0
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery
app = Celery("tasks", broker="pyamqp://guest@broker//")
class BrokenException(Exception):
"""
This Exception can't be unpickled by default
"""
def __init__(self, msg, other_arg):
super().__init__(msg)
self.other_arg = other_arg
@app.task(bind=True)
def unsafe_exception(self):
self.retry(exc=BrokenException("msg", "other_arg"))
def main():
unsafe_exception.delay()
if __name__ == "__main__":
main()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">"tasks"</span>, <span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">"pyamqp://guest@broker//"</span>)
<span class="pl-k">class</span> <span class="pl-v">BrokenException</span>(<span class="pl-v">Exception</span>):
<span class="pl-s">"""</span>
<span class="pl-s"> This Exception can't be unpickled by default</span>
<span class="pl-s"> """</span>
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">msg</span>, <span class="pl-s1">other_arg</span>):
<span class="pl-en">super</span>().<span class="pl-en">__init__</span>(<span class="pl-s1">msg</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">other_arg</span> <span class="pl-c1">=</span> <span class="pl-s1">other_arg</span>
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">unsafe_exception</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">self</span>.<span class="pl-en">retry</span>(<span class="pl-s1">exc</span><span class="pl-c1">=</span><span class="pl-v">BrokenException</span>(<span class="pl-s">"msg"</span>, <span class="pl-s">"other_arg"</span>))
<span class="pl-k">def</span> <span class="pl-en">main</span>():
<span class="pl-s1">unsafe_exception</span>.<span class="pl-en">delay</span>()
<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>:
<span class="pl-en">main</span>()</pre></div>
<p dir="auto">Then run with <code class="notranslate">python tasks.py</code></p>
<p dir="auto">Repo here:<br>
<a href="https://github.com/amcgavin/celery-issue/">https://github.com/amcgavin/celery-issue/</a></p>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">Exception occurs in the worker handler, but handled gracefully.</p>
<p dir="auto"><em>note</em>: this was the behaviour in celery==5.0.2</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">worker process crashes, with exit code 0.</p>
<p dir="auto">Note that raising the exception directly doesn't crash (see the repo for detailed example).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery_1 | [2021-10-08 08:34:10,200: INFO/MainProcess] Task tasks.unsafe_exception[38b08c18-451b-4645-a4ac-ada2e6b43e5e] received
celery_1 | [2021-10-08 08:34:10,201: CRITICAL/MainProcess] Unrecoverable error: TypeError("__init__() missing 1 required positional argument: 'other_arg'")
celery_1 | Traceback (most recent call last):
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/worker.py", line 203, in start
celery_1 | self.blueprint.start(self)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 116, in start
celery_1 | step.start(parent)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 365, in start
celery_1 | return self.obj.start()
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 326, in start
celery_1 | blueprint.start(self)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 116, in start
celery_1 | step.start(parent)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 618, in start
celery_1 | c.loop(*c.loop_args())
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/loops.py", line 81, in asynloop
celery_1 | next(loop)
celery_1 | File "/usr/local/lib/python3.7/site-packages/kombu/asynchronous/hub.py", line 361, in create_loop
celery_1 | cb(*cbargs)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/concurrency/asynpool.py", line 325, in on_result_readable
celery_1 | next(it)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/concurrency/asynpool.py", line 306, in _recv_message
celery_1 | message = load(bufv)
celery_1 | TypeError: __init__() missing 1 required positional argument: 'other_arg'
celery_1 | [2021-10-08 08:34:41,378: ERROR/MainProcess] Task handler raised error: WorkerLostError('Worker exited prematurely: exitcode 0 Job: 2.')
celery_1 | Traceback (most recent call last):
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/worker.py", line 203, in start
celery_1 | self.blueprint.start(self)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 116, in start
celery_1 | step.start(parent)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 365, in start
celery_1 | return self.obj.start()
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 326, in start
celery_1 | blueprint.start(self)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 116, in start
celery_1 | step.start(parent)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 618, in start
celery_1 | c.loop(*c.loop_args())
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/loops.py", line 81, in asynloop
celery_1 | next(loop)
celery_1 | File "/usr/local/lib/python3.7/site-packages/kombu/asynchronous/hub.py", line 361, in create_loop
celery_1 | cb(*cbargs)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/concurrency/asynpool.py", line 325, in on_result_readable
celery_1 | next(it)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/concurrency/asynpool.py", line 306, in _recv_message
celery_1 | message = load(bufv)
celery_1 | TypeError: __init__() missing 1 required positional argument: 'other_arg'
celery_1 |
celery_1 | During handling of the above exception, another exception occurred:
celery_1 |
celery_1 | Traceback (most recent call last):
celery_1 | File "/usr/local/lib/python3.7/site-packages/billiard/pool.py", line 1267, in mark_as_worker_lost
celery_1 | human_status(exitcode), job._job),
celery_1 | billiard.exceptions.WorkerLostError: Worker exited prematurely: exitcode 0 Job: 2.
celery-example_celery_1 exited with code 0"><pre class="notranslate"><code class="notranslate">celery_1 | [2021-10-08 08:34:10,200: INFO/MainProcess] Task tasks.unsafe_exception[38b08c18-451b-4645-a4ac-ada2e6b43e5e] received
celery_1 | [2021-10-08 08:34:10,201: CRITICAL/MainProcess] Unrecoverable error: TypeError("__init__() missing 1 required positional argument: 'other_arg'")
celery_1 | Traceback (most recent call last):
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/worker.py", line 203, in start
celery_1 | self.blueprint.start(self)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 116, in start
celery_1 | step.start(parent)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 365, in start
celery_1 | return self.obj.start()
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 326, in start
celery_1 | blueprint.start(self)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 116, in start
celery_1 | step.start(parent)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 618, in start
celery_1 | c.loop(*c.loop_args())
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/loops.py", line 81, in asynloop
celery_1 | next(loop)
celery_1 | File "/usr/local/lib/python3.7/site-packages/kombu/asynchronous/hub.py", line 361, in create_loop
celery_1 | cb(*cbargs)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/concurrency/asynpool.py", line 325, in on_result_readable
celery_1 | next(it)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/concurrency/asynpool.py", line 306, in _recv_message
celery_1 | message = load(bufv)
celery_1 | TypeError: __init__() missing 1 required positional argument: 'other_arg'
celery_1 | [2021-10-08 08:34:41,378: ERROR/MainProcess] Task handler raised error: WorkerLostError('Worker exited prematurely: exitcode 0 Job: 2.')
celery_1 | Traceback (most recent call last):
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/worker.py", line 203, in start
celery_1 | self.blueprint.start(self)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 116, in start
celery_1 | step.start(parent)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 365, in start
celery_1 | return self.obj.start()
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 326, in start
celery_1 | blueprint.start(self)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/bootsteps.py", line 116, in start
celery_1 | step.start(parent)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/consumer/consumer.py", line 618, in start
celery_1 | c.loop(*c.loop_args())
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/worker/loops.py", line 81, in asynloop
celery_1 | next(loop)
celery_1 | File "/usr/local/lib/python3.7/site-packages/kombu/asynchronous/hub.py", line 361, in create_loop
celery_1 | cb(*cbargs)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/concurrency/asynpool.py", line 325, in on_result_readable
celery_1 | next(it)
celery_1 | File "/usr/local/lib/python3.7/site-packages/celery/concurrency/asynpool.py", line 306, in _recv_message
celery_1 | message = load(bufv)
celery_1 | TypeError: __init__() missing 1 required positional argument: 'other_arg'
celery_1 |
celery_1 | During handling of the above exception, another exception occurred:
celery_1 |
celery_1 | Traceback (most recent call last):
celery_1 | File "/usr/local/lib/python3.7/site-packages/billiard/pool.py", line 1267, in mark_as_worker_lost
celery_1 | human_status(exitcode), job._job),
celery_1 | billiard.exceptions.WorkerLostError: Worker exited prematurely: exitcode 0 Job: 2.
celery-example_celery_1 exited with code 0
</code></pre></div> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22Issue+Type%3A+Feature+Request%22+">issues list</a><br>
for similar or identical feature requests.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?utf8=%E2%9C%93&q=is%3Apr+label%3A%22PR+Type%3A+Feature%22+">pull requests list</a><br>
for existing proposed implementations of this feature.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the if the same feature was already implemented in the<br>
master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h1 dir="auto">Request</h1>
<p dir="auto">Hi there! I would love to have the celery logo as an SVG please. Can you share it in the repo please?</p> | 0 |
<p dir="auto">Quite a boatload of errors considering I copied the install instruction from sklearn site itself.</p>
<blockquote>
<p dir="auto">Ernests-MacBook-Pro:~ ernest$ pip3 install -U numpy scipy scikit-learn<br>
Requirement already up-to-date: numpy in /usr/local/lib/python3.7/site-packages (1.14.5)<br>
Requirement already up-to-date: scipy in /usr/local/lib/python3.7/site-packages (1.1.0)<br>
Collecting scikit-learn<br>
Using cached <a href="https://files.pythonhosted.org/packages/f5/2c/5edf2488897cad4fb8c4ace86369833552615bf264460ae4ef6e1f258982/scikit-learn-0.19.1.tar.gz" rel="nofollow">https://files.pythonhosted.org/packages/f5/2c/5edf2488897cad4fb8c4ace86369833552615bf264460ae4ef6e1f258982/scikit-learn-0.19.1.tar.gz</a><br>
Building wheels for collected packages: scikit-learn<br>
Running setup.py bdist_wheel for scikit-learn ... error<br>
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;<strong>file</strong>='/private/var/folders/qn/3vfg7p391r34rx_frld05sw40000gn/T/pip-install-2nbtn27s/scikit-learn/setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" bdist_wheel -d /private/var/folders/qn/3vfg7p391r34rx_frld05sw40000gn/T/pip-wheel-3dvnu0lb --python-tag cp37:<br>
Partial import of sklearn during the build process.<br>
blas_opt_info:<br>
blas_mkl_info:<br>
customize UnixCCompiler<br>
libraries mkl_rt not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']<br>
NOT AVAILABLE</p>
<p dir="auto">blis_info:<br>
customize UnixCCompiler<br>
libraries blis not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']<br>
NOT AVAILABLE</p>
<p dir="auto">openblas_info:<br>
customize UnixCCompiler<br>
customize UnixCCompiler<br>
libraries openblas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']<br>
NOT AVAILABLE</p>
<p dir="auto">atlas_3_10_blas_threads_info:<br>
Setting PTATLAS=ATLAS<br>
customize UnixCCompiler<br>
libraries tatlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']<br>
NOT AVAILABLE</p>
<p dir="auto">atlas_3_10_blas_info:<br>
customize UnixCCompiler<br>
libraries satlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']<br>
NOT AVAILABLE</p>
<p dir="auto">atlas_blas_threads_info:<br>
Setting PTATLAS=ATLAS<br>
customize UnixCCompiler<br>
libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']<br>
NOT AVAILABLE</p>
<p dir="auto">atlas_blas_info:<br>
customize UnixCCompiler<br>
libraries f77blas,cblas,atlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']<br>
NOT AVAILABLE</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FOUND:
extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]"><pre class="notranslate"><code class="notranslate">FOUND:
extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
</code></pre></div>
<p dir="auto">running bdist_wheel<br>
running build<br>
running config_cc<br>
unifing config_cc, config, build_clib, build_ext, build commands --compiler options<br>
running config_fc<br>
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options<br>
running build_src<br>
build_src<br>
building library "libsvm-skl" sources<br>
building extension "sklearn.__check_build._check_build" sources<br>
building extension "sklearn.cluster._dbscan_inner" sources<br>
building extension "sklearn.cluster._hierarchical" sources<br>
building extension "sklearn.cluster._k_means_elkan" sources<br>
building extension "sklearn.cluster._k_means" sources<br>
building extension "sklearn.datasets._svmlight_format" sources<br>
building extension "sklearn.decomposition._online_lda" sources<br>
building extension "sklearn.decomposition.cdnmf_fast" sources<br>
building extension "sklearn.ensemble._gradient_boosting" sources<br>
building extension "sklearn.feature_extraction._hashing" sources<br>
building extension "sklearn.manifold._utils" sources<br>
building extension "sklearn.manifold._barnes_hut_tsne" sources<br>
building extension "sklearn.metrics.pairwise_fast" sources<br>
building extension "sklearn.metrics/cluster.expected_mutual_info_fast" sources<br>
building extension "sklearn.neighbors.ball_tree" sources<br>
building extension "sklearn.neighbors.kd_tree" sources<br>
building extension "sklearn.neighbors.dist_metrics" sources<br>
building extension "sklearn.neighbors.typedefs" sources<br>
building extension "sklearn.neighbors.quad_tree" sources<br>
building extension "sklearn.tree._tree" sources<br>
building extension "sklearn.tree._splitter" sources<br>
building extension "sklearn.tree._criterion" sources<br>
building extension "sklearn.tree._utils" sources<br>
building extension "sklearn.svm.libsvm" sources<br>
building extension "sklearn.svm.liblinear" sources<br>
building extension "sklearn.svm.libsvm_sparse" sources<br>
building extension "sklearn._isotonic" sources<br>
building extension "sklearn.linear_model.cd_fast" sources<br>
building extension "sklearn.linear_model.sgd_fast" sources<br>
building extension "sklearn.linear_model.sag_fast" sources<br>
building extension "sklearn.utils.sparsefuncs_fast" sources<br>
building extension "sklearn.utils.arrayfuncs" sources<br>
building extension "sklearn.utils.murmurhash" sources<br>
building extension "sklearn.utils.lgamma" sources<br>
building extension "sklearn.utils.graph_shortest_path" sources<br>
building extension "sklearn.utils.fast_dict" sources<br>
building extension "sklearn.utils.seq_dataset" sources<br>
building extension "sklearn.utils.weight_vector" sources<br>
building extension "sklearn.utils._random" sources<br>
building extension "sklearn.utils._logistic_sigmoid" sources<br>
building data_files sources<br>
build_src: building npy-pkg config files<br>
running build_py<br>
creating build<br>
creating build/lib.macosx-10.13-x86_64-3.7<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/learning_curve.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/kernel_approximation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/random_projection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/isotonic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/multioutput.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/kernel_ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/naive_bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/pipeline.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/grid_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/discriminant_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/exceptions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/dummy.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/calibration.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
copying sklearn/cross_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/__check_build<br>
copying sklearn/__check_build/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/__check_build<br>
copying sklearn/_<em>check_build/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/<em><em>check_build<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/<em>build_utils<br>
copying sklearn/<em>build_utils/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/<em>build_utils<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance<br>
copying sklearn/covariance/graph_lasso</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance<br>
copying sklearn/covariance/robust_covariance.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance<br>
copying sklearn/covariance/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance<br>
copying sklearn/covariance/empirical_covariance</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance<br>
copying sklearn/covariance/outlier_detection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance<br>
copying sklearn/covariance/shrunk_covariance</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests<br>
copying sklearn/covariance/tests/test_graph_lasso.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests<br>
copying sklearn/covariance/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests<br>
copying sklearn/covariance/tests/test_covariance.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests<br>
copying sklearn/covariance/tests/test_robust_covariance.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition<br>
copying sklearn/cross_decomposition/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition<br>
copying sklearn/cross_decomposition/cca</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition<br>
copying sklearn/cross_decomposition/pls</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition/tests<br>
copying sklearn/cross_decomposition/tests/test_pls.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition/tests<br>
copying sklearn/cross_decomposition/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection<br>
copying sklearn/feature_selection/rfe.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection<br>
copying sklearn/feature_selection/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection<br>
copying sklearn/feature_selection/variance_threshold.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection<br>
copying sklearn/feature_selection/univariate_selection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection<br>
copying sklearn/feature_selection/mutual_info</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection<br>
copying sklearn/feature_selection/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection<br>
copying sklearn/feature_selection/from_model.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests<br>
copying sklearn/feature_selection/tests/test_variance_threshold.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests<br>
copying sklearn/feature_selection/tests/test_rfe.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests<br>
copying sklearn/feature_selection/tests/test_from_model.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests<br>
copying sklearn/feature_selection/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests<br>
copying sklearn/feature_selection/tests/test_feature_select.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests<br>
copying sklearn/feature_selection/tests/test_chi2.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests<br>
copying sklearn/feature_selection/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests<br>
copying sklearn/feature_selection/tests/test_mutual_info.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process<br>
copying sklearn/gaussian_process/gaussian_process.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process<br>
copying sklearn/gaussian_process/gpr.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process<br>
copying sklearn/gaussian_process/correlation_models.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process<br>
copying sklearn/gaussian_process/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process<br>
copying sklearn/gaussian_process/regression_models.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process<br>
copying sklearn/gaussian_process/gpc.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process<br>
copying sklearn/gaussian_process/kernels.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests<br>
copying sklearn/gaussian_process/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests<br>
copying sklearn/gaussian_process/tests/test_gpr.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests<br>
copying sklearn/gaussian_process/tests/test_kernels.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests<br>
copying sklearn/gaussian_process/tests/test_gpc.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests<br>
copying sklearn/gaussian_process/tests/test_gaussian_process.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture<br>
copying sklearn/mixture/gmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture<br>
copying sklearn/mixture/dpgmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture<br>
copying sklearn/mixture/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture<br>
copying sklearn/mixture/bayesian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture<br>
copying sklearn/mixture/gaussian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture<br>
copying sklearn/mixture/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests<br>
copying sklearn/mixture/tests/test_bayesian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests<br>
copying sklearn/mixture/tests/test_gmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests<br>
copying sklearn/mixture/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests<br>
copying sklearn/mixture/tests/test_gaussian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests<br>
copying sklearn/mixture/tests/test_dpgmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection<br>
copying sklearn/model_selection/_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection<br>
copying sklearn/model_selection/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection<br>
copying sklearn/model_selection/_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection<br>
copying sklearn/model_selection/<em>split.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests<br>
copying sklearn/model_selection/tests/test_split.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests<br>
copying sklearn/model_selection/tests/test_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests<br>
copying sklearn/model_selection/tests/test_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests<br>
copying sklearn/model_selection/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests<br>
copying sklearn/model_selection/tests/common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network<br>
copying sklearn/neural_network/<em>base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network<br>
copying sklearn/neural_network/multilayer_perceptron.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network<br>
copying sklearn/neural_network/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network<br>
copying sklearn/neural_network/<em>stochastic_optimizers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network<br>
copying sklearn/neural_network/rbm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests<br>
copying sklearn/neural_network/tests/test_mlp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests<br>
copying sklearn/neural_network/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests<br>
copying sklearn/neural_network/tests/test_rbm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests<br>
copying sklearn/neural_network/tests/test_stochastic_optimizers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing<br>
copying sklearn/preprocessing/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing<br>
copying sklearn/preprocessing/imputation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing<br>
copying sklearn/preprocessing/label.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing<br>
copying sklearn/preprocessing/data.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing<br>
copying sklearn/preprocessing/<em>function_transformer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests<br>
copying sklearn/preprocessing/tests/test_label.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests<br>
copying sklearn/preprocessing/tests/test_function_transformer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests<br>
copying sklearn/preprocessing/tests/test_imputation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests<br>
copying sklearn/preprocessing/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests<br>
copying sklearn/preprocessing/tests/test_data.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised<br>
copying sklearn/semi_supervised/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised<br>
copying sklearn/semi_supervised/label_propagation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised/tests<br>
copying sklearn/semi_supervised/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised/tests<br>
copying sklearn/semi_supervised/tests/test_label_propagation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
copying sklearn/cluster/bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
copying sklearn/cluster/mean_shift</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
copying sklearn/cluster/hierarchical.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
copying sklearn/cluster/<em>feature_agglomeration.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
copying sklearn/cluster/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
copying sklearn/cluster/k_means</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
copying sklearn/cluster/affinity_propagation</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
copying sklearn/cluster/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
copying sklearn/cluster/spectral.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
copying sklearn/cluster/birch.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
copying sklearn/cluster/dbscan</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests<br>
copying sklearn/cluster/tests/test_mean_shift.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests<br>
copying sklearn/cluster/tests/test_k_means.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests<br>
copying sklearn/cluster/tests/test_dbscan.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests<br>
copying sklearn/cluster/tests/test_birch.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests<br>
copying sklearn/cluster/tests/test_affinity_propagation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests<br>
copying sklearn/cluster/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests<br>
copying sklearn/cluster/tests/test_hierarchical.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests<br>
copying sklearn/cluster/tests/common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests<br>
copying sklearn/cluster/tests/test_bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests<br>
copying sklearn/cluster/tests/test_spectral.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/kddcup99.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/olivetti_faces.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/svmlight_format.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/samples_generator.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/mlcomp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/covtype.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/lfw.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/rcv1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/twenty_newsgroups.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/mldata.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/species_distributions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/california_housing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
copying sklearn/datasets/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests<br>
copying sklearn/datasets/tests/test_lfw.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests<br>
copying sklearn/datasets/tests/test_mldata.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests<br>
copying sklearn/datasets/tests/test_rcv1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests<br>
copying sklearn/datasets/tests/test_kddcup99.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests<br>
copying sklearn/datasets/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests<br>
copying sklearn/datasets/tests/test_covtype.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests<br>
copying sklearn/datasets/tests/test_svmlight_format.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests<br>
copying sklearn/datasets/tests/test_20news.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests<br>
copying sklearn/datasets/tests/test_samples_generator.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests<br>
copying sklearn/datasets/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/dict_learning.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/factor_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/kernel_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/online_lda.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/fastica</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/incremental_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/sparse_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/truncated_svd.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/nmf.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
copying sklearn/decomposition/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
copying sklearn/decomposition/tests/test_dict_learning.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
copying sklearn/decomposition/tests/test_fastica.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
copying sklearn/decomposition/tests/test_truncated_svd.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
copying sklearn/decomposition/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
copying sklearn/decomposition/tests/test_nmf.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
copying sklearn/decomposition/tests/test_online_lda.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
copying sklearn/decomposition/tests/test_kernel_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
copying sklearn/decomposition/tests/test_sparse_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
copying sklearn/decomposition/tests/test_factor_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
copying sklearn/decomposition/tests/test_incremental_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
copying sklearn/decomposition/tests/test_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble<br>
copying sklearn/ensemble/bagging.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble<br>
copying sklearn/ensemble/gradient_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble<br>
copying sklearn/ensemble/voting_classifier.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble<br>
copying sklearn/ensemble/weight_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble<br>
copying sklearn/ensemble/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble<br>
copying sklearn/ensemble/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble<br>
copying sklearn/ensemble/forest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble<br>
copying sklearn/ensemble/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble<br>
copying sklearn/ensemble/partial_dependence.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble<br>
copying sklearn/ensemble/iforest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests<br>
copying sklearn/ensemble/tests/test_partial_dependence.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests<br>
copying sklearn/ensemble/tests/test_forest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests<br>
copying sklearn/ensemble/tests/test_bagging.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests<br>
copying sklearn/ensemble/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests<br>
copying sklearn/ensemble/tests/test_gradient_boosting_loss_functions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests<br>
copying sklearn/ensemble/tests/test_weight_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests<br>
copying sklearn/ensemble/tests/test_gradient_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests<br>
copying sklearn/ensemble/tests/test_iforest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests<br>
copying sklearn/ensemble/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests<br>
copying sklearn/ensemble/tests/test_voting_classifier.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/externals<br>
copying sklearn/externals/test_externals_setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals<br>
copying sklearn/externals/funcsigs.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals<br>
copying sklearn/externals/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals<br>
copying sklearn/externals/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals<br>
copying sklearn/externals/six.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/disk.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/_memory_helpers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/format_stack.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/memory.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/func_inspect.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/logger.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/numpy_pickle_compat.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/_multiprocessing_helpers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/numpy_pickle_utils.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/backports.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/numpy_pickle.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/_compat.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/my_exceptions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/parallel.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/pool.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/<em>parallel_backends.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
copying sklearn/externals/joblib/hashing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction<br>
copying sklearn/feature_extraction/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction<br>
copying sklearn/feature_extraction/dict_vectorizer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction<br>
copying sklearn/feature_extraction/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction<br>
copying sklearn/feature_extraction/text.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction<br>
copying sklearn/feature_extraction/hashing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction<br>
copying sklearn/feature_extraction/image.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction<br>
copying sklearn/feature_extraction/stop_words.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests<br>
copying sklearn/feature_extraction/tests/test_dict_vectorizer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests<br>
copying sklearn/feature_extraction/tests/test_image.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests<br>
copying sklearn/feature_extraction/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests<br>
copying sklearn/feature_extraction/tests/test_text.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests<br>
copying sklearn/feature_extraction/tests/test_feature_hasher.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold<br>
copying sklearn/manifold/locally_linear.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold<br>
copying sklearn/manifold/t_sne.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold<br>
copying sklearn/manifold/mds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold<br>
copying sklearn/manifold/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold<br>
copying sklearn/manifold/isomap.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold<br>
copying sklearn/manifold/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold<br>
copying sklearn/manifold/spectral_embedding</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests<br>
copying sklearn/manifold/tests/test_isomap.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests<br>
copying sklearn/manifold/tests/test_mds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests<br>
copying sklearn/manifold/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests<br>
copying sklearn/manifold/tests/test_t_sne.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests<br>
copying sklearn/manifold/tests/test_spectral_embedding.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests<br>
copying sklearn/manifold/tests/test_locally_linear.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics<br>
copying sklearn/metrics/regression.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics<br>
copying sklearn/metrics/classification.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics<br>
copying sklearn/metrics/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics<br>
copying sklearn/metrics/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics<br>
copying sklearn/metrics/pairwise.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics<br>
copying sklearn/metrics/ranking.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics<br>
copying sklearn/metrics/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics<br>
copying sklearn/metrics/scorer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests<br>
copying sklearn/metrics/tests/test_common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests<br>
copying sklearn/metrics/tests/test_score_objects.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests<br>
copying sklearn/metrics/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests<br>
copying sklearn/metrics/tests/test_ranking.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests<br>
copying sklearn/metrics/tests/test_pairwise.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests<br>
copying sklearn/metrics/tests/test_classification.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests<br>
copying sklearn/metrics/tests/test_regression.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster<br>
copying sklearn/metrics/cluster/bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster<br>
copying sklearn/metrics/cluster/unsupervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster<br>
copying sklearn/metrics/cluster/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster<br>
copying sklearn/metrics/cluster/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster<br>
copying sklearn/metrics/cluster/supervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests<br>
copying sklearn/metrics/cluster/tests/test_supervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests<br>
copying sklearn/metrics/cluster/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests<br>
copying sklearn/metrics/cluster/tests/test_bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests<br>
copying sklearn/metrics/cluster/tests/test_unsupervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
copying sklearn/neighbors/lof.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
copying sklearn/neighbors/regression.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
copying sklearn/neighbors/approximate.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
copying sklearn/neighbors/unsupervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
copying sklearn/neighbors/classification.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
copying sklearn/neighbors/graph.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
copying sklearn/neighbors/kde.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
copying sklearn/neighbors/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
copying sklearn/neighbors/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
copying sklearn/neighbors/nearest_centroid.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
copying sklearn/neighbors/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests<br>
copying sklearn/neighbors/tests/test_nearest_centroid.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests<br>
copying sklearn/neighbors/tests/test_kde.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests<br>
copying sklearn/neighbors/tests/test_dist_metrics.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests<br>
copying sklearn/neighbors/tests/test_lof.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests<br>
copying sklearn/neighbors/tests/test_kd_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests<br>
copying sklearn/neighbors/tests/test_approximate.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests<br>
copying sklearn/neighbors/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests<br>
copying sklearn/neighbors/tests/test_neighbors.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests<br>
copying sklearn/neighbors/tests/test_quad_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests<br>
copying sklearn/neighbors/tests/test_ball_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/tree<br>
copying sklearn/tree/tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree<br>
copying sklearn/tree/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree<br>
copying sklearn/tree/export.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree<br>
copying sklearn/tree/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests<br>
copying sklearn/tree/tests/test_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests<br>
copying sklearn/tree/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests<br>
copying sklearn/tree/tests/test_export.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/svm<br>
copying sklearn/svm/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm<br>
copying sklearn/svm/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm<br>
copying sklearn/svm/classes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm<br>
copying sklearn/svm/bounds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm<br>
copying sklearn/svm/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests<br>
copying sklearn/svm/tests/test_sparse.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests<br>
copying sklearn/svm/tests/test_bounds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests<br>
copying sklearn/svm/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests<br>
copying sklearn/svm/tests/test_svm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/ransac.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/perceptron.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/least_angle.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/logistic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/coordinate_descent.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/randomized_l1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/sag.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/omp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/passive_aggressive.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/stochastic_gradient.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/huber.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/theil_sen.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
copying sklearn/linear_model/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_logistic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_sgd.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_huber.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_theil_sen.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_passive_aggressive.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_randomized_l1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_least_angle.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_ransac.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_coordinate_descent.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_sparse_coordinate_descent.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_perceptron.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_sag.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
copying sklearn/linear_model/tests/test_omp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/optimize.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/fixes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/deprecation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/estimator_checks.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/graph.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/random.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/bench.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/<em>scipy_sparse_lsqr_backport.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/mocking.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/stats.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/class_weight.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/metaestimators.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/extmath.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/testing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/arpack.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/sparsefuncs.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/linear_assignment</em>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
copying sklearn/utils/validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools<br>
copying sklearn/utils/sparsetools/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools<br>
copying sklearn/utils/sparsetools/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools/tests<br>
copying sklearn/utils/sparsetools/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_deprecation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_bench.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_utils.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_metaestimators.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_seq_dataset.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_stats.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_optimize.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_shortest_path.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_fast_dict.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_class_weight.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_estimator_checks.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_fixes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_sparsefuncs.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_murmurhash.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_linear_assignment.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_graph.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_extmath.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_random.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
copying sklearn/utils/tests/test_testing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests<br>
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_metaestimators.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_multioutput.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_isotonic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_cross_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_docstring_parameters.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/<strong>init</strong>.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_dummy.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_check_build.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_discriminant_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_config.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_kernel_ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_calibration.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_naive_bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_learning_curve.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_init.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_grid_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_pipeline.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_random_projection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
copying sklearn/tests/test_kernel_approximation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests<br>
running build_clib<br>
customize UnixCCompiler</p>
<h4 dir="auto">['clang', '-Wno-unused-result', '-Wsign-compare', '-Wunreachable-code', '-fno-common', '-dynamic', '-DNDEBUG', '-g', '-fwrapv', '-O3', '-Wall']</h4>
<p dir="auto">customize UnixCCompiler using build_clib<br>
building 'libsvm-skl' library<br>
compiling C++ sources<br>
C compiler: clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall</p>
<p dir="auto">creating build/temp.macosx-10.13-x86_64-3.7<br>
creating build/temp.macosx-10.13-x86_64-3.7/sklearn<br>
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/svm<br>
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/svm/src<br>
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/svm/src/libsvm<br>
compile options: '-I/usr/local/lib/python3.7/site-packages/numpy/core/include -c'<br>
clang++: sklearn/svm/src/libsvm/libsvm_template.cpp<br>
ar: adding 1 object files to build/temp.macosx-10.13-x86_64-3.7/liblibsvm-skl.a<br>
ranlib:@ build/temp.macosx-10.13-x86_64-3.7/liblibsvm-skl.a<br>
running build_ext<br>
customize UnixCCompiler<br>
customize UnixCCompiler using build_ext<br>
customize UnixCCompiler</p>
<h4 dir="auto">['clang', '-Wno-unused-result', '-Wsign-compare', '-Wunreachable-code', '-fno-common', '-dynamic', '-DNDEBUG', '-g', '-fwrapv', '-O3', '-Wall']</h4>
<p dir="auto">customize UnixCCompiler using build_ext<br>
building 'sklearn.__check_build._check_build' extension<br>
compiling C sources<br>
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall</p>
<p dir="auto">creating build/temp.macosx-10.13-x86_64-3.7/sklearn/__check_build<br>
compile options: '-I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'<br>
clang: sklearn/__check_build/_check_build.c<br>
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-3.7/sklearn/__check_build/_check_build.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -Lbuild/temp.macosx-10.13-x86_64-3.7 -o build/lib.macosx-10.13-x86_64-3.7/sklearn/__check_build/_check_build.cpython-37m-darwin.so<br>
building 'sklearn.cluster._dbscan_inner' extension<br>
compiling C++ sources<br>
C compiler: clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall</p>
<p dir="auto">creating build/temp.macosx-10.13-x86_64-3.7/sklearn/cluster<br>
compile options: '-I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'<br>
clang++: sklearn/cluster/_dbscan_inner.cpp<br>
In file included from sklearn/cluster/_dbscan_inner.cpp:514:<br>
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:<br>
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:<br>
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:<br>
/usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]<br>
#warning "Using deprecated NumPy API, disable it by " <br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5960:21: error: no member named 'exc_type' in '_ts'<br>
*type = tstate->exc_type;<br>
~~~~~~ ^<br>
sklearn/cluster/_dbscan_inner.cpp:5961:22: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?<br>
*value = tstate->exc_value;<br>
^~~~~~~~~<br>
curexc_value<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here<br>
PyObject *curexc_value;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5962:19: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?<br>
*tb = tstate->exc_traceback;<br>
^~~~~~~~~~~~~<br>
curexc_traceback<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here<br>
PyObject *curexc_traceback;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5969:24: error: no member named 'exc_type' in '_ts'<br>
tmp_type = tstate->exc_type;<br>
~~~~~~ ^<br>
sklearn/cluster/_dbscan_inner.cpp:5970:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?<br>
tmp_value = tstate->exc_value;<br>
^~~~~~~~~<br>
curexc_value<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here<br>
PyObject *curexc_value;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5971:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?<br>
tmp_tb = tstate->exc_traceback;<br>
^~~~~~~~~~~~~<br>
curexc_traceback<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here<br>
PyObject *curexc_traceback;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5972:13: error: no member named 'exc_type' in '_ts'<br>
tstate->exc_type = type;<br>
~~~~~~ ^<br>
sklearn/cluster/_dbscan_inner.cpp:5973:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?<br>
tstate->exc_value = value;<br>
^~~~~~~~~<br>
curexc_value<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here<br>
PyObject *curexc_value;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5974:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?<br>
tstate->exc_traceback = tb;<br>
^~~~~~~~~~~~~<br>
curexc_traceback<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here<br>
PyObject *curexc_traceback;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:6029:24: error: no member named 'exc_type' in '_ts'<br>
tmp_type = tstate->exc_type;<br>
~~~~~~ ^<br>
sklearn/cluster/_dbscan_inner.cpp:6030:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?<br>
tmp_value = tstate->exc_value;<br>
^~~~~~~~~<br>
curexc_value<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here<br>
PyObject *curexc_value;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:6031:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?<br>
tmp_tb = tstate->exc_traceback;<br>
^~~~~~~~~~~~~<br>
curexc_traceback<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here<br>
PyObject *curexc_traceback;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:6032:13: error: no member named 'exc_type' in '_ts'<br>
tstate->exc_type = local_type;<br>
~~~~~~ ^<br>
sklearn/cluster/_dbscan_inner.cpp:6033:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?<br>
tstate->exc_value = local_value;<br>
^~~~~~~~~<br>
curexc_value<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here<br>
PyObject *curexc_value;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:6034:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?<br>
tstate->exc_traceback = local_tb;<br>
^~~~~~~~~~~~~<br>
curexc_traceback<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here<br>
PyObject *curexc_traceback;<br>
^<br>
1 warning and 15 errors generated.<br>
In file included from sklearn/cluster/_dbscan_inner.cpp:514:<br>
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:<br>
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:<br>
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:<br>
/usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]<br>
#warning "Using deprecated NumPy API, disable it by " <br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5960:21: error: no member named 'exc_type' in '_ts'<br>
*type = tstate->exc_type;<br>
~~~~~~ ^<br>
sklearn/cluster/_dbscan_inner.cpp:5961:22: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?<br>
*value = tstate->exc_value;<br>
^~~~~~~~~<br>
curexc_value<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here<br>
PyObject *curexc_value;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5962:19: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?<br>
*tb = tstate->exc_traceback;<br>
^~~~~~~~~~~~~<br>
curexc_traceback<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here<br>
PyObject *curexc_traceback;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5969:24: error: no member named 'exc_type' in '_ts'<br>
tmp_type = tstate->exc_type;<br>
~~~~~~ ^<br>
sklearn/cluster/_dbscan_inner.cpp:5970:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?<br>
tmp_value = tstate->exc_value;<br>
^~~~~~~~~<br>
curexc_value<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here<br>
PyObject *curexc_value;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5971:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?<br>
tmp_tb = tstate->exc_traceback;<br>
^~~~~~~~~~~~~<br>
curexc_traceback<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here<br>
PyObject *curexc_traceback;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5972:13: error: no member named 'exc_type' in '_ts'<br>
tstate->exc_type = type;<br>
~~~~~~ ^<br>
sklearn/cluster/_dbscan_inner.cpp:5973:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?<br>
tstate->exc_value = value;<br>
^~~~~~~~~<br>
curexc_value<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here<br>
PyObject *curexc_value;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:5974:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?<br>
tstate->exc_traceback = tb;<br>
^~~~~~~~~~~~~<br>
curexc_traceback<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here<br>
PyObject *curexc_traceback;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:6029:24: error: no member named 'exc_type' in '_ts'<br>
tmp_type = tstate->exc_type;<br>
~~~~~~ ^<br>
sklearn/cluster/_dbscan_inner.cpp:6030:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?<br>
tmp_value = tstate->exc_value;<br>
^~~~~~~~~<br>
curexc_value<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here<br>
PyObject *curexc_value;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:6031:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?<br>
tmp_tb = tstate->exc_traceback;<br>
^~~~~~~~~~~~~<br>
curexc_traceback<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here<br>
PyObject *curexc_traceback;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:6032:13: error: no member named 'exc_type' in '_ts'<br>
tstate->exc_type = local_type;<br>
~~~~~~ ^<br>
sklearn/cluster/_dbscan_inner.cpp:6033:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?<br>
tstate->exc_value = local_value;<br>
^~~~~~~~~<br>
curexc_value<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here<br>
PyObject *curexc_value;<br>
^<br>
sklearn/cluster/_dbscan_inner.cpp:6034:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?<br>
tstate->exc_traceback = local_tb;<br>
^~~~~~~~~~~~~<br>
curexc_traceback<br>
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here<br>
PyObject *curexc_traceback;<br>
^<br>
1 warning and 15 errors generated.<br>
error: Command "clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c sklearn/cluster/_dbscan_inner.cpp -o build/temp.macosx-10.13-x86_64-3.7/sklearn/cluster/_dbscan_inner.o -MMD -MF build/temp.macosx-10.13-x86_64-3.7/sklearn/cluster/_dbscan_inner.o.d" failed with exit status 1</p>
<hr>
<p dir="auto">Failed building wheel for scikit-learn<br>
Running setup.py clean for scikit-learn<br>
Failed to build scikit-learn<br>
Installing collected packages: scikit-learn<br>
Running setup.py install for scikit-learn ... error<br>
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;<strong>file</strong>='/private/var/folders/qn/3vfg7p391r34rx_frld05sw40000gn/T/pip-install-2nbtn27s/scikit-learn/setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install --record /private/var/folders/qn/3vfg7p391r34rx_frld05sw40000gn/T/pip-record-jbutn199/install-record.txt --single-version-externally-managed --compile:<br>
Partial import of sklearn during the build process.<br>
blas_opt_info:<br>
blas_mkl_info:<br>
customize UnixCCompiler<br>
libraries mkl_rt not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']<br>
NOT AVAILABLE</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="blis_info:
customize UnixCCompiler
libraries blis not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries tatlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
customize UnixCCompiler
libraries satlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
FOUND:
extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building library "libsvm-skl" sources
building extension "sklearn.__check_build._check_build" sources
building extension "sklearn.cluster._dbscan_inner" sources
building extension "sklearn.cluster._hierarchical" sources
building extension "sklearn.cluster._k_means_elkan" sources
building extension "sklearn.cluster._k_means" sources
building extension "sklearn.datasets._svmlight_format" sources
building extension "sklearn.decomposition._online_lda" sources
building extension "sklearn.decomposition.cdnmf_fast" sources
building extension "sklearn.ensemble._gradient_boosting" sources
building extension "sklearn.feature_extraction._hashing" sources
building extension "sklearn.manifold._utils" sources
building extension "sklearn.manifold._barnes_hut_tsne" sources
building extension "sklearn.metrics.pairwise_fast" sources
building extension "sklearn.metrics/cluster.expected_mutual_info_fast" sources
building extension "sklearn.neighbors.ball_tree" sources
building extension "sklearn.neighbors.kd_tree" sources
building extension "sklearn.neighbors.dist_metrics" sources
building extension "sklearn.neighbors.typedefs" sources
building extension "sklearn.neighbors.quad_tree" sources
building extension "sklearn.tree._tree" sources
building extension "sklearn.tree._splitter" sources
building extension "sklearn.tree._criterion" sources
building extension "sklearn.tree._utils" sources
building extension "sklearn.svm.libsvm" sources
building extension "sklearn.svm.liblinear" sources
building extension "sklearn.svm.libsvm_sparse" sources
building extension "sklearn._isotonic" sources
building extension "sklearn.linear_model.cd_fast" sources
building extension "sklearn.linear_model.sgd_fast" sources
building extension "sklearn.linear_model.sag_fast" sources
building extension "sklearn.utils.sparsefuncs_fast" sources
building extension "sklearn.utils.arrayfuncs" sources
building extension "sklearn.utils.murmurhash" sources
building extension "sklearn.utils.lgamma" sources
building extension "sklearn.utils.graph_shortest_path" sources
building extension "sklearn.utils.fast_dict" sources
building extension "sklearn.utils.seq_dataset" sources
building extension "sklearn.utils.weight_vector" sources
building extension "sklearn.utils._random" sources
building extension "sklearn.utils._logistic_sigmoid" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
creating build
creating build/lib.macosx-10.13-x86_64-3.7
creating build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/learning_curve.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/kernel_approximation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/random_projection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/isotonic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/multioutput.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/kernel_ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/naive_bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/pipeline.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/grid_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/discriminant_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/exceptions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/dummy.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/calibration.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/cross_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/__check_build
copying sklearn/__check_build/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/__check_build
copying sklearn/__check_build/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/__check_build
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/_build_utils
copying sklearn/_build_utils/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/_build_utils
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/graph_lasso_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/robust_covariance.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/empirical_covariance_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/outlier_detection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/shrunk_covariance_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests
copying sklearn/covariance/tests/test_graph_lasso.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests
copying sklearn/covariance/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests
copying sklearn/covariance/tests/test_covariance.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests
copying sklearn/covariance/tests/test_robust_covariance.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition
copying sklearn/cross_decomposition/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition
copying sklearn/cross_decomposition/cca_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition
copying sklearn/cross_decomposition/pls_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition/tests
copying sklearn/cross_decomposition/tests/test_pls.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition/tests
copying sklearn/cross_decomposition/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/rfe.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/variance_threshold.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/univariate_selection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/mutual_info_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/from_model.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_variance_threshold.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_rfe.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_from_model.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_feature_select.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_chi2.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_mutual_info.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/gaussian_process.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/gpr.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/correlation_models.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/regression_models.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/gpc.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/kernels.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
copying sklearn/gaussian_process/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
copying sklearn/gaussian_process/tests/test_gpr.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
copying sklearn/gaussian_process/tests/test_kernels.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
copying sklearn/gaussian_process/tests/test_gpc.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
copying sklearn/gaussian_process/tests/test_gaussian_process.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/gmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/dpgmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/bayesian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/gaussian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
copying sklearn/mixture/tests/test_bayesian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
copying sklearn/mixture/tests/test_gmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
copying sklearn/mixture/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
copying sklearn/mixture/tests/test_gaussian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
copying sklearn/mixture/tests/test_dpgmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection
copying sklearn/model_selection/_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection
copying sklearn/model_selection/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection
copying sklearn/model_selection/_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection
copying sklearn/model_selection/_split.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
copying sklearn/model_selection/tests/test_split.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
copying sklearn/model_selection/tests/test_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
copying sklearn/model_selection/tests/test_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
copying sklearn/model_selection/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
copying sklearn/model_selection/tests/common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
copying sklearn/neural_network/_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
copying sklearn/neural_network/multilayer_perceptron.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
copying sklearn/neural_network/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
copying sklearn/neural_network/_stochastic_optimizers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
copying sklearn/neural_network/rbm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests
copying sklearn/neural_network/tests/test_mlp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests
copying sklearn/neural_network/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests
copying sklearn/neural_network/tests/test_rbm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests
copying sklearn/neural_network/tests/test_stochastic_optimizers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
copying sklearn/preprocessing/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
copying sklearn/preprocessing/imputation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
copying sklearn/preprocessing/label.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
copying sklearn/preprocessing/data.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
copying sklearn/preprocessing/_function_transformer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
copying sklearn/preprocessing/tests/test_label.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
copying sklearn/preprocessing/tests/test_function_transformer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
copying sklearn/preprocessing/tests/test_imputation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
copying sklearn/preprocessing/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
copying sklearn/preprocessing/tests/test_data.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised
copying sklearn/semi_supervised/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised
copying sklearn/semi_supervised/label_propagation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised/tests
copying sklearn/semi_supervised/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised/tests
copying sklearn/semi_supervised/tests/test_label_propagation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/mean_shift_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/hierarchical.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/_feature_agglomeration.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/k_means_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/affinity_propagation_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/spectral.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/birch.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/dbscan_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_mean_shift.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_k_means.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_dbscan.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_birch.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_affinity_propagation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_hierarchical.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_spectral.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/kddcup99.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/olivetti_faces.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/svmlight_format.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/samples_generator.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/mlcomp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/covtype.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/lfw.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/rcv1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/twenty_newsgroups.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/mldata.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/species_distributions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/california_housing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_lfw.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_mldata.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_rcv1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_kddcup99.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_covtype.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_svmlight_format.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_20news.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_samples_generator.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/dict_learning.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/factor_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/kernel_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/online_lda.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/fastica_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/incremental_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/sparse_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/truncated_svd.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/nmf.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_dict_learning.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_fastica.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_truncated_svd.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_nmf.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_online_lda.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_kernel_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_sparse_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_factor_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_incremental_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/bagging.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/gradient_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/voting_classifier.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/weight_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/forest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/partial_dependence.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/iforest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_partial_dependence.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_forest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_bagging.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_gradient_boosting_loss_functions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_weight_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_gradient_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_iforest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_voting_classifier.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
copying sklearn/externals/test_externals_setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
copying sklearn/externals/funcsigs.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
copying sklearn/externals/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
copying sklearn/externals/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
copying sklearn/externals/six.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/disk.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/_memory_helpers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/format_stack.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/memory.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/func_inspect.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/logger.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/numpy_pickle_compat.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/_multiprocessing_helpers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/numpy_pickle_utils.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/backports.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/numpy_pickle.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/_compat.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/my_exceptions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/parallel.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/pool.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/_parallel_backends.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/hashing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/dict_vectorizer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/text.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/hashing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/image.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/stop_words.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
copying sklearn/feature_extraction/tests/test_dict_vectorizer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
copying sklearn/feature_extraction/tests/test_image.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
copying sklearn/feature_extraction/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
copying sklearn/feature_extraction/tests/test_text.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
copying sklearn/feature_extraction/tests/test_feature_hasher.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/locally_linear.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/t_sne.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/mds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/isomap.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/spectral_embedding_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/test_isomap.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/test_mds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/test_t_sne.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/test_spectral_embedding.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/test_locally_linear.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/regression.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/classification.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/pairwise.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/ranking.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/scorer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_score_objects.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_ranking.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_pairwise.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_classification.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_regression.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
copying sklearn/metrics/cluster/bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
copying sklearn/metrics/cluster/unsupervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
copying sklearn/metrics/cluster/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
copying sklearn/metrics/cluster/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
copying sklearn/metrics/cluster/supervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests
copying sklearn/metrics/cluster/tests/test_supervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests
copying sklearn/metrics/cluster/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests
copying sklearn/metrics/cluster/tests/test_bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests
copying sklearn/metrics/cluster/tests/test_unsupervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/lof.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/regression.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/approximate.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/unsupervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/classification.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/graph.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/kde.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/nearest_centroid.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_nearest_centroid.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_kde.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_dist_metrics.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_lof.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_kd_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_approximate.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_neighbors.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_quad_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_ball_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/tree
copying sklearn/tree/tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree
copying sklearn/tree/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree
copying sklearn/tree/export.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree
copying sklearn/tree/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests
copying sklearn/tree/tests/test_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests
copying sklearn/tree/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests
copying sklearn/tree/tests/test_export.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
copying sklearn/svm/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
copying sklearn/svm/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
copying sklearn/svm/classes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
copying sklearn/svm/bounds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
copying sklearn/svm/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests
copying sklearn/svm/tests/test_sparse.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests
copying sklearn/svm/tests/test_bounds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests
copying sklearn/svm/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests
copying sklearn/svm/tests/test_svm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/ransac.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/perceptron.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/least_angle.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/logistic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/coordinate_descent.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/randomized_l1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/sag.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/omp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/passive_aggressive.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/stochastic_gradient.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/huber.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/theil_sen.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_logistic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_sgd.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_huber.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_theil_sen.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_passive_aggressive.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_randomized_l1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_least_angle.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_ransac.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_coordinate_descent.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_sparse_coordinate_descent.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_perceptron.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_sag.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_omp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/optimize.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/fixes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/deprecation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/estimator_checks.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/graph.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/random.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/bench.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/_scipy_sparse_lsqr_backport.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/mocking.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/stats.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/class_weight.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/metaestimators.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/extmath.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/testing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/arpack.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/sparsefuncs.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/linear_assignment_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools
copying sklearn/utils/sparsetools/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools
copying sklearn/utils/sparsetools/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools/tests
copying sklearn/utils/sparsetools/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_deprecation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_bench.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_utils.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_metaestimators.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_seq_dataset.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_stats.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_optimize.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_shortest_path.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_fast_dict.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_class_weight.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_estimator_checks.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_fixes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_sparsefuncs.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_murmurhash.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_linear_assignment.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_graph.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_extmath.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_random.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_testing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_metaestimators.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_multioutput.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_isotonic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_cross_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_docstring_parameters.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_dummy.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_check_build.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_discriminant_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_config.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_kernel_ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_calibration.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_naive_bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_learning_curve.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_init.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_grid_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_pipeline.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_random_projection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_kernel_approximation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
running build_clib
customize UnixCCompiler
#### ['clang', '-Wno-unused-result', '-Wsign-compare', '-Wunreachable-code', '-fno-common', '-dynamic', '-DNDEBUG', '-g', '-fwrapv', '-O3', '-Wall'] #######
customize UnixCCompiler using build_clib
building 'libsvm-skl' library
compiling C++ sources
C compiler: clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
creating build/temp.macosx-10.13-x86_64-3.7
creating build/temp.macosx-10.13-x86_64-3.7/sklearn
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/svm
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/svm/src
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/svm/src/libsvm
compile options: '-I/usr/local/lib/python3.7/site-packages/numpy/core/include -c'
clang++: sklearn/svm/src/libsvm/libsvm_template.cpp
ar: adding 1 object files to build/temp.macosx-10.13-x86_64-3.7/liblibsvm-skl.a
ranlib:@ build/temp.macosx-10.13-x86_64-3.7/liblibsvm-skl.a
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize UnixCCompiler
#### ['clang', '-Wno-unused-result', '-Wsign-compare', '-Wunreachable-code', '-fno-common', '-dynamic', '-DNDEBUG', '-g', '-fwrapv', '-O3', '-Wall'] #######
customize UnixCCompiler using build_ext
building 'sklearn.__check_build._check_build' extension
compiling C sources
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/__check_build
compile options: '-I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
clang: sklearn/__check_build/_check_build.c
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-3.7/sklearn/__check_build/_check_build.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -Lbuild/temp.macosx-10.13-x86_64-3.7 -o build/lib.macosx-10.13-x86_64-3.7/sklearn/__check_build/_check_build.cpython-37m-darwin.so
building 'sklearn.cluster._dbscan_inner' extension
compiling C++ sources
C compiler: clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/cluster
compile options: '-I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
clang++: sklearn/cluster/_dbscan_inner.cpp
In file included from sklearn/cluster/_dbscan_inner.cpp:514:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
^
sklearn/cluster/_dbscan_inner.cpp:5960:21: error: no member named 'exc_type' in '_ts'
*type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5961:22: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
*value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5962:19: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
*tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:5969:24: error: no member named 'exc_type' in '_ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5970:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5971:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:5972:13: error: no member named 'exc_type' in '_ts'
tstate->exc_type = type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5973:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tstate->exc_value = value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5974:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tstate->exc_traceback = tb;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:6029:24: error: no member named 'exc_type' in '_ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:6030:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:6031:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:6032:13: error: no member named 'exc_type' in '_ts'
tstate->exc_type = local_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:6033:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tstate->exc_value = local_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:6034:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tstate->exc_traceback = local_tb;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
1 warning and 15 errors generated.
In file included from sklearn/cluster/_dbscan_inner.cpp:514:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
^
sklearn/cluster/_dbscan_inner.cpp:5960:21: error: no member named 'exc_type' in '_ts'
*type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5961:22: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
*value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5962:19: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
*tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:5969:24: error: no member named 'exc_type' in '_ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5970:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5971:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:5972:13: error: no member named 'exc_type' in '_ts'
tstate->exc_type = type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5973:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tstate->exc_value = value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5974:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tstate->exc_traceback = tb;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:6029:24: error: no member named 'exc_type' in '_ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:6030:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:6031:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:6032:13: error: no member named 'exc_type' in '_ts'
tstate->exc_type = local_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:6033:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tstate->exc_value = local_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:6034:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tstate->exc_traceback = local_tb;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
1 warning and 15 errors generated.
error: Command "clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c sklearn/cluster/_dbscan_inner.cpp -o build/temp.macosx-10.13-x86_64-3.7/sklearn/cluster/_dbscan_inner.o -MMD -MF build/temp.macosx-10.13-x86_64-3.7/sklearn/cluster/_dbscan_inner.o.d" failed with exit status 1
----------------------------------------"><pre class="notranslate"><code class="notranslate">blis_info:
customize UnixCCompiler
libraries blis not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
openblas_info:
customize UnixCCompiler
customize UnixCCompiler
libraries openblas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries tatlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_3_10_blas_info:
customize UnixCCompiler
libraries satlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
customize UnixCCompiler
libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
atlas_blas_info:
customize UnixCCompiler
libraries f77blas,cblas,atlas not found in ['/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE
FOUND:
extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers']
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)]
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building library "libsvm-skl" sources
building extension "sklearn.__check_build._check_build" sources
building extension "sklearn.cluster._dbscan_inner" sources
building extension "sklearn.cluster._hierarchical" sources
building extension "sklearn.cluster._k_means_elkan" sources
building extension "sklearn.cluster._k_means" sources
building extension "sklearn.datasets._svmlight_format" sources
building extension "sklearn.decomposition._online_lda" sources
building extension "sklearn.decomposition.cdnmf_fast" sources
building extension "sklearn.ensemble._gradient_boosting" sources
building extension "sklearn.feature_extraction._hashing" sources
building extension "sklearn.manifold._utils" sources
building extension "sklearn.manifold._barnes_hut_tsne" sources
building extension "sklearn.metrics.pairwise_fast" sources
building extension "sklearn.metrics/cluster.expected_mutual_info_fast" sources
building extension "sklearn.neighbors.ball_tree" sources
building extension "sklearn.neighbors.kd_tree" sources
building extension "sklearn.neighbors.dist_metrics" sources
building extension "sklearn.neighbors.typedefs" sources
building extension "sklearn.neighbors.quad_tree" sources
building extension "sklearn.tree._tree" sources
building extension "sklearn.tree._splitter" sources
building extension "sklearn.tree._criterion" sources
building extension "sklearn.tree._utils" sources
building extension "sklearn.svm.libsvm" sources
building extension "sklearn.svm.liblinear" sources
building extension "sklearn.svm.libsvm_sparse" sources
building extension "sklearn._isotonic" sources
building extension "sklearn.linear_model.cd_fast" sources
building extension "sklearn.linear_model.sgd_fast" sources
building extension "sklearn.linear_model.sag_fast" sources
building extension "sklearn.utils.sparsefuncs_fast" sources
building extension "sklearn.utils.arrayfuncs" sources
building extension "sklearn.utils.murmurhash" sources
building extension "sklearn.utils.lgamma" sources
building extension "sklearn.utils.graph_shortest_path" sources
building extension "sklearn.utils.fast_dict" sources
building extension "sklearn.utils.seq_dataset" sources
building extension "sklearn.utils.weight_vector" sources
building extension "sklearn.utils._random" sources
building extension "sklearn.utils._logistic_sigmoid" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
creating build
creating build/lib.macosx-10.13-x86_64-3.7
creating build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/learning_curve.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/kernel_approximation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/random_projection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/isotonic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/multioutput.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/kernel_ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/naive_bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/pipeline.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/grid_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/discriminant_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/exceptions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/dummy.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/calibration.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
copying sklearn/cross_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/__check_build
copying sklearn/__check_build/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/__check_build
copying sklearn/__check_build/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/__check_build
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/_build_utils
copying sklearn/_build_utils/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/_build_utils
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/graph_lasso_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/robust_covariance.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/empirical_covariance_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/outlier_detection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
copying sklearn/covariance/shrunk_covariance_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests
copying sklearn/covariance/tests/test_graph_lasso.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests
copying sklearn/covariance/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests
copying sklearn/covariance/tests/test_covariance.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests
copying sklearn/covariance/tests/test_robust_covariance.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/covariance/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition
copying sklearn/cross_decomposition/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition
copying sklearn/cross_decomposition/cca_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition
copying sklearn/cross_decomposition/pls_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition/tests
copying sklearn/cross_decomposition/tests/test_pls.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition/tests
copying sklearn/cross_decomposition/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cross_decomposition/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/rfe.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/variance_threshold.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/univariate_selection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/mutual_info_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
copying sklearn/feature_selection/from_model.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_variance_threshold.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_rfe.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_from_model.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_feature_select.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_chi2.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
copying sklearn/feature_selection/tests/test_mutual_info.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_selection/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/gaussian_process.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/gpr.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/correlation_models.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/regression_models.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/gpc.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
copying sklearn/gaussian_process/kernels.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
copying sklearn/gaussian_process/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
copying sklearn/gaussian_process/tests/test_gpr.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
copying sklearn/gaussian_process/tests/test_kernels.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
copying sklearn/gaussian_process/tests/test_gpc.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
copying sklearn/gaussian_process/tests/test_gaussian_process.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/gaussian_process/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/gmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/dpgmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/bayesian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/gaussian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
copying sklearn/mixture/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
copying sklearn/mixture/tests/test_bayesian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
copying sklearn/mixture/tests/test_gmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
copying sklearn/mixture/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
copying sklearn/mixture/tests/test_gaussian_mixture.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
copying sklearn/mixture/tests/test_dpgmm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/mixture/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection
copying sklearn/model_selection/_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection
copying sklearn/model_selection/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection
copying sklearn/model_selection/_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection
copying sklearn/model_selection/_split.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
copying sklearn/model_selection/tests/test_split.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
copying sklearn/model_selection/tests/test_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
copying sklearn/model_selection/tests/test_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
copying sklearn/model_selection/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
copying sklearn/model_selection/tests/common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/model_selection/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
copying sklearn/neural_network/_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
copying sklearn/neural_network/multilayer_perceptron.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
copying sklearn/neural_network/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
copying sklearn/neural_network/_stochastic_optimizers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
copying sklearn/neural_network/rbm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests
copying sklearn/neural_network/tests/test_mlp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests
copying sklearn/neural_network/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests
copying sklearn/neural_network/tests/test_rbm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests
copying sklearn/neural_network/tests/test_stochastic_optimizers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neural_network/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
copying sklearn/preprocessing/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
copying sklearn/preprocessing/imputation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
copying sklearn/preprocessing/label.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
copying sklearn/preprocessing/data.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
copying sklearn/preprocessing/_function_transformer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
copying sklearn/preprocessing/tests/test_label.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
copying sklearn/preprocessing/tests/test_function_transformer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
copying sklearn/preprocessing/tests/test_imputation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
copying sklearn/preprocessing/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
copying sklearn/preprocessing/tests/test_data.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/preprocessing/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised
copying sklearn/semi_supervised/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised
copying sklearn/semi_supervised/label_propagation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised/tests
copying sklearn/semi_supervised/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised/tests
copying sklearn/semi_supervised/tests/test_label_propagation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/semi_supervised/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/mean_shift_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/hierarchical.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/_feature_agglomeration.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/k_means_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/affinity_propagation_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/spectral.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/birch.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
copying sklearn/cluster/dbscan_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_mean_shift.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_k_means.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_dbscan.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_birch.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_affinity_propagation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_hierarchical.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
copying sklearn/cluster/tests/test_spectral.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/cluster/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/kddcup99.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/olivetti_faces.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/svmlight_format.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/samples_generator.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/mlcomp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/covtype.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/lfw.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/rcv1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/twenty_newsgroups.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/mldata.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/species_distributions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/california_housing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
copying sklearn/datasets/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_lfw.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_mldata.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_rcv1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_kddcup99.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_covtype.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_svmlight_format.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_20news.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_samples_generator.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
copying sklearn/datasets/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/datasets/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/dict_learning.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/factor_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/kernel_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/online_lda.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/fastica_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/incremental_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/sparse_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/truncated_svd.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/nmf.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
copying sklearn/decomposition/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_dict_learning.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_fastica.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_truncated_svd.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_nmf.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_online_lda.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_kernel_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_sparse_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_factor_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_incremental_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
copying sklearn/decomposition/tests/test_pca.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/decomposition/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/bagging.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/gradient_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/voting_classifier.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/weight_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/forest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/partial_dependence.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
copying sklearn/ensemble/iforest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_partial_dependence.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_forest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_bagging.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_gradient_boosting_loss_functions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_weight_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_gradient_boosting.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_iforest.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
copying sklearn/ensemble/tests/test_voting_classifier.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/ensemble/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
copying sklearn/externals/test_externals_setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
copying sklearn/externals/funcsigs.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
copying sklearn/externals/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
copying sklearn/externals/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
copying sklearn/externals/six.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/disk.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/_memory_helpers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/format_stack.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/memory.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/func_inspect.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/logger.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/numpy_pickle_compat.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/_multiprocessing_helpers.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/numpy_pickle_utils.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/backports.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/numpy_pickle.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/_compat.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/my_exceptions.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/parallel.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/pool.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/_parallel_backends.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
copying sklearn/externals/joblib/hashing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/externals/joblib
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/dict_vectorizer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/text.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/hashing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/image.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
copying sklearn/feature_extraction/stop_words.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
copying sklearn/feature_extraction/tests/test_dict_vectorizer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
copying sklearn/feature_extraction/tests/test_image.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
copying sklearn/feature_extraction/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
copying sklearn/feature_extraction/tests/test_text.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
copying sklearn/feature_extraction/tests/test_feature_hasher.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/feature_extraction/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/locally_linear.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/t_sne.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/mds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/isomap.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
copying sklearn/manifold/spectral_embedding_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/test_isomap.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/test_mds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/test_t_sne.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/test_spectral_embedding.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
copying sklearn/manifold/tests/test_locally_linear.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/manifold/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/regression.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/classification.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/pairwise.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/ranking.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
copying sklearn/metrics/scorer.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_score_objects.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_ranking.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_pairwise.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_classification.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
copying sklearn/metrics/tests/test_regression.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
copying sklearn/metrics/cluster/bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
copying sklearn/metrics/cluster/unsupervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
copying sklearn/metrics/cluster/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
copying sklearn/metrics/cluster/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
copying sklearn/metrics/cluster/supervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests
copying sklearn/metrics/cluster/tests/test_supervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests
copying sklearn/metrics/cluster/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests
copying sklearn/metrics/cluster/tests/test_bicluster.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests
copying sklearn/metrics/cluster/tests/test_unsupervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/metrics/cluster/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/lof.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/regression.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/approximate.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/unsupervised.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/classification.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/graph.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/kde.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/nearest_centroid.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
copying sklearn/neighbors/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_nearest_centroid.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_kde.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_dist_metrics.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_lof.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_kd_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_approximate.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_neighbors.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_quad_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
copying sklearn/neighbors/tests/test_ball_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/neighbors/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/tree
copying sklearn/tree/tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree
copying sklearn/tree/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree
copying sklearn/tree/export.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree
copying sklearn/tree/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests
copying sklearn/tree/tests/test_tree.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests
copying sklearn/tree/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests
copying sklearn/tree/tests/test_export.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tree/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
copying sklearn/svm/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
copying sklearn/svm/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
copying sklearn/svm/classes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
copying sklearn/svm/bounds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
copying sklearn/svm/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests
copying sklearn/svm/tests/test_sparse.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests
copying sklearn/svm/tests/test_bounds.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests
copying sklearn/svm/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests
copying sklearn/svm/tests/test_svm.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/svm/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/ransac.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/perceptron.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/least_angle.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/logistic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/coordinate_descent.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/randomized_l1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/sag.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/omp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/passive_aggressive.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/stochastic_gradient.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/huber.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/theil_sen.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
copying sklearn/linear_model/base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_logistic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_sgd.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_huber.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_theil_sen.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_passive_aggressive.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_randomized_l1.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_least_angle.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_ransac.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_coordinate_descent.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_sparse_coordinate_descent.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_perceptron.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_sag.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
copying sklearn/linear_model/tests/test_omp.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/linear_model/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/optimize.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/fixes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/deprecation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/estimator_checks.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/graph.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/random.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/bench.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/_scipy_sparse_lsqr_backport.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/mocking.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/stats.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/class_weight.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/metaestimators.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/extmath.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/testing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/arpack.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/sparsefuncs.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/linear_assignment_.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
copying sklearn/utils/validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools
copying sklearn/utils/sparsetools/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools
copying sklearn/utils/sparsetools/setup.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools/tests
copying sklearn/utils/sparsetools/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/sparsetools/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_deprecation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_bench.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_utils.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_metaestimators.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_seq_dataset.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_stats.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_optimize.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_shortest_path.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_fast_dict.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_class_weight.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_estimator_checks.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_fixes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_sparsefuncs.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_murmurhash.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_linear_assignment.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_graph.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_extmath.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_random.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
copying sklearn/utils/tests/test_testing.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/utils/tests
creating build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_metaestimators.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_common.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_multioutput.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_isotonic.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_cross_validation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_docstring_parameters.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_dummy.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_check_build.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_discriminant_analysis.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_multiclass.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_config.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_kernel_ridge.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_calibration.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_naive_bayes.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_learning_curve.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_base.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_init.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_grid_search.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_pipeline.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_random_projection.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
copying sklearn/tests/test_kernel_approximation.py -> build/lib.macosx-10.13-x86_64-3.7/sklearn/tests
running build_clib
customize UnixCCompiler
#### ['clang', '-Wno-unused-result', '-Wsign-compare', '-Wunreachable-code', '-fno-common', '-dynamic', '-DNDEBUG', '-g', '-fwrapv', '-O3', '-Wall'] #######
customize UnixCCompiler using build_clib
building 'libsvm-skl' library
compiling C++ sources
C compiler: clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
creating build/temp.macosx-10.13-x86_64-3.7
creating build/temp.macosx-10.13-x86_64-3.7/sklearn
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/svm
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/svm/src
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/svm/src/libsvm
compile options: '-I/usr/local/lib/python3.7/site-packages/numpy/core/include -c'
clang++: sklearn/svm/src/libsvm/libsvm_template.cpp
ar: adding 1 object files to build/temp.macosx-10.13-x86_64-3.7/liblibsvm-skl.a
ranlib:@ build/temp.macosx-10.13-x86_64-3.7/liblibsvm-skl.a
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize UnixCCompiler
#### ['clang', '-Wno-unused-result', '-Wsign-compare', '-Wunreachable-code', '-fno-common', '-dynamic', '-DNDEBUG', '-g', '-fwrapv', '-O3', '-Wall'] #######
customize UnixCCompiler using build_ext
building 'sklearn.__check_build._check_build' extension
compiling C sources
C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/__check_build
compile options: '-I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
clang: sklearn/__check_build/_check_build.c
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-3.7/sklearn/__check_build/_check_build.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -Lbuild/temp.macosx-10.13-x86_64-3.7 -o build/lib.macosx-10.13-x86_64-3.7/sklearn/__check_build/_check_build.cpython-37m-darwin.so
building 'sklearn.cluster._dbscan_inner' extension
compiling C++ sources
C compiler: clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall
creating build/temp.macosx-10.13-x86_64-3.7/sklearn/cluster
compile options: '-I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c'
clang++: sklearn/cluster/_dbscan_inner.cpp
In file included from sklearn/cluster/_dbscan_inner.cpp:514:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
^
sklearn/cluster/_dbscan_inner.cpp:5960:21: error: no member named 'exc_type' in '_ts'
*type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5961:22: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
*value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5962:19: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
*tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:5969:24: error: no member named 'exc_type' in '_ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5970:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5971:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:5972:13: error: no member named 'exc_type' in '_ts'
tstate->exc_type = type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5973:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tstate->exc_value = value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5974:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tstate->exc_traceback = tb;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:6029:24: error: no member named 'exc_type' in '_ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:6030:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:6031:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:6032:13: error: no member named 'exc_type' in '_ts'
tstate->exc_type = local_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:6033:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tstate->exc_value = local_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:6034:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tstate->exc_traceback = local_tb;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
1 warning and 15 errors generated.
In file included from sklearn/cluster/_dbscan_inner.cpp:514:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/usr/local/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
^
sklearn/cluster/_dbscan_inner.cpp:5960:21: error: no member named 'exc_type' in '_ts'
*type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5961:22: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
*value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5962:19: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
*tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:5969:24: error: no member named 'exc_type' in '_ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5970:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5971:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:5972:13: error: no member named 'exc_type' in '_ts'
tstate->exc_type = type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:5973:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tstate->exc_value = value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:5974:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tstate->exc_traceback = tb;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:6029:24: error: no member named 'exc_type' in '_ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:6030:25: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:6031:22: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:6032:13: error: no member named 'exc_type' in '_ts'
tstate->exc_type = local_type;
~~~~~~ ^
sklearn/cluster/_dbscan_inner.cpp:6033:13: error: no member named 'exc_value' in '_ts'; did you mean 'curexc_value'?
tstate->exc_value = local_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:237:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
sklearn/cluster/_dbscan_inner.cpp:6034:13: error: no member named 'exc_traceback' in '_ts'; did you mean 'curexc_traceback'?
tstate->exc_traceback = local_tb;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:238:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
1 warning and 15 errors generated.
error: Command "clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/lib/python3.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c sklearn/cluster/_dbscan_inner.cpp -o build/temp.macosx-10.13-x86_64-3.7/sklearn/cluster/_dbscan_inner.o -MMD -MF build/temp.macosx-10.13-x86_64-3.7/sklearn/cluster/_dbscan_inner.o.d" failed with exit status 1
----------------------------------------
</code></pre></div>
<p dir="auto">Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;<strong>file</strong>='/private/var/folders/qn/3vfg7p391r34rx_frld05sw40000gn/T/pip-install-2nbtn27s/scikit-learn/setup.py';f=getattr(tokenize, 'open', open)(<strong>file</strong>);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, <strong>file</strong>, 'exec'))" install --record /private/var/folders/qn/3vfg7p391r34rx_frld05sw40000gn/T/pip-record-jbutn199/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/qn/3vfg7p391r34rx_frld05sw40000gn/T/pip-install-2nbtn27s/scikit-learn/</p>
</blockquote> | <h4 dir="auto">Description</h4>
<p dir="auto">Unable to <code class="notranslate">pip install</code>(compile error: <code class="notranslate">PyThreadState</code> has no member ...) with Python 3.7rc1.</p>
<p dir="auto">My apologies if this has been reported, but I couldn't find it in the issues (closed/open) nor any pull request for it.</p>
<p dir="auto">There have been similar issues with pyyaml (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="293224582" data-permission-text="Title is private" data-url="https://github.com/yaml/pyyaml/issues/126" data-hovercard-type="issue" data-hovercard-url="/yaml/pyyaml/issues/126/hovercard" href="https://github.com/yaml/pyyaml/issues/126">yaml/pyyaml#126</a>), numpy (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="293204212" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/10500" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/10500/hovercard" href="https://github.com/numpy/numpy/issues/10500">numpy/numpy#10500</a>), cython (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="270862465" data-permission-text="Title is private" data-url="https://github.com/cython/cython/issues/1978" data-hovercard-type="issue" data-hovercard-url="/cython/cython/issues/1978/hovercard" href="https://github.com/cython/cython/issues/1978">cython/cython#1978</a>), and pygame (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="293498275" data-permission-text="Title is private" data-url="https://github.com/pygame/pygame/issues/382" data-hovercard-type="issue" data-hovercard-url="/pygame/pygame/issues/382/hovercard" href="https://github.com/pygame/pygame/issues/382">pygame/pygame#382</a>).</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<p dir="auto">Install Python 3.7rc1.<br>
<code class="notranslate">pip install scikit-learn</code></p>
<h4 dir="auto">Expected Results</h4>
<p dir="auto"><code class="notranslate">pip</code> succeeds.</p>
<h4 dir="auto">Actual Results</h4>
<p dir="auto">Compilation errors:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
sklearn/cluster/_dbscan_inner.cpp: In function ‘int
__Pyx__GetException(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
sklearn/cluster/_dbscan_inner.cpp:6029:24: error: ‘PyThreadState’ has no member named ‘exc_type’
tmp_type = tstate->exc_type;
^
sklearn/cluster/_dbscan_inner.cpp:6030:25: error: ‘PyThreadState’ has no member named ‘exc_value’
tmp_value = tstate->exc_value;
^
sklearn/cluster/_dbscan_inner.cpp:6031:22: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tmp_tb = tstate->exc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:6032:13: error: ‘PyThreadState’ has no member named ‘exc_type’
tstate->exc_type = local_type;
^
sklearn/cluster/_dbscan_inner.cpp:6033:13: error: ‘PyThreadState’ has no member named ‘exc_value’
tstate->exc_value = local_value;
^
sklearn/cluster/_dbscan_inner.cpp:6034:13: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tstate->exc_traceback = local_tb;
^
error: Command "g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
-fwrapv -O3 -Wall -fPIC
-I/data/install/lib/python3.7/site-packages/numpy/core/include
-I/data/install/lib/python3.7/site-packages/numpy/core/include
-I/data/install/include/python3.7m -c sklearn/cluster/_dbscan_inner.cpp -o
build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o -MMD -MF
build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o.d" failed with exit
status 1
"><pre class="notranslate"><code class="notranslate">...
sklearn/cluster/_dbscan_inner.cpp: In function ‘int
__Pyx__GetException(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
sklearn/cluster/_dbscan_inner.cpp:6029:24: error: ‘PyThreadState’ has no member named ‘exc_type’
tmp_type = tstate->exc_type;
^
sklearn/cluster/_dbscan_inner.cpp:6030:25: error: ‘PyThreadState’ has no member named ‘exc_value’
tmp_value = tstate->exc_value;
^
sklearn/cluster/_dbscan_inner.cpp:6031:22: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tmp_tb = tstate->exc_traceback;
^
sklearn/cluster/_dbscan_inner.cpp:6032:13: error: ‘PyThreadState’ has no member named ‘exc_type’
tstate->exc_type = local_type;
^
sklearn/cluster/_dbscan_inner.cpp:6033:13: error: ‘PyThreadState’ has no member named ‘exc_value’
tstate->exc_value = local_value;
^
sklearn/cluster/_dbscan_inner.cpp:6034:13: error: ‘PyThreadState’ has no member named ‘exc_traceback’
tstate->exc_traceback = local_tb;
^
error: Command "g++ -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g
-fwrapv -O3 -Wall -fPIC
-I/data/install/lib/python3.7/site-packages/numpy/core/include
-I/data/install/lib/python3.7/site-packages/numpy/core/include
-I/data/install/include/python3.7m -c sklearn/cluster/_dbscan_inner.cpp -o
build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o -MMD -MF
build/temp.linux-x86_64-3.7/sklearn/cluster/_dbscan_inner.o.d" failed with exit
status 1
</code></pre></div>
<h4 dir="auto">Versions</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Linux-3.10.0-862.el7.x86_64-x86_64-with-redhat-7.5-Maipo
Python 3.7.0rc1 (default, Jun 19 2018, 10:54:58)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
NumPy 1.14.5
SciPy 1.1.0"><pre class="notranslate"><code class="notranslate">Linux-3.10.0-862.el7.x86_64-x86_64-with-redhat-7.5-Maipo
Python 3.7.0rc1 (default, Jun 19 2018, 10:54:58)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
NumPy 1.14.5
SciPy 1.1.0
</code></pre></div> | 1 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: 4.3.0</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -> celery:4.3.0 (rhubarb) kombu:4.6.3 py:3.6.7
billiard:3.6.0.0 py-amqp:2.5.0
platform -> system:Linux arch:64bit
kernel version:4.15.0-1044-aws imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:disabled"><pre class="notranslate"><code class="notranslate">software -> celery:4.3.0 (rhubarb) kombu:4.6.3 py:3.6.7
billiard:3.6.0.0 py-amqp:2.5.0
platform -> system:Linux arch:64bit
kernel version:4.15.0-1044-aws imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:disabled
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: 3.6.7</li>
<li><strong>Minimal Celery Version</strong>: 4.3.0</li>
<li><strong>Minimal Kombu Version</strong>: 4.6.3</li>
<li><strong>Minimal Broker Version</strong>: RabbitMQ 3.7.17</li>
<li><strong>Minimal Result Backend Version</strong>: Postgres 10.10</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: Ubuntu 18.04</li>
<li><strong>Minimal Broker Client Version</strong>: N/A</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="alabaster==0.7.10
alembic==0.8.10
amqp==2.5.0
appdirs==1.4.3
appnope==0.1.0
asn1crypto==0.22.0
astroid==1.6.0
Babel==2.5.0
backcall==0.1.0
backports-abc==0.5
billiard==3.6.0.0
bitarray==0.8.1
bleach==3.0.2
cached-property==1.3.0
celery==4.3.0
certifi==2018.10.15
cffi==1.10.0
chardet==3.0.4
ciso8601==2.1.1
Click==7.0
cloudant==0.5.10
CommonMark==0.7.4
configparser==3.5.0
cookies==2.2.1
coverage==4.4.2
coveralls==1.2.0
croniter==0.3.19
cryptography==2.4.2
cycler==0.10.0
DateTime==4.2
decorator==4.3.0
defusedxml==0.5.0
dicttoxml==1.7.4
dill==0.2.7.1
dnspython==1.15.0
docker-py==1.10.6
docker-pycreds==0.2.1
docopt==0.6.2
docutils==0.14
entrypoints==0.2.3
flake8==3.4.1
Flask==1.0.2
Flask-Admin==1.5.3
Flask-Cache==0.13.1
Flask-Login==0.2.11
flask-swagger==0.2.13
Flask-WTF==0.12
flower==0.9.3
freezegun==0.3.9
funcsigs==1.0.0
future==0.15.2
gevent==1.2.2
gitdb2==2.0.2
GitPython==2.1.5
greenlet==0.4.12
gunicorn==19.9.0
hive-thrift-py==0.0.1
html5lib==0.999999999
httplib2==0.12.1
idna==2.7
imagesize==0.7.1
impyla==0.14.0
ipykernel==4.10.0
ipython==5.8.0
ipython-genutils==0.2.0
ipywidgets==6.0.0
isodate==0.5.4
isort==4.2.15
itsdangerous==1.1.0
jedi==0.13.1
Jinja2==2.10.1
jmespath==0.9.3
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.3.1
jupyter-console==5.1.0
jupyter-core==4.4.0
kazoo==2.4.0
kombu==4.6.3
lazy-object-proxy==1.3.1
lockfile==0.12.2
lxml==3.8.0
lz4==0.11.1
Mako==1.0.7
Markdown==2.6.9
MarkupSafe==1.1.0
matplotlib==2.0.2
mccabe==0.6.1
mistune==0.8.4
mock==2.0.0
moto==1.1.1
nbconvert==5.4.0
nbformat==4.4.0
nose==1.3.7
nose-parameterized==0.6.0
notebook==6.0.0
numpy==1.13.1
oauth2==1.9.0.post1
ordereddict==1.1
packaging==16.8
pandas==0.20.3
pandocfilters==1.4.2
parso==0.5.0
pathlib2==2.3.0
patsy==0.5.0
pbr==3.1.1
pexpect==4.6.0
pg8000==1.11.0
pickleshare==0.7.5
pika==1.1.0
pluggy==0.6.0
ply==3.10
prometheus-client==0.4.2
prompt-toolkit==1.0.16
psutil==4.4.2
ptyprocess==0.6.0
py==1.5.2
pyaml==17.8.0
pycodestyle==2.3.1
pycparser==2.18
pyflakes==1.5.0
Pygments==2.2.0
pylint==1.8.0
pyOpenSSL==18.0.0
pyparsing==2.2.0
pytest==3.2.2
pytest-catchlog==1.2.2
pytest-cov==2.5.1
pytest-mock==1.6.3
pytest-pylint==0.7.1
python-daemon==2.1.2
python-dateutil==2.7.5
python-editor==1.0.3
python-json-logger==0.1.8
python-nvd3==0.14.2
python-slugify==1.1.4
python-snappy==0.5.3
pytz==2017.2
PyYAML==5.1.1
pyzmq==17.1.2
qtconsole==4.3.0
requests==2.21.0
requests-file==1.4.2
requests-futures==0.9.4
requests-toolbelt==0.8.0
scandir==1.5
scikit-learn==0.19.2
scipy==0.19.1
seaborn==0.9.0
selenium==3.5.0
Send2Trash==1.5.0
setproctitle==1.1.10
shortuuid==0.5.0
simple-salesforce==0.74.2
simplegeneric==0.8.1
singledispatch==3.4.0.3
six==1.11.0
smmap2==2.0.3
snowballstemmer==1.2.1
Sphinx==1.6.3
sphinx-argparse==0.2.1
sphinx-rtd-theme==0.2.4
sphinxcontrib-websupport==1.0.1
SQLAlchemy==1.3.5
statsmodels==0.9.0
tabulate==0.7.7
terminado==0.8.1
testpath==0.4.2
thrift==0.9.3
thriftpy==0.3.9
tldextract==2.1.0
tornado==5.1.1
tox==2.9.1
tqdm==4.15.0
traitlets==4.3.2
unicodecsv==0.14.1
Unidecode==0.4.21
urllib3==1.24.2
vertica-python==0.7.3
vine==1.3.0
virtualenv==16.4.3
wcwidth==0.1.7
webencodings==0.5.1
websocket-client==0.44.0
Werkzeug==0.14.1
widgetsnbextension==2.0.0
wrapt==1.10.11
WTForms==2.1
xmltodict==0.11.0
xxhash==1.0.1
zeep==2.3.0
zope.deprecation==4.3.0
zope.interface==4.4.2"><pre class="notranslate"><code class="notranslate">alabaster==0.7.10
alembic==0.8.10
amqp==2.5.0
appdirs==1.4.3
appnope==0.1.0
asn1crypto==0.22.0
astroid==1.6.0
Babel==2.5.0
backcall==0.1.0
backports-abc==0.5
billiard==3.6.0.0
bitarray==0.8.1
bleach==3.0.2
cached-property==1.3.0
celery==4.3.0
certifi==2018.10.15
cffi==1.10.0
chardet==3.0.4
ciso8601==2.1.1
Click==7.0
cloudant==0.5.10
CommonMark==0.7.4
configparser==3.5.0
cookies==2.2.1
coverage==4.4.2
coveralls==1.2.0
croniter==0.3.19
cryptography==2.4.2
cycler==0.10.0
DateTime==4.2
decorator==4.3.0
defusedxml==0.5.0
dicttoxml==1.7.4
dill==0.2.7.1
dnspython==1.15.0
docker-py==1.10.6
docker-pycreds==0.2.1
docopt==0.6.2
docutils==0.14
entrypoints==0.2.3
flake8==3.4.1
Flask==1.0.2
Flask-Admin==1.5.3
Flask-Cache==0.13.1
Flask-Login==0.2.11
flask-swagger==0.2.13
Flask-WTF==0.12
flower==0.9.3
freezegun==0.3.9
funcsigs==1.0.0
future==0.15.2
gevent==1.2.2
gitdb2==2.0.2
GitPython==2.1.5
greenlet==0.4.12
gunicorn==19.9.0
hive-thrift-py==0.0.1
html5lib==0.999999999
httplib2==0.12.1
idna==2.7
imagesize==0.7.1
impyla==0.14.0
ipykernel==4.10.0
ipython==5.8.0
ipython-genutils==0.2.0
ipywidgets==6.0.0
isodate==0.5.4
isort==4.2.15
itsdangerous==1.1.0
jedi==0.13.1
Jinja2==2.10.1
jmespath==0.9.3
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.3.1
jupyter-console==5.1.0
jupyter-core==4.4.0
kazoo==2.4.0
kombu==4.6.3
lazy-object-proxy==1.3.1
lockfile==0.12.2
lxml==3.8.0
lz4==0.11.1
Mako==1.0.7
Markdown==2.6.9
MarkupSafe==1.1.0
matplotlib==2.0.2
mccabe==0.6.1
mistune==0.8.4
mock==2.0.0
moto==1.1.1
nbconvert==5.4.0
nbformat==4.4.0
nose==1.3.7
nose-parameterized==0.6.0
notebook==6.0.0
numpy==1.13.1
oauth2==1.9.0.post1
ordereddict==1.1
packaging==16.8
pandas==0.20.3
pandocfilters==1.4.2
parso==0.5.0
pathlib2==2.3.0
patsy==0.5.0
pbr==3.1.1
pexpect==4.6.0
pg8000==1.11.0
pickleshare==0.7.5
pika==1.1.0
pluggy==0.6.0
ply==3.10
prometheus-client==0.4.2
prompt-toolkit==1.0.16
psutil==4.4.2
ptyprocess==0.6.0
py==1.5.2
pyaml==17.8.0
pycodestyle==2.3.1
pycparser==2.18
pyflakes==1.5.0
Pygments==2.2.0
pylint==1.8.0
pyOpenSSL==18.0.0
pyparsing==2.2.0
pytest==3.2.2
pytest-catchlog==1.2.2
pytest-cov==2.5.1
pytest-mock==1.6.3
pytest-pylint==0.7.1
python-daemon==2.1.2
python-dateutil==2.7.5
python-editor==1.0.3
python-json-logger==0.1.8
python-nvd3==0.14.2
python-slugify==1.1.4
python-snappy==0.5.3
pytz==2017.2
PyYAML==5.1.1
pyzmq==17.1.2
qtconsole==4.3.0
requests==2.21.0
requests-file==1.4.2
requests-futures==0.9.4
requests-toolbelt==0.8.0
scandir==1.5
scikit-learn==0.19.2
scipy==0.19.1
seaborn==0.9.0
selenium==3.5.0
Send2Trash==1.5.0
setproctitle==1.1.10
shortuuid==0.5.0
simple-salesforce==0.74.2
simplegeneric==0.8.1
singledispatch==3.4.0.3
six==1.11.0
smmap2==2.0.3
snowballstemmer==1.2.1
Sphinx==1.6.3
sphinx-argparse==0.2.1
sphinx-rtd-theme==0.2.4
sphinxcontrib-websupport==1.0.1
SQLAlchemy==1.3.5
statsmodels==0.9.0
tabulate==0.7.7
terminado==0.8.1
testpath==0.4.2
thrift==0.9.3
thriftpy==0.3.9
tldextract==2.1.0
tornado==5.1.1
tox==2.9.1
tqdm==4.15.0
traitlets==4.3.2
unicodecsv==0.14.1
Unidecode==0.4.21
urllib3==1.24.2
vertica-python==0.7.3
vine==1.3.0
virtualenv==16.4.3
wcwidth==0.1.7
webencodings==0.5.1
websocket-client==0.44.0
Werkzeug==0.14.1
widgetsnbextension==2.0.0
wrapt==1.10.11
WTForms==2.1
xmltodict==0.11.0
xxhash==1.0.1
zeep==2.3.0
zope.deprecation==4.3.0
zope.interface==4.4.2
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
</p><ul dir="auto">
<li>Erlang/OTP 22 [erts-10.4.4] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1]</li>
<li>RabbitMQ 3.7.17</li>
<li>Ubuntu 18.04</li>
<li>Python 3.6.7</li>
<li>celery 4.3.0</li>
<li>kombu 4.6.3</li>
</ul>
<p dir="auto">rabbitmq.config</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[
{ssl, [{versions, ['tlsv1.2', 'tlsv1.1']}]},
{rabbit,
[
{tcp_listeners, [{"127.0.0.1", 5672}]},
{ssl_listeners, [5671]},
{ssl_options, [{cacertfile, "/usr/local/share/ca-certificates/ca.crt"},
{certfile, "/usr/local/share/ca-certificates/server.crt"},
{keyfile, "/usr/local/share/private/server.key"},
{versions, ['tlsv1.2', 'tlsv1.1']},
{verify, verify_peer},
{fail_if_no_peer_cert, true}
]},
{auth_mechanisms, ['PLAIN', 'AMQPLAIN', 'EXTERNAL']}
]
}
]."><pre class="notranslate"><code class="notranslate">[
{ssl, [{versions, ['tlsv1.2', 'tlsv1.1']}]},
{rabbit,
[
{tcp_listeners, [{"127.0.0.1", 5672}]},
{ssl_listeners, [5671]},
{ssl_options, [{cacertfile, "/usr/local/share/ca-certificates/ca.crt"},
{certfile, "/usr/local/share/ca-certificates/server.crt"},
{keyfile, "/usr/local/share/private/server.key"},
{versions, ['tlsv1.2', 'tlsv1.1']},
{verify, verify_peer},
{fail_if_no_peer_cert, true}
]},
{auth_mechanisms, ['PLAIN', 'AMQPLAIN', 'EXTERNAL']}
]
}
].
</code></pre></div>
<p dir="auto">celeryconfig.py</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import ssl
broker_url="amqps://USER:[email protected]:5671//"
result_backend="I am using postgresql"
include=["my_tasks.py"]
task_acks_late=True
worker_prefetch_multiplier=1
worker_max_tasks_per_child=25
task_default_rate_limit="50/m"
timezone="UTC"
broker_use_ssl={'keyfile': 'beep.key', 'certfile': 'beep.crt', 'ca_certs': 'boop.crt', 'cert_reqs': ssl.CERT_REQUIRED}"><pre class="notranslate"><code class="notranslate">import ssl
broker_url="amqps://USER:[email protected]:5671//"
result_backend="I am using postgresql"
include=["my_tasks.py"]
task_acks_late=True
worker_prefetch_multiplier=1
worker_max_tasks_per_child=25
task_default_rate_limit="50/m"
timezone="UTC"
broker_use_ssl={'keyfile': 'beep.key', 'certfile': 'beep.crt', 'ca_certs': 'boop.crt', 'cert_reqs': ssl.CERT_REQUIRED}
</code></pre></div>
<p dir="auto">I have also verified that all my <code class="notranslate">.crt</code> and .<code class="notranslate">key</code> files are in <code class="notranslate">.pem</code> format.</p>
<p dir="auto"></p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
I have a VPC that is setup on AWS with two EC2 machines running, Machine A and Machine B. RabbitMQ and a celery producer lives in Machine A and the celery workers are living in Machine B. The celery producer pushes in tasks into RabbitMQ via localhost on TCP port 5672. The workers are having trouble authenticating themselves with RabbitMQ on port 5671. I get a SSLv3 handshake error.
</p><p dir="auto">I start my rabbitmq server, with the above mentioned configuration, with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sudo service rabbit-mq start
sudo rabbitmq-plugins enable rabbitmq_auth_mechanism_ssl"><pre class="notranslate"><code class="notranslate">sudo service rabbit-mq start
sudo rabbitmq-plugins enable rabbitmq_auth_mechanism_ssl
</code></pre></div>
<p dir="auto">I start my celery application with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery -A celery_app worker -l info --config celeryconfig --concurrency=4 -n "%h:Worker-Name" -O fair"><pre class="notranslate"><code class="notranslate">celery -A celery_app worker -l info --config celeryconfig --concurrency=4 -n "%h:Worker-Name" -O fair
</code></pre></div>
<p dir="auto">My celery_app.py</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from __future__ import absolute_import, unicode_literals
from celery import Celery
celery_app = Celery("app_name")
if __name__ == '__main__':
celery_app.start()"><pre class="notranslate"><code class="notranslate">from __future__ import absolute_import, unicode_literals
from celery import Celery
celery_app = Celery("app_name")
if __name__ == '__main__':
celery_app.start()
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">I read that the latest version of Erlang/RabbitMQ should not be accepting SSLv3 due to some vulnerabilities, so I am not sure why Celery is trying to authenticate with SSLv3. In the RabbitMQ configuration file, I specified to not use SSLv3 authentication and also reject connection if the client (in this case, celery) cannot produce a certificate.</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">When I start up my celery worker, I would get this error message</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="consumer: Cannot connect to amqps://USER:**@rabbit-endpoint.com:5671//: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:847)."><pre class="notranslate"><code class="notranslate">consumer: Cannot connect to amqps://USER:**@rabbit-endpoint.com:5671//: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:847).
</code></pre></div>
<p dir="auto">I get this message when I set this RabbitMQ configuration:<br>
<code class="notranslate">{fail_if_no_peer_cert, true}</code></p>
<p dir="auto">However, the error goes away if I change the RabbitMQ config to:<br>
<code class="notranslate">{fail_if_no_peer_cert, false}</code><br>
But what is the point of using TLS if people can just connect to my RabbitMQ without providing their SSL certificates</p> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical enhancement to an existing feature.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed enhancements.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the if the same enhancement was already implemented in the<br>
master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Brief Summary</h1>
<p dir="auto">I would like to be able to configure <code class="notranslate">health_check_interval</code> (i.e.: <a href="https://github.com/andymccurdy/redis-py/blob/1a41cfd95a53a95b078084d8627be6b6fba3bb71/redis/client.py#L737-L749">https://github.com/andymccurdy/redis-py/blob/1a41cfd95a53a95b078084d8627be6b6fba3bb71/redis/client.py#L737-L749</a>) for the Redis results backend</p>
<h1 dir="auto">Design</h1>
<h2 dir="auto">Architectural Considerations</h2>
<p dir="auto">None</p>
<h2 dir="auto">Proposed Behavior</h2>
<p dir="auto">This would be an opt-in configuration to Redis via Celery. This lets us have more control over the Redis functionality and enables us to tune it to our desire.</p>
<h2 dir="auto">Proposed UI/UX</h2>
<p dir="auto">New environment variable that allows setting this value</p>
<h2 dir="auto">Diagrams</h2>
<p dir="auto">N/A</p>
<h2 dir="auto">Alternatives</h2>
<p dir="auto">None</p> | 0 |
<p dir="auto">Any updates?</p>
<p dir="auto">I got a lot of ts errors when I used <code class="notranslate">@deno-types</code> to include type definitions for the <a href="https://github.com/sindresorhus/ky">ky</a> libarry.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// @deno-types="https://deno.land/x/[email protected]/index.d.ts"
export { default as ky } from "https://deno.land/x/[email protected]/index.js"><pre class="notranslate"><code class="notranslate">// @deno-types="https://deno.land/x/[email protected]/index.d.ts"
export { default as ky } from "https://deno.land/x/[email protected]/index.js
</code></pre></div>
<p dir="auto">From the error message, it is the <code class="notranslate">lib.dom.d.ts</code> which causes conflicts with other definitions.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TS2300 [ERROR]: Duplicate identifier 'Event'.
declare class Event {
~~~~~
at asset:///lib.deno.web.d.ts:21:15
'Event' was also declared here.
interface Event {
~~~~~
at asset:///lib.dom.d.ts:5285:11 and here.
declare var Event: {
~~~~~
at asset:///lib.dom.d.ts:5353:13
..."><pre class="notranslate"><code class="notranslate">TS2300 [ERROR]: Duplicate identifier 'Event'.
declare class Event {
~~~~~
at asset:///lib.deno.web.d.ts:21:15
'Event' was also declared here.
interface Event {
~~~~~
at asset:///lib.dom.d.ts:5285:11 and here.
declare var Event: {
~~~~~
at asset:///lib.dom.d.ts:5353:13
...
</code></pre></div>
<p dir="auto"><em>Originally posted by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cj1128/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cj1128">@cj1128</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="552527682" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3726" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3726/hovercard?comment_id=714194714&comment_type=issue_comment" href="https://github.com/denoland/deno/issues/3726#issuecomment-714194714">#3726 (comment)</a></em></p> | <p dir="auto">When bundling the following code to be used in the browser, I get the error <em>Uncaught SyntaxError: Identifier 'i2' has already been declared</em> when loaded in the browser.</p>
<h3 dir="auto">index.html</h3>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<script type="module" src="bundle.js"></script>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">script</span> <span class="pl-c1">type</span>="<span class="pl-s">module</span>" <span class="pl-c1">src</span>="<span class="pl-s">bundle.js</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">script</span><span class="pl-kos">></span></pre></div>
<h3 dir="auto">modules.js</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import rough from 'https://unpkg.com/roughjs/bundled/rough.esm.js?module';
import { LitElement } from 'https://unpkg.com/lit-element/lit-element.js?module';
export { rough, LitElement }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">rough</span> <span class="pl-k">from</span> <span class="pl-s">'https://unpkg.com/roughjs/bundled/rough.esm.js?module'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">LitElement</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'https://unpkg.com/lit-element/lit-element.js?module'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">rough</span><span class="pl-kos">,</span> <span class="pl-v">LitElement</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">I'm using the following command to bundle the code:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno bundle modules.js bundle.js"><pre class="notranslate">deno bundle modules.js bundle.js</pre></div>
<p dir="auto">I was using the latest version 1.16.1 to run this, but because I remember this used to work with no errors, I compiled a list of any errors for each version in the table below.</p>
<p dir="auto">I found that there were no errors from version 1.7.0 until 1.15.0.</p>
<p dir="auto">The error also goes away if I remove the import of the <em>rough</em> module from <em>modules.js</em> which I think also includes modules that are duplicated in the <em>lit-element</em> module.</p>
<p dir="auto">This error looks like it might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="777447960" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/8959" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/8959/hovercard" href="https://github.com/denoland/deno/issues/8959">#8959</a> which was closed after a fix earlier this year, but both output <em>Uncaught SyntaxError: Identifier 'i2' has already been declared</em></p>
<h3 dir="auto">Windows 10 Linux Subsystem</h3>
<p dir="auto">Build: 22000<br>
Branch: co_release<br>
Release: Ubuntu 20.04.3 LTS,<br>
Kernel: Linux 5.10.16.3-microsoft-standard-WSL2</p>
<table role="table">
<thead>
<tr>
<th>Version</th>
<th>Error</th>
</tr>
</thead>
<tbody>
<tr>
<td>1.16.1</td>
<td>Uncaught SyntaxError: Identifier 'i2' has already been declared</td>
</tr>
<tr>
<td>1.16.0</td>
<td>Uncaught SyntaxError: Identifier 'i2' has already been declared</td>
</tr>
<tr>
<td>1.15.3</td>
<td>Uncaught SyntaxError: Identifier 'i2' has already been declared</td>
</tr>
<tr>
<td>1.15.2</td>
<td>Uncaught SyntaxError: Identifier 'i2' has already been declared</td>
</tr>
<tr>
<td>1.15.1</td>
<td>Uncaught SyntaxError: Identifier 'i2' has already been declared</td>
</tr>
<tr>
<td>1.15.0</td>
<td> </td>
</tr>
<tr>
<td>1.14.3</td>
<td> </td>
</tr>
<tr>
<td>1.14.2</td>
<td> </td>
</tr>
<tr>
<td>1.14.1</td>
<td> </td>
</tr>
<tr>
<td>1.14.0</td>
<td> </td>
</tr>
<tr>
<td>1.13.2</td>
<td> </td>
</tr>
<tr>
<td>1.13.1</td>
<td> </td>
</tr>
<tr>
<td>1.13.0</td>
<td> </td>
</tr>
<tr>
<td>1.12.2</td>
<td> </td>
</tr>
<tr>
<td>1.12.1</td>
<td> </td>
</tr>
<tr>
<td>1.12.0</td>
<td> </td>
</tr>
<tr>
<td>1.11.5</td>
<td> </td>
</tr>
<tr>
<td>1.11.4</td>
<td> </td>
</tr>
<tr>
<td>1.11.3</td>
<td> </td>
</tr>
<tr>
<td>1.11.2</td>
<td> </td>
</tr>
<tr>
<td>1.11.1</td>
<td> </td>
</tr>
<tr>
<td>1.11.0</td>
<td> </td>
</tr>
<tr>
<td>1.10.3</td>
<td> </td>
</tr>
<tr>
<td>1.10.2</td>
<td> </td>
</tr>
<tr>
<td>1.10.1</td>
<td> </td>
</tr>
<tr>
<td>1.10.0</td>
<td>This version can't be found</td>
</tr>
<tr>
<td>1.9.2</td>
<td> </td>
</tr>
<tr>
<td>1.9.1</td>
<td> </td>
</tr>
<tr>
<td>1.9.0</td>
<td> </td>
</tr>
<tr>
<td>1.8.3</td>
<td> </td>
</tr>
<tr>
<td>1.8.2</td>
<td> </td>
</tr>
<tr>
<td>1.8.1</td>
<td> </td>
</tr>
<tr>
<td>1.8.0</td>
<td> </td>
</tr>
<tr>
<td>1.7.5</td>
<td> </td>
</tr>
<tr>
<td>1.7.4</td>
<td> </td>
</tr>
<tr>
<td>1.7.3</td>
<td>This version can't be found</td>
</tr>
<tr>
<td>1.7.2</td>
<td> </td>
</tr>
<tr>
<td>1.7.1</td>
<td> </td>
</tr>
<tr>
<td>1.7.0</td>
<td> </td>
</tr>
<tr>
<td>1.6.3</td>
<td>Uncaught ReferenceError: ReactiveElement is not defined at bundle.js:2075</td>
</tr>
<tr>
<td>1.6.2</td>
<td>Uncaught ReferenceError: ReactiveElement is not defined at bundle.js:2182</td>
</tr>
<tr>
<td>1.6.1</td>
<td>Uncaught ReferenceError: ReactiveElement is not defined at bundle.js:2182</td>
</tr>
<tr>
<td>1.6.0</td>
<td>Uncaught ReferenceError: ReactiveElement is not defined at bundle.js:2182</td>
</tr>
<tr>
<td>1.5.4</td>
<td>Uncaught ReferenceError: ReactiveElement is not defined at bundle.js:1015</td>
</tr>
<tr>
<td>1.5.3</td>
<td>Uncaught ReferenceError: noChange is not defined at bundle.js:1974</td>
</tr>
<tr>
<td>1.5.2</td>
<td>Uncaught ReferenceError: noChange is not defined at bundle.js:1974</td>
</tr>
<tr>
<td>1.5.1</td>
<td>Uncaught ReferenceError: noChange is not defined at bundle.js:1974</td>
</tr>
<tr>
<td>1.5.0</td>
<td>bundle.js:2233 Uncaught SyntaxError: Identifier 'e6' has already been declared</td>
</tr>
<tr>
<td>1.4.6</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.5</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.4</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.3</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.2</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.1</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.4.0</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.3.3</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.3.2</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.3.1</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.3.0</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.2.3</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.2.2</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.2.1</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.2.0</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.1.3</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.1.2</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.1.1</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.1.0</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.0.5</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.0.4</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.0.3</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.0.2</td>
<td>Can't Compile because .js?module files are considered typscript</td>
</tr>
<tr>
<td>1.0.1</td>
<td>error: Import '<a href="https://unpkg.com/@lit/css-tag.js?module" rel="nofollow">https://unpkg.com/@lit/css-tag.js?module</a>' failed: 404 Not Found</td>
</tr>
<tr>
<td>1.0.0</td>
<td>error: Uncaught AssertionError: Assertion failed.</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">A clear and concise description of what the bug is.</p>
<h4 dir="auto">How to reproduce the bug</h4>
<ol dir="auto">
<li>Go to <a href="https://superset.apache.org/docs/api" rel="nofollow">https://superset.apache.org/docs/api</a></li>
<li>Scroll down the page.</li>
<li>You will see that the page will not scroll to the end. This applies to multiple pages in the documentation.</li>
</ol>
<p dir="auto">Pressing PgDown on keyboard or using documentation sidebar navigation also fails.</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">The user should be able to scroll through the full page of documentation to the end.</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">The screen won't scroll vertically below the text that was visible when the page loaded. The visible screen bounces back up to the beginning of the document.</p>
<h4 dir="auto">Screenshots</h4>
<p dir="auto">This is as far as the page scrolls.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10799911/155323085-47814de8-e40f-41fe-a965-ccd4c8a1a305.png"><img src="https://user-images.githubusercontent.com/10799911/155323085-47814de8-e40f-41fe-a965-ccd4c8a1a305.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Environment</h3>
<p dir="auto">This has been tested in Chrome and Firefox on Windows 10.</p> | <h2 dir="auto">Screenshot</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/63287675/155305469-ce03e338-8689-401d-a174-13ee9167a841.png"><img src="https://user-images.githubusercontent.com/63287675/155305469-ce03e338-8689-401d-a174-13ee9167a841.png" alt="Screenshot 2022-02-23 at 11 52 18" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/63287675/155305680-c74d1da7-fc5f-4398-b6d3-8bbb9b84e3b3.png"><img src="https://user-images.githubusercontent.com/63287675/155305680-c74d1da7-fc5f-4398-b6d3-8bbb9b84e3b3.png" alt="Screenshot 2022-02-23 at 11 53 46" style="max-width: 100%;"></a></p>
<h2 dir="auto">Description</h2>
<p dir="auto">Element on screenshot are preventing page to scroll down.</p>
<h2 dir="auto">Design input</h2>
<p dir="auto">It can be solve by setting <code class="notranslate">position: fixed</code> to this element.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/63287675/155306169-f497193a-2f7f-4069-82e3-1d187bdc24d3.png"><img src="https://user-images.githubusercontent.com/63287675/155306169-f497193a-2f7f-4069-82e3-1d187bdc24d3.png" alt="Screenshot 2022-02-23 at 11 56 24" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/715" rel="nofollow">http://projects.scipy.org/scipy/ticket/715</a> on 2008-08-07 by trac user mgogoulos@..., assigned to unknown.</em></p>
<p dir="auto">scipy.object0 and scipy.object result in segmentation fault, see the following:</p>
<p dir="auto">$ gdb python</p>
<p dir="auto">...</p>
<p dir="auto">(gdb) run -c "import scipy; obj = scipy.object0()"</p>
<p dir="auto">Starting program: /usr/bin/python -c "import scipy; obj = scipy.object0()"</p>
<p dir="auto">Program received signal SIGSEGV, Segmentation fault.</p>
<p dir="auto">[Switching to Thread 0xb7d408c0 (LWP 17657)]</p>
<p dir="auto">object_arrtype_new (type=0xb7c2e1c0, args=0xb7d0002c, kwds=0x0) at numpy/core/src/scalartypes.inc.src:1977</p>
<p dir="auto">1977 Py_INCREF(<em>((PyObject *</em>)dest));</p>
<p dir="auto">kernel: [ 1713.721411] python[17644]: segfault at 00000003 eip b7c28de7 esp bfe1d6d0 error 6</p>
<p dir="auto">Tested with scipy 0.6.0, on Ubuntu hardy (python 2.5.2)</p>
<p dir="auto">Best regards,<br>
Markos Gogoulos</p> | <h3 dir="auto">Is your feature request related to a problem? Please describe.</h3>
<h2 dir="auto">Motivation</h2>
<p dir="auto">Sometimes you have pairs of values x, y and you want to know whether y is independent of x or not. People sometimes compute a test statistic of x, y pairs directly, examples are Pearson/Spearman coefficient, Kendall tau or similar.</p>
<p dir="auto">Other tests use contingency tables (histograms), like the popular <a href="https://royalsocietypublishing.org/doi/10.1098/rspa.2021.0549" rel="nofollow">USP test</a>. This can be more computationally efficient when the sample is very large (think of applications with Big Data, like in my field, high-energy physics). For these tests, one needs to generate random 2D tables that have the same row and column totals as the original data. The probability distribution for such a table has been worked out in the 80'ies, and Patefield found an elegant non-trivial algorithm to randomly sample from this distribution.</p>
<h3 dir="auto">Describe the solution you'd like.</h3>
<p dir="auto">I searched the net for implementations in C/C++ of Patefield's algorithm, but only found implementations under GPL license and none of them is available to Python. I want to have the code under a less restrictive license and so I translated the published FORTRAN code to C from scratch and <a href="https://github.com/resample-project/resample/blob/develop/src/rcont.c">based my implementation on that</a>. My code is licensed under BSD 3-clause and I would like to contribute it to SciPy.</p>
<p dir="auto">My implementation already evolved from the original and has cool features that the original implementation lacks. The changes are documented in the code. Sorry for all the <code class="notranslate">goto</code>s, it is how the original code was written. In time, I am interested in removing the <code class="notranslate">goto</code>s step by step, but for now it is more important to have a baseline code that works.</p>
<p dir="auto">In addition to Patefield's algorithm, I also want to add a simple shuffling algorithm. The shuffling algorithm requires additional memory, but is faster than Patefield in certain scenarios. Patefield is more time efficient when the table contains few cells and depends only logarithmically on the number of total entries, while the time for the shuffling algorithm does not depend on the number of cells and only depends on the number of entries.</p>
<p dir="auto">I would like to start a PR; some pointers where this algorithm fits in best, would be helpful.</p>
<h3 dir="auto">Describe alternatives you've considered.</h3>
<p dir="auto">As mentioned above, before I started writing mine, there were only GPL licensed implementations and none available to Python.</p>
<h3 dir="auto">Additional context (e.g. screenshots, GIFs)</h3>
<p dir="auto"><em>No response</em></p> | 0 |
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">when using the postgres version of Insert, the <code class="notranslate"> sqlalchemy.dialects.postgresql.Insert.on_conflict_do_nothing</code> method, if you provide a <code class="notranslate">constraint</code> argument, it doesn't properly escape it, causing a SQL syntax error on a otherwise valid constraint name.</p>
<p dir="auto">if you add escaped quotes to the constraint name, it works, but I feel that sqlalchemy should escape these for you properly</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
# doesn't work
do_nothing_upsert_statement = upsert_statement.on_conflict_do_nothing(constraint="IXUQ-users_found-user_name")
# works
do_nothing_upsert_statement = upsert_statement.on_conflict_do_nothing(constraint="\"IXUQ-users_found-user_name\"")
"><pre class="notranslate"><span class="pl-c"># doesn't work</span>
<span class="pl-s1">do_nothing_upsert_statement</span> <span class="pl-c1">=</span> <span class="pl-s1">upsert_statement</span>.<span class="pl-en">on_conflict_do_nothing</span>(<span class="pl-s1">constraint</span><span class="pl-c1">=</span><span class="pl-s">"IXUQ-users_found-user_name"</span>)
<span class="pl-c"># works</span>
<span class="pl-s1">do_nothing_upsert_statement</span> <span class="pl-c1">=</span> <span class="pl-s1">upsert_statement</span>.<span class="pl-en">on_conflict_do_nothing</span>(<span class="pl-s1">constraint</span><span class="pl-c1">=</span><span class="pl-s">"<span class="pl-cce">\"</span>IXUQ-users_found-user_name<span class="pl-cce">\"</span>"</span>)</pre></div>
<p dir="auto"><strong>To Reproduce</strong><br>
Provide your <a href="http://stackoverflow.com/help/mcve" rel="nofollow">Minimal, Complete, and Verifiable</a> example<br>
here.</p>
<p dir="auto">needs <code class="notranslate">asyncpg</code>, <code class="notranslate">sqlalchemy</code> and <code class="notranslate">sqlalchemy-repr</code> to run</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import asyncio
import logging
import random
from sqlalchemy import Column, Index, Integer, Unicode, PrimaryKeyConstraint
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy_repr import RepresentableBase
from sqlalchemy.engine.url import URL
from sqlalchemy.ext.asyncio import create_async_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy.dialects.postgresql import insert
logging.basicConfig(level="DEBUG")
logger = logging.getLogger("main")
CustomDeclarativeBase = declarative_base(name="CustomDeclarativeBase")
class UsersFound(CustomDeclarativeBase):
__tablename__ = "users_found"
# primary key column
user_id = Column(Integer, nullable=False, autoincrement=True)
user_name = Column(Unicode, nullable=False)
__table_args__ = (
PrimaryKeyConstraint("user_id", name="PK-users_found-user_id"),
Index("IXUQ-users_found-user_name", "user_name", unique=True),
)
def __str__(self):
return f"UsersFound(user_id={self.user_id}, user_name={self.user_name})"
class ScrapeUsers:
def __init__(self):
self.config = None
self.sqla_engine = None
self.async_sessionmaker = None
async def run(self):
url = URL.create(drivername="postgresql+asyncpg",
username="postgres",
password="PASSWORD_HERE",
host="localhost",
port="5432",
database="testing",
query=None)
self.sqla_engine = create_async_engine(url, echo=False, future=True)
# expire_on_commit=False will prevent attributes from being expired
# after commit.
self.async_sessionmaker = sessionmaker(
bind=self.sqla_engine, expire_on_commit=False, class_=AsyncSession
)
async with self.sqla_engine.begin() as conn:
await conn.run_sync(CustomDeclarativeBase.metadata.create_all)
async with self.async_sessionmaker() as session:
name_list_letters = random.sample("abcdefghijklmnopqrstuvwxyz", 10)
name = "".join(name_list_letters)
# do it twice to get the duplicate key error
for i in range(2):
# get things from the queue
async with session.begin():
obj = UsersFound(user_name=name)
logger.info("adding: `%s`", obj)
list_of_dicts_to_insert = [{"user_name": obj.user_name}]
conn = await session.connection()
upsert_statement = insert(UsersFound.__table__).values(list_of_dicts_to_insert)
do_nothing_upsert_statement = upsert_statement.on_conflict_do_nothing(constraint="IXUQ-users_found-user_name")
await conn.execute(do_nothing_upsert_statement)
session.add(obj)
await self.sqla_engine.dispose()
await asyncio.sleep(0.1)
x = ScrapeUsers()
asyncio.run(x.run(), debug=False)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">asyncio</span>
<span class="pl-k">import</span> <span class="pl-s1">logging</span>
<span class="pl-k">import</span> <span class="pl-s1">random</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">Column</span>, <span class="pl-v">Index</span>, <span class="pl-v">Integer</span>, <span class="pl-v">Unicode</span>, <span class="pl-v">PrimaryKeyConstraint</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">declarative</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">relationship</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy_repr</span> <span class="pl-k">import</span> <span class="pl-v">RepresentableBase</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">engine</span>.<span class="pl-s1">url</span> <span class="pl-k">import</span> <span class="pl-v">URL</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">asyncio</span> <span class="pl-k">import</span> <span class="pl-s1">create_async_engine</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">sessionmaker</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">asyncio</span> <span class="pl-k">import</span> <span class="pl-v">AsyncSession</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">dialects</span>.<span class="pl-s1">postgresql</span> <span class="pl-k">import</span> <span class="pl-s1">insert</span>
<span class="pl-s1">logging</span>.<span class="pl-en">basicConfig</span>(<span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-s">"DEBUG"</span>)
<span class="pl-s1">logger</span> <span class="pl-c1">=</span> <span class="pl-s1">logging</span>.<span class="pl-en">getLogger</span>(<span class="pl-s">"main"</span>)
<span class="pl-v">CustomDeclarativeBase</span> <span class="pl-c1">=</span> <span class="pl-en">declarative_base</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"CustomDeclarativeBase"</span>)
<span class="pl-k">class</span> <span class="pl-v">UsersFound</span>(<span class="pl-v">CustomDeclarativeBase</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"users_found"</span>
<span class="pl-c"># primary key column</span>
<span class="pl-s1">user_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">autoincrement</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">user_name</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Unicode</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-s1">__table_args__</span> <span class="pl-c1">=</span> (
<span class="pl-v">PrimaryKeyConstraint</span>(<span class="pl-s">"user_id"</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"PK-users_found-user_id"</span>),
<span class="pl-v">Index</span>(<span class="pl-s">"IXUQ-users_found-user_name"</span>, <span class="pl-s">"user_name"</span>, <span class="pl-s1">unique</span><span class="pl-c1">=</span><span class="pl-c1">True</span>),
)
<span class="pl-k">def</span> <span class="pl-en">__str__</span>(<span class="pl-s1">self</span>):
<span class="pl-k">return</span> <span class="pl-s">f"UsersFound(user_id=<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">self</span>.<span class="pl-s1">user_id</span><span class="pl-kos">}</span></span>, user_name=<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">self</span>.<span class="pl-s1">user_name</span><span class="pl-kos">}</span></span>)"</span>
<span class="pl-k">class</span> <span class="pl-v">ScrapeUsers</span>:
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">self</span>.<span class="pl-s1">config</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span>
<span class="pl-s1">self</span>.<span class="pl-s1">sqla_engine</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span>
<span class="pl-s1">self</span>.<span class="pl-s1">async_sessionmaker</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">run</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-v">URL</span>.<span class="pl-en">create</span>(<span class="pl-s1">drivername</span><span class="pl-c1">=</span><span class="pl-s">"postgresql+asyncpg"</span>,
<span class="pl-s1">username</span><span class="pl-c1">=</span><span class="pl-s">"postgres"</span>,
<span class="pl-s1">password</span><span class="pl-c1">=</span><span class="pl-s">"PASSWORD_HERE"</span>,
<span class="pl-s1">host</span><span class="pl-c1">=</span><span class="pl-s">"localhost"</span>,
<span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-s">"5432"</span>,
<span class="pl-s1">database</span><span class="pl-c1">=</span><span class="pl-s">"testing"</span>,
<span class="pl-s1">query</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">sqla_engine</span> <span class="pl-c1">=</span> <span class="pl-en">create_async_engine</span>(<span class="pl-s1">url</span>, <span class="pl-s1">echo</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">future</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-c"># expire_on_commit=False will prevent attributes from being expired</span>
<span class="pl-c"># after commit.</span>
<span class="pl-s1">self</span>.<span class="pl-s1">async_sessionmaker</span> <span class="pl-c1">=</span> <span class="pl-en">sessionmaker</span>(
<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">sqla_engine</span>, <span class="pl-s1">expire_on_commit</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">class_</span><span class="pl-c1">=</span><span class="pl-v">AsyncSession</span>
)
<span class="pl-k">async</span> <span class="pl-k">with</span> <span class="pl-s1">self</span>.<span class="pl-s1">sqla_engine</span>.<span class="pl-en">begin</span>() <span class="pl-k">as</span> <span class="pl-s1">conn</span>:
<span class="pl-k">await</span> <span class="pl-s1">conn</span>.<span class="pl-en">run_sync</span>(<span class="pl-v">CustomDeclarativeBase</span>.<span class="pl-s1">metadata</span>.<span class="pl-s1">create_all</span>)
<span class="pl-k">async</span> <span class="pl-k">with</span> <span class="pl-s1">self</span>.<span class="pl-en">async_sessionmaker</span>() <span class="pl-k">as</span> <span class="pl-s1">session</span>:
<span class="pl-s1">name_list_letters</span> <span class="pl-c1">=</span> <span class="pl-s1">random</span>.<span class="pl-en">sample</span>(<span class="pl-s">"abcdefghijklmnopqrstuvwxyz"</span>, <span class="pl-c1">10</span>)
<span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-s">""</span>.<span class="pl-en">join</span>(<span class="pl-s1">name_list_letters</span>)
<span class="pl-c"># do it twice to get the duplicate key error</span>
<span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">2</span>):
<span class="pl-c"># get things from the queue</span>
<span class="pl-k">async</span> <span class="pl-k">with</span> <span class="pl-s1">session</span>.<span class="pl-en">begin</span>():
<span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-v">UsersFound</span>(<span class="pl-s1">user_name</span><span class="pl-c1">=</span><span class="pl-s1">name</span>)
<span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">"adding: `%s`"</span>, <span class="pl-s1">obj</span>)
<span class="pl-s1">list_of_dicts_to_insert</span> <span class="pl-c1">=</span> [{<span class="pl-s">"user_name"</span>: <span class="pl-s1">obj</span>.<span class="pl-s1">user_name</span>}]
<span class="pl-s1">conn</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">session</span>.<span class="pl-en">connection</span>()
<span class="pl-s1">upsert_statement</span> <span class="pl-c1">=</span> <span class="pl-en">insert</span>(<span class="pl-v">UsersFound</span>.<span class="pl-s1">__table__</span>).<span class="pl-en">values</span>(<span class="pl-s1">list_of_dicts_to_insert</span>)
<span class="pl-s1">do_nothing_upsert_statement</span> <span class="pl-c1">=</span> <span class="pl-s1">upsert_statement</span>.<span class="pl-en">on_conflict_do_nothing</span>(<span class="pl-s1">constraint</span><span class="pl-c1">=</span><span class="pl-s">"IXUQ-users_found-user_name"</span>)
<span class="pl-k">await</span> <span class="pl-s1">conn</span>.<span class="pl-en">execute</span>(<span class="pl-s1">do_nothing_upsert_statement</span>)
<span class="pl-s1">session</span>.<span class="pl-en">add</span>(<span class="pl-s1">obj</span>)
<span class="pl-k">await</span> <span class="pl-s1">self</span>.<span class="pl-s1">sqla_engine</span>.<span class="pl-en">dispose</span>()
<span class="pl-k">await</span> <span class="pl-s1">asyncio</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">0.1</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">ScrapeUsers</span>()
<span class="pl-s1">asyncio</span>.<span class="pl-en">run</span>(<span class="pl-s1">x</span>.<span class="pl-en">run</span>(), <span class="pl-s1">debug</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)</pre></div>
<p dir="auto"><strong>Error</strong><br>
Provide the complete text of any errors received <strong>including the complete<br>
stack trace</strong>. If the message is a warning, run your program with the<br>
<code class="notranslate">-Werror</code> flag: <code class="notranslate">python -Werror myprogram.py</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS C:\Users\auror\Code\sqlalchemy_bugs> python .\sqlalchemy_bug_on_confilict_do_nothing_escape.py
DEBUG:asyncio:Using proactor: IocpProactor
INFO:main:adding: `UsersFound(user_id=None, user_name=vzxwnfpjoh)`
Traceback (most recent call last):
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 388, in _prepare_and_execute
prepared_stmt, attributes = await adapt_connection._prepare(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 630, in _prepare
prepared_stmt = await self._connection.prepare(operation)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\asyncpg\connection.py", line 530, in prepare
return await self._prepare(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\asyncpg\connection.py", line 546, in _prepare
stmt = await self._get_statement(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\asyncpg\connection.py", line 375, in _get_statement
statement = await self._protocol.prepare(
File "asyncpg\protocol\protocol.pyx", line 168, in prepare
asyncpg.exceptions.PostgresSyntaxError: syntax error at or near "-"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1770, in _execute_context
self.dialect.do_execute(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\default.py", line 717, in do_execute
cursor.execute(statement, parameters)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 449, in execute
self._adapt_connection.await_(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 69, in await_only
return current.driver.switch(awaitable)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 122, in greenlet_spawn
value = await result
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 424, in _prepare_and_execute
self._handle_exception(error)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 358, in _handle_exception
self._adapt_connection._handle_exception(error)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 652, in _handle_exception
raise translated_error from error
sqlalchemy.dialects.postgresql.asyncpg.ProgrammingError: <class 'asyncpg.exceptions.PostgresSyntaxError'>: syntax error at or near "-"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\auror\Code\sqlalchemy_bugs\sqlalchemy_bug_on_confilict_do_nothing_escape.py", line 101, in <module>
asyncio.run(x.run(), debug=False)
File "c:\python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "c:\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\auror\Code\sqlalchemy_bugs\sqlalchemy_bug_on_confilict_do_nothing_escape.py", line 91, in run
await conn.execute(do_nothing_upsert_statement)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\ext\asyncio\engine.py", line 405, in execute
result = await greenlet_spawn(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 127, in greenlet_spawn
result = context.throw(*sys.exc_info())
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1582, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\sql\elements.py", line 323, in _execute_on_connection
return connection._execute_clauseelement(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1451, in _execute_clauseelement
ret = self._execute_context(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1813, in _execute_context
self._handle_dbapi_exception(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1994, in _handle_dbapi_exception
util.raise_(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\compat.py", line 207, in raise_
raise exception
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1770, in _execute_context
self.dialect.do_execute(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\default.py", line 717, in do_execute
cursor.execute(statement, parameters)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 449, in execute
self._adapt_connection.await_(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 69, in await_only
return current.driver.switch(awaitable)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 122, in greenlet_spawn
value = await result
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 424, in _prepare_and_execute
self._handle_exception(error)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 358, in _handle_exception
self._adapt_connection._handle_exception(error)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 652, in _handle_exception
raise translated_error from error
sqlalchemy.exc.ProgrammingError: (sqlalchemy.dialects.postgresql.asyncpg.ProgrammingError) <class 'asyncpg.exceptions.PostgresSyntaxError'>: syntax error at or near "-"
[SQL: INSERT INTO users_found (user_name) VALUES (%s) ON CONFLICT ON CONSTRAINT IXUQ-users_found-user_name DO NOTHING]
[parameters: ('vzxwnfpjoh',)]
(Background on this error at: http://sqlalche.me/e/14/f405)
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x0000020F2DF3BB80>
Traceback (most recent call last):
File "c:\python39\lib\asyncio\proactor_events.py", line 116, in __del__
File "c:\python39\lib\asyncio\proactor_events.py", line 108, in close
File "c:\python39\lib\asyncio\base_events.py", line 746, in call_soon
File "c:\python39\lib\asyncio\base_events.py", line 510, in _check_closed
RuntimeError: Event loop is closed
PS C:\Users\auror\Code\sqlalchemy_bugs>"><pre class="notranslate"><code class="notranslate">PS C:\Users\auror\Code\sqlalchemy_bugs> python .\sqlalchemy_bug_on_confilict_do_nothing_escape.py
DEBUG:asyncio:Using proactor: IocpProactor
INFO:main:adding: `UsersFound(user_id=None, user_name=vzxwnfpjoh)`
Traceback (most recent call last):
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 388, in _prepare_and_execute
prepared_stmt, attributes = await adapt_connection._prepare(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 630, in _prepare
prepared_stmt = await self._connection.prepare(operation)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\asyncpg\connection.py", line 530, in prepare
return await self._prepare(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\asyncpg\connection.py", line 546, in _prepare
stmt = await self._get_statement(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\asyncpg\connection.py", line 375, in _get_statement
statement = await self._protocol.prepare(
File "asyncpg\protocol\protocol.pyx", line 168, in prepare
asyncpg.exceptions.PostgresSyntaxError: syntax error at or near "-"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1770, in _execute_context
self.dialect.do_execute(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\default.py", line 717, in do_execute
cursor.execute(statement, parameters)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 449, in execute
self._adapt_connection.await_(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 69, in await_only
return current.driver.switch(awaitable)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 122, in greenlet_spawn
value = await result
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 424, in _prepare_and_execute
self._handle_exception(error)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 358, in _handle_exception
self._adapt_connection._handle_exception(error)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 652, in _handle_exception
raise translated_error from error
sqlalchemy.dialects.postgresql.asyncpg.ProgrammingError: <class 'asyncpg.exceptions.PostgresSyntaxError'>: syntax error at or near "-"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\auror\Code\sqlalchemy_bugs\sqlalchemy_bug_on_confilict_do_nothing_escape.py", line 101, in <module>
asyncio.run(x.run(), debug=False)
File "c:\python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "c:\python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\auror\Code\sqlalchemy_bugs\sqlalchemy_bug_on_confilict_do_nothing_escape.py", line 91, in run
await conn.execute(do_nothing_upsert_statement)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\ext\asyncio\engine.py", line 405, in execute
result = await greenlet_spawn(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 127, in greenlet_spawn
result = context.throw(*sys.exc_info())
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1582, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\sql\elements.py", line 323, in _execute_on_connection
return connection._execute_clauseelement(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1451, in _execute_clauseelement
ret = self._execute_context(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1813, in _execute_context
self._handle_dbapi_exception(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1994, in _handle_dbapi_exception
util.raise_(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\compat.py", line 207, in raise_
raise exception
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\base.py", line 1770, in _execute_context
self.dialect.do_execute(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\engine\default.py", line 717, in do_execute
cursor.execute(statement, parameters)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 449, in execute
self._adapt_connection.await_(
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 69, in await_only
return current.driver.switch(awaitable)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 122, in greenlet_spawn
value = await result
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 424, in _prepare_and_execute
self._handle_exception(error)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 358, in _handle_exception
self._adapt_connection._handle_exception(error)
File "C:\Users\auror\AppData\Local\pypoetry\Cache\virtualenvs\sqlalchemy-bugs-w_rCfYdx-py3.9\lib\site-packages\sqlalchemy\dialects\postgresql\asyncpg.py", line 652, in _handle_exception
raise translated_error from error
sqlalchemy.exc.ProgrammingError: (sqlalchemy.dialects.postgresql.asyncpg.ProgrammingError) <class 'asyncpg.exceptions.PostgresSyntaxError'>: syntax error at or near "-"
[SQL: INSERT INTO users_found (user_name) VALUES (%s) ON CONFLICT ON CONSTRAINT IXUQ-users_found-user_name DO NOTHING]
[parameters: ('vzxwnfpjoh',)]
(Background on this error at: http://sqlalche.me/e/14/f405)
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x0000020F2DF3BB80>
Traceback (most recent call last):
File "c:\python39\lib\asyncio\proactor_events.py", line 116, in __del__
File "c:\python39\lib\asyncio\proactor_events.py", line 108, in close
File "c:\python39\lib\asyncio\base_events.py", line 746, in call_soon
File "c:\python39\lib\asyncio\base_events.py", line 510, in _check_closed
RuntimeError: Event loop is closed
PS C:\Users\auror\Code\sqlalchemy_bugs>
</code></pre></div>
<p dir="auto"><strong>Versions.</strong></p>
<ul dir="auto">
<li>OS: windows 10</li>
<li>Python: Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]</li>
<li>SQLAlchemy: 1.4.20</li>
<li>Database: postgres 13.2</li>
<li>DBAPI: asyncpg 0.23.0</li>
</ul>
<p dir="auto"><strong>Additional context</strong></p>
<p dir="auto"><strong>Have a nice day!</strong></p> | <p dir="auto"><strong>Migrated issue, originally created by Adrian (<a href="https://github.com/thiefmaster">@thiefmaster</a>)</strong></p>
<p dir="auto">In some cases it would be useful to have a set on the python side, e.g. because you don't need/want duplicates and the set api is nicer to use in that case (as you won't have to worry about removing dupes).</p>
<p dir="auto">Since there's already <code class="notranslate">as_tuple</code>, I'd deprecate this option and have a <code class="notranslate">python_type</code> kwarg instead that defaults to <code class="notranslate">list</code> but can be set to <code class="notranslate">tuple</code> or <code class="notranslate">set</code>, too. <code class="notranslate">as_tuple</code> and <code class="notranslate">python_type</code> would be mutually exclusive.</p> | 0 |
<p dir="auto">Using a couple Facebook-like links in my navbar</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/6cabc9d4f1d85da3d4e6316ee1fc4edec9dfed5d6e86d680c75b4889652df390/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3332303439342f313030343939302f31356631383634382d306161652d313165332d393634382d6637306633646361646436382e504e47"><img src="https://camo.githubusercontent.com/6cabc9d4f1d85da3d4e6316ee1fc4edec9dfed5d6e86d680c75b4889652df390/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3332303439342f313030343939302f31356631383634382d306161652d313165332d393634382d6637306633646361646436382e504e47" alt="grab 2013-08-21 a 6 05 52 pm" data-canonical-src="https://f.cloud.github.com/assets/320494/1004990/15f18648-0aae-11e3-9648-f70f3dcadd68.PNG" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<ul class="navbar-right nav navbar-nav">
<li>
<a href="#">
<span class="glyphicon glyphicon-shopping-cart">&nbsp;</span>
<span class="visible-xs visible-sm">Shopping Cart</span>
<span class="badge">3</span>
</a>
</li>
<li>
<a href="messages.html">
<span class="glyphicon glyphicon-envelope">&nbsp;</span>
<span class="visible-xs visible-sm">Messages</span>
<span class="badge">10</span>
</a>
</li>
</ul>"><pre class="notranslate"><code class="notranslate"><ul class="navbar-right nav navbar-nav">
<li>
<a href="#">
<span class="glyphicon glyphicon-shopping-cart">&nbsp;</span>
<span class="visible-xs visible-sm">Shopping Cart</span>
<span class="badge">3</span>
</a>
</li>
<li>
<a href="messages.html">
<span class="glyphicon glyphicon-envelope">&nbsp;</span>
<span class="visible-xs visible-sm">Messages</span>
<span class="badge">10</span>
</a>
</li>
</ul>
</code></pre></div>
<p dir="auto">In the responsive menu they appear as such:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/2f58cd3768e37e719343b3adb8e72a54713d547dc4253883bc627637d4d6cb70/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3332303439342f313030343939352f34346232323235382d306161652d313165332d393961342d3731303131373965633261612e504e47"><img src="https://camo.githubusercontent.com/2f58cd3768e37e719343b3adb8e72a54713d547dc4253883bc627637d4d6cb70/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3332303439342f313030343939352f34346232323235382d306161652d313165332d393961342d3731303131373965633261612e504e47" alt="grab 2013-08-21 a 6 06 01 pm" data-canonical-src="https://f.cloud.github.com/assets/320494/1004995/44b22258-0aae-11e3-99a4-7101179ec2aa.PNG" style="max-width: 100%;"></a></p> | <p dir="auto">related to issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16856611" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/8500" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/8500/hovercard" href="https://github.com/twbs/bootstrap/pull/8500">#8500</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14075731" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/7808" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/7808/hovercard" href="https://github.com/twbs/bootstrap/issues/7808">#7808</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6609454" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/4929" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/4929/hovercard" href="https://github.com/twbs/bootstrap/issues/4929">#4929</a> ; using <code class="notranslate">.hidden-sm</code> to hide span within <code class="notranslate">.nav > li > a</code> . Because class is <code class="notranslate">display: block</code> above -sm then text wraps to new line. Would you consider <code class="notranslate">.hidden-*</code> classes to be <code class="notranslate">display: inline-block</code> instead ?</p>
<p dir="auto">Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... <a href="http://jsfiddle.net/jholl/P86yf/" rel="nofollow">http://jsfiddle.net/jholl/P86yf/</a></p> | 1 |
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong><br>
Using webpack in the electron js app I can't import native module libraries like <code class="notranslate">ffi-napi</code>, <code class="notranslate">ref-napi</code>, etc in my application. Libraries like those generally expects node's <code class="notranslate">__dirname</code> to set as global. Thus, setting <code class="notranslate">node: {__dirname: true}</code> would work in my app but in the <code class="notranslate">production</code> built it throws a runtime error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: No native build was found for platform=darwin arch=x64 runtime=electron abi=87 uv=1 libc=glibc node=14.16.0 electron=12.0.6 webpack=true"><pre class="notranslate"><code class="notranslate">Error: No native build was found for platform=darwin arch=x64 runtime=electron abi=87 uv=1 libc=glibc node=14.16.0 electron=12.0.6 webpack=true
</code></pre></div>
<p dir="auto">The same above error would throws if I change/remove <code class="notranslate">node:{__dirname: false}</code> or <code class="notranslate">node</code> property itself from the webpack config.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
I'm not sure on this whether its a bug or not. But to reproduce the scenario here's my example <a href="https://github.com/raviSussol/electron-webpack-native-module-example">repo</a> which can show the issue in more details. Basically,</p>
<h5 dir="auto">to reproduce an error</h5>
<ul dir="auto">
<li>start the app by <code class="notranslate">npm start</code></li>
<li>then an error would shown up</li>
</ul>
<h5 dir="auto">to get working</h5>
<ul dir="auto">
<li>change the <code class="notranslate">__dirname</code> to <code class="notranslate">true</code> in the <code class="notranslate">webpack.config.js</code> and again</li>
<li>start the app by <code class="notranslate">npm start</code></li>
<li>now it runs OK. To confirm if native module <code class="notranslate">ffi-napi</code>, <code class="notranslate">ref-napi</code> are working properly - goto View > Toggle Developer Tools and in the console tab = <code class="notranslate">Add: 8</code></li>
</ul>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
If I need to set <code class="notranslate">node:{__dirname: true}</code> in this case (which works in the <code class="notranslate">development</code> mode) then the same behavior is expected to be working in the <code class="notranslate">production</code> mode (in the installer). Otherwise, if there is/are other work around to fix then still the expectation is same as to the <code class="notranslate">development</code> mode at the moment.</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: ^5.37.0<br>
Node.js version: 14.16.0<br>
Operating System: macOS 10.14.6<br>
Additional tools: ffi-napi ver. ^4.0.3, ref-napi ver. ^3.0.2, webpack-cli ver. ^4.7.0, electron ver. ^12.0.7</p> | <p dir="auto">Simple, the nodejs webpack api doesn't run the same way as the webpack command line.</p>
<p dir="auto">I'm trying to write custom loaders and plugins, I'm stuck at the loaders and after banging my head, i see that it doesn't even work the same way as the command line one does. Why is this? How can i make the webpack node API behavior is the same way as the webpack command line?</p>
<p dir="auto">I want to get the file content from the loader and it doesn't pass that when call via node API, it pass a object</p>
<p dir="auto"><code class="notranslate">{resouce:'/path/to/file.js',...//other stuff}</code></p>
<p dir="auto">instead of a file i get the above. How do i get the file while running webpack with the nodejs API?</p> | 0 |
<p dir="auto">This is a very outdated way to do search. Modern editors will show the first hit starting from the current caret position as you type the search. It feels very odd to type something in the search box, wait for it to do something and have nothing happen. I keep thinking this means it can't find any matches in the document, but just to be safe I hit Cmd-G and lo and behold it finds a bunch of matches.</p>
<p dir="auto">The explicit "go" command is unnecessary when searching a document. Please implement a modern incremental search.</p> | <p dir="auto">Here's another Sublime Text feature Atom doesn't have that Sublime users may miss.</p>
<p dir="auto">{<code class="notranslate">Cmd</code>,<code class="notranslate">Ctrl</code>} + <code class="notranslate">i</code> starts an incremental find, which works like {<code class="notranslate">Cmd</code>,<code class="notranslate">Ctrl</code>} + <code class="notranslate">f</code> but jumps to the first match as you type and closes when you hit enter.</p>
<p dir="auto">It's great for quickly getting to a different part of the file.</p>
<p dir="auto">I'm moving this from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="63354509" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/6058" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/6058/hovercard" href="https://github.com/atom/atom/issues/6058">atom/atom#6058</a>.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/izuzak/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/izuzak">@izuzak</a> mentioned that someone attempted to do this before in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="30949012" data-permission-text="Title is private" data-url="https://github.com/atom/find-and-replace/issues/178" data-hovercard-type="pull_request" data-hovercard-url="/atom/find-and-replace/pull/178/hovercard" href="https://github.com/atom/find-and-replace/pull/178">#178</a>.</p> | 1 |
<p dir="auto">I want to integrate my Flutter module into my existing app. I follow this <a href="https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps">link</a> for a tutorial but it requires me to copy dart codes and assets into my existing project. That's not good. Is there any way to encapsulate my Flutter module as a Framework? and I can use that Framework without setting Flutter environment in my existing project.</p> | <p dir="auto">I am trying to integrating Flutter into our current iOS project.<br>
However, we have a lot of members in our team, it is really hard to push all of them install flutter environment.<br>
So I tried to embed only App.framework, Flutter.framework and flutter_assets in the project, and it seems work fine in other people's machine without any flutter tools installed.<br>
However there is no document illustrate this workflow. I do wonder if there is any side effect to follow the process described above. And if it is fine to ignore Generated.xcconfig after framework is generated.<br>
Thanks for any help!</p> | 1 |
<p dir="auto"><strong>Migrated issue, originally created by Adrian (<a href="https://github.com/thiefmaster">@thiefmaster</a>)</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy import *
from sqlalchemy.dialects.postgresql import ARRAY, array
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import *
def _patch_sa_cte_fix():
import pkg_resources
sa_dist = pkg_resources.get_distribution('sqlalchemy')
if sa_dist.parsed_version > pkg_resources.parse_version('1.0.12'):
raise Exception('Remove this monkeypatch; SQLAlchemy contains the CTE fix')
from sqlalchemy.sql.selectable import CTE
from sqlalchemy.sql.elements import _clone
def _copy_internals(self, clone=_clone, **kw):
super(CTE, self)._copy_internals(clone, **kw)
if self._cte_alias is not None:
self._cte_alias = self
self._restates = frozenset([clone(elem, **kw) for elem in self._restates])
CTE._copy_internals = _copy_internals
_patch_sa_cte_fix()
Base = declarative_base()
class Category(Base):
__tablename__ = 'categories'
id = Column(Integer, primary_key=True)
parent_id = Column(
Integer,
ForeignKey('categories.id'),
index=True,
nullable=True
)
is_deleted = Column(
Boolean,
nullable=False,
default=False
)
children = relationship(
'Category',
primaryjoin=(id == remote(parent_id)) & ~remote(is_deleted),
lazy=True,
backref=backref(
'parent',
primaryjoin=(remote(id) == parent_id),
lazy=True
)
)
@staticmethod
def _create_column_prop():
cat_alias = aliased(Category)
cte_query = (select([cat_alias.id, cast(array([]), ARRAY(Integer)).label('parents')])
.where(cat_alias.parent_id.is_(None) & ~cat_alias.is_deleted)
.cte(recursive=True))
parent_query = (select([cat_alias.id, cte_query.c.parents.op('||')(cat_alias.parent_id)])
.where((cat_alias.parent_id == cte_query.c.id) & ~cat_alias.is_deleted))
cte_query = cte_query.union_all(parent_query)
query = select([func.count()]).where(cte_query.c.parents.contains(array([Category.id])))
Category.deep_children_count = column_property(query, deferred=True)
Category._create_column_prop()
e = create_engine('postgresql:///test', echo=True)
Base.metadata.create_all(e)
s = Session(e)
root = Category(id=0, children=[
Category(id=1),
Category(id=2, children=[
Category(id=3),
Category(id=4),
Category(id=5, children=[
Category(id=6),
Category(id=7)
])
])
])
s.add(root)
s.flush()
s.expire_all()
print
cat = s.query(Category).options(undefer('deep_children_count'),
joinedload('children').undefer('deep_children_count')).get(2)
print cat
print cat.deep_children_count
print cat.children"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-c1">*</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">dialects</span>.<span class="pl-s1">postgresql</span> <span class="pl-k">import</span> <span class="pl-v">ARRAY</span>, <span class="pl-s1">array</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">declarative</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-c1">*</span>
<span class="pl-k">def</span> <span class="pl-en">_patch_sa_cte_fix</span>():
<span class="pl-k">import</span> <span class="pl-s1">pkg_resources</span>
<span class="pl-s1">sa_dist</span> <span class="pl-c1">=</span> <span class="pl-s1">pkg_resources</span>.<span class="pl-en">get_distribution</span>(<span class="pl-s">'sqlalchemy'</span>)
<span class="pl-k">if</span> <span class="pl-s1">sa_dist</span>.<span class="pl-s1">parsed_version</span> <span class="pl-c1">></span> <span class="pl-s1">pkg_resources</span>.<span class="pl-en">parse_version</span>(<span class="pl-s">'1.0.12'</span>):
<span class="pl-k">raise</span> <span class="pl-v">Exception</span>(<span class="pl-s">'Remove this monkeypatch; SQLAlchemy contains the CTE fix'</span>)
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">sql</span>.<span class="pl-s1">selectable</span> <span class="pl-k">import</span> <span class="pl-v">CTE</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">sql</span>.<span class="pl-s1">elements</span> <span class="pl-k">import</span> <span class="pl-s1">_clone</span>
<span class="pl-k">def</span> <span class="pl-en">_copy_internals</span>(<span class="pl-s1">self</span>, <span class="pl-s1">clone</span><span class="pl-c1">=</span><span class="pl-s1">_clone</span>, <span class="pl-c1">**</span><span class="pl-s1">kw</span>):
<span class="pl-en">super</span>(<span class="pl-v">CTE</span>, <span class="pl-s1">self</span>).<span class="pl-en">_copy_internals</span>(<span class="pl-s1">clone</span>, <span class="pl-c1">**</span><span class="pl-s1">kw</span>)
<span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">_cte_alias</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>:
<span class="pl-s1">self</span>.<span class="pl-s1">_cte_alias</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>
<span class="pl-s1">self</span>.<span class="pl-s1">_restates</span> <span class="pl-c1">=</span> <span class="pl-en">frozenset</span>([<span class="pl-en">clone</span>(<span class="pl-s1">elem</span>, <span class="pl-c1">**</span><span class="pl-s1">kw</span>) <span class="pl-k">for</span> <span class="pl-s1">elem</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">_restates</span>])
<span class="pl-v">CTE</span>.<span class="pl-s1">_copy_internals</span> <span class="pl-c1">=</span> <span class="pl-s1">_copy_internals</span>
<span class="pl-en">_patch_sa_cte_fix</span>()
<span class="pl-v">Base</span> <span class="pl-c1">=</span> <span class="pl-en">declarative_base</span>()
<span class="pl-k">class</span> <span class="pl-v">Category</span>(<span class="pl-v">Base</span>):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">'categories'</span>
<span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">parent_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(
<span class="pl-v">Integer</span>,
<span class="pl-v">ForeignKey</span>(<span class="pl-s">'categories.id'</span>),
<span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>
)
<span class="pl-s1">is_deleted</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(
<span class="pl-v">Boolean</span>,
<span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>,
<span class="pl-s1">default</span><span class="pl-c1">=</span><span class="pl-c1">False</span>
)
<span class="pl-s1">children</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(
<span class="pl-s">'Category'</span>,
<span class="pl-s1">primaryjoin</span><span class="pl-c1">=</span>(<span class="pl-s1">id</span> <span class="pl-c1">==</span> <span class="pl-en">remote</span>(<span class="pl-s1">parent_id</span>)) <span class="pl-c1">&</span> <span class="pl-c1">~</span><span class="pl-en">remote</span>(<span class="pl-s1">is_deleted</span>),
<span class="pl-s1">lazy</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">backref</span><span class="pl-c1">=</span><span class="pl-en">backref</span>(
<span class="pl-s">'parent'</span>,
<span class="pl-s1">primaryjoin</span><span class="pl-c1">=</span>(<span class="pl-en">remote</span>(<span class="pl-s1">id</span>) <span class="pl-c1">==</span> <span class="pl-s1">parent_id</span>),
<span class="pl-s1">lazy</span><span class="pl-c1">=</span><span class="pl-c1">True</span>
)
)
<span class="pl-en">@<span class="pl-s1">staticmethod</span></span>
<span class="pl-k">def</span> <span class="pl-en">_create_column_prop</span>():
<span class="pl-s1">cat_alias</span> <span class="pl-c1">=</span> <span class="pl-en">aliased</span>(<span class="pl-v">Category</span>)
<span class="pl-s1">cte_query</span> <span class="pl-c1">=</span> (<span class="pl-en">select</span>([<span class="pl-s1">cat_alias</span>.<span class="pl-s1">id</span>, <span class="pl-en">cast</span>(<span class="pl-en">array</span>([]), <span class="pl-v">ARRAY</span>(<span class="pl-v">Integer</span>)).<span class="pl-en">label</span>(<span class="pl-s">'parents'</span>)])
.<span class="pl-en">where</span>(<span class="pl-s1">cat_alias</span>.<span class="pl-s1">parent_id</span>.<span class="pl-en">is_</span>(<span class="pl-c1">None</span>) <span class="pl-c1">&</span> <span class="pl-c1">~</span><span class="pl-s1">cat_alias</span>.<span class="pl-s1">is_deleted</span>)
.<span class="pl-en">cte</span>(<span class="pl-s1">recursive</span><span class="pl-c1">=</span><span class="pl-c1">True</span>))
<span class="pl-s1">parent_query</span> <span class="pl-c1">=</span> (<span class="pl-en">select</span>([<span class="pl-s1">cat_alias</span>.<span class="pl-s1">id</span>, <span class="pl-s1">cte_query</span>.<span class="pl-s1">c</span>.<span class="pl-s1">parents</span>.<span class="pl-en">op</span>(<span class="pl-s">'||'</span>)(<span class="pl-s1">cat_alias</span>.<span class="pl-s1">parent_id</span>)])
.<span class="pl-en">where</span>((<span class="pl-s1">cat_alias</span>.<span class="pl-s1">parent_id</span> <span class="pl-c1">==</span> <span class="pl-s1">cte_query</span>.<span class="pl-s1">c</span>.<span class="pl-s1">id</span>) <span class="pl-c1">&</span> <span class="pl-c1">~</span><span class="pl-s1">cat_alias</span>.<span class="pl-s1">is_deleted</span>))
<span class="pl-s1">cte_query</span> <span class="pl-c1">=</span> <span class="pl-s1">cte_query</span>.<span class="pl-en">union_all</span>(<span class="pl-s1">parent_query</span>)
<span class="pl-s1">query</span> <span class="pl-c1">=</span> <span class="pl-en">select</span>([<span class="pl-s1">func</span>.<span class="pl-en">count</span>()]).<span class="pl-en">where</span>(<span class="pl-s1">cte_query</span>.<span class="pl-s1">c</span>.<span class="pl-s1">parents</span>.<span class="pl-en">contains</span>(<span class="pl-en">array</span>([<span class="pl-v">Category</span>.<span class="pl-s1">id</span>])))
<span class="pl-v">Category</span>.<span class="pl-s1">deep_children_count</span> <span class="pl-c1">=</span> <span class="pl-en">column_property</span>(<span class="pl-s1">query</span>, <span class="pl-s1">deferred</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-v">Category</span>.<span class="pl-en">_create_column_prop</span>()
<span class="pl-s1">e</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-s">'postgresql:///test'</span>, <span class="pl-s1">echo</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">create_all</span>(<span class="pl-s1">e</span>)
<span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-v">Session</span>(<span class="pl-s1">e</span>)
<span class="pl-s1">root</span> <span class="pl-c1">=</span> <span class="pl-v">Category</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">children</span><span class="pl-c1">=</span>[
<span class="pl-v">Category</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">1</span>),
<span class="pl-v">Category</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">children</span><span class="pl-c1">=</span>[
<span class="pl-v">Category</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">3</span>),
<span class="pl-v">Category</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">4</span>),
<span class="pl-v">Category</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">5</span>, <span class="pl-s1">children</span><span class="pl-c1">=</span>[
<span class="pl-v">Category</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">6</span>),
<span class="pl-v">Category</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">7</span>)
])
])
])
<span class="pl-s1">s</span>.<span class="pl-en">add</span>(<span class="pl-s1">root</span>)
<span class="pl-s1">s</span>.<span class="pl-en">flush</span>()
<span class="pl-s1">s</span>.<span class="pl-en">expire_all</span>()
<span class="pl-s1">print</span>
<span class="pl-s1">cat</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>.<span class="pl-en">query</span>(<span class="pl-v">Category</span>).<span class="pl-en">options</span>(<span class="pl-en">undefer</span>(<span class="pl-s">'deep_children_count'</span>),
<span class="pl-en">joinedload</span>(<span class="pl-s">'children'</span>).<span class="pl-en">undefer</span>(<span class="pl-s">'deep_children_count'</span>)).<span class="pl-en">get</span>(<span class="pl-c1">2</span>)
<span class="pl-k">print</span> <span class="pl-s1">cat</span>
<span class="pl-k">print</span> <span class="pl-s1">cat</span>.<span class="pl-s1">deep_children_count</span>
<span class="pl-k">print</span> <span class="pl-s1">cat</span>.<span class="pl-s1">children</span></pre></div>
<blockquote>
<p dir="auto">sqlalchemy.exc.CompileError: Multiple, unrelated CTEs found with the same name: u'anon_2'</p>
</blockquote>
<p dir="auto">Removing one of the undefers or using subqueryload instead of joinedload works, but it still looks like a bug to me.</p>
<p dir="auto">Full traceback:</p>
<div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "satest.py", line 90, in <module>
joinedload('children').undefer('deep_children_count')).get(2)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 831, in get
return self._get_impl(ident, loading.load_on_ident)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 864, in _get_impl
return fallback_fn(self, key)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 219, in load_on_ident
return q.one()
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2693, in one
ret = list(self)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2736, in __iter__
return self._execute_and_instances(context)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2751, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 914, in execute
return meth(self, multiparams, params)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1003, in _execute_clauseelement
inline=len(distilled_params) > 1)
File "<string>", line 1, in <lambda>
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 494, in compile
return self._compiler(dialect, bind=bind, **kw)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 500, in _compiler
return dialect.statement_compiler(dialect, self, **kw)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 395, in __init__
Compiled.__init__(self, dialect, statement, **kwargs)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 190, in __init__
self.string = self.process(self.statement, **compile_kwargs)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 213, in process
return obj._compiler_dispatch(self, **kwargs)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 81, in _compiler_dispatch
return meth(self, **kw)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 1585, in visit_select
for name, column in select._columns_plus_names
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 1357, in _label_select_column
**column_clause_args
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 93, in _compiler_dispatch
return meth(self, **kw)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 615, in visit_label
OPERATORS[operators.as_] + \
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 93, in _compiler_dispatch
return meth(self, **kw)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 527, in visit_grouping
return "(" + grouping.element._compiler_dispatch(self, **kwargs) + ")"
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 81, in _compiler_dispatch
return meth(self, **kw)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 1608, in visit_select
text, select, inner_columns, froms, byfrom, kwargs)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 1700, in _compose_select_body
for f in froms])
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py", line 81, in _compiler_dispatch
return meth(self, **kw)
File "/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py", line 1194, in visit_cte
cte_name)
sqlalchemy.exc.CompileError: Multiple, unrelated CTEs found with the same name: u'anon_2'"><pre class="notranslate">Traceback (most recent call last):
File <span class="pl-s">"satest.py"</span>, line <span class="pl-c1">90</span>, in <span class="pl-en"><module></span>
joinedload(<span class="pl-s"><span class="pl-pds">'</span>children<span class="pl-pds">'</span></span>).undefer(<span class="pl-s"><span class="pl-pds">'</span>deep_children_count<span class="pl-pds">'</span></span>)).get(<span class="pl-c1">2</span>)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/query.py"</span>, line <span class="pl-c1">831</span>, in <span class="pl-en">get</span>
<span class="pl-k">return</span> <span class="pl-c1">self</span>._get_impl(ident, loading.load_on_ident)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/query.py"</span>, line <span class="pl-c1">864</span>, in <span class="pl-en">_get_impl</span>
<span class="pl-k">return</span> fallback_fn(<span class="pl-c1">self</span>, key)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/loading.py"</span>, line <span class="pl-c1">219</span>, in <span class="pl-en">load_on_ident</span>
<span class="pl-k">return</span> q.one()
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/query.py"</span>, line <span class="pl-c1">2693</span>, in <span class="pl-en">one</span>
ret <span class="pl-k">=</span> <span class="pl-c1">list</span>(<span class="pl-c1">self</span>)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/query.py"</span>, line <span class="pl-c1">2736</span>, in <span class="pl-en">__iter__</span>
<span class="pl-k">return</span> <span class="pl-c1">self</span>._execute_and_instances(context)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/orm/query.py"</span>, line <span class="pl-c1">2751</span>, in <span class="pl-en">_execute_and_instances</span>
result <span class="pl-k">=</span> conn.execute(querycontext.statement, <span class="pl-c1">self</span>._params)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/engine/base.py"</span>, line <span class="pl-c1">914</span>, in <span class="pl-en">execute</span>
<span class="pl-k">return</span> meth(<span class="pl-c1">self</span>, multiparams, params)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/elements.py"</span>, line <span class="pl-c1">323</span>, in <span class="pl-en">_execute_on_connection</span>
<span class="pl-k">return</span> connection._execute_clauseelement(<span class="pl-c1">self</span>, multiparams, params)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/engine/base.py"</span>, line <span class="pl-c1">1003</span>, in <span class="pl-en">_execute_clauseelement</span>
inline<span class="pl-k">=</span><span class="pl-c1">len</span>(distilled_params) <span class="pl-k">></span> <span class="pl-c1">1</span>)
File <span class="pl-s">"<string>"</span>, line <span class="pl-c1">1</span>, in <span class="pl-en"><lambda></span>
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/elements.py"</span>, line <span class="pl-c1">494</span>, in <span class="pl-en">compile</span>
<span class="pl-k">return</span> <span class="pl-c1">self</span>._compiler(dialect, <span class="pl-v">bind</span><span class="pl-k">=</span>bind, <span class="pl-k">**</span>kw)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/elements.py"</span>, line <span class="pl-c1">500</span>, in <span class="pl-en">_compiler</span>
<span class="pl-k">return</span> dialect.statement_compiler(dialect, <span class="pl-c1">self</span>, <span class="pl-k">**</span>kw)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py"</span>, line <span class="pl-c1">395</span>, in <span class="pl-en">__init__</span>
Compiled.<span class="pl-c1">__init__</span>(<span class="pl-c1">self</span>, dialect, statement, <span class="pl-k">**</span>kwargs)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py"</span>, line <span class="pl-c1">190</span>, in <span class="pl-en">__init__</span>
<span class="pl-c1">self</span>.string <span class="pl-k">=</span> <span class="pl-c1">self</span>.process(<span class="pl-c1">self</span>.statement, <span class="pl-k">**</span>compile_kwargs)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py"</span>, line <span class="pl-c1">213</span>, in <span class="pl-en">process</span>
<span class="pl-k">return</span> obj._compiler_dispatch(<span class="pl-c1">self</span>, <span class="pl-k">**</span>kwargs)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py"</span>, line <span class="pl-c1">81</span>, in <span class="pl-en">_compiler_dispatch</span>
<span class="pl-k">return</span> meth(<span class="pl-c1">self</span>, <span class="pl-k">**</span>kw)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py"</span>, line <span class="pl-c1">1585</span>, in <span class="pl-en">visit_select</span>
<span class="pl-k">for</span> name, column <span class="pl-k">in</span> select._columns_plus_names
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py"</span>, line <span class="pl-c1">1357</span>, in <span class="pl-en">_label_select_column</span>
<span class="pl-k">**</span>column_clause_args
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py"</span>, line <span class="pl-c1">93</span>, in <span class="pl-en">_compiler_dispatch</span>
<span class="pl-k">return</span> meth(<span class="pl-c1">self</span>, <span class="pl-k">**</span>kw)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py"</span>, line <span class="pl-c1">615</span>, in <span class="pl-en">visit_label</span>
<span class="pl-c1">OPERATORS</span>[operators.as_] <span class="pl-k">+</span> \
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py"</span>, line <span class="pl-c1">93</span>, in <span class="pl-en">_compiler_dispatch</span>
<span class="pl-k">return</span> meth(<span class="pl-c1">self</span>, <span class="pl-k">**</span>kw)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py"</span>, line <span class="pl-c1">527</span>, in <span class="pl-en">visit_grouping</span>
<span class="pl-k">return</span> <span class="pl-s"><span class="pl-pds">"</span>(<span class="pl-pds">"</span></span> <span class="pl-k">+</span> grouping.element._compiler_dispatch(<span class="pl-c1">self</span>, <span class="pl-k">**</span>kwargs) <span class="pl-k">+</span> <span class="pl-s"><span class="pl-pds">"</span>)<span class="pl-pds">"</span></span>
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py"</span>, line <span class="pl-c1">81</span>, in <span class="pl-en">_compiler_dispatch</span>
<span class="pl-k">return</span> meth(<span class="pl-c1">self</span>, <span class="pl-k">**</span>kw)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py"</span>, line <span class="pl-c1">1608</span>, in <span class="pl-en">visit_select</span>
text, select, inner_columns, froms, byfrom, kwargs)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py"</span>, line <span class="pl-c1">1700</span>, in <span class="pl-en">_compose_select_body</span>
<span class="pl-k">for</span> f <span class="pl-k">in</span> froms])
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py"</span>, line <span class="pl-c1">81</span>, in <span class="pl-en">_compiler_dispatch</span>
<span class="pl-k">return</span> meth(<span class="pl-c1">self</span>, <span class="pl-k">**</span>kw)
File <span class="pl-s">"/home/adrian/dev/indico/env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py"</span>, line <span class="pl-c1">1194</span>, in <span class="pl-en">visit_cte</span>
cte_name)
<span class="pl-en">sqlalchemy.exc.CompileError</span>: <span class="pl-s">Multiple, unrelated CTEs found with the same name: u'anon_2'</span></pre></div> | <p dir="auto"><strong>Migrated issue, originally created by Henrique Alves (<a href="https://github.com/hcarvalhoalves">@hcarvalhoalves</a>)</strong></p>
<p dir="auto">I'm trying to do something that, in principle, should be simple: inject a expression-based column into an ORM-based Query. I've tried this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="query = db.session.query(MyClass).all()
# Using `now` just as an example, ideally it's something that takes a parameter
# so it can't be replaced by `orm.column_property`
some_expression = func.now()
selectable = query.selectable
# The following works as expected, injecting the expression as a column
# the AnnotatedSelect object...
selectable.append_column(some_expression.label('some_column'))
# ... but I can't set it back on the query
query.selectable = selectable
query = query.order_by('some_column')
"><pre class="notranslate"><code class="notranslate">query = db.session.query(MyClass).all()
# Using `now` just as an example, ideally it's something that takes a parameter
# so it can't be replaced by `orm.column_property`
some_expression = func.now()
selectable = query.selectable
# The following works as expected, injecting the expression as a column
# the AnnotatedSelect object...
selectable.append_column(some_expression.label('some_column'))
# ... but I can't set it back on the query
query.selectable = selectable
query = query.order_by('some_column')
</code></pre></div>
<p dir="auto">It fails with <code class="notranslate">AttributeError</code> since <code class="notranslate">query.selectable</code> is read-only. I haven't found another way to inject an expression by reading the docs or the source.</p>
<ul dir="auto">
<li>
<p dir="auto"><code class="notranslate">Query.add_column</code> isn't quite the same thing since you now get a <code class="notranslate">KeyedTuple</code> back, not a <code class="notranslate">MyClass</code> object with the injected attribute.</p>
</li>
<li>
<p dir="auto"><code class="notranslate">orm.column_property</code> is of limited usefulness since you can't pass arguments only known at runtime instead of class-evaluation time.</p>
</li>
</ul>
<p dir="auto">I thought SQLAlchemy made things like this a breeze, but I've spent days without finding an adequate solution. Either I'm missing something, or an API for this is badly needed.</p> | 1 |
<h4 dir="auto">Describe the bug</h4>
<p dir="auto">在发送 delete 请求时,传入 data</p>
<p dir="auto">在 0.19.2 版本的时候,该 data 是能正确发送,并被后端 <code class="notranslate">@RequestBody</code> 正确解析的,在 0.20.0 版本后该 data 没有被正确发送,进而会导致数据接收不到或者发生 400 错误</p>
<h4 dir="auto">To Reproduce</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Axios from 'axios'
Axios.delete('/api', {
headers: {
'Content-Type': 'application/json'
},
data: jsonData
})"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">Axios</span> <span class="pl-k">from</span> <span class="pl-s">'axios'</span>
<span class="pl-v">Axios</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-s">'/api'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">headers</span>: <span class="pl-kos">{</span>
<span class="pl-s">'Content-Type'</span>: <span class="pl-s">'application/json'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">data</span>: <span class="pl-s1">jsonData</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<h4 dir="auto">Expected behavior</h4>
<p dir="auto"><code class="notranslate">options.data</code> 的数据能被正确发送至后端</p>
<h4 dir="auto">Environment</h4>
<ul dir="auto">
<li>Axios Version [0.20.0]</li>
<li>Browser [Chrome]</li>
</ul>
<h4 dir="auto">Additional context/Screenshots</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40221744/93451067-47a15a00-f909-11ea-855a-cfdeb6613f90.png"><img src="https://user-images.githubusercontent.com/40221744/93451067-47a15a00-f909-11ea-855a-cfdeb6613f90.png" alt="image" style="max-width: 100%;"></a></p> | <h4 dir="auto">Describe the bug</h4>
<p dir="auto">Axios last version (0.20.0) does not use data from config when making DELETE request. In 0.19.2 it's working fine</p>
<h4 dir="auto">To Reproduce</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="axios.delete("...", {
data: { ids: [...] },
}).then(response => {
...
}).catch(error => {
...
});"><pre class="notranslate"><span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-s">"..."</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">data</span>: <span class="pl-kos">{</span> <span class="pl-c1">ids</span>: <span class="pl-kos">[</span>...<span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">response</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
...
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span><span class="pl-s1">error</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
...
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h4 dir="auto">Expected behavior</h4>
<p dir="auto">Axios send request data from config when making DELETE request</p>
<h4 dir="auto">Environment</h4>
<ul dir="auto">
<li>Axios Version 0.20.0</li>
<li>Browser Chrome</li>
<li>Browser Version 84.0.4147.125</li>
<li>Node.js Version 12.18.3</li>
<li>OS: Linux Mint</li>
<li>Additional Library Versions React 16.13.1</li>
</ul>
<h4 dir="auto">Additional context/Screenshots</h4>
<p dir="auto">None</p> | 1 |
<p dir="auto">I'm trying to add attributes to my rendered radios</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$builder
->add('myRadios', 'choice', array(
'choices' => array(
'one' => 'uno',
'two' => 'due'),
'multiple' => false,
'attr' => array('class' => 'testClass'),
'expanded' => true"><pre class="notranslate"><code class="notranslate">$builder
->add('myRadios', 'choice', array(
'choices' => array(
'one' => 'uno',
'two' => 'due'),
'multiple' => false,
'attr' => array('class' => 'testClass'),
'expanded' => true
</code></pre></div>
<p dir="auto">the output is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div class="control-group">
<label class="control-label required">Myradios</label>
<div class="controls">
<label for="form_one_0" class="required radio">
<input type="radio" id="form_one_0" name="form[one]" required="required" value="uno" />
<span>Uno</span>
</label>
<label for="form_two_1" class="required radio">
<input type="radio" id="form_two_1" name="form[two]" required="required" value="due" />
<span>Due</span>
</label>
</div>
</div>"><pre class="notranslate"><code class="notranslate"><div class="control-group">
<label class="control-label required">Myradios</label>
<div class="controls">
<label for="form_one_0" class="required radio">
<input type="radio" id="form_one_0" name="form[one]" required="required" value="uno" />
<span>Uno</span>
</label>
<label for="form_two_1" class="required radio">
<input type="radio" id="form_two_1" name="form[two]" required="required" value="due" />
<span>Due</span>
</label>
</div>
</div>
</code></pre></div>
<p dir="auto">no references to class='testClass'</p>
<p dir="auto">I can't find any issue online</p> | <p dir="auto">It would be nice to be able to define extra HTML attributes for choices in a choice list that are added to the <code class="notranslate">option</code> or <code class="notranslate">input</code> tags.</p>
<p dir="auto">Origin of this ticket: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3393283" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/3456" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/3456/hovercard" href="https://github.com/symfony/symfony/issues/3456">#3456</a></p> | 1 |
<p dir="auto">This is not urgent. There is a ton of deprecation warnings across many modules with pytorch-1.7+ and a few with python-3.8:<br>
(I hard-wrapped the lines to avoid the need to scroll, but it makes somewhat harder to see the warnings):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="src/transformers/modeling_deberta.py:18 src/transformers/modeling_deberta.py:18
src/transformers/modeling_deberta.py:18 src/transformers/modeling_deberta.py:18
src/transformers/modeling_deberta.py:18
src/transformers/modeling_deberta.py:18:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop
working from collections import Sequence
tests/test_logging.py::HfArgumentParserTest::test_integration
tests/test_logging.py:40:
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(msg)
tests/test_logging.py::HfArgumentParserTest::test_integration
tests/test_logging.py:48:
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(msg)
tests/test_benchmark.py::BenchmarkTest::test_inference_torchscript
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_attentions
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_gpt2.py:164:
TracerWarning: Converting a tensor to a Python float might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! w = w / (float(v.size(-1)) ** 0.5)
tests/test_benchmark.py::BenchmarkTest::test_inference_torchscript
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_attentions
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_gpt2.py:169:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! mask = self.bias[:, :, ns - nd : ns, :ns]
tests/test_modeling_auto.py::AutoModelTest::test_from_identifier_from_model_type
tests/test_modeling_auto.py::AutoModelTest::test_from_pretrained_identifier
src/transformers/modeling_auto.py:821:
FutureWarning: The class `AutoModelWithLMHead` is deprecated and will be removed
in a future version. Please use `AutoModelForCausalLM` for causal language
models, `AutoModelForMaskedLM` for masked language models and
`AutoModelForSeq2SeqLM` for encoder-decoder models. warnings.warn(
tests/test_benchmark_tf.py::TFBenchmarkTest::test_train_no_configs
tests/test_benchmark_tf.py::TFBenchmarkTest::test_train_with_configs
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/tensorflow/python/framework/indexed_slices.py:432:
UserWarning: Converting sparse IndexedSlices to a dense Tensor of unknown shape.
This may consume a large amount of memory. warnings.warn(
tests/test_modeling_albert.py::AlbertModelTest::test_torchscript
tests/test_modeling_albert.py::AlbertModelTest::test_torchscript_output_attentions
tests/test_modeling_albert.py::AlbertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_albert.py:229:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_albert.py: 3 warnings tests/test_modeling_bert.py: 3
warnings tests/test_modeling_bert_generation.py: 3 warnings
tests/test_modeling_distilbert.py: 2 warnings tests/test_modeling_dpr.py: 3
warnings tests/test_modeling_flaubert.py: 3 warnings
tests/test_modeling_electra.py: 3 warnings tests/test_modeling_layoutlm.py: 3
warnings tests/test_modeling_roberta.py: 3 warnings tests/test_modeling_xlm.py:
3 warnings tests/test_modeling_xlnet.py: 3 warnings
src/transformers/modeling_utils.py:1670:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! input_tensor.shape == tensor_shape for input_tensor
in input_tensors
tests/test_modeling_bert_generation.py: 32 warnings
src/transformers/modeling_bert_generation.py:417:
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn("If you want to use `BertGenerationDecoder` as a standalone, add
`is_decoder=True.`")
tests/test_modeling_bert.py::BertModelTest::test_torchscript
tests/test_modeling_bert.py::BertModelTest::test_torchscript_output_attentions
tests/test_modeling_bert.py::BertModelTest::test_torchscript_output_hidden_state
tests/test_modeling_dpr.py::DPRModelTest::test_torchscript
tests/test_modeling_dpr.py::DPRModelTest::test_torchscript_output_attentions
tests/test_modeling_dpr.py::DPRModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bert.py:191:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:175:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! if decoder_padding_mask is not None and
decoder_padding_mask.shape[1] > 1:
tests/test_modeling_bart.py: 3 warnings tests/test_modeling_flaubert.py: 3
warnings tests/test_modeling_fsmt.py: 3 warnings tests/test_modeling_roberta.py:
3 warnings tests/test_modeling_xlm.py: 3 warnings
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/nn/functional.py:1836:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert padding_idx < weight.size(0), 'Padding_idx
must be within num_embeddings'
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:720:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert key_padding_mask is None or
key_padding_mask.shape == (bsz, src_len)
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:722:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert attn_weights.size() == (bsz * self.num_heads,
tgt_len, src_len)
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:740:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert attn_output.size() == (bsz * self.num_heads,
tgt_len, self.head_dim)
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:287:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! if torch.isinf(x).any() or torch.isnan(x).any():
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:1190:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! if len(torch.unique(eos_mask.sum(1))) > 1:
tests/test_modeling_common.py::UtilsFunctionsTest::test_top_k_top_p_filtering
tests/test_modeling_common.py:1196:
UserWarning: This overload of nonzero is deprecated: nonzero() Consider using
one of the following signatures instead: nonzero(*, bool as_tuple) (Triggered
internally at /pytorch/torch/csrc/utils/python_arg_parser.cpp:882.)
non_inf_idx = (output != -float("inf")).nonzero().to(device=torch_device)
tests/test_modeling_bert_generation.py::BertGenerationEncoderTest::test_torchscript
tests/test_modeling_bert_generation.py::BertGenerationEncoderTest::test_torchscript_output_attentions
tests/test_modeling_bert_generation.py::BertGenerationEncoderTest::test_torchscript_output_hidden_state
src/transformers/modeling_bert_generation.py:156:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_flaubert.py: 14 warnings tests/test_modeling_xlm.py: 14
warnings
src/transformers/modeling_xlm.py:1220:
FutureWarning: The `lengths` parameter cannot be used with the XLM multiple
choice models. Please use the attention mask instead. warnings.warn(
tests/test_modeling_flaubert.py::FlaubertModelTest::test_flaubert_lm_head
tests/test_modeling_flaubert.py::FlaubertModelTest::test_model_outputs_equivalence
tests/test_modeling_xlm.py::XLMModelTest::test_model_outputs_equivalence
tests/test_modeling_xlm.py::XLMModelTest::test_xlm_lm_head
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/nn/_reduction.py:14:
UserWarning: reduction='elementwise_mean' is deprecated, please use
reduction='mean' instead. warnings.warn("reduction='elementwise_mean' is
deprecated, please use reduction='mean' instead.")
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_flaubert.py:188:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.size(0) == bs
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_flaubert.py:189:
TracerWarning: Converting a tensor to a Python number might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_flaubert.py:189:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:95:
TracerWarning: Converting a tensor to a Python number might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:95:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:106:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert mask.size() == (bs, slen)
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:1224:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! if max_pos > self.weight.size(0):
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:763:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert embed_dim == self.embed_dim
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:764:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert list(query.size()) == [tgt_len, bsz,
embed_dim]
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:805:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert attn_weights.size() == (bsz * self.num_heads,
tgt_len, src_len)
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:814:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert key_padding_mask is None or
key_padding_mask.size()[:2] == (
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:833:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert attn_output.size() == (bsz * self.num_heads,
tgt_len, self.head_dim)
tests/test_modeling_gpt2.py::GPT2ModelTest::test_gpt2_model_att_mask_past
tests/test_modeling_gpt2.py::GPT2ModelTest::test_gpt2_model_past
tests/test_modeling_gpt2.py::GPT2ModelTest::test_gpt2_model_past_large_inputs
src/transformers/modeling_gpt2.py:530:
FutureWarning: The `past` argument is deprecated and will be removed in a future
version, use `past_key_values` instead. warnings.warn(
tests/test_modeling_electra.py::ElectraModelTest::test_torchscript
tests/test_modeling_electra.py::ElectraModelTest::test_torchscript_output_attentions
tests/test_modeling_electra.py::ElectraModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_electra.py:180:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_layoutlm.py::LayoutLMModelTest::test_torchscript
tests/test_modeling_layoutlm.py::LayoutLMModelTest::test_torchscript_output_attentions
tests/test_modeling_layoutlm.py::LayoutLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_layoutlm.py:87:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_hidden_state
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/tensor.py:547:
TracerWarning: torch.tensor results are registered as constants in the trace.
You can safely ignore this warning if you use this function to create tensors
out of constant variables that would be the same every time you call this
function. In any other case, this might cause the trace to be incorrect. return
torch.tensor(other, dtype=dtype, device=self.device) ** self
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_funnel.py:314:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! num_remove = shift * len(pooled_pos)
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_funnel.py:638:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! pooling_flag = pooling_flag and block_index > 0
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_funnel.py:481:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! shift = 2 if q_head.shape[1] != context_len else 1
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_funnel.py:431:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! positional_attn = positional_attn[..., :context_len]
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_funnel.py:678:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! output = output[:, : target_len - 1]
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_attentions
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_gpt2.py:1058:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! pooled_logits = logits[range(batch_size),
sequence_lengths]
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_attentions
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_openai.py:467:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[None, :
input_shape[-1]]
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_attentions
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_openai.py:180:
TracerWarning: Converting a tensor to a Python float might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! w = w / math.sqrt(v.size(-1))
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_attentions
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_openai.py:183:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! b = self.bias[:, :, : w.size(-2), : w.size(-1)]
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_attentions
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_openai.py:823:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! pooled_logits = logits[range(batch_size),
sequence_lengths]
tests/test_modeling_rag.py: 12 warnings tests/test_retrieval_rag.py: 1 warning
src/transformers/tokenization_utils_base.py:613:
UserWarning: To copy construct from a tensor, it is recommended to use
sourceTensor.clone().detach() or
sourceTensor.clone().detach().requires_grad_(True), rather than
torch.tensor(sourceTensor). tensor = as_tensor(value)
tests/test_modeling_reformer.py: 58 warnings tests/test_modeling_transfo_xl.py:
18 warnings
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/nn/modules/container.py:434:
UserWarning: Setting attributes on ParameterList is not supported.
warnings.warn("Setting attributes on ParameterList is not supported.")
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript_output_attentions
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_mobilebert.py:192:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript_output_attentions
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_mobilebert.py:534:
TracerWarning: torch.tensor results are registered as constants in the trace.
You can safely ignore this warning if you use this function to create tensors
out of constant variables that would be the same every time you call this
function. In any other case, this might cause the trace to be incorrect.
torch.tensor(1000),
tests/test_modeling_reformer.py::ReformerLSHAttnModelTest::test_reformer_cached_inference
src/transformers/modeling_reformer.py:899:
UserWarning: This overload of nonzero is deprecated: nonzero() Consider using
one of the following signatures instead: nonzero(*, bool as_tuple) (Triggered
internally at /pytorch/torch/csrc/utils/python_arg_parser.cpp:882.)
relevant_bucket_idx = (bucket_idx == (bucket_idx.shape[-1] - 1)).nonzero()
tests/test_modeling_t5.py::T5ModelTest::test_export_to_onnx
tests/test_modeling_t5.py::T5ModelTest::test_torchscript_output_attentions
tests/test_modeling_t5.py::T5ModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_utils.py:244:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! if causal_mask.shape[1] < attention_mask.shape[1]:
tests/test_modeling_t5.py: 95 warnings
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/onnx/utils.py:760:
DeprecationWarning: an integer is required (got type
torch._C._onnx.TensorProtoDataType). Implicit conversion to integers using
__int__ is deprecated, and may be removed in a future version of Python.
return getattr(node, kind + "_")(name, value)
tests/test_modeling_t5.py::T5ModelTest::test_export_to_onnx
tests/test_modeling_t5.py::T5ModelTest::test_export_to_onnx
tests/test_modeling_t5.py::T5ModelTest::test_export_to_onnx
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/onnx/symbolic_opset9.py:1638:
DeprecationWarning: an integer is required (got type float). Implicit conversion
to integers using __int__ is deprecated, and may be removed in a future version
of Python. value_t=torch.tensor([fill_value],
dtype=sym_help.scalar_type_to_pytorch_type[dtype]))
tests/test_modeling_tf_auto.py::TFAutoModelTest::test_from_identifier_from_model_type
tests/test_modeling_tf_auto.py::TFAutoModelTest::test_from_pretrained_identifier
src/transformers/modeling_tf_auto.py:697:
FutureWarning: The class `TFAutoModelWithLMHead` is deprecated and will be
removed in a future version. Please use `TFAutoModelForCausalLM` for causal
language models, `TFAutoModelForMaskedLM` for masked language models and
`TFAutoModelForSeq2SeqLM` for encoder-decoder models. warnings.warn(
tests/test_modeling_squeezebert.py::SqueezeBertModelTest::test_torchscript_output_attentions
tests/test_modeling_squeezebert.py::SqueezeBertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_squeezebert.py:78:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_tf_flaubert.py: 9 warnings tests/test_modeling_tf_xlm.py: 9
warnings
src/transformers/modeling_tf_xlm.py:994:
FutureWarning: The `lengths` parameter cannot be used with the XLM multiple
choice models. Please use the attention mask instead. warnings.warn(
tests/test_modeling_tf_flaubert.py::TFFlaubertModelTest::test_graph_mode
tests/test_modeling_tf_xlm.py::TFXLMModelTest::test_graph_mode
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/tensorflow/python/autograph/impl/api.py:493:
FutureWarning: The `lengths` parameter cannot be used with the XLM multiple
choice models. Please use the attention mask instead. return
py_builtins.overload_of(f)(*args)
tests/test_modeling_tf_xlnet.py::TFXLNetModelTest::test_compile_tf_model
tests/test_modeling_tf_xlnet.py::TFXLNetModelTest::test_config
tests/test_modeling_tf_xlnet.py::TFXLNetModelTest::test_keras_save_load
tests/test_modeling_xlnet.py::XLNetModelTest::test_config
tests/test_modeling_xlnet.py::XLNetModelTest::test_correct_missing_keys
tests/test_modeling_tf_xlnet.py::TFXLNetModelTest::test_save_load
tests/test_modeling_tf_xlnet.py::TFXLNetModelTest::test_train_pipeline_custom_model
tests/test_modeling_xlnet.py::XLNetModelTest::test_save_load
src/transformers/configuration_xlnet.py:205:
FutureWarning: This config doesn't use attention memories, a core feature of
XLNet. Consider setting `mem_len` to a non-zero value, for example `xlnet =
XLNetLMHeadModel.from_pretrained('xlnet-base-cased'', mem_len=1024)`, for
accurate training performance as well as an order of magnitude faster inference.
Starting from version 3.5.0, the default parameter will be 1024, following the
implementation in https://arxiv.org/abs/1906.08237 warnings.warn(
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:531:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.size(0) == bs
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:532:
TracerWarning: Converting a tensor to a Python number might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:532:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:546:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :slen]
tests/test_optimization.py::OptimizationTest::test_adafactor
src/transformers/optimization.py:512:
UserWarning: This overload of add_ is deprecated: add_(Number alpha, Tensor
other) Consider using one of the following signatures instead: add_(Tensor
other, *, Number alpha) (Triggered internally at
/pytorch/torch/csrc/utils/python_arg_parser.cpp:882.)
exp_avg_sq.mul_(beta2t).add_(1.0 - beta2t, update)
tests/test_optimization.py::ScheduleInitTest::test_schedulers
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/optim/lr_scheduler.py:247:
UserWarning: To get the last learning rate computed by the scheduler, please
use `get_last_lr()`. warnings.warn("To get the last learning rate computed by
the scheduler, "
tests/test_optimization.py::ScheduleInitTest::test_schedulers
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/optim/lr_scheduler.py:131:
UserWarning: Detected call of `lr_scheduler.step()` before `optimizer.step()`.
In PyTorch 1.1.0 and later, you should call them in the opposite order:
`optimizer.step()` before `lr_scheduler.step()`. Failure to do this will
result in PyTorch skipping the first value of the learning rate schedule. See
more details at
https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate
warnings.warn("Detected call of `lr_scheduler.step()` before
`optimizer.step()`. "
tests/test_optimization.py::ScheduleInitTest::test_schedulers
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/optim/lr_scheduler.py:216:
UserWarning: Please also save or load the state of the optimizer when saving
or loading the scheduler. warnings.warn(SAVE_STATE_WARNING, UserWarning)
tests/test_optimization.py::ScheduleInitTest::test_schedulers
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/optim/lr_scheduler.py:234:
UserWarning: Please also save or load the state of the optimizer when saving
or loading the scheduler. warnings.warn(SAVE_STATE_WARNING, UserWarning)
tests/test_tokenization_auto.py::AutoTokenizerTest::test_tokenizer_identifier_with_correct_config
tests/test_tokenization_mbart.py::MBartEnroIntegrationTest::test_batch_fairseq_parity
tests/test_tokenization_t5.py::T5TokenizationTest::test_empty_target_text
tests/test_tokenization_t5.py::T5TokenizationTest::test_eos_in_input
tests/test_tokenization_t5.py::T5TokenizationTest::test_max_target_length
tests/test_tokenization_t5.py::T5TokenizationTest::test_outputs_not_longer_than_maxlen
tests/test_tokenization_t5.py::T5TokenizationTest::test_prepare_seq2seq_batch
src/transformers/tokenization_utils_base.py:1421:
FutureWarning: The `max_len` attribute has been deprecated and will be removed
in a future version, use `model_max_length` instead. warnings.warn(
tests/test_tokenization_albert.py: 2 warnings tests/test_tokenization_bart.py: 2
warnings tests/test_tokenization_bert.py: 2 warnings
tests/test_tokenization_bert_generation.py: 1 warning
tests/test_tokenization_bertweet.py: 1 warning
tests/test_tokenization_blenderbot.py: 1 warning
tests/test_tokenization_ctrl.py: 1 warning tests/test_tokenization_camembert.py:
2 warnings tests/test_tokenization_distilbert.py: 4 warnings
tests/test_tokenization_dpr.py: 8 warnings tests/test_tokenization_fsmt.py: 1
warning tests/test_tokenization_funnel.py: 2 warnings
tests/test_tokenization_herbert.py: 2 warnings tests/test_tokenization_gpt2.py:
1 warning tests/test_tokenization_layoutlm.py: 2 warnings
tests/test_tokenization_marian.py: 1 warning tests/test_tokenization_lxmert.py:
2 warnings tests/test_tokenization_mbart.py: 2 warnings
tests/test_tokenization_pegasus.py: 2 warnings
tests/test_tokenization_openai.py: 1 warning tests/test_tokenization_phobert.py:
1 warning tests/test_tokenization_deberta.py: 1 warning
tests/test_tokenization_prophetnet.py: 1 warning
tests/test_tokenization_reformer.py: 1 warning
tests/test_tokenization_squeezebert.py: 4 warnings
tests/test_tokenization_t5.py: 2 warnings tests/test_tokenization_roberta.py: 2
warnings tests/test_tokenization_transfo_xl.py: 1 warning
tests/test_tokenization_xlm.py: 1 warning
tests/test_tokenization_xlm_prophetnet.py: 1 warning
tests/test_tokenization_xlnet.py: 2 warnings
tests/test_tokenization_xlm_roberta.py: 2 warnings
src/transformers/tokenization_utils_base.py:2025:
FutureWarning: The `pad_to_max_length` argument is deprecated and will be
removed in a future version, use `padding=True` or `padding='longest'` to pad to
the longest sequence in the batch, or use `padding='max_length'` to pad to a max
length. In this case, you can give a specific length with `max_length` (e.g.
`max_length=45`) or leave max_length to None to pad to the maximal input size of
the model (e.g. 512 for Bert). warnings.warn(
tests/test_tokenization_t5.py::T5TokenizationTest::test_eos_in_input
tests/test_tokenization_t5.py::T5TokenizationTest::test_eos_treatment
src/transformers/tokenization_t5.py:183:
UserWarning: This sequence already has </s>. In future versions this behavior
may lead to duplicated eos tokens being added. warnings.warn(
tests/test_trainer.py: 44 warnings
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/nn/parallel/_functions.py:64:
UserWarning: Was asked to gather along dimension 0, but all input tensors were
scalars; will instead unsqueeze and return a vector. warnings.warn('Was asked
to gather along dimension 0, but all '
tests/test_trainer.py::TrainerIntegrationTest::test_can_resume_training
tests/test_trainer_callback.py::TrainerCallbackTest::test_event_flow
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/cuda/nccl.py:48:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop
working if not isinstance(inputs, collections.Container) or isinstance(inputs,
torch.Tensor):
-- Docs: https://docs.pytest.org/en/stable/warnings.html"><pre class="notranslate"><code class="notranslate">src/transformers/modeling_deberta.py:18 src/transformers/modeling_deberta.py:18
src/transformers/modeling_deberta.py:18 src/transformers/modeling_deberta.py:18
src/transformers/modeling_deberta.py:18
src/transformers/modeling_deberta.py:18:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop
working from collections import Sequence
tests/test_logging.py::HfArgumentParserTest::test_integration
tests/test_logging.py:40:
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(msg)
tests/test_logging.py::HfArgumentParserTest::test_integration
tests/test_logging.py:48:
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(msg)
tests/test_benchmark.py::BenchmarkTest::test_inference_torchscript
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_attentions
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_gpt2.py:164:
TracerWarning: Converting a tensor to a Python float might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! w = w / (float(v.size(-1)) ** 0.5)
tests/test_benchmark.py::BenchmarkTest::test_inference_torchscript
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_attentions
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_gpt2.py:169:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! mask = self.bias[:, :, ns - nd : ns, :ns]
tests/test_modeling_auto.py::AutoModelTest::test_from_identifier_from_model_type
tests/test_modeling_auto.py::AutoModelTest::test_from_pretrained_identifier
src/transformers/modeling_auto.py:821:
FutureWarning: The class `AutoModelWithLMHead` is deprecated and will be removed
in a future version. Please use `AutoModelForCausalLM` for causal language
models, `AutoModelForMaskedLM` for masked language models and
`AutoModelForSeq2SeqLM` for encoder-decoder models. warnings.warn(
tests/test_benchmark_tf.py::TFBenchmarkTest::test_train_no_configs
tests/test_benchmark_tf.py::TFBenchmarkTest::test_train_with_configs
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/tensorflow/python/framework/indexed_slices.py:432:
UserWarning: Converting sparse IndexedSlices to a dense Tensor of unknown shape.
This may consume a large amount of memory. warnings.warn(
tests/test_modeling_albert.py::AlbertModelTest::test_torchscript
tests/test_modeling_albert.py::AlbertModelTest::test_torchscript_output_attentions
tests/test_modeling_albert.py::AlbertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_albert.py:229:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_albert.py: 3 warnings tests/test_modeling_bert.py: 3
warnings tests/test_modeling_bert_generation.py: 3 warnings
tests/test_modeling_distilbert.py: 2 warnings tests/test_modeling_dpr.py: 3
warnings tests/test_modeling_flaubert.py: 3 warnings
tests/test_modeling_electra.py: 3 warnings tests/test_modeling_layoutlm.py: 3
warnings tests/test_modeling_roberta.py: 3 warnings tests/test_modeling_xlm.py:
3 warnings tests/test_modeling_xlnet.py: 3 warnings
src/transformers/modeling_utils.py:1670:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! input_tensor.shape == tensor_shape for input_tensor
in input_tensors
tests/test_modeling_bert_generation.py: 32 warnings
src/transformers/modeling_bert_generation.py:417:
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn("If you want to use `BertGenerationDecoder` as a standalone, add
`is_decoder=True.`")
tests/test_modeling_bert.py::BertModelTest::test_torchscript
tests/test_modeling_bert.py::BertModelTest::test_torchscript_output_attentions
tests/test_modeling_bert.py::BertModelTest::test_torchscript_output_hidden_state
tests/test_modeling_dpr.py::DPRModelTest::test_torchscript
tests/test_modeling_dpr.py::DPRModelTest::test_torchscript_output_attentions
tests/test_modeling_dpr.py::DPRModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bert.py:191:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:175:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! if decoder_padding_mask is not None and
decoder_padding_mask.shape[1] > 1:
tests/test_modeling_bart.py: 3 warnings tests/test_modeling_flaubert.py: 3
warnings tests/test_modeling_fsmt.py: 3 warnings tests/test_modeling_roberta.py:
3 warnings tests/test_modeling_xlm.py: 3 warnings
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/nn/functional.py:1836:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert padding_idx < weight.size(0), 'Padding_idx
must be within num_embeddings'
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:720:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert key_padding_mask is None or
key_padding_mask.shape == (bsz, src_len)
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:722:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert attn_weights.size() == (bsz * self.num_heads,
tgt_len, src_len)
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:740:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert attn_output.size() == (bsz * self.num_heads,
tgt_len, self.head_dim)
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:287:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! if torch.isinf(x).any() or torch.isnan(x).any():
tests/test_modeling_bart.py::BARTModelTest::test_torchscript
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_attentions
tests/test_modeling_bart.py::BARTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_bart.py:1190:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! if len(torch.unique(eos_mask.sum(1))) > 1:
tests/test_modeling_common.py::UtilsFunctionsTest::test_top_k_top_p_filtering
tests/test_modeling_common.py:1196:
UserWarning: This overload of nonzero is deprecated: nonzero() Consider using
one of the following signatures instead: nonzero(*, bool as_tuple) (Triggered
internally at /pytorch/torch/csrc/utils/python_arg_parser.cpp:882.)
non_inf_idx = (output != -float("inf")).nonzero().to(device=torch_device)
tests/test_modeling_bert_generation.py::BertGenerationEncoderTest::test_torchscript
tests/test_modeling_bert_generation.py::BertGenerationEncoderTest::test_torchscript_output_attentions
tests/test_modeling_bert_generation.py::BertGenerationEncoderTest::test_torchscript_output_hidden_state
src/transformers/modeling_bert_generation.py:156:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_flaubert.py: 14 warnings tests/test_modeling_xlm.py: 14
warnings
src/transformers/modeling_xlm.py:1220:
FutureWarning: The `lengths` parameter cannot be used with the XLM multiple
choice models. Please use the attention mask instead. warnings.warn(
tests/test_modeling_flaubert.py::FlaubertModelTest::test_flaubert_lm_head
tests/test_modeling_flaubert.py::FlaubertModelTest::test_model_outputs_equivalence
tests/test_modeling_xlm.py::XLMModelTest::test_model_outputs_equivalence
tests/test_modeling_xlm.py::XLMModelTest::test_xlm_lm_head
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/nn/_reduction.py:14:
UserWarning: reduction='elementwise_mean' is deprecated, please use
reduction='mean' instead. warnings.warn("reduction='elementwise_mean' is
deprecated, please use reduction='mean' instead.")
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_flaubert.py:188:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.size(0) == bs
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_flaubert.py:189:
TracerWarning: Converting a tensor to a Python number might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_flaubert.py:189:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:95:
TracerWarning: Converting a tensor to a Python number might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:95:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_attentions
tests/test_modeling_flaubert.py::FlaubertModelTest::test_torchscript_output_hidden_state
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:106:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert mask.size() == (bs, slen)
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:1224:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! if max_pos > self.weight.size(0):
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:763:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert embed_dim == self.embed_dim
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:764:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert list(query.size()) == [tgt_len, bsz,
embed_dim]
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:805:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert attn_weights.size() == (bsz * self.num_heads,
tgt_len, src_len)
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:814:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert key_padding_mask is None or
key_padding_mask.size()[:2] == (
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_attentions
tests/test_modeling_fsmt.py::FSMTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_fsmt.py:833:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert attn_output.size() == (bsz * self.num_heads,
tgt_len, self.head_dim)
tests/test_modeling_gpt2.py::GPT2ModelTest::test_gpt2_model_att_mask_past
tests/test_modeling_gpt2.py::GPT2ModelTest::test_gpt2_model_past
tests/test_modeling_gpt2.py::GPT2ModelTest::test_gpt2_model_past_large_inputs
src/transformers/modeling_gpt2.py:530:
FutureWarning: The `past` argument is deprecated and will be removed in a future
version, use `past_key_values` instead. warnings.warn(
tests/test_modeling_electra.py::ElectraModelTest::test_torchscript
tests/test_modeling_electra.py::ElectraModelTest::test_torchscript_output_attentions
tests/test_modeling_electra.py::ElectraModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_electra.py:180:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_layoutlm.py::LayoutLMModelTest::test_torchscript
tests/test_modeling_layoutlm.py::LayoutLMModelTest::test_torchscript_output_attentions
tests/test_modeling_layoutlm.py::LayoutLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_layoutlm.py:87:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_hidden_state
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/tensor.py:547:
TracerWarning: torch.tensor results are registered as constants in the trace.
You can safely ignore this warning if you use this function to create tensors
out of constant variables that would be the same every time you call this
function. In any other case, this might cause the trace to be incorrect. return
torch.tensor(other, dtype=dtype, device=self.device) ** self
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_funnel.py:314:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! num_remove = shift * len(pooled_pos)
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_funnel.py:638:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! pooling_flag = pooling_flag and block_index > 0
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_funnel.py:481:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! shift = 2 if q_head.shape[1] != context_len else 1
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelBaseModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_funnel.py:431:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! positional_attn = positional_attn[..., :context_len]
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_attentions
tests/test_modeling_funnel.py::FunnelModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_funnel.py:678:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! output = output[:, : target_len - 1]
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_attentions
tests/test_modeling_gpt2.py::GPT2ModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_gpt2.py:1058:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! pooled_logits = logits[range(batch_size),
sequence_lengths]
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_attentions
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_openai.py:467:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[None, :
input_shape[-1]]
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_attentions
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_openai.py:180:
TracerWarning: Converting a tensor to a Python float might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! w = w / math.sqrt(v.size(-1))
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_attentions
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_openai.py:183:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! b = self.bias[:, :, : w.size(-2), : w.size(-1)]
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_attentions
tests/test_modeling_openai.py::OpenAIGPTModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_openai.py:823:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! pooled_logits = logits[range(batch_size),
sequence_lengths]
tests/test_modeling_rag.py: 12 warnings tests/test_retrieval_rag.py: 1 warning
src/transformers/tokenization_utils_base.py:613:
UserWarning: To copy construct from a tensor, it is recommended to use
sourceTensor.clone().detach() or
sourceTensor.clone().detach().requires_grad_(True), rather than
torch.tensor(sourceTensor). tensor = as_tensor(value)
tests/test_modeling_reformer.py: 58 warnings tests/test_modeling_transfo_xl.py:
18 warnings
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/nn/modules/container.py:434:
UserWarning: Setting attributes on ParameterList is not supported.
warnings.warn("Setting attributes on ParameterList is not supported.")
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript_output_attentions
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_mobilebert.py:192:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript_output_attentions
tests/test_modeling_mobilebert.py::MobileBertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_mobilebert.py:534:
TracerWarning: torch.tensor results are registered as constants in the trace.
You can safely ignore this warning if you use this function to create tensors
out of constant variables that would be the same every time you call this
function. In any other case, this might cause the trace to be incorrect.
torch.tensor(1000),
tests/test_modeling_reformer.py::ReformerLSHAttnModelTest::test_reformer_cached_inference
src/transformers/modeling_reformer.py:899:
UserWarning: This overload of nonzero is deprecated: nonzero() Consider using
one of the following signatures instead: nonzero(*, bool as_tuple) (Triggered
internally at /pytorch/torch/csrc/utils/python_arg_parser.cpp:882.)
relevant_bucket_idx = (bucket_idx == (bucket_idx.shape[-1] - 1)).nonzero()
tests/test_modeling_t5.py::T5ModelTest::test_export_to_onnx
tests/test_modeling_t5.py::T5ModelTest::test_torchscript_output_attentions
tests/test_modeling_t5.py::T5ModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_utils.py:244:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! if causal_mask.shape[1] < attention_mask.shape[1]:
tests/test_modeling_t5.py: 95 warnings
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/onnx/utils.py:760:
DeprecationWarning: an integer is required (got type
torch._C._onnx.TensorProtoDataType). Implicit conversion to integers using
__int__ is deprecated, and may be removed in a future version of Python.
return getattr(node, kind + "_")(name, value)
tests/test_modeling_t5.py::T5ModelTest::test_export_to_onnx
tests/test_modeling_t5.py::T5ModelTest::test_export_to_onnx
tests/test_modeling_t5.py::T5ModelTest::test_export_to_onnx
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/onnx/symbolic_opset9.py:1638:
DeprecationWarning: an integer is required (got type float). Implicit conversion
to integers using __int__ is deprecated, and may be removed in a future version
of Python. value_t=torch.tensor([fill_value],
dtype=sym_help.scalar_type_to_pytorch_type[dtype]))
tests/test_modeling_tf_auto.py::TFAutoModelTest::test_from_identifier_from_model_type
tests/test_modeling_tf_auto.py::TFAutoModelTest::test_from_pretrained_identifier
src/transformers/modeling_tf_auto.py:697:
FutureWarning: The class `TFAutoModelWithLMHead` is deprecated and will be
removed in a future version. Please use `TFAutoModelForCausalLM` for causal
language models, `TFAutoModelForMaskedLM` for masked language models and
`TFAutoModelForSeq2SeqLM` for encoder-decoder models. warnings.warn(
tests/test_modeling_squeezebert.py::SqueezeBertModelTest::test_torchscript_output_attentions
tests/test_modeling_squeezebert.py::SqueezeBertModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_squeezebert.py:78:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :seq_length]
tests/test_modeling_tf_flaubert.py: 9 warnings tests/test_modeling_tf_xlm.py: 9
warnings
src/transformers/modeling_tf_xlm.py:994:
FutureWarning: The `lengths` parameter cannot be used with the XLM multiple
choice models. Please use the attention mask instead. warnings.warn(
tests/test_modeling_tf_flaubert.py::TFFlaubertModelTest::test_graph_mode
tests/test_modeling_tf_xlm.py::TFXLMModelTest::test_graph_mode
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/tensorflow/python/autograph/impl/api.py:493:
FutureWarning: The `lengths` parameter cannot be used with the XLM multiple
choice models. Please use the attention mask instead. return
py_builtins.overload_of(f)(*args)
tests/test_modeling_tf_xlnet.py::TFXLNetModelTest::test_compile_tf_model
tests/test_modeling_tf_xlnet.py::TFXLNetModelTest::test_config
tests/test_modeling_tf_xlnet.py::TFXLNetModelTest::test_keras_save_load
tests/test_modeling_xlnet.py::XLNetModelTest::test_config
tests/test_modeling_xlnet.py::XLNetModelTest::test_correct_missing_keys
tests/test_modeling_tf_xlnet.py::TFXLNetModelTest::test_save_load
tests/test_modeling_tf_xlnet.py::TFXLNetModelTest::test_train_pipeline_custom_model
tests/test_modeling_xlnet.py::XLNetModelTest::test_save_load
src/transformers/configuration_xlnet.py:205:
FutureWarning: This config doesn't use attention memories, a core feature of
XLNet. Consider setting `mem_len` to a non-zero value, for example `xlnet =
XLNetLMHeadModel.from_pretrained('xlnet-base-cased'', mem_len=1024)`, for
accurate training performance as well as an order of magnitude faster inference.
Starting from version 3.5.0, the default parameter will be 1024, following the
implementation in https://arxiv.org/abs/1906.08237 warnings.warn(
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:531:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.size(0) == bs
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:532:
TracerWarning: Converting a tensor to a Python number might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:532:
TracerWarning: Converting a tensor to a Python boolean might cause the trace to
be incorrect. We can't record the data flow of Python values, so this value will
be treated as a constant in the future. This means that the trace might not
generalize to other inputs! assert lengths.max().item() <= slen
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_attentions
tests/test_modeling_xlm.py::XLMModelTest::test_torchscript_output_hidden_state
src/transformers/modeling_xlm.py:546:
TracerWarning: Converting a tensor to a Python index might cause the trace to be
incorrect. We can't record the data flow of Python values, so this value will be
treated as a constant in the future. This means that the trace might not
generalize to other inputs! position_ids = self.position_ids[:, :slen]
tests/test_optimization.py::OptimizationTest::test_adafactor
src/transformers/optimization.py:512:
UserWarning: This overload of add_ is deprecated: add_(Number alpha, Tensor
other) Consider using one of the following signatures instead: add_(Tensor
other, *, Number alpha) (Triggered internally at
/pytorch/torch/csrc/utils/python_arg_parser.cpp:882.)
exp_avg_sq.mul_(beta2t).add_(1.0 - beta2t, update)
tests/test_optimization.py::ScheduleInitTest::test_schedulers
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/optim/lr_scheduler.py:247:
UserWarning: To get the last learning rate computed by the scheduler, please
use `get_last_lr()`. warnings.warn("To get the last learning rate computed by
the scheduler, "
tests/test_optimization.py::ScheduleInitTest::test_schedulers
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/optim/lr_scheduler.py:131:
UserWarning: Detected call of `lr_scheduler.step()` before `optimizer.step()`.
In PyTorch 1.1.0 and later, you should call them in the opposite order:
`optimizer.step()` before `lr_scheduler.step()`. Failure to do this will
result in PyTorch skipping the first value of the learning rate schedule. See
more details at
https://pytorch.org/docs/stable/optim.html#how-to-adjust-learning-rate
warnings.warn("Detected call of `lr_scheduler.step()` before
`optimizer.step()`. "
tests/test_optimization.py::ScheduleInitTest::test_schedulers
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/optim/lr_scheduler.py:216:
UserWarning: Please also save or load the state of the optimizer when saving
or loading the scheduler. warnings.warn(SAVE_STATE_WARNING, UserWarning)
tests/test_optimization.py::ScheduleInitTest::test_schedulers
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/optim/lr_scheduler.py:234:
UserWarning: Please also save or load the state of the optimizer when saving
or loading the scheduler. warnings.warn(SAVE_STATE_WARNING, UserWarning)
tests/test_tokenization_auto.py::AutoTokenizerTest::test_tokenizer_identifier_with_correct_config
tests/test_tokenization_mbart.py::MBartEnroIntegrationTest::test_batch_fairseq_parity
tests/test_tokenization_t5.py::T5TokenizationTest::test_empty_target_text
tests/test_tokenization_t5.py::T5TokenizationTest::test_eos_in_input
tests/test_tokenization_t5.py::T5TokenizationTest::test_max_target_length
tests/test_tokenization_t5.py::T5TokenizationTest::test_outputs_not_longer_than_maxlen
tests/test_tokenization_t5.py::T5TokenizationTest::test_prepare_seq2seq_batch
src/transformers/tokenization_utils_base.py:1421:
FutureWarning: The `max_len` attribute has been deprecated and will be removed
in a future version, use `model_max_length` instead. warnings.warn(
tests/test_tokenization_albert.py: 2 warnings tests/test_tokenization_bart.py: 2
warnings tests/test_tokenization_bert.py: 2 warnings
tests/test_tokenization_bert_generation.py: 1 warning
tests/test_tokenization_bertweet.py: 1 warning
tests/test_tokenization_blenderbot.py: 1 warning
tests/test_tokenization_ctrl.py: 1 warning tests/test_tokenization_camembert.py:
2 warnings tests/test_tokenization_distilbert.py: 4 warnings
tests/test_tokenization_dpr.py: 8 warnings tests/test_tokenization_fsmt.py: 1
warning tests/test_tokenization_funnel.py: 2 warnings
tests/test_tokenization_herbert.py: 2 warnings tests/test_tokenization_gpt2.py:
1 warning tests/test_tokenization_layoutlm.py: 2 warnings
tests/test_tokenization_marian.py: 1 warning tests/test_tokenization_lxmert.py:
2 warnings tests/test_tokenization_mbart.py: 2 warnings
tests/test_tokenization_pegasus.py: 2 warnings
tests/test_tokenization_openai.py: 1 warning tests/test_tokenization_phobert.py:
1 warning tests/test_tokenization_deberta.py: 1 warning
tests/test_tokenization_prophetnet.py: 1 warning
tests/test_tokenization_reformer.py: 1 warning
tests/test_tokenization_squeezebert.py: 4 warnings
tests/test_tokenization_t5.py: 2 warnings tests/test_tokenization_roberta.py: 2
warnings tests/test_tokenization_transfo_xl.py: 1 warning
tests/test_tokenization_xlm.py: 1 warning
tests/test_tokenization_xlm_prophetnet.py: 1 warning
tests/test_tokenization_xlnet.py: 2 warnings
tests/test_tokenization_xlm_roberta.py: 2 warnings
src/transformers/tokenization_utils_base.py:2025:
FutureWarning: The `pad_to_max_length` argument is deprecated and will be
removed in a future version, use `padding=True` or `padding='longest'` to pad to
the longest sequence in the batch, or use `padding='max_length'` to pad to a max
length. In this case, you can give a specific length with `max_length` (e.g.
`max_length=45`) or leave max_length to None to pad to the maximal input size of
the model (e.g. 512 for Bert). warnings.warn(
tests/test_tokenization_t5.py::T5TokenizationTest::test_eos_in_input
tests/test_tokenization_t5.py::T5TokenizationTest::test_eos_treatment
src/transformers/tokenization_t5.py:183:
UserWarning: This sequence already has </s>. In future versions this behavior
may lead to duplicated eos tokens being added. warnings.warn(
tests/test_trainer.py: 44 warnings
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/nn/parallel/_functions.py:64:
UserWarning: Was asked to gather along dimension 0, but all input tensors were
scalars; will instead unsqueeze and return a vector. warnings.warn('Was asked
to gather along dimension 0, but all '
tests/test_trainer.py::TrainerIntegrationTest::test_can_resume_training
tests/test_trainer_callback.py::TrainerCallbackTest::test_event_flow
/home/stas/anaconda3/envs/py38-pt17/lib/python3.8/site-packages/torch/cuda/nccl.py:48:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of
from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop
working if not isinstance(inputs, collections.Container) or isinstance(inputs,
torch.Tensor):
-- Docs: https://docs.pytest.org/en/stable/warnings.html
</code></pre></div>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/LysandreJik/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/LysandreJik">@LysandreJik</a></p> | <h3 dir="auto">System Info</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- `transformers` version: 4.20.1
- Platform: Windows-10-10.0.19044-SP0
- Python version: 3.8.12
- Huggingface_hub version: 0.4.0
- PyTorch version (GPU?): 1.11.0 (True)
- Tensorflow version (GPU?): 2.8.0 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no"><pre class="notranslate">- <span class="pl-s"><span class="pl-pds">`</span>transformers<span class="pl-pds">`</span></span> version: 4.20.1
- Platform: Windows-10-10.0.19044-SP0
- Python version: 3.8.12
- Huggingface_hub version: 0.4.0
- PyTorch version (GPU<span class="pl-k">?</span>): 1.11.0 (True)
- Tensorflow version (GPU<span class="pl-k">?</span>): 2.8.0 (True)
- Flax version (CPU<span class="pl-k">?</span>/GPU<span class="pl-k">?</span>/TPU<span class="pl-k">?</span>): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU <span class="pl-k">in</span> script<span class="pl-k">?</span>: no
- Using distributed or parallel set-up <span class="pl-k">in</span> script<span class="pl-k">?</span>: no</pre></div>
<h3 dir="auto">Who can help?</h3>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patrickvonplaten/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patrickvonplaten">@patrickvonplaten</a></p>
<h3 dir="auto">Information</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> The official example scripts</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own modified scripts</li>
</ul>
<h3 dir="auto">Tasks</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own task or dataset (give details below)</li>
</ul>
<h3 dir="auto">Reproduction</h3>
<ol dir="auto">
<li>duplication case: the outputs should not contain the same sequence.</li>
</ol>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> from transformers import GPT2LMHeadModel, GPT2Tokenizer
>>> model = GPT2LMHeadModel.from_pretrained("gpt2")
>>> tokenizer = GPT2Tokenizer.from_pretrained("gpt2")
>>> force_word = "are"
>>> force_words_ids = [
>>> tokenizer([force_word], add_prefix_space=True, add_special_tokens=False).input_ids,
>>> ]
>>> starting_text = ["The soldiers"]
>>> input_ids = tokenizer(starting_text, return_tensors="pt").input_ids
>>> outputs = model.generate(
>>> input_ids,
>>> max_new_tokens=3,
>>> force_words_ids=force_words_ids,
>>> num_beams=10,
>>> num_return_sequences=10,
>>> no_repeat_ngram_size=1,
>>> remove_invalid_values=True,
>>> )
>>> outputs = outputs[:, input_ids.shape[-1]:]
>>> print("Output:\n" + 100 * '-')
>>> for s in tokenizer.batch_decode(outputs, skip_special_tokens=True):
>>> print(s)
>>> import collections
>>> print(collections.Counter(map(tuple, outputs.tolist())).most_common(1))
Output:
----------------------------------------------------------------------------------------------------
, who are
, who were
who are in
, who had
, who are
who are fighting
who are still
who are killed
who are not
who are on
[((11, 508, 389), 2)]"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">from</span> <span class="pl-s1">transformers</span> <span class="pl-k">import</span> <span class="pl-v">GPT2LMHeadModel</span>, <span class="pl-v">GPT2Tokenizer</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">GPT2LMHeadModel</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">"gpt2"</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">tokenizer</span> <span class="pl-c1">=</span> <span class="pl-v">GPT2Tokenizer</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">"gpt2"</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">force_word</span> <span class="pl-c1">=</span> <span class="pl-s">"are"</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">force_words_ids</span> <span class="pl-c1">=</span> [
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">tokenizer</span>([<span class="pl-s1">force_word</span>], <span class="pl-s1">add_prefix_space</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">add_special_tokens</span><span class="pl-c1">=</span><span class="pl-c1">False</span>).<span class="pl-s1">input_ids</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> ]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">starting_text</span> <span class="pl-c1">=</span> [<span class="pl-s">"The soldiers"</span>]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">input_ids</span> <span class="pl-c1">=</span> <span class="pl-en">tokenizer</span>(<span class="pl-s1">starting_text</span>, <span class="pl-s1">return_tensors</span><span class="pl-c1">=</span><span class="pl-s">"pt"</span>).<span class="pl-s1">input_ids</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">outputs</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-s1">generate</span>(
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">input_ids</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">max_new_tokens</span><span class="pl-c1">=</span><span class="pl-c1">3</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">force_words_ids</span><span class="pl-c1">=</span><span class="pl-s1">force_words_ids</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">num_beams</span><span class="pl-c1">=</span><span class="pl-c1">10</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">num_return_sequences</span><span class="pl-c1">=</span><span class="pl-c1">10</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">no_repeat_ngram_size</span><span class="pl-c1">=</span><span class="pl-c1">1</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">remove_invalid_values</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> )
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">outputs</span> <span class="pl-c1">=</span> <span class="pl-s1">outputs</span>[:, <span class="pl-s1">input_ids</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-c1">></span> <span class="pl-en">print</span>(<span class="pl-s">"Output:<span class="pl-cce">\n</span>"</span> <span class="pl-c1">+</span> <span class="pl-c1">100</span> <span class="pl-c1">*</span> <span class="pl-s">'-'</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">for</span> <span class="pl-s1">s</span> <span class="pl-c1">in</span> <span class="pl-s1">tokenizer</span>.<span class="pl-en">batch_decode</span>(<span class="pl-s1">outputs</span>, <span class="pl-s1">skip_special_tokens</span><span class="pl-c1">=</span><span class="pl-c1">True</span>):
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">s</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">collections</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">collections</span>.<span class="pl-v">Counter</span>(<span class="pl-en">map</span>(<span class="pl-s1">tuple</span>, <span class="pl-s1">outputs</span>.<span class="pl-en">tolist</span>())).<span class="pl-en">most_common</span>(<span class="pl-c1">1</span>))
<span class="pl-v">Output</span>:
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
, <span class="pl-s1">who</span> <span class="pl-s1">are</span>
, <span class="pl-s1">who</span> <span class="pl-s1">were</span>
<span class="pl-s1">who</span> <span class="pl-s1">are</span> <span class="pl-c1">in</span>
, <span class="pl-s1">who</span> <span class="pl-s1">had</span>
, <span class="pl-s1">who</span> <span class="pl-s1">are</span>
<span class="pl-s1">who</span> <span class="pl-s1">are</span> <span class="pl-s1">fighting</span>
<span class="pl-s1">who</span> <span class="pl-s1">are</span> <span class="pl-s1">still</span>
<span class="pl-s1">who</span> <span class="pl-s1">are</span> <span class="pl-s1">killed</span>
<span class="pl-s1">who</span> <span class="pl-s1">are</span> <span class="pl-c1">not</span>
<span class="pl-s1">who</span> <span class="pl-s1">are</span> <span class="pl-s1">on</span>
[((<span class="pl-c1">11</span>, <span class="pl-c1">508</span>, <span class="pl-c1">389</span>), <span class="pl-c1">2</span>)]</pre></div>
<ol start="2" dir="auto">
<li>weird case: the output looks weird, repeat progressing constraints with unreasonable tokens</li>
</ol>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> from transformers import GPT2LMHeadModel, GPT2Tokenizer
>>> model = GPT2LMHeadModel.from_pretrained("gpt2")
>>> tokenizer = GPT2Tokenizer.from_pretrained("gpt2")
>>> force_word = "were not allowed"
>>> force_words_ids = [
>>> tokenizer([force_word], add_prefix_space=True, add_special_tokens=False).input_ids,
>>> ]
>>> starting_text = ["The soldiers"]
>>> input_ids = tokenizer(starting_text, return_tensors="pt").input_ids
>>> outputs = model.generate(
>>> input_ids,
>>> force_words_ids=force_words_ids,
>>> num_beams=10,
>>> num_return_sequences=10,
>>> no_repeat_ngram_size=1,
>>> remove_invalid_values=True,
>>> )
>>> print("Output:\n" + 100 * '-')
>>> for s in tokenizer.batch_decode(outputs, skip_special_tokens=True):
>>> print(s)
Output:
----------------------------------------------------------------------------------------------------
The soldiers, who were wearing were not in were not allowed to leave the barracks. The commander of
The soldiers, who were wearing were not in were not allowed to leave the barracks. The military said
The soldiers, who were wearing were not in were not allowed to enter the building. The military said
The soldiers, who were wearing were not in were not allowed to enter the building. The police said
The soldiers, who were wearing were not in were not allowed to leave the barracks. The commander said
The soldiers, who were wearing were not in were not allowed to enter the building. The police had
The soldiers, who were wearing were not in were not allowed to leave the barracks. The army said
The soldiers, who were wearing were not in were not allowed to enter the building. The police then
The soldiers, who were wearing were not in were not allowed to leave the barracks. The commander told
The soldiers, who were wearing were not in were not allowed to enter the building. The police and"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">from</span> <span class="pl-s1">transformers</span> <span class="pl-k">import</span> <span class="pl-v">GPT2LMHeadModel</span>, <span class="pl-v">GPT2Tokenizer</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">GPT2LMHeadModel</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">"gpt2"</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">tokenizer</span> <span class="pl-c1">=</span> <span class="pl-v">GPT2Tokenizer</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s">"gpt2"</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">force_word</span> <span class="pl-c1">=</span> <span class="pl-s">"were not allowed"</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">force_words_ids</span> <span class="pl-c1">=</span> [
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">tokenizer</span>([<span class="pl-s1">force_word</span>], <span class="pl-s1">add_prefix_space</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">add_special_tokens</span><span class="pl-c1">=</span><span class="pl-c1">False</span>).<span class="pl-s1">input_ids</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> ]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">starting_text</span> <span class="pl-c1">=</span> [<span class="pl-s">"The soldiers"</span>]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">input_ids</span> <span class="pl-c1">=</span> <span class="pl-en">tokenizer</span>(<span class="pl-s1">starting_text</span>, <span class="pl-s1">return_tensors</span><span class="pl-c1">=</span><span class="pl-s">"pt"</span>).<span class="pl-s1">input_ids</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">outputs</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-s1">generate</span>(
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">input_ids</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">force_words_ids</span><span class="pl-c1">=</span><span class="pl-s1">force_words_ids</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">num_beams</span><span class="pl-c1">=</span><span class="pl-c1">10</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">num_return_sequences</span><span class="pl-c1">=</span><span class="pl-c1">10</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">no_repeat_ngram_size</span><span class="pl-c1">=</span><span class="pl-c1">1</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">remove_invalid_values</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-c1">>></span><span class="pl-c1">></span> )
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s">"Output:<span class="pl-cce">\n</span>"</span> <span class="pl-c1">+</span> <span class="pl-c1">100</span> <span class="pl-c1">*</span> <span class="pl-s">'-'</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">for</span> <span class="pl-s1">s</span> <span class="pl-c1">in</span> <span class="pl-s1">tokenizer</span>.<span class="pl-en">batch_decode</span>(<span class="pl-s1">outputs</span>, <span class="pl-s1">skip_special_tokens</span><span class="pl-c1">=</span><span class="pl-c1">True</span>):
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">s</span>)
<span class="pl-v">Output</span>:
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</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">The</span> <span class="pl-s1">soldiers</span>, <span class="pl-s1">who</span> <span class="pl-s1">were</span> <span class="pl-s1">wearing</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-s1">allowed</span> <span class="pl-s1">to</span> <span class="pl-s1">leave</span> <span class="pl-s1">the</span> <span class="pl-s1">barracks</span>. <span class="pl-v">The</span> <span class="pl-s1">commander</span> <span class="pl-s1">of</span>
<span class="pl-v">The</span> <span class="pl-s1">soldiers</span>, <span class="pl-s1">who</span> <span class="pl-s1">were</span> <span class="pl-s1">wearing</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-s1">allowed</span> <span class="pl-s1">to</span> <span class="pl-s1">leave</span> <span class="pl-s1">the</span> <span class="pl-s1">barracks</span>. <span class="pl-v">The</span> <span class="pl-s1">military</span> <span class="pl-s1">said</span>
<span class="pl-v">The</span> <span class="pl-s1">soldiers</span>, <span class="pl-s1">who</span> <span class="pl-s1">were</span> <span class="pl-s1">wearing</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-s1">allowed</span> <span class="pl-s1">to</span> <span class="pl-s1">enter</span> <span class="pl-s1">the</span> <span class="pl-s1">building</span>. <span class="pl-v">The</span> <span class="pl-s1">military</span> <span class="pl-s1">said</span>
<span class="pl-v">The</span> <span class="pl-s1">soldiers</span>, <span class="pl-s1">who</span> <span class="pl-s1">were</span> <span class="pl-s1">wearing</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-s1">allowed</span> <span class="pl-s1">to</span> <span class="pl-s1">enter</span> <span class="pl-s1">the</span> <span class="pl-s1">building</span>. <span class="pl-v">The</span> <span class="pl-s1">police</span> <span class="pl-s1">said</span>
<span class="pl-v">The</span> <span class="pl-s1">soldiers</span>, <span class="pl-s1">who</span> <span class="pl-s1">were</span> <span class="pl-s1">wearing</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-s1">allowed</span> <span class="pl-s1">to</span> <span class="pl-s1">leave</span> <span class="pl-s1">the</span> <span class="pl-s1">barracks</span>. <span class="pl-v">The</span> <span class="pl-s1">commander</span> <span class="pl-s1">said</span>
<span class="pl-v">The</span> <span class="pl-s1">soldiers</span>, <span class="pl-s1">who</span> <span class="pl-s1">were</span> <span class="pl-s1">wearing</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-s1">allowed</span> <span class="pl-s1">to</span> <span class="pl-s1">enter</span> <span class="pl-s1">the</span> <span class="pl-s1">building</span>. <span class="pl-v">The</span> <span class="pl-s1">police</span> <span class="pl-s1">had</span>
<span class="pl-v">The</span> <span class="pl-s1">soldiers</span>, <span class="pl-s1">who</span> <span class="pl-s1">were</span> <span class="pl-s1">wearing</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-s1">allowed</span> <span class="pl-s1">to</span> <span class="pl-s1">leave</span> <span class="pl-s1">the</span> <span class="pl-s1">barracks</span>. <span class="pl-v">The</span> <span class="pl-s1">army</span> <span class="pl-s1">said</span>
<span class="pl-v">The</span> <span class="pl-s1">soldiers</span>, <span class="pl-s1">who</span> <span class="pl-s1">were</span> <span class="pl-s1">wearing</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-s1">allowed</span> <span class="pl-s1">to</span> <span class="pl-s1">enter</span> <span class="pl-s1">the</span> <span class="pl-s1">building</span>. <span class="pl-v">The</span> <span class="pl-s1">police</span> <span class="pl-s1">then</span>
<span class="pl-v">The</span> <span class="pl-s1">soldiers</span>, <span class="pl-s1">who</span> <span class="pl-s1">were</span> <span class="pl-s1">wearing</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-s1">allowed</span> <span class="pl-s1">to</span> <span class="pl-s1">leave</span> <span class="pl-s1">the</span> <span class="pl-s1">barracks</span>. <span class="pl-v">The</span> <span class="pl-s1">commander</span> <span class="pl-s1">told</span>
<span class="pl-v">The</span> <span class="pl-s1">soldiers</span>, <span class="pl-s1">who</span> <span class="pl-s1">were</span> <span class="pl-s1">wearing</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">were</span> <span class="pl-c1">not</span> <span class="pl-s1">allowed</span> <span class="pl-s1">to</span> <span class="pl-s1">enter</span> <span class="pl-s1">the</span> <span class="pl-s1">building</span>. <span class="pl-v">The</span> <span class="pl-s1">police</span> <span class="pl-c1">and</span></pre></div>
<h3 dir="auto">Expected behavior</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="1. I believe the bug is due to the insufficient initialization of [`track_new["new_seqs"]`](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L658).
It appears if the top-k hypothesis also advances the constraints.
Then this hypothesis may appear multiple times in the beam as the example output.
The fix is one line in-place.
Updated to `track_new = {"new_seqs": full_hypotheses.tolist(), "new_states": [], "new_indices": [], "new_tokens": [], "new_scores": []}`
2. I believe the bug is due to the incorrect value assignment of [`scores_for_all_vocab`](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_utils.py#L3223),
what stores the next **token scores**.
`scores_for_all_vocab` is first passed to [`constrained_beam_scorer.process()`](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_utils.py#L3262), and later passed to [`constrained_beam_scorer.step_sentence_constraint()`](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L596) as `vocab_scores`.
Within its scope, `vocab_scores` is sliced to [`this_batch_token_scores`](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L654).
`this_batch_token_scores` is finally added to [`track_new["new_scores"]`](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L686).
However, the derived [`new_scores`](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L727) is concated with [`sent_beam_scores`](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L731),
reveal it should represent **beam scores**.
The **token scores** is larger than the expected **beam scores** as ignoring past token scores.
So the unfulfilled hypothesis will advance with an unexpected higher score, and dominate the beam as the example output.
The fix is also straightforward in-place.
# scores_for_all_vocab = next_token_scores_processed.clone()
next_token_scores = next_token_scores_processed + beam_scores[:, None].expand_as(next_token_scores)
scores_for_all_vocab = next_token_scores.clone()"><pre class="notranslate">1. I believe the bug is due to the insufficient initialization of [<span class="pl-s"><span class="pl-pds">`</span>track_new[<span class="pl-s"><span class="pl-pds">"</span>new_seqs<span class="pl-pds">"</span></span>]<span class="pl-pds">`</span></span>](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L658).
It appears <span class="pl-k">if</span> the top-k hypothesis also advances the constraints.
Then this hypothesis may appear multiple <span class="pl-c1">times</span> <span class="pl-k">in</span> the beam as the example output.
The fix is one line in-place.
Updated to <span class="pl-s"><span class="pl-pds">`</span>track_new = {<span class="pl-s"><span class="pl-pds">"</span>new_seqs<span class="pl-pds">"</span></span>: <span class="pl-en">full_hypotheses.tolist</span>(), <span class="pl-s"><span class="pl-pds">"</span>new_states<span class="pl-pds">"</span></span>: [], <span class="pl-s"><span class="pl-pds">"</span>new_indices<span class="pl-pds">"</span></span>: [], <span class="pl-s"><span class="pl-pds">"</span>new_tokens<span class="pl-pds">"</span></span>: [], <span class="pl-s"><span class="pl-pds">"</span>new_scores<span class="pl-pds">"</span></span>: []}<span class="pl-s"><span class="pl-pds">`</span></span></span>
<span class="pl-s"><span class="pl-s"></span></span>
<span class="pl-s"><span class="pl-s">2. I believe the bug is due to the incorrect value assignment of [<span class="pl-s"><span class="pl-pds">`</span>scores_for_all_vocab<span class="pl-pds">`</span></span>](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_utils.py#L3223),</span></span>
<span class="pl-s"><span class="pl-s">what stores the next <span class="pl-k">**</span>token scores<span class="pl-k">**</span>.</span></span>
<span class="pl-s"><span class="pl-s"><span class="pl-pds">`</span></span>scores_for_all_vocab<span class="pl-s"><span class="pl-pds">`</span> is first passed to [<span class="pl-s"><span class="pl-pds">`</span>constrained_beam_scorer.process()<span class="pl-pds">`</span></span>](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_utils.py#L3262), and later passed to [<span class="pl-s"><span class="pl-pds">`</span>constrained_beam_scorer.step_sentence_constraint()<span class="pl-pds">`</span></span>](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L596) as <span class="pl-pds">`</span></span>vocab_scores<span class="pl-s"><span class="pl-pds">`</span>.</span></span>
<span class="pl-s"><span class="pl-s">Within its scope, <span class="pl-pds">`</span></span>vocab_scores<span class="pl-s"><span class="pl-pds">`</span> is sliced to [<span class="pl-s"><span class="pl-pds">`</span>this_batch_token_scores<span class="pl-pds">`</span></span>](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L654).</span></span>
<span class="pl-s"><span class="pl-s"><span class="pl-pds">`</span></span>this_batch_token_scores<span class="pl-s"><span class="pl-pds">`</span> is finally added to [<span class="pl-s"><span class="pl-pds">`</span>track_new[<span class="pl-s"><span class="pl-pds">"</span>new_scores<span class="pl-pds">"</span></span>]<span class="pl-pds">`</span></span>](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L686).</span></span>
<span class="pl-s"><span class="pl-s">However, the derived [<span class="pl-s"><span class="pl-pds">`</span>new_scores<span class="pl-pds">`</span></span>](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L727) is concated with [<span class="pl-s"><span class="pl-pds">`</span>sent_beam_scores<span class="pl-pds">`</span></span>](https://github.com/huggingface/transformers/blob/3b00b623b7cad9e1b7c71c97fff24a0286b37045/src/transformers/generation_beam_search.py#L731),</span></span>
<span class="pl-s"><span class="pl-s">reveal it should represent <span class="pl-k">**</span>beam scores<span class="pl-k">**</span>.</span></span>
<span class="pl-s"><span class="pl-s">The <span class="pl-k">**</span>token scores<span class="pl-k">**</span> is larger than the expected <span class="pl-k">**</span>beam scores<span class="pl-k">**</span> as ignoring past token scores.</span></span>
<span class="pl-s"><span class="pl-s">So the unfulfilled hypothesis will advance with an unexpected higher score, and dominate the beam as the example output.</span></span>
<span class="pl-s"><span class="pl-s">The fix is also straightforward in-place.</span></span>
<span class="pl-s"><span class="pl-s"></span></span>
<span class="pl-s"><span class="pl-s"></span></span>
<span class="pl-s"><span class="pl-s"><span class="pl-c"><span class="pl-c">#</span> scores_for_all_vocab = next_token_scores_processed.clone()</span></span></span>
<span class="pl-s"><span class="pl-s"></span></span>
<span class="pl-s"><span class="pl-s">next_token_scores = next_token_scores_processed + beam_scores[:, None].expand_as(next_token_scores)</span></span>
<span class="pl-s"><span class="pl-s"></span></span>
<span class="pl-s"><span class="pl-s">scores_for_all_vocab = <span class="pl-en">next_token_scores.clone</span>()</span></span></pre></div> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<h1 dir="auto">Expected behavior</h1>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13494828/62001482-0148d480-b124-11e9-9c22-5a6c833c9a25.png"><img src="https://user-images.githubusercontent.com/13494828/62001482-0148d480-b124-11e9-9c22-5a6c833c9a25.png" alt="image" style="max-width: 100%;"></a></p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
Microsoft Windows [Version 10.0.18950.1000]
Windows Terminal version (if applicable):
Version: 0.3.2142.0
Any other software?
vim/nvim
Ubuntu 18.04.2 LTS"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
Microsoft Windows [Version 10.0.18950.1000]
Windows Terminal version (if applicable):
Version: 0.3.2142.0
Any other software?
vim/nvim
Ubuntu 18.04.2 LTS
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">forwarding a long document in vim/nvim via ctrl-f and then going backward via ctrl-b renders background incorrectly.</p>
<p dir="auto">link to my <a href="https://github.com/thisguychris/dotfiles">dotfiles</a></p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The background should use the theme's background</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The background is using highlight color for vim/nvim?<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b1ff0a66c1e5f850b66f57c1177ba63d06e251812ea2a805181b3771a86b703d/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f444c42493474686153745076503867624a636e366d36626c656950427670"><img src="https://camo.githubusercontent.com/b1ff0a66c1e5f850b66f57c1177ba63d06e251812ea2a805181b3771a86b703d/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f444c42493474686153745076503867624a636e366d36626c656950427670" alt="Alt text" data-canonical-src="https://monosnap.com/image/DLBI4thaStPvP8gbJcn6m6bleiPBvp" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/514fee4099715e71a8566ccdc8af39c847f8ce1092acceef891e025c1fbcd214/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f68426e4a6e4f4f5773784732386b74316f4461594e6873504e7067516954"><img src="https://camo.githubusercontent.com/514fee4099715e71a8566ccdc8af39c847f8ce1092acceef891e025c1fbcd214/68747470733a2f2f6d6f6e6f736e61702e636f6d2f696d6167652f68426e4a6e4f4f5773784732386b74316f4461594e6873504e7067516954" alt="Alt text" data-canonical-src="https://monosnap.com/image/hBnJnOOWsxG28kt1oDaYNhsPNpgQiT" style="max-width: 100%;"></a></p>
<p dir="auto">I also posted to the theme author:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="476403021" data-permission-text="Title is private" data-url="https://github.com/haishanh/night-owl.vim/issues/23" data-hovercard-type="issue" data-hovercard-url="/haishanh/night-owl.vim/issues/23/hovercard" href="https://github.com/haishanh/night-owl.vim/issues/23">haishanh/night-owl.vim#23</a></p>
<p dir="auto">Also related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="444610581" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/832" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/832/hovercard" href="https://github.com/microsoft/terminal/issues/832">#832</a></p>
<h2 dir="auto">Note:</h2>
<p dir="auto">Doing <code class="notranslate">:redraw</code> or <code class="notranslate">Cltr-L</code> in vim fixes the background issue.</p> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno 1.32.2 (release, x86_64-unknown-linux-gnu)
v8 11.2.214.9
typescript 5.0.3"><pre class="notranslate"><code class="notranslate">deno 1.32.2 (release, x86_64-unknown-linux-gnu)
v8 11.2.214.9
typescript 5.0.3
</code></pre></div> | <p dir="auto">OS: Windows 10 Version 10.0.19045.2728</p>
<p dir="auto">From <code class="notranslate">deno 1.32.1+7722014</code> and up, running <code class="notranslate">deno repl</code> or just <code class="notranslate">deno</code> from certain directories causes the deno process to hang with no repl prompt and with excessive memory usage.</p>
<p dir="auto">The bug is reproducible if running deno from <code class="notranslate">C:\</code>, <code class="notranslate">C:\Windows</code>, <code class="notranslate">C:\Users</code>, <code class="notranslate">C:\Users\<current_user></code>, <code class="notranslate">C:\Windows\System32</code>, <code class="notranslate">C:\Windows\SysWow64</code>. At the same time runinng <code class="notranslate">deno repl</code> from <code class="notranslate">C:\Users\<current_user>\Desktop</code> or <code class="notranslate">C:\Windows\System32\wbem</code> proceeds as normal. These are the directories that I've tested which reproduced the bug 100% of the times. Other directories and drives seems unaffected.</p>
<p dir="auto">The last unaffected canary version with available binaries to download is <code class="notranslate">deno 1.32.1+e888c3f</code></p>
<p dir="auto">Edit:<br>
Just checked with the 1.32.2 release. It's still affected.</p>
<p dir="auto">Edit2:<br>
Checked 1.32.2 Linux under Windows WSL, it hangs when executing with the root dir (<code class="notranslate">/</code>) as the current directory.</p> | 1 |
<p dir="auto">VS2015 is crashed when opening an empty <code class="notranslate">index.ts</code> file on TypeScript repository that has empty <code class="notranslate">index.ts</code> and <code class="notranslate">tsconfig.json</code> files.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3143368/15615716/d88a77bc-247a-11e6-9b79-1ea8fd084eee.png"><img src="https://cloud.githubusercontent.com/assets/3143368/15615716/d88a77bc-247a-11e6-9b79-1ea8fd084eee.png" alt="vs2015" style="max-width: 100%;"></a></p>
<p dir="auto">I got this problem since yesterday. I feel this problem is related to windows update.</p>
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.30</p> | <p dir="auto">In the following example, running <code class="notranslate">original.js</code> directly in MS Edge 25 / EdgeHTML 13 (with experimental JavaScript enabled) outputs <code class="notranslate">"Get to the chopper!"</code> to the console.</p>
<p dir="auto"><code class="notranslate">downlevel.js</code> is produced by running <code class="notranslate">typescript@next</code> (I used v1.8.0-dev.20151210) over <code class="notranslate">original.js</code> with the <code class="notranslate">--allowJs</code> option. Running <code class="notranslate">downlevel.js</code> in MS Edge outputs an error <code class="notranslate">SCRIPT445: Object doesn't support this action</code>.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
// file: tsconfig.json
{
"compilerOptions": {
"target": "ES6",
"allowJs": true,
"outFile": "downlevel.js"
},
"files": ["original.js"]
}
// file: original.js
var Promise = "I promise not to kill anyone";
var foo = async () => "Get to the chopper!";
foo().then(console.log);
// file: downlevel.js (this one is output by tsc)
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promise, generator) {
return new Promise(function (resolve, reject) {
generator = generator.call(thisArg, _arguments);
function cast(value) { return value instanceof Promise && value.constructor === Promise ? value : new Promise(function (resolve) { resolve(value); }); }
function onfulfill(value) { try { step("next", value); } catch (e) { reject(e); } }
function onreject(value) { try { step("throw", value); } catch (e) { reject(e); } }
function step(verb, value) {
var result = generator[verb](value);
result.done ? resolve(result.value) : cast(result.value).then(onfulfill, onreject);
}
step("next", void 0);
});
};
var Promise = "I promise not to kill anyone";
var foo = () => __awaiter(this, void 0, Promise, function* () { return "Get to the chopper!!"; });
foo().then(console.log);
"><pre class="notranslate"><span class="pl-c">// file: tsconfig.json</span>
<span class="pl-kos">{</span>
<span class="pl-s">"compilerOptions"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"target"</span>: <span class="pl-s">"ES6"</span><span class="pl-kos">,</span>
<span class="pl-s">"allowJs"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"outFile"</span>: <span class="pl-s">"downlevel.js"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"files"</span>: <span class="pl-kos">[</span><span class="pl-s">"original.js"</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span>
<span class="pl-c">// file: original.js</span>
<span class="pl-k">var</span> <span class="pl-v">Promise</span> <span class="pl-c1">=</span> <span class="pl-s">"I promise not to kill anyone"</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-en">foo</span> <span class="pl-c1">=</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s">"Get to the chopper!"</span><span class="pl-kos">;</span>
<span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// file: downlevel.js (this one is output by tsc)</span>
<span class="pl-k">var</span> <span class="pl-s1">__awaiter</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-smi">this</span> <span class="pl-c1">&&</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">__awaiter</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">thisArg</span><span class="pl-kos">,</span> <span class="pl-s1">_arguments</span><span class="pl-kos">,</span> <span class="pl-v">Promise</span><span class="pl-kos">,</span> <span class="pl-s1">generator</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">Promise</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">generator</span> <span class="pl-c1">=</span> <span class="pl-s1">generator</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">thisArg</span><span class="pl-kos">,</span> <span class="pl-s1">_arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">cast</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">value</span> <span class="pl-k">instanceof</span> <span class="pl-v">Promise</span> <span class="pl-c1">&&</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">constructor</span> <span class="pl-c1">===</span> <span class="pl-v">Promise</span> ? <span class="pl-s1">value</span> : <span class="pl-k">new</span> <span class="pl-v">Promise</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">resolve</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-s1">value</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">function</span> <span class="pl-en">onfulfill</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">"next"</span><span class="pl-kos">,</span> <span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">reject</span><span class="pl-kos">(</span><span class="pl-s1">e</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">function</span> <span class="pl-en">onreject</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">"throw"</span><span class="pl-kos">,</span> <span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">reject</span><span class="pl-kos">(</span><span class="pl-s1">e</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">function</span> <span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s1">verb</span><span class="pl-kos">,</span> <span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">generator</span><span class="pl-kos">[</span><span class="pl-s1">verb</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">result</span><span class="pl-kos">.</span><span class="pl-c1">done</span> ? <span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-s1">result</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">)</span> : <span class="pl-en">cast</span><span class="pl-kos">(</span><span class="pl-s1">result</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">onfulfill</span><span class="pl-kos">,</span> <span class="pl-s1">onreject</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">"next"</span><span class="pl-kos">,</span> <span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</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-v">Promise</span> <span class="pl-c1">=</span> <span class="pl-s">"I promise not to kill anyone"</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-en">foo</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">__awaiter</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-k">void</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-v">Promise</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-c1">*</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-s">"Get to the chopper!!"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">It looks like the down-levelled code picks up the locally-scoped <code class="notranslate">Promise</code> instead of using the native <code class="notranslate">Promise</code>.</p> | 0 |
<p dir="auto">python-3.8.3, numpy 1.19.0</p>
<p dir="auto">numpy is compiled against intel mkl 2018.2.199 (newer versions of mkl + numpy => nvidia's nvblas no longer work )</p>
<p dir="auto">OS ubuntu linux.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>>np.show_config()
blas_mkl_info:
libraries = ['mkl_rt', 'pthread']
library_dirs = ['/opt/intel/mkl/lib/intel64/']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/opt/intel/mkl/include']
blas_opt_info:
libraries = ['mkl_rt', 'pthread']
library_dirs = ['/opt/intel/mkl/lib/intel64/']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/opt/intel/mkl/include']
lapack_mkl_info:
libraries = ['mkl_rt', 'pthread']
library_dirs = ['/opt/intel/mkl/lib/intel64/']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/opt/intel/mkl/include']
lapack_opt_info:
libraries = ['mkl_rt', 'pthread']
library_dirs = ['/opt/intel/mkl/lib/intel64/']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/opt/intel/mkl/include']
>>> np.__version__
'1.19.0'"><pre class="notranslate"><code class="notranslate">>>>np.show_config()
blas_mkl_info:
libraries = ['mkl_rt', 'pthread']
library_dirs = ['/opt/intel/mkl/lib/intel64/']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/opt/intel/mkl/include']
blas_opt_info:
libraries = ['mkl_rt', 'pthread']
library_dirs = ['/opt/intel/mkl/lib/intel64/']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/opt/intel/mkl/include']
lapack_mkl_info:
libraries = ['mkl_rt', 'pthread']
library_dirs = ['/opt/intel/mkl/lib/intel64/']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/opt/intel/mkl/include']
lapack_opt_info:
libraries = ['mkl_rt', 'pthread']
library_dirs = ['/opt/intel/mkl/lib/intel64/']
define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)]
include_dirs = ['/opt/intel/mkl/include']
>>> np.__version__
'1.19.0'
</code></pre></div>
<p dir="auto">Running np.test() produces one error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TestSystemInfoReading.test_overrides _____________________
self = <numpy.distutils.tests.test_system_info.TestSystemInfoReading object at 0x7f36d855d640>
def test_overrides(self):
previousDir = os.getcwd()
cfg = os.path.join(self._dir1, 'site.cfg')
shutil.copy(self._sitecfg, cfg)
try:
os.chdir(self._dir1)
# Check that the '[ALL]' section does not override
# missing values from other sections
info = mkl_info()
lib_dirs = info.cp['ALL']['library_dirs'].split(os.pathsep)
assert info.get_lib_dirs() != lib_dirs
# But if we copy the values to a '[mkl]' section the value
# is correct
with open(cfg, 'r') as fid:
mkl = fid.read().replace('ALL', 'mkl')
with open(cfg, 'w') as fid:
fid.write(mkl)
info = mkl_info()
assert info.get_lib_dirs() == lib_dirs
# Also, the values will be taken from a section named '[DEFAULT]'
with open(cfg, 'r') as fid:
dflt = fid.read().replace('mkl', 'DEFAULT')
with open(cfg, 'w') as fid:
fid.write(dflt)
info = mkl_info()
> assert info.get_lib_dirs() == lib_dirs
E AssertionError: assert ['/opt/intel/...lib/intel64/'] == ['/tmp/tmp_gt.../tmp0ntuctr2']
E At index 0 diff: '/opt/intel/mkl/lib/intel64/' != '/tmp/tmp_gtgtt2a'
E Right contains one more item: '/tmp/tmp0ntuctr2'
E Full diff:
E - ['/tmp/tmp_gtgtt2a', '/tmp/tmp0ntuctr2']
E + ['/opt/intel/mkl/lib/intel64/']
cfg = '/tmp/tmp_gtgtt2a/site.cfg'
dflt = '\n[DEFAULT]\nlibrary_dirs = /tmp/tmp_gtgtt2a:/tmp/tmp0ntuctr2\nlibraries = /tmp/tmp_gtgtt2a/libfoo.so,/tmp/tmp0ntuctr.../tmp0ntuctr2\n\n[duplicate_options]\nmylib_libs = /tmp/tmp_gtgtt2a/libfoo.so\nlibraries = /tmp/tmp0ntuctr2/libbar.so\n'
fid = <_io.TextIOWrapper name='/tmp/tmp_gtgtt2a/site.cfg' mode='w' encoding='UTF-8'>
info = <numpy.distutils.system_info.mkl_info object at 0x7f36d8570be0>
lib_dirs = ['/tmp/tmp_gtgtt2a', '/tmp/tmp0ntuctr2']
mkl = '\n[mkl]\nlibrary_dirs = /tmp/tmp_gtgtt2a:/tmp/tmp0ntuctr2\nlibraries = /tmp/tmp_gtgtt2a/libfoo.so,/tmp/tmp0ntuctr2/li.../tmp0ntuctr2\n\n[duplicate_options]\nmylib_libs = /tmp/tmp_gtgtt2a/libfoo.so\nlibraries = /tmp/tmp0ntuctr2/libbar.so\n'
previousDir = '/home/bernard/opt/python38'
self = <numpy.distutils.tests.test_system_info.TestSystemInfoReading object at 0x7f36d855d640>
lib/python3.8/site-packages/numpy/distutils/tests/test_system_info.py:284: AssertionError"><pre class="notranslate"><code class="notranslate">TestSystemInfoReading.test_overrides _____________________
self = <numpy.distutils.tests.test_system_info.TestSystemInfoReading object at 0x7f36d855d640>
def test_overrides(self):
previousDir = os.getcwd()
cfg = os.path.join(self._dir1, 'site.cfg')
shutil.copy(self._sitecfg, cfg)
try:
os.chdir(self._dir1)
# Check that the '[ALL]' section does not override
# missing values from other sections
info = mkl_info()
lib_dirs = info.cp['ALL']['library_dirs'].split(os.pathsep)
assert info.get_lib_dirs() != lib_dirs
# But if we copy the values to a '[mkl]' section the value
# is correct
with open(cfg, 'r') as fid:
mkl = fid.read().replace('ALL', 'mkl')
with open(cfg, 'w') as fid:
fid.write(mkl)
info = mkl_info()
assert info.get_lib_dirs() == lib_dirs
# Also, the values will be taken from a section named '[DEFAULT]'
with open(cfg, 'r') as fid:
dflt = fid.read().replace('mkl', 'DEFAULT')
with open(cfg, 'w') as fid:
fid.write(dflt)
info = mkl_info()
> assert info.get_lib_dirs() == lib_dirs
E AssertionError: assert ['/opt/intel/...lib/intel64/'] == ['/tmp/tmp_gt.../tmp0ntuctr2']
E At index 0 diff: '/opt/intel/mkl/lib/intel64/' != '/tmp/tmp_gtgtt2a'
E Right contains one more item: '/tmp/tmp0ntuctr2'
E Full diff:
E - ['/tmp/tmp_gtgtt2a', '/tmp/tmp0ntuctr2']
E + ['/opt/intel/mkl/lib/intel64/']
cfg = '/tmp/tmp_gtgtt2a/site.cfg'
dflt = '\n[DEFAULT]\nlibrary_dirs = /tmp/tmp_gtgtt2a:/tmp/tmp0ntuctr2\nlibraries = /tmp/tmp_gtgtt2a/libfoo.so,/tmp/tmp0ntuctr.../tmp0ntuctr2\n\n[duplicate_options]\nmylib_libs = /tmp/tmp_gtgtt2a/libfoo.so\nlibraries = /tmp/tmp0ntuctr2/libbar.so\n'
fid = <_io.TextIOWrapper name='/tmp/tmp_gtgtt2a/site.cfg' mode='w' encoding='UTF-8'>
info = <numpy.distutils.system_info.mkl_info object at 0x7f36d8570be0>
lib_dirs = ['/tmp/tmp_gtgtt2a', '/tmp/tmp0ntuctr2']
mkl = '\n[mkl]\nlibrary_dirs = /tmp/tmp_gtgtt2a:/tmp/tmp0ntuctr2\nlibraries = /tmp/tmp_gtgtt2a/libfoo.so,/tmp/tmp0ntuctr2/li.../tmp0ntuctr2\n\n[duplicate_options]\nmylib_libs = /tmp/tmp_gtgtt2a/libfoo.so\nlibraries = /tmp/tmp0ntuctr2/libbar.so\n'
previousDir = '/home/bernard/opt/python38'
self = <numpy.distutils.tests.test_system_info.TestSystemInfoReading object at 0x7f36d855d640>
lib/python3.8/site-packages/numpy/distutils/tests/test_system_info.py:284: AssertionError
</code></pre></div> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1013" rel="nofollow">http://projects.scipy.org/numpy/ticket/1013</a> on 2009-02-20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wesm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wesm">@wesm</a>, assigned to unknown.</em></p>
<p dir="auto">This error is very unintuitive for end-users, arrays formed from SQL query results can frequently end up as object arrays by accident.</p>
<p dir="auto">In [15]: arr = np.random.randn(100).astype(object)</p>
<h2 dir="auto">In [16]: np.log(arr)</h2>
<p dir="auto">AttributeError Traceback (most recent call last)</p>
<p dir="auto">H:\workspace\Python\src in ()</p>
<p dir="auto">AttributeError: log</p>
<p dir="auto">Same AttributeError is raised for other ufuncs</p> | 0 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1961" rel="nofollow">http://projects.scipy.org/numpy/ticket/1961</a> on 2011-10-13 by trac user staticfloat, assigned to unknown.</em></p>
<p dir="auto">If I type numpy.log(2**63), I get the expected answer of 42.975.</p>
<p dir="auto">If I type numpy.log(2**64), I get:</p>
<p dir="auto">AttributeError Traceback (most recent call last)<br>
/Users/sabae/ in ()<br>
----> 1 np.log(2**63)</p>
<p dir="auto">AttributeError: log</p>
<p dir="auto">My numpy.version.version says "1.6.1", but that is not an option in the dropdown box, so I've set it to "devel"</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1013" rel="nofollow">http://projects.scipy.org/numpy/ticket/1013</a> on 2009-02-20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wesm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wesm">@wesm</a>, assigned to unknown.</em></p>
<p dir="auto">This error is very unintuitive for end-users, arrays formed from SQL query results can frequently end up as object arrays by accident.</p>
<p dir="auto">In [15]: arr = np.random.randn(100).astype(object)</p>
<h2 dir="auto">In [16]: np.log(arr)</h2>
<p dir="auto">AttributeError Traceback (most recent call last)</p>
<p dir="auto">H:\workspace\Python\src in ()</p>
<p dir="auto">AttributeError: log</p>
<p dir="auto">Same AttributeError is raised for other ufuncs</p> | 1 |
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.19041.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 08/02/2020 18:34:42<br>
Exception:<br>
System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.UpdateIsVisibleCache()<br>
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br>
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br>
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br>
at System.Windows.Window.SetRootVisual()<br>
at System.Windows.Window.SetRootVisualAndUpdateSTC()<br>
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br>
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br>
at System.Windows.Window.CreateSourceWindowDuringShow()<br>
at System.Windows.Window.SafeCreateWindowDuringShow()<br>
at System.Windows.Window.ShowHelper(Object booleanBox)<br>
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br>
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> | <p dir="auto">Popup tells me to give y'all this.</p>
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p>
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.19041.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 07/31/2020 17:29:59<br>
Exception:<br>
System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.UpdateIsVisibleCache()<br>
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br>
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br>
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br>
at System.Windows.Window.SetRootVisual()<br>
at System.Windows.Window.SetRootVisualAndUpdateSTC()<br>
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br>
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br>
at System.Windows.Window.CreateSourceWindowDuringShow()<br>
at System.Windows.Window.SafeCreateWindowDuringShow()<br>
at System.Windows.Window.ShowHelper(Object booleanBox)<br>
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br>
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7575914/5466586/86deb278-857c-11e4-90e2-2ca106e04996.png"><img src="https://cloud.githubusercontent.com/assets/7575914/5466586/86deb278-857c-11e4-90e2-2ca106e04996.png" alt="screen shot 2014-12-16 at 11 36 32 pm" style="max-width: 100%;"></a></p>
<p dir="auto">im not sure what's causing this. but i think it happens when i try to create a file, and don't hit enter to save it, that bar just gets stuck there. thanks</p> | <p dir="auto">When the dialog (add file for example) loses the focus, the parent modal stays open. A small div hides a part of tabs.</p>
<p dir="auto">You can reproduce the problem simply pressing tab in the add file dialog.</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=ractive" rel="nofollow">Jean-Pierre Bergamin</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8785?redirect=false" rel="nofollow">SPR-8785</a></strong> and commented</p>
<p dir="auto">We face a deadlock in virgo 3.0.0.RELEASE when starting our spring dm powered bundles during the creation of the application contexts. Two bundles get in a deadlock while their contexts get created simultaneously.</p>
<p dir="auto">Please see the <a href="http://www.eclipse.org/forums/index.php/t/248977/" rel="nofollow">discussion in the eclipse forum</a> for full stacktraces of the blocking threads.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.6</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://www.eclipse.org/forums/index.php/t/248977/" rel="nofollow">http://www.eclipse.org/forums/index.php/t/248977/</a></p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398113127" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13117" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13117/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13117">#13117</a> Performance bottleneck and potential thread deadlock in DefaultSingletonBeanRegistry (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=harloshmark" rel="nofollow">Mark Davies</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8471?redirect=false" rel="nofollow">SPR-8471</a></strong> and commented</p>
<p dir="auto">A less significant version of this problem has already been raised under <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398092384" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10033" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10033/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10033">#10033</a> - a performance bottleneck affecting Wicket. However, the same issue causes a serious thread deadlock in our application, occasionally preventing application startup.</p>
<p dir="auto">The basic issue seems to be that DefaultSingletonBeanRegistry takes a global synchronization lock when creating a singleton bean. Here is the code in that class:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public Object getSingleton(String beanName, ObjectFactory singletonFactory) {
Assert.notNull(beanName, "'beanName' must not be null");
synchronized (this.singletonObjects) {
Object singletonObject = this.singletonObjects.get(beanName);
if (singletonObject == null) {
... stuff ...
singletonObject = singletonFactory.getObject();
... stuff ...
}"><pre class="notranslate"><code class="notranslate">public Object getSingleton(String beanName, ObjectFactory singletonFactory) {
Assert.notNull(beanName, "'beanName' must not be null");
synchronized (this.singletonObjects) {
Object singletonObject = this.singletonObjects.get(beanName);
if (singletonObject == null) {
... stuff ...
singletonObject = singletonFactory.getObject();
... stuff ...
}
</code></pre></div>
<p dir="auto">The synchronized block (the same this.singletonObjects reference is used by all threads entering the method) means that Spring can only create singleton beans one at a time, regardless of their type (beanName). This clearly introduces a performance penalty if an application has a large number of singleton beans to construct, e.g. at startup.</p>
<p dir="auto">That is not the issue affecting our code, though. We see a deadlock, caused by the following two sets of behaviour:</p>
<ol dir="auto">
<li>
<p dir="auto">We have Spring-managed singleton beans which perform database access in their constructor (basically loading and caching configuration sets from the database). In order to do this they obtain database connections, which are pooled, with relatively small pool sizes. If a pooled connection is not available, the calling thread blocks and waits until one becomes free. This is usually not a problem since queries are small and rapid, so pool wait times are low, and the maximum pool size is sufficient to work the databasea at full capacity anyway.</p>
</li>
<li>
<p dir="auto">We also have non-Spring code doing database access. Such code obtains a database connection from the same pool, purely for the lifetime of running a query and processing a result set, so again very quick for almost cases in our system. But sometimes, whilst processing the result set, we need to use a Spring-managed bean, which may have singleton scope.</p>
</li>
</ol>
<p dir="auto">You now have a deadlock - thread number one is trying to get a Spring-managed singleton bean, which is waiting for a JDBC connection in its constructor; thread number two is running database code which has the JDBC connection and is waiting to create a Spring-managed singleton of a completely different type. Both thread own the resource needed by the other, so will wait forever. (OK, if the database pool size is two or higher you need two or more threads in the second state, but this has happened to us in customer environments, in production).</p>
<p dir="auto">Obviously our application code is almost certainly less than ideal in how we use Spring, but it seems to me that we ought to be able to use Spring-managed beans which do database access in the manner I've described, without encountering unpleasant deadlocks such as this. Note that the problem is actually much more general than this particular example of database connections: if your singleton beans require any kind of global monitor, which is also used outside of the context of Spring, you have a deadlock condition.</p>
<p dir="auto">Both the originally-reported performance problem, and this deadlock, could be solved by a simple improvement to DefaultSingletonBeanRegistry. The getSingleton() method should not synchronize on a global monitor, but instead a monitor specific to the beanName you are instantiating. This is the correct level at which to lock - what you are trying to do is prevent a bean of a certain type being created more than once, but allowing two beans of different types to construct at the same time is perfectly reasonable. Of course you have to synchronize access to the underlying collections with a global lock, but the construction of the singleton bean does not need to be protected with the same global monitor. For instance I believe this kind of thing would do it:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public Object getSingleton(String beanName, ObjectFactory singletonFactory) {
Object bean;
Object perBeanMonitor;
synchronized (GLOBAL_MONITOR) {
perBeanMonitor = getPerBeanMonitor(beanName);
}
synchronized (perBeanMonitor) {
synchronized (GLOBAL_MONITOR) {
bean = getBeanFromRegistry(beanName);
}
if (bean==null) {
Object bean = doConstructBean(beanName, singletonFactory);
synchronized (GLOBAL_MONITOR) {
addToRegistry(beanName, bean);
}
}
}
return bean;
}"><pre class="notranslate"><code class="notranslate">public Object getSingleton(String beanName, ObjectFactory singletonFactory) {
Object bean;
Object perBeanMonitor;
synchronized (GLOBAL_MONITOR) {
perBeanMonitor = getPerBeanMonitor(beanName);
}
synchronized (perBeanMonitor) {
synchronized (GLOBAL_MONITOR) {
bean = getBeanFromRegistry(beanName);
}
if (bean==null) {
Object bean = doConstructBean(beanName, singletonFactory);
synchronized (GLOBAL_MONITOR) {
addToRegistry(beanName, bean);
}
}
}
return bean;
}
</code></pre></div>
<p dir="auto">It would be extremely helpful if this approach could be implemented in this core part of the Spring framework. We rely on singleton construction to be performant and thread-safe; the fact that DefaultSingletonBeanRegistry behaves as it currently does is causing us serious production problems at client sites, and, whilst we can modify our application code to work around the issue, I do see this as a fundamental flaw in Spring - would be nice to get a quick fix please.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/19616/test-case.zip" rel="nofollow">test-case.zip</a> (<em>3.09 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="398115131" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13428" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13428/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13428">#13428</a> Deadlock during application context creation (<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="398153704" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14470" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14470/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14470">#14470</a> A Java Thread deadlock has occured (<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="398117774" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13837" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13837/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13837">#13837</a> Deadlock on the beanDefinitionMap and singletonObjects (<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="398108538" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12374" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12374/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12374">#12374</a> Deadlock between DefaultListableBeanFactory and DefaultSingletonBeanRegistry, perhaps due to lazily-instantiated aspect</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398153593" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14452" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14452/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14452">#14452</a> Non-singleton beans performance issue</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398155048" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14654" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14654/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14654">#14654</a> Deadlock in DefaultListableBeanFactory/DefaultSingletonBeanRegistry</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398157745" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14985" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14985/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14985">#14985</a> AbstractApplicationEventMulticaster#getApplicationListeners() should have double check for 'this.retrieverCache.get(cacheKey)' within synchronized block</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/dd68fecbf2509faa189234807f30bbf364a691f1/hovercard" href="https://github.com/spring-projects/spring-framework/commit/dd68fecbf2509faa189234807f30bbf364a691f1"><tt>dd68fec</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/52124fa31b17fee7b6ffdfc92ec9fe14ad9a0561/hovercard" href="https://github.com/spring-projects/spring-framework/commit/52124fa31b17fee7b6ffdfc92ec9fe14ad9a0561"><tt>52124fa</tt></a></p>
<p dir="auto">19 votes, 26 watchers</p> | 1 |
<ul dir="auto">
<li>VSCode Version: 1.00</li>
<li>OS Version: Win 10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Install node.js 6.0.0</li>
<li>Try to debug within a router.get function.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="router.get("/:id", (req, res, next) => {
controller.getSingle(req.params.id).then(data => res.json(data));
});"><pre class="notranslate"><code class="notranslate">router.get("/:id", (req, res, next) => {
controller.getSingle(req.params.id).then(data => res.json(data));
});
</code></pre></div>
<p dir="auto">When I add a breakpoint at the <code class="notranslate">controller.</code> call, the debugger stops when I'm using node 5.11.0. It does not after upgrading to 6.0.0. The debugger stops (so it notices a breakpoint), but it doesn't show the line where it stopped anywhere.</p>
<p dir="auto">Breakpoints outside of the express calls work fine by the way. So when I add a breakpoint at the router.get, it works (but at the start of the application, which is good, obviously).</p>
<p dir="auto">Changing from () => to function() did not change anything.</p> | <ul dir="auto">
<li>VSCode Version: 1.0.0</li>
<li>OS Version: Windows 10</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>install node v6</li>
<li>generate express application</li>
<li>open the app folder with vscode</li>
<li>open console and run <code class="notranslate">node --debug bin\www</code></li>
<li>attache to node process with vscode</li>
<li>set break point to <code class="notranslate">users.js:line:6</code></li>
<li>and navigate in the web browser to '/users'</li>
</ol>
<p dir="auto">it works with node v5.10</p> | 1 |
<p dir="auto">Hello I have the below task and fails with "You cannot call a method on a null-valued expression." only when parameter "force" is specified. The "KIT" directory is already created.<br>
Ansible version is 2.0.0.2 on CentOS 6.7. The target operating system is Windows Server 2012 R2.</p>
<p dir="auto">name: Download kit<br>
win_get_url:<br>
force: no<br>
url: 'http://some_random_url/some_random_program.exe'<br>
dest: 'C:\KIT\some_random_program.exe'</p>
<p dir="auto">Thanks!</p> | <h5 dir="auto">Issue Type:</h5>
<p dir="auto">Feature Idea</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">core</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.0.0.2
config file =
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 2.0.0.2
config file =
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">Ansible Configuration:</h5>
<p dir="auto">No custom configuration.</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Ubuntu 15.04</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">When using <code class="notranslate">shell</code> module with attribute <code class="notranslate">environment</code> defined as <code class="notranslate">{{provided_env|default(omit)}}</code>, the attribute is not omitted and it fails with error "ERROR! environment must be a dictionary, received __omit_place_holder__dd43d6f3183f203e2d5011d3fe7f9d265a37ba74 (<type 'unicode'>)"</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:
my_env:
ENV_VAR: "my env var"
tasks:
- name: test with valid env
shell: echo $ENV_VAR
environment:
ENV_VAR: "my env var"
register: result
- debug: var=result.stdout
- name: test with valid env
shell: echo $ENV_VAR
environment: "{{my_env}}"
register: result
- debug: var=result.stdout
- name: test with no env
shell: echo $ENV_VAR
register: result
- debug: var=result.stdout
- name: test with missing env default empty
shell: echo $ENV_VAR
environment: "{{unknown_env|default({})}}"
register: result
- debug: var=result.stdout
# Fails with message "ERROR! environment must be a dictionary, received __omit_place_holder__dd43d6f3183f203e2d5011d3fe7f9d265a37ba74 (<type 'unicode'>)"
- name: test with missing env default omit
shell: echo $ENV_VAR
environment: "{{unknown_env|default(omit)}}"
register: result
- debug: var=result.stdout
# Would fail with message "ERROR! 'unknown_env' is undefined" (or better "environment must be a dictionary, received {{unknown_env}}" in ansible 1.9.4)
- name: test with missing env
shell: echo $ENV_VAR
environment: "{{unknown_env}}"
register: result
- debug: var=result.stdout"><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">my_env</span>:
<span class="pl-ent">ENV_VAR</span>: <span class="pl-s"><span class="pl-pds">"</span>my env var<span class="pl-pds">"</span></span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">test with valid env</span>
<span class="pl-ent">shell</span>: <span class="pl-s">echo $ENV_VAR</span>
<span class="pl-ent">environment</span>:
<span class="pl-ent">ENV_VAR</span>: <span class="pl-s"><span class="pl-pds">"</span>my env var<span class="pl-pds">"</span></span>
<span class="pl-ent">register</span>: <span class="pl-s">result</span>
- <span class="pl-ent">debug</span>: <span class="pl-s">var=result.stdout</span>
- <span class="pl-ent">name</span>: <span class="pl-s">test with valid env</span>
<span class="pl-ent">shell</span>: <span class="pl-s">echo $ENV_VAR</span>
<span class="pl-ent">environment</span>: <span class="pl-s"><span class="pl-pds">"</span>{{my_env}}<span class="pl-pds">"</span></span>
<span class="pl-ent">register</span>: <span class="pl-s">result</span>
- <span class="pl-ent">debug</span>: <span class="pl-s">var=result.stdout</span>
- <span class="pl-ent">name</span>: <span class="pl-s">test with no env</span>
<span class="pl-ent">shell</span>: <span class="pl-s">echo $ENV_VAR</span>
<span class="pl-ent">register</span>: <span class="pl-s">result</span>
- <span class="pl-ent">debug</span>: <span class="pl-s">var=result.stdout</span>
- <span class="pl-ent">name</span>: <span class="pl-s">test with missing env default empty</span>
<span class="pl-ent">shell</span>: <span class="pl-s">echo $ENV_VAR</span>
<span class="pl-ent">environment</span>: <span class="pl-s"><span class="pl-pds">"</span>{{unknown_env|default({})}}<span class="pl-pds">"</span></span>
<span class="pl-ent">register</span>: <span class="pl-s">result</span>
- <span class="pl-ent">debug</span>: <span class="pl-s">var=result.stdout</span>
<span class="pl-c"><span class="pl-c">#</span> Fails with message "ERROR! environment must be a dictionary, received __omit_place_holder__dd43d6f3183f203e2d5011d3fe7f9d265a37ba74 (<type 'unicode'>)"</span>
- <span class="pl-ent">name</span>: <span class="pl-s">test with missing env default omit</span>
<span class="pl-ent">shell</span>: <span class="pl-s">echo $ENV_VAR</span>
<span class="pl-ent">environment</span>: <span class="pl-s"><span class="pl-pds">"</span>{{unknown_env|default(omit)}}<span class="pl-pds">"</span></span>
<span class="pl-ent">register</span>: <span class="pl-s">result</span>
- <span class="pl-ent">debug</span>: <span class="pl-s">var=result.stdout</span>
<span class="pl-c"><span class="pl-c">#</span> Would fail with message "ERROR! 'unknown_env' is undefined" (or better "environment must be a dictionary, received {{unknown_env}}" in ansible 1.9.4)</span>
- <span class="pl-ent">name</span>: <span class="pl-s">test with missing env</span>
<span class="pl-ent">shell</span>: <span class="pl-s">echo $ENV_VAR</span>
<span class="pl-ent">environment</span>: <span class="pl-s"><span class="pl-pds">"</span>{{unknown_env}}<span class="pl-pds">"</span></span>
<span class="pl-ent">register</span>: <span class="pl-s">result</span>
- <span class="pl-ent">debug</span>: <span class="pl-s">var=result.stdout</span></pre></div>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto"><code class="notranslate">environment</code> is simply omitted.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY ***************************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [test with valid env] *****************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": "my env var"
}
TASK [test with valid env] *****************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": "my env var"
}
TASK [test with no env] ********************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
TASK [test with missing env default empty] *************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
TASK [test with missing env default omit] **************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
TASK [test with missing env] ***************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
PLAY RECAP *********************************************************************
localhost : ok=13 changed=6 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY ***************************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [test with valid env] *****************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": "my env var"
}
TASK [test with valid env] *****************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": "my env var"
}
TASK [test with no env] ********************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
TASK [test with missing env default empty] *************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
TASK [test with missing env default omit] **************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
TASK [test with missing env] ***************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
PLAY RECAP *********************************************************************
localhost : ok=13 changed=6 unreachable=0 failed=0
</code></pre></div>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
PLAY ***************************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [test with valid env] *****************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": "my env var"
}
TASK [test with valid env] *****************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": "my env var"
}
TASK [test with no env] ********************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
TASK [test with missing env default empty] *************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
TASK [test with missing env default omit] **************************************
fatal: [localhost]: FAILED! => {"failed": true, "msg": "ERROR! environment must be a dictionary, received __omit_place_holder__853b09b8abd224611d49aeb565bc95ac972fd575 (<type 'unicode'>)"}
PLAY RECAP *********************************************************************
localhost : ok=9 changed=4 unreachable=0 failed=1"><pre class="notranslate"><code class="notranslate">
PLAY ***************************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [test with valid env] *****************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": "my env var"
}
TASK [test with valid env] *****************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": "my env var"
}
TASK [test with no env] ********************************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
TASK [test with missing env default empty] *************************************
changed: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"result.stdout": ""
}
TASK [test with missing env default omit] **************************************
fatal: [localhost]: FAILED! => {"failed": true, "msg": "ERROR! environment must be a dictionary, received __omit_place_holder__853b09b8abd224611d49aeb565bc95ac972fd575 (<type 'unicode'>)"}
PLAY RECAP *********************************************************************
localhost : ok=9 changed=4 unreachable=0 failed=1
</code></pre></div> | 0 |
<h5 dir="auto">System information (version)</h5>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.4.0</li>
<li>Operating System / Platform => Raspbian jessie</li>
<li>Compiler => python 2.7/python 3</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<h5 dir="auto"></h5>
<p dir="auto">for my project i need to install opencv so i picked the latest version 3.4.0 ...I followed instruction and it was all good with 0 errors but when it comes to build and executing the "make" command it interrupt the operation with this errors :</p>
<hr>
<p dir="auto">[ 39%] Generating perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch<br>
/home/pi/opencv-3.4.0/build/modules/dnn/perf_precomp.hpp:12:20: fatal error: can’t write PCH file<br>
using namespace dnn;<br>
^<br>
compilation terminated.<br>
modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/build.make:62: recipe for target 'modules/dnn/perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch' failed<br>
make[2]: *** [modules/dnn/perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch] Error 1<br>
CMakeFiles/Makefile2:6569: recipe for target 'modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/all' failed<br>
make[1]: *** [modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/all] Error 2<br>
Makefile:160: recipe for target 'all' failed<br>
make: *** [all] Error 2</p>
<hr>
<p dir="auto">i tried to disable c exemples by switching it to OFF but it was the same faillure what should i do to fix it and run opencv correctly ? should i switch to other version ? please help me i already lost 3 days debugging it my self with no progress .thank you</p> | <h5 dir="auto">System information (version)</h5>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.4.0</li>
<li>Operating System / Platform => Raspbian jessie</li>
<li>Compiler => python 2.7/python 3</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<h5 dir="auto"></h5>
<p dir="auto">for my project i need to install opencv so i picked the latest version 3.4.0 ...I followed instruction and it was all good with 0 errors but when it comes to build and executing the "make" command it interrupt the operation with this errors :</p>
<hr>
<p dir="auto">[ 39%] Generating perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch<br>
/home/pi/opencv-3.4.0/build/modules/dnn/perf_precomp.hpp:12:20: fatal error: can’t write PCH file<br>
using namespace dnn;<br>
^<br>
compilation terminated.<br>
modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/build.make:62: recipe for target 'modules/dnn/perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch' failed<br>
make[2]: *** [modules/dnn/perf_precomp.hpp.gch/opencv_perf_dnn_RELEASE.gch] Error 1<br>
CMakeFiles/Makefile2:6569: recipe for target 'modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/all' failed<br>
make[1]: *** [modules/dnn/CMakeFiles/pch_Generate_opencv_perf_dnn.dir/all] Error 2<br>
Makefile:160: recipe for target 'all' failed<br>
make: *** [all] Error 2</p>
<hr>
<p dir="auto">i tried to disable c exemples by switching it to OFF but it was the same faillure what should i do to fix it and run opencv correctly ? should i switch to other version ? please help me i already lost 3 days debugging it my self with no progress .thank you</p> | 1 |
<blockquote>
<p dir="auto"><strong>I'm use the onBeforeRequest to intercept my request and redirect to my protocol "app",but,when i use the http.request(nodejs) to make a request(a set-cookie will come with the response),let this registerStreamProtocol‘s callback process the response,and then , I'm lose the set-cookie.’</strong></p>
</blockquote>
<blockquote>
<p dir="auto">How do I get this set-cookie</p>
</blockquote>
<blockquote>
<p dir="auto">[email protected]</p>
</blockquote> | <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>
v9.0.0
</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>
macOS 10.15.5
</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>
5.x.y
</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="request.on('redirect', (statusCode, method, redirectUrl, responseHeaders) => {
console.log(responseHeaders['set-cookie']); // should not be undefined
});"><pre class="notranslate"><span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'redirect'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">statusCode</span><span class="pl-kos">,</span> <span class="pl-s1">method</span><span class="pl-kos">,</span> <span class="pl-s1">redirectUrl</span><span class="pl-kos">,</span> <span class="pl-s1">responseHeaders</span><span class="pl-kos">)</span> <span class="pl-c1">=></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">responseHeaders</span><span class="pl-kos">[</span><span class="pl-s">'set-cookie'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// should not be undefined</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Actual Behavior</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="request.on('redirect', (statusCode, method, redirectUrl, responseHeaders) => {
console.log(responseHeaders['set-cookie']); // is undefined no matter what
});"><pre class="notranslate"><span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'redirect'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">statusCode</span><span class="pl-kos">,</span> <span class="pl-s1">method</span><span class="pl-kos">,</span> <span class="pl-s1">redirectUrl</span><span class="pl-kos">,</span> <span class="pl-s1">responseHeaders</span><span class="pl-kos">)</span> <span class="pl-c1">=></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">responseHeaders</span><span class="pl-kos">[</span><span class="pl-s">'set-cookie'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// is undefined no matter what</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">I've put together a small proof of concept using the electron-quick-start demo found <a href="https://github.com/walmat/electron-quick-start">here</a>.</p>
<p dir="auto">To run the example:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="git clone https://github.com/walmat/electron-quick-start.git && yarn && yarn start"><pre class="notranslate">git clone https://github.com/walmat/electron-quick-start.git <span class="pl-k">&&</span> yarn <span class="pl-k">&&</span> yarn start</pre></div>
<h3 dir="auto">Screenshots</h3>
<h3 dir="auto">Additional Information</h3> | 1 |
<p dir="auto">The goal of this issue is to replace all instances of <em>whitelist</em> and <em>blacklist</em> in <code class="notranslate">caffe2/CMakeLists.txt</code>. See issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="656987751" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/41443" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/41443/hovercard" href="https://github.com/pytorch/pytorch/issues/41443">#41443</a> for more information.</p> | <p dir="auto">The goal of this issue is to replace all instances of <em>whitelist</em> and <em>blacklist</em> in <code class="notranslate">caffe2/CMakeLists.txt</code>. See issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="656987751" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/41443" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/41443/hovercard" href="https://github.com/pytorch/pytorch/issues/41443">#41443</a> for more information.</p> | 1 |
<ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Mac OS X 10.11.3</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Open a new project and make sure <code class="notranslate">editor.tabSize</code> is set to <code class="notranslate">auto</code></li>
<li>Create a new file <code class="notranslate">test.js</code> with the following contents</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict';
const multiline = `
this is a multiline
string with 2 space indentation
`;
function log(str) {
console.log(str);
}
log(multiline);"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">multiline</span> <span class="pl-c1">=</span> <span class="pl-s">`</span>
<span class="pl-s"> this is a multiline</span>
<span class="pl-s"> string with 2 space indentation</span>
<span class="pl-s">`</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">str</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">str</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">multiline</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<blockquote>
<p dir="auto">Note: The indentation inside the <code class="notranslate">log</code> function is a <code class="notranslate">tab</code> but GitHub parses it to 4 spaces. So make sure to convert this to a <code class="notranslate">tab</code> when copy-pasting.</p>
</blockquote>
<ol dir="auto">
<li>Close the file and reopen it</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1913805/14087927/c1070236-f52c-11e5-939f-3201ba14eeb2.png"><img width="310" alt="screen shot 2016-03-28 at 21 33 32" src="https://cloud.githubusercontent.com/assets/1913805/14087927/c1070236-f52c-11e5-939f-3201ba14eeb2.png" style="max-width: 100%;"></a></p>
<p dir="auto">As you can see, it sets the <code class="notranslate">tabSize</code> to <code class="notranslate">2</code> because it is <code class="notranslate">2</code> in the multiline template literal. But it shouldn't take strings into account to determine this.</p>
<p dir="auto">// <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></p> | <p dir="auto">VS Code 64 bit compile is desperately needed.</p>
<p dir="auto">When you use the explorer extension "Open with Code" and are looking at files in c:\windows\System32 on a 64 bit OS, the File System Redirector gets in the way and sends you to the SysWOW64 directory, which may not contain your file. UX is horrible.</p>
<p dir="auto">For example, right click on C:\Windows\System32\BestPractices\v1.0\Models\Microsoft\Windows\WebServer\WebServer_Model.ps1 and select "Open with Code"</p>
<p dir="auto">Code starts, but has a blank file in the editor that's dirty and ready for a save.</p>
<p dir="auto">Since the 64 bit Explorer doesn't populate the SysNative tree there's no way to use the explorer extesion on this and similar files.</p> | 0 |
<p dir="auto">I have just tried to update an installed extension, but the process seemed to hang.</p>
<p dir="auto">I eventually decided to restart VS Code, and when I did, the extension in question was no longer installed. I attempted to install it again, but the process never seemed to complete. I did this a few times, each time opening/closing VS Code, and eventually, on I think the fourth attempt, the extension correctly installed.</p>
<p dir="auto">Is this a known issue? Are there any logs that I can provide to help identify the problem?</p> | <p dir="auto">The maximum number of editors currently is <strong>three</strong>. There doesn't appear to be a way to change this in user settings.</p>
<p dir="auto">It would be helpful and flexible if there was a configuration option in user settings to override this default max value (i.e. some developers might be able to handle four or five editors and still feel "organized").</p>
<p dir="auto">I like the max editor cap, but I believe the count of max editors should be configurable.</p> | 0 |
<p dir="auto">When using single or double quotes within back-tick quotes, they are not considered quoted:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/573056/11725918/1e339a48-9f4a-11e5-90ac-d02f433dcdca.png"><img src="https://cloud.githubusercontent.com/assets/573056/11725918/1e339a48-9f4a-11e5-90ac-d02f433dcdca.png" alt="screenshot 2015-12-10 14 26 50" style="max-width: 100%;"></a></p>
<p dir="auto">So if they happen to be closed within the back ticks, it's not the end of the world, but if not, all subsequent formatting is lost.</p> | <p dir="auto">Right now, those keywords like <code class="notranslate">import</code> <code class="notranslate">class</code> <code class="notranslate">from</code> are all plain white.</p> | 1 |
<p dir="auto">Hi team,</p>
<p dir="auto">I have been having <strong>issues with pandas memory management</strong>. Specifically, there is an (at least for me) unavoidable peak of memory which occurs when attempting to <strong>remove variables</strong> from a data set. It should be (almost) free! I am getting rid of part of the data, but it still needs to allocate a big amount of memory producing MemoryErrors.</p>
<p dir="auto">Just to give you a little bit of context, I am working with a DataFrame which contains 33M of rows and 500 columns (just a big one!), almost all of them numeric, in a machine with 360GB of RAM. The whole data set fits in memory and I can successfully apply some transformations to the variables. The problem comes when I need to drop a 10% of the columns contained in the table. It just produces a <strong>big peak of memory</strong> leading to a <code class="notranslate">MemoryError</code>. Before performing this operation, there are more than 80GB of memory available!.</p>
<p dir="auto">I tried to use the following methods for removing the columns and all of them failed.</p>
<ul dir="auto">
<li><code class="notranslate">drop()</code> with or without <code class="notranslate">inplace</code> parameter</li>
<li><code class="notranslate">pop()</code></li>
<li><code class="notranslate">reindex()</code></li>
<li><code class="notranslate">reindex_axis()</code></li>
<li><code class="notranslate">del df[column]</code> in a loop over the columns to be removed</li>
<li><code class="notranslate">__delitem__(column)</code> in a loop over the columns to be removed</li>
<li><code class="notranslate">pop()</code> and <code class="notranslate">drop()</code> in a loop over the columns to be removed.</li>
<li>I also tried to reasign the columns overwritting the data frame using indexing with <code class="notranslate">loc() </code>and <code class="notranslate">iloc()</code> but it does not help.</li>
</ul>
<p dir="auto">I found that the drop method with inplace is the most efficient one but it still generates a huge peak.</p>
<p dir="auto">I would like to discuss if there is there any way of implementing (or is it already implemented by any chance) a method for more efficiently removing variables without generating more memory consumption...</p>
<p dir="auto">Thank you<br>
Iván</p> | <p dir="auto">Hi,<br>
I reopen <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="275933864" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18422" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/18422/hovercard" href="https://github.com/pandas-dev/pandas/issues/18422">#18422</a> with copy-pastable example</p>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
idx1 = pd.date_range('2011-01-01', periods=3, freq='H', tz='Europe/Paris')
idx2 = pd.date_range(start=idx1[0], end=idx1[-1], freq='H')
df1 = pd.DataFrame({'a': [1, 2, 3]}, index=idx1)
df2 = pd.DataFrame({'b': [1, 2, 3]}, index=idx2)
res = pd.concat([df1, df2], axis=1)
print(df1.index.tzinfo)
print(df2.index.tzinfo)
print(res.index.tzinfo)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">idx1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s">'2011-01-01'</span>, <span class="pl-s1">periods</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'H'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'Europe/Paris'</span>)
<span class="pl-s1">idx2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s1">start</span><span class="pl-c1">=</span><span class="pl-s1">idx1</span>[<span class="pl-c1">0</span>], <span class="pl-s1">end</span><span class="pl-c1">=</span><span class="pl-s1">idx1</span>[<span class="pl-c1">-</span><span class="pl-c1">1</span>], <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">'H'</span>)
<span class="pl-s1">df1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'a'</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>]}, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">idx1</span>)
<span class="pl-s1">df2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'b'</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>]}, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">idx2</span>)
<span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">concat</span>([<span class="pl-s1">df1</span>, <span class="pl-s1">df2</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-en">print</span>(<span class="pl-s1">df1</span>.<span class="pl-s1">index</span>.<span class="pl-s1">tzinfo</span>)
<span class="pl-en">print</span>(<span class="pl-s1">df2</span>.<span class="pl-s1">index</span>.<span class="pl-s1">tzinfo</span>)
<span class="pl-en">print</span>(<span class="pl-s1">res</span>.<span class="pl-s1">index</span>.<span class="pl-s1">tzinfo</span>)</pre></div>
<h4 dir="auto">Output</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Europe/Paris
Europe/Paris
UTC"><pre class="notranslate"><code class="notranslate">Europe/Paris
Europe/Paris
UTC
</code></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">pd.concat reset the tz-aware index to UTC</p>
<p dir="auto">This seems to come from the two different representation of time zone 'Europe/Paris' as this ipython output shows :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [23]: df1.index.tzinfo
Out[23]: <DstTzInfo 'Europe/Paris' LMT+0:09:00 STD>
In [24]: df2.index.tzinfo
Out[24]: <DstTzInfo 'Europe/Paris' CET+1:00:00 STD>
In [26]: res.index.tzinfo
Out[26]: <UTC>"><pre class="notranslate"><code class="notranslate">In [23]: df1.index.tzinfo
Out[23]: <DstTzInfo 'Europe/Paris' LMT+0:09:00 STD>
In [24]: df2.index.tzinfo
Out[24]: <DstTzInfo 'Europe/Paris' CET+1:00:00 STD>
In [26]: res.index.tzinfo
Out[26]: <UTC>
</code></pre></div>
<h4 dir="auto">Expected Output</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Europe/Paris
Europe/Paris
Europe/Paris"><pre class="notranslate"><code class="notranslate">Europe/Paris
Europe/Paris
Europe/Paris
</code></pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.6.2.final.0<br>
python-bits: 64<br>
OS: Windows<br>
OS-release: 10<br>
machine: AMD64<br>
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: None<br>
LOCALE: None.None</p>
<p dir="auto">pandas: 0.21.0<br>
pytest: None<br>
pip: 9.0.1<br>
setuptools: 28.8.0<br>
Cython: None<br>
numpy: 1.13.1<br>
scipy: None<br>
pyarrow: None<br>
xarray: None<br>
IPython: None<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.6.1<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
feather: None<br>
matplotlib: 2.0.2<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: 4.6.0<br>
html5lib: None<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.9.6<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | 0 |
<p dir="auto">Consider <code class="notranslate">jsonify()</code>cation of a dictionary contained in a list:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="print flask.__version__
print repr(flask.jsonify([{"a": 1, "b": 2}]).data)"><pre class="notranslate"><span class="pl-k">print</span> <span class="pl-s1">flask</span>.<span class="pl-s1">__version__</span>
<span class="pl-k">print</span> <span class="pl-en">repr</span>(<span class="pl-s1">flask</span>.<span class="pl-en">jsonify</span>([{<span class="pl-s">"a"</span>: <span class="pl-c1">1</span>, <span class="pl-s">"b"</span>: <span class="pl-c1">2</span>}]).<span class="pl-s1">data</span>)</pre></div>
<p dir="auto">With the following output:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="0.10.1
'{\n "a": "b"\n}'"><pre class="notranslate"><span class="pl-c1">0.10</span>.<span class="pl-c1">1</span>
<span class="pl-s">'{<span class="pl-cce">\n</span> "a": "b"<span class="pl-cce">\n</span>}'</span></pre></div>
<p dir="auto"><code class="notranslate">jsonify()</code> has -- without complaining -- mangled the data into something really not useful: The original dictionary values are gone, and the <code class="notranslate">"b"</code> key suddenly is a value.</p>
<p dir="auto">I appreciate that top-level array elements are not allowed to be created in Flask's <code class="notranslate">jsonify()</code> implementation (<a href="http://flask.pocoo.org/docs/0.10/security/#json-security" rel="nofollow">http://flask.pocoo.org/docs/0.10/security/#json-security</a>). Also, there are for sure straight-forward strategies for solving this in application code, for example by wrapping the list in a dictionary: <code class="notranslate">jsonify({"items": collection})</code>.</p>
<p dir="auto">However, in the Python world we do not find it very often that an entity accepts invalid input and produces garbled output without complaining. Also, it looks like <code class="notranslate">jsonify()</code> once raised an exception when provided a list (at least in 2011 it did raise a <code class="notranslate">TypeError</code>: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="604631" data-permission-text="Title is private" data-url="https://github.com/pallets/flask/issues/170" data-hovercard-type="issue" data-hovercard-url="/pallets/flask/issues/170/hovercard" href="https://github.com/pallets/flask/issues/170">#170</a>).</p>
<p dir="auto">Should we raise an exception again or is the current behavior carefully designed with a focus on performance? I mean, it is unlikely that this data mangling ends up in a production environment (a developer really should realize that <code class="notranslate">jsonify()</code> produces garbage in this case , like I did).</p> | <p dir="auto">ECMAscript 5 changed behavior of Array literals. That part of the documentation is outdated by now. We should check what browsers are affected by this and update the docs accordingly.</p> | 1 |
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="» ./configure
~/tmp/tensorflow ~/tmp/tensorflow
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N]
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with Hadoop File System support? [y/N]
No Hadoop File System support will be enabled for TensorFlow
Found possible Python library paths:
/usr/lib/python3/dist-packages
/usr/local/lib/python3.5/dist-packages
.
Please input the desired Python library path to use. Default is [/usr/lib/python3/dist-packages]
/home/wojciech/.local/lib/python3.5/site-packages
Do you wish to build TensorFlow with OpenCL support? [y/N]
No OpenCL support will be enabled for TensorFlow
Do you wish to build TensorFlow with GPU support? [y/N] y
GPU support will be enabled for TensorFlow
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]:
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]:
Please specify the location where CUDA toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify the Cudnn version you want to use. [Leave empty to use system default]:
Please specify the location where cuDNN library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size.
[Default is: "3.5,5.2"]: 6.1
.
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl", line 517
_create_cuda_repository(repository_ctx)
File "/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl", line 432, in _create_cuda_repository
_cuda_toolkit_path(repository_ctx, cuda_version)
File "/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl", line 148, in _cuda_toolkit_path
str(repository_ctx.path(cuda_toolkit...)
File "/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl", line 148, in str
repository_ctx.path(cuda_toolkit_path).realpath
Object of type 'path' has no field "realpath"."><pre class="notranslate">» ./configure
<span class="pl-k">~</span>/tmp/tensorflow <span class="pl-k">~</span>/tmp/tensorflow
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3
Do you wish to build TensorFlow with Google Cloud Platform support<span class="pl-k">?</span> [y/N]
No Google Cloud Platform support will be enabled <span class="pl-k">for</span> TensorFlow
Do you wish to build TensorFlow with Hadoop File System support<span class="pl-k">?</span> [y/N]
No Hadoop File System support will be enabled <span class="pl-k">for</span> TensorFlow
Found possible Python library paths:
/usr/lib/python3/dist-packages
/usr/local/lib/python3.5/dist-packages
<span class="pl-c1">.</span>
Please input the desired Python library path to use. Default is [/usr/lib/python3/dist-packages]
/home/wojciech/.local/lib/python3.5/site-packages
Do you wish to build TensorFlow with OpenCL support<span class="pl-k">?</span> [y/N]
No OpenCL support will be enabled <span class="pl-k">for</span> TensorFlow
Do you wish to build TensorFlow with GPU support<span class="pl-k">?</span> [y/N] y
GPU support will be enabled <span class="pl-k">for</span> TensorFlow
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]:
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]:
Please specify the location where CUDA toolkit is installed. Refer to README.md <span class="pl-k">for</span> more details. [Default is /usr/local/cuda]:
Please specify the Cudnn version you want to use. [Leave empty to use system default]:
Please specify the location where cuDNN library is installed. Refer to README.md <span class="pl-k">for</span> more details. [Default is /usr/local/cuda]:
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build <span class="pl-k">time</span> and binary size.
[Default is: <span class="pl-s"><span class="pl-pds">"</span>3.5,5.2<span class="pl-pds">"</span></span>]: 6.1
<span class="pl-c1">.</span>
INFO: Starting clean (this may take a while). Consider using --expunge_async <span class="pl-k">if</span> the clean takes more than several minutes.
<span class="pl-c1">.</span>
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span>: Encountered error <span class="pl-k">while</span> reading extension file <span class="pl-s"><span class="pl-pds">'</span>cuda/build_defs.bzl<span class="pl-pds">'</span></span>: no such package <span class="pl-s"><span class="pl-pds">'</span>@local_config_cuda//cuda<span class="pl-pds">'</span></span>: Traceback (most recent call last):
File <span class="pl-s"><span class="pl-pds">"</span>/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl<span class="pl-pds">"</span></span>, line 517
_create_cuda_repository(repository_ctx)
File <span class="pl-s"><span class="pl-pds">"</span>/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl<span class="pl-pds">"</span></span>, line 432, <span class="pl-k">in</span> _create_cuda_repository
_cuda_toolkit_path(repository_ctx, cuda_version)
File <span class="pl-s"><span class="pl-pds">"</span>/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl<span class="pl-pds">"</span></span>, line 148, <span class="pl-k">in</span> _cuda_toolkit_path
str(repository_ctx.path(cuda_toolkit...)
File <span class="pl-s"><span class="pl-pds">"</span>/home/wojciech/tmp/tensorflow/third_party/gpus/cuda_configure.bzl<span class="pl-pds">"</span></span>, line 148, <span class="pl-k">in</span> str
repository_ctx.path(cuda_toolkit_path).realpath
Object of <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>path<span class="pl-pds">'</span></span> has no field <span class="pl-s"><span class="pl-pds">"</span>realpath<span class="pl-pds">"</span></span>.</pre></div>
<p dir="auto">git hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/7f3d8e1f8736f4c812e4a0a96154af3bd3750180/hovercard" href="https://github.com/tensorflow/tensorflow/commit/7f3d8e1f8736f4c812e4a0a96154af3bd3750180"><tt>7f3d8e1</tt></a></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" » bazel version
Build label: 0.3.1
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 29 09:09:52 2016 (1469783392)
Build timestamp: 1469783392
Build timestamp as int: 1469783392"><pre class="notranslate"> » bazel version
Build label: 0.3.1
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Jul 29 09:09:52 2016 (1469783392)
Build timestamp: 1469783392
Build timestamp as int: 1469783392</pre></div>
<p dir="auto">python 3.5.2</p>
<p dir="auto">Works fine on the r0.11 branch</p> | <p dir="auto">I upgraded to 0.11rc1 as you have advised, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tatatodd/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tatatodd">@tatatodd</a> in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181810617" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/4841" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/4841/hovercard" href="https://github.com/tensorflow/tensorflow/issues/4841">#4841</a> . I did a <code class="notranslate">sudo ./configure</code>, and this was the result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo ./configure
~/tensorflow ~/tensorflow
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] N
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with Hadoop File System support? [y/N] N
No Hadoop File System support will be enabled for TensorFlow
Found possible Python library paths:
/usr/local/lib/python3.5/dist-packages
/usr/lib/python3/dist-packages
Please input the desired Python library path to use. Default is [/usr/local/lib/python3.5/dist-packages]
/usr/local/lib/python3.5/dist-packages
Do you wish to build TensorFlow with GPU support? [y/N] Y
GPU support will be enabled for TensorFlow
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]:
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 8.0
Please specify the location where CUDA 8.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: /usr/local/cuda-8.0
Please specify the Cudnn version you want to use. [Leave empty to use system default]:
Please specify the location where cuDNN library is installed. Refer to README.md for more details. [Default is /usr/local/cuda-8.0]:
libcudnn.so resolves to libcudnn.5
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size.
[Default is: "3.5,5.2"]:
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 517
_create_cuda_repository(repository_ctx)
File "/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 432, in _create_cuda_repository
_cuda_toolkit_path(repository_ctx, cuda_version)
File "/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 148, in _cuda_toolkit_path
str(repository_ctx.path(cuda_toolkit...)
File "/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 148, in str
repository_ctx.path(cuda_toolkit_path).realpath
Object of type 'path' has no field "realpath"."><pre class="notranslate"><code class="notranslate">$ sudo ./configure
~/tensorflow ~/tensorflow
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3
Do you wish to build TensorFlow with Google Cloud Platform support? [y/N] N
No Google Cloud Platform support will be enabled for TensorFlow
Do you wish to build TensorFlow with Hadoop File System support? [y/N] N
No Hadoop File System support will be enabled for TensorFlow
Found possible Python library paths:
/usr/local/lib/python3.5/dist-packages
/usr/lib/python3/dist-packages
Please input the desired Python library path to use. Default is [/usr/local/lib/python3.5/dist-packages]
/usr/local/lib/python3.5/dist-packages
Do you wish to build TensorFlow with GPU support? [y/N] Y
GPU support will be enabled for TensorFlow
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]:
Please specify the Cuda SDK version you want to use, e.g. 7.0. [Leave empty to use system default]: 8.0
Please specify the location where CUDA 8.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]: /usr/local/cuda-8.0
Please specify the Cudnn version you want to use. [Leave empty to use system default]:
Please specify the location where cuDNN library is installed. Refer to README.md for more details. [Default is /usr/local/cuda-8.0]:
libcudnn.so resolves to libcudnn.5
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size.
[Default is: "3.5,5.2"]:
INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
.
ERROR: com.google.devtools.build.lib.packages.BuildFileContainsErrorsException: error loading package '': Encountered error while reading extension file 'cuda/build_defs.bzl': no such package '@local_config_cuda//cuda': Traceback (most recent call last):
File "/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 517
_create_cuda_repository(repository_ctx)
File "/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 432, in _create_cuda_repository
_cuda_toolkit_path(repository_ctx, cuda_version)
File "/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 148, in _cuda_toolkit_path
str(repository_ctx.path(cuda_toolkit...)
File "/home/darth/tensorflow/third_party/gpus/cuda_configure.bzl", line 148, in str
repository_ctx.path(cuda_toolkit_path).realpath
Object of type 'path' has no field "realpath".
</code></pre></div>
<p dir="auto">Thanks in advance for your response.</p> | 1 |
<p dir="auto">I plan to move to using AWS S3 SDK instead of using JetS3T. I have noticed the following problems with JetS3T:</p>
<ol dir="auto">
<li>AWS SDK has better support for auth (reading credentials files etc)</li>
<li>It is far behind AWS S3 SDK in terms of development-release/support.</li>
</ol>
<p dir="auto">What do you think <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gianm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gianm">@gianm</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/leventov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/leventov">@leventov</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cheddar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cheddar">@cheddar</a> ?</p> | <p dir="auto">Impossible to take advantage of using <code class="notranslate">tools insert-segment-to-db</code> when using s3 as deep storage backend.</p> | 0 |
<p dir="auto">A gradient snippet was recently added to the CSS snippets.</p>
<p dir="auto">This has an incorrect syntax for the unprefixed version. When it was standardised the angles were changed so that the old "top" keyword (as used in the snippet) maps to "to bottom" in the standard syntax. "left" becomes to right, and so on.</p>
<p dir="auto">The current code will create a gradient that is flipped for browsers that use the unprefixed version.</p> | <p dir="auto">It looks like Visual Studio Code locks some files and I can't use the command line Git client when it is open. Closing Visual Studio Code resolves this issue. The index.lock file did not exist when I checked for it so it must be preventing the command line client from working in some other way. Here's the output from the command line client:</p>
<p dir="auto">Updating ca3f107..3e957b8<br>
fatal: Unable to create 'C:/dev/GIS/.git/index.lock': File exists.</p>
<p dir="auto">If no other git process is currently running, this probably means a<br>
git process crashed in this repository earlier. Make sure no other git<br>
process is running and remove the file manually to continue.</p> | 0 |
<ul dir="auto">
<li>VSCode Version: 1.2.0</li>
<li>OS Version: Win 10 enterprise preview</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Set user setting to "terminal.integrated.shell.windows": "%programfiles%\Git\git-bash.exe"</li>
<li>Open terminal ctrl+`</li>
</ol>
<p dir="auto">Expected:<br>
Terminal opens.</p>
<p dir="auto">Actual:<br>
Terminal window flickers and closes (presumably crashes).</p>
<p dir="auto">Workaround:<br>
Use explicit pathing like "C:\Program Files\Git\git-bash.exe" instead.</p> | <p dir="auto">I have a suite of projects that I'd like to have a shared configuration (e.g. all the repos at my company).</p>
<p dir="auto">Currently we have duplicate <code class="notranslate">.vscode/settings.json</code> files, and several common <code class="notranslate">.vscode/tasks.json</code> tasks. Some projects have additional tasks defined beyond the common ones.</p>
<hr>
<p dir="auto">I'm unsure what the right approach to take here is. I'd love some input</p>
<ul dir="auto">
<li>Can extensions apply user settings, or define tasks/problem matchers? The docs <a href="https://code.visualstudio.com/docs/extensionAPI/extension-points" rel="nofollow">don't seem to indicate that</a>.</li>
<li>Can a project declare a VS Code extension as a dependency? (seems unlikely, but hey :P)</li>
<li>We're toying with the idea of a common package with a <code class="notranslate">postinstall</code> script that symlinks the configuration in (and just over-defining tasks) - but it's pretty ugly.</li>
</ul> | 0 |
<p dir="auto">When I open the Samples tab in data table, it show "No results" even though the row counter shows that there are rows available to display and inspection of the request in the console shows that data was fetched.<br>
I think the bug might have been introduced in PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="973055254" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/16299" data-hovercard-type="pull_request" data-hovercard-url="/apache/superset/pull/16299/hovercard" href="https://github.com/apache/superset/pull/16299">#16299</a> - it uses columns from chart query to display data tables Results and Samples, even though Samples might (and usually does) have different columns than Results. It will actually show only those columns from Samples query that are present in current chart query.</p>
<h4 dir="auto">How to reproduce the bug</h4>
<ol dir="auto">
<li>Open a chart, for example 'Games per Genre over time'</li>
<li>Go to Samples tab</li>
<li>It shows only "Genre" column, even though there are many more available.</li>
</ol>
<h3 dir="auto">Expected results</h3>
<p dir="auto">All columns of Samples query should be displayed in data table</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">Only columns that are present in both Samples query and current chart query are displayed in Samples data table.</p>
<h4 dir="auto">Screenshots</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15073128/138292711-bb8abda2-909b-4ce1-9378-a13d3d7b469e.png"><img src="https://user-images.githubusercontent.com/15073128/138292711-bb8abda2-909b-4ce1-9378-a13d3d7b469e.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Environment</h3>
<p dir="auto">Latest master (e32acd)</p>
<h3 dir="auto">Checklist</h3>
<p dir="auto">Make sure to follow these steps 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"> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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>
<p dir="auto">CC <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/junlincc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/junlincc">@junlincc</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AAfghahi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AAfghahi">@AAfghahi</a></p> | <p dir="auto">SQL Lab goes to a "500 - Internal Server Error" if you try to export a .csv file from a query that has two columns with the same name if those columns correspond to character typed.</p>
<p dir="auto">This issue is not suggesting that SQL Lab needs to support the ability to return two fields with the same name, but rather that SQL queries that return some results in the SQL Lab GUI should also return those same results in the .CSV export.</p>
<h3 dir="auto">Superset version</h3>
<p dir="auto">0.18.4</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">when you <code class="notranslate">Run Query</code> in SQL Lab and results are successfully returned, those same results should be downloadable by clicking the <code class="notranslate">.CSV</code> button in SQL lab</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">clicking the <code class="notranslate">.CSV</code> button in SQL lab takes you to a 500-error page when the results have certain properties</p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>go to SQL Lab</li>
<li>enter the query:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SELECT 'a' AS a, 'a' AS a ;"><pre class="notranslate"><code class="notranslate">SELECT 'a' AS a, 'a' AS a ;
</code></pre></div>
<ol start="3" dir="auto">
<li>click "run query". this runs properly and returns a table that looks like:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a a__1
a a"><pre class="notranslate"><code class="notranslate">a a__1
a a
</code></pre></div>
<ol start="4" dir="auto">
<li>click the button that says <code class="notranslate">.CSV</code> to export a csv</li>
<li>get the error message included below.</li>
</ol>
<p dir="auto">Note that in step (2) if you use the query <code class="notranslate">SELECT 1 AS a, 1 AS a</code> the .csv export works properly, so maybe the error has something to do with the column type being a string rather than numeric.</p>
<h3 dir="auto">Output from web browser</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Sorry, something went wrong
500 - Internal Server Error
Stacktrace
Traceback (most recent call last):
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/indexes/base.py", line 2134, in get_loc
return self._engine.get_loc(key)
File "pandas/index.pyx", line 132, in pandas.index.IndexEngine.get_loc (pandas/index.c:4433)
File "pandas/index.pyx", line 154, in pandas.index.IndexEngine.get_loc (pandas/index.c:4279)
File "pandas/src/hashtable_class_helper.pxi", line 732, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13742)
File "pandas/src/hashtable_class_helper.pxi", line 740, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13696)
KeyError: 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/ubuntu/venv/lib/python3.5/site-packages/superset/utils.py", line 572, in wraps
return f(self, *args, **kwargs)
File "/home/ubuntu/venv/lib/python3.5/site-packages/superset/models/core.py", line 756, in wrapper
value = f(*args, **kwargs)
File "/home/ubuntu/venv/lib/python3.5/site-packages/superset/views/core.py", line 2075, in csv
df = query.database.get_df(sql, query.schema)
File "/home/ubuntu/venv/lib/python3.5/site-packages/superset/models/core.py", line 589, in get_df
if v.type == numpy.object_ and needs_conversion(df[k]):
File "/home/ubuntu/venv/lib/python3.5/site-packages/superset/models/core.py", line 584, in needs_conversion
if isinstance(df_series[0], (list, dict)):
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/frame.py", line 2059, in __getitem__
return self._getitem_column(key)
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/frame.py", line 2071, in _getitem_column
result = result[key]
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/frame.py", line 2059, in __getitem__
return self._getitem_column(key)
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/frame.py", line 2066, in _getitem_column
return self._get_item_cache(key)
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/generic.py", line 1386, in _get_item_cache
values = self._data.get(item)
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/internals.py", line 3543, in get
loc = self.items.get_loc(item)
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/indexes/base.py", line 2136, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/index.pyx", line 132, in pandas.index.IndexEngine.get_loc (pandas/index.c:4433)
File "pandas/index.pyx", line 154, in pandas.index.IndexEngine.get_loc (pandas/index.c:4279)
File "pandas/src/hashtable_class_helper.pxi", line 732, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13742)
File "pandas/src/hashtable_class_helper.pxi", line 740, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13696)
KeyError: 0
"><pre class="notranslate"><code class="notranslate">Sorry, something went wrong
500 - Internal Server Error
Stacktrace
Traceback (most recent call last):
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/indexes/base.py", line 2134, in get_loc
return self._engine.get_loc(key)
File "pandas/index.pyx", line 132, in pandas.index.IndexEngine.get_loc (pandas/index.c:4433)
File "pandas/index.pyx", line 154, in pandas.index.IndexEngine.get_loc (pandas/index.c:4279)
File "pandas/src/hashtable_class_helper.pxi", line 732, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13742)
File "pandas/src/hashtable_class_helper.pxi", line 740, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13696)
KeyError: 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/ubuntu/venv/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/ubuntu/venv/lib/python3.5/site-packages/superset/utils.py", line 572, in wraps
return f(self, *args, **kwargs)
File "/home/ubuntu/venv/lib/python3.5/site-packages/superset/models/core.py", line 756, in wrapper
value = f(*args, **kwargs)
File "/home/ubuntu/venv/lib/python3.5/site-packages/superset/views/core.py", line 2075, in csv
df = query.database.get_df(sql, query.schema)
File "/home/ubuntu/venv/lib/python3.5/site-packages/superset/models/core.py", line 589, in get_df
if v.type == numpy.object_ and needs_conversion(df[k]):
File "/home/ubuntu/venv/lib/python3.5/site-packages/superset/models/core.py", line 584, in needs_conversion
if isinstance(df_series[0], (list, dict)):
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/frame.py", line 2059, in __getitem__
return self._getitem_column(key)
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/frame.py", line 2071, in _getitem_column
result = result[key]
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/frame.py", line 2059, in __getitem__
return self._getitem_column(key)
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/frame.py", line 2066, in _getitem_column
return self._get_item_cache(key)
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/generic.py", line 1386, in _get_item_cache
values = self._data.get(item)
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/core/internals.py", line 3543, in get
loc = self.items.get_loc(item)
File "/home/ubuntu/venv/lib/python3.5/site-packages/pandas/indexes/base.py", line 2136, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/index.pyx", line 132, in pandas.index.IndexEngine.get_loc (pandas/index.c:4433)
File "pandas/index.pyx", line 154, in pandas.index.IndexEngine.get_loc (pandas/index.c:4279)
File "pandas/src/hashtable_class_helper.pxi", line 732, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13742)
File "pandas/src/hashtable_class_helper.pxi", line 740, in pandas.hashtable.PyObjectHashTable.get_item (pandas/hashtable.c:13696)
KeyError: 0
</code></pre></div> | 0 |
<p dir="auto">I would be nice if the explorer would collapse to the bottom given that the "Opened Editors" view is becoming more useful lately.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/900690/15473361/db99abf4-20ff-11e6-97bb-17573fe886e3.png"><img src="https://cloud.githubusercontent.com/assets/900690/15473361/db99abf4-20ff-11e6-97bb-17573fe886e3.png" alt="image" style="max-width: 100%;"></a></p> | <ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Mac OS X El Capitan</li>
</ul>
<p dir="auto">I would like to be able to specify multiple commands in a Task Runner. Right now, only one command is supported. Is the best way to do this with a shell script?</p>
<p dir="auto">Cheers,<br>
Trevor Sullivan<br>
Microsoft MVP: PowerShell</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=david_syer" rel="nofollow">Dave Syer</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7731?redirect=false" rel="nofollow">SPR-7731</a></strong> and commented</p>
<h4 dir="auto">Overview</h4>
<p dir="auto">Sometimes (always?) it would be nice to have a <code class="notranslate">@Rule</code> implementation that did the job of the <code class="notranslate">SpringJUnit4ClassRunner</code>.</p>
<p dir="auto">The main motivation for this is to be able to use other runners (e.g. <code class="notranslate">@Parameterized</code>, <code class="notranslate">@Categories</code>, Mockito, etc.).</p>
<p dir="auto">There might even be a case for deprecating the runner in favor of a <code class="notranslate">@Rule</code>?</p>
<hr>
<h4 dir="auto">Further Resources</h4>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="655943" data-permission-text="Title is private" data-url="https://github.com/junit-team/junit4/issues/200" data-hovercard-type="issue" data-hovercard-url="/junit-team/junit4/issues/200/hovercard" href="https://github.com/junit-team/junit4/issues/200">junit-team/junit4#200</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4830351" data-permission-text="Title is private" data-url="https://github.com/junit-team/junit4/issues/444" data-hovercard-type="issue" data-hovercard-url="/junit-team/junit4/issues/444/hovercard" href="https://github.com/junit-team/junit4/issues/444">junit-team/junit4#444</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="22950072" data-permission-text="Title is private" data-url="https://github.com/junit-team/junit4/issues/766" data-hovercard-type="issue" data-hovercard-url="/junit-team/junit4/issues/766/hovercard" href="https://github.com/junit-team/junit4/issues/766">junit-team/junit4#766</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10326244" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/222" data-hovercard-type="pull_request" data-hovercard-url="/spring-projects/spring-framework/pull/222/hovercard" href="https://github.com/spring-projects/spring-framework/pull/222">#222</a></li>
<li><a href="https://github.com/mmichaelis/spring-aware-rule">https://github.com/mmichaelis/spring-aware-rule</a></li>
</ul>
<hr>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/17657/SpringContextRule.java" rel="nofollow">SpringContextRule.java</a> (<em>4.72 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/17655/SpringContextRule.java" rel="nofollow">SpringContextRule.java</a> (<em>4.49 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/22794/spring-test-4.2.0.BUILD-SNAPSHOT.jar" rel="nofollow">spring-test-4.2.0.BUILD-SNAPSHOT.jar</a> (<em>501.52 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="398101166" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11259" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11259/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11259">#11259</a> Introduce a TestExecutionListener for DbUnit (<em><strong>"Cloned from"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398179752" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/17629" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/17629/hovercard" href="https://github.com/spring-projects/spring-framework/issues/17629">#17629</a> Document SpringClassRule and SpringMethodRule in the reference manual (<em><strong>"is depended on by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118038" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13870" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13870/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13870">#13870</a> JUnit <code class="notranslate">@Rule</code> executes outside of transaction when using the TransactionalTestExecutionListener (<em><strong>"is depended on by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398156708" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14850" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14850/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14850">#14850</a> Implement JUnit 4 Support using Rules (<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="398091889" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9965" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9965/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9965">#9965</a> Add support for parameterized JUnit 4 tests in the Spring TestContext Framework</li>
</ul>
<p dir="auto">25 votes, 30 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=matthewadams" rel="nofollow">Matthew T. Adams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9281?redirect=false" rel="nofollow">SPR-9281</a></strong> and commented</p>
<p dir="auto">I've found a case where the ability to specify that certain bean profiles are active by default is extremely convenient.</p>
<p dir="auto">We are migrating from one environment to another (from pure Hibernate to JPA) in an evolutionary fashion. When not specifying any active bean profiles, the legacy environment is intended for backward compatibility reasons; when the new environment is desired, only then would the user wish to set the system property "spring.profiles.active" and specify that he wanted to use the "new stuff" (JPA in this case).</p>
<p dir="auto">As an alternative to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111567" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12852" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12852/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12852">#12852</a>, the choice could be explicitly made by the author of the application context by adding an attribute called "default-profile-activation" similar to the <beans> element. This would serve to remove any magic.</p>
<p dir="auto">If "default-profile-activation" were an enumerated value, it would make the behavior explicit. Values I'd recommend are the following.</p>
<ul dir="auto">
<li>
<p dir="auto">"inactive-by-default": The profile being described is inactive by default and activated only explicitly. This is the default value if a "profile" attribute is given. It could be a warning if this value is provided and a nonempty "profile" attribute value were given.</p>
</li>
<li>
<p dir="auto">"active-unless-specified": The profile being described is active by default, unless other means of explicit activation are provided, like via the "spring.profiles.active" system property.</p>
</li>
<li>
<p dir="auto">"active-always": The profile being described is always active, regardless of explicit profile activations. This value is intended for backward compatibility with the <beans> element when it has an empty or no "profile" attribute. It could be a warning if users provided both a "profile" attribute and a "default-profile-activation" value of "active-always".</p>
</li>
</ul>
<p dir="auto">Consider the following file.</p>
<hr>
<p dir="auto"><beans> <!-- no 'profile' attribute, 'default-profile-activation' value is 'active-always' --><br>
<bean id="a" class="com.acme.A"/><br>
</beans></p>
<p dir="auto"><beans profile="jpa"> <!-- 'default-profile-activation' value is 'inactive-by-default' --><br>
<bean id="b" class="com.acme.B"/><br>
</beans></p>
<p dir="auto"><beans profile="pure-hibernate" default-profile-activation="active-unless-specified"><br>
<bean id="c" class="com.acme.C"/><br>
</beans></p>
<p dir="auto"><beans default-profile-activation="active-always"> <!-- no 'profile' attribute, results in warning since this is the default in this case? --><br>
<bean id="d" class="com.acme.D"/><br>
</beans></p>
<p dir="auto"><beans profile="jpa" default-profile-activation="inactive-by-default"> <!-- 'profile' attribute given, results in warning since this is the default in this case? --><br>
<bean id="e" class="com.acme.E"/><br>
</beans></p>
<hr>
<p dir="auto">If the profile "pure-hibernate" or no profiles were explicitly activated, then the beans defined would be [a, c, d].</p>
<p dir="auto">If the profile "jpa" were activated, then the beans defined would be [a, b, d, e].</p>
<p dir="auto">If the profile "foobar", which is not mentioned in the example, were activated, then the beans defined would be [a, d].</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398164076" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15881" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15881/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15881">#15881</a> Add explanation of <code class="notranslate">@Profile</code>("default") to reference documentation (<em><strong>"is depended on by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111567" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12852" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12852/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12852">#12852</a> Introduce a reserved default profile name (<em><strong>"duplicates"</strong></em>)</li>
</ul> | 0 |
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.6.1</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">When i use <em>do_xcom_push=True</em> in <strong>DatabricksSqlOperator</strong> the an exception with following stack trace is thrown:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2023-06-06, 08:52:24 UTC] {sql.py:375} INFO - Running statement: SELECT cast(max(id) as STRING) FROM prod.unified.sessions, parameters: None
[2023-06-06, 08:52:25 UTC] {taskinstance.py:1824} ERROR - Task failed with exception
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/session.py", line 73, in wrapper
return func(*args, **kwargs)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/models/taskinstance.py", line 2354, in xcom_push
XCom.set(
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/session.py", line 73, in wrapper
return func(*args, **kwargs)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/models/xcom.py", line 237, in set
value = cls.serialize_value(
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/models/xcom.py", line 632, in serialize_value
return json.dumps(value, cls=XComEncoder).encode("UTF-8")
File "/usr/local/lib/python3.10/json/__init__.py", line 238, in dumps
**kw).encode(obj)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/json.py", line 102, in encode
o = self.default(o)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/json.py", line 91, in default
return serialize(o)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/serialization/serde.py", line 144, in serialize
return encode(classname, version, serialize(data, depth + 1))
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/serialization/serde.py", line 123, in serialize
return [serialize(d, depth + 1) for d in o]
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/serialization/serde.py", line 123, in <listcomp>
return [serialize(d, depth + 1) for d in o]
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/serialization/serde.py", line 132, in serialize
qn = qualname(o)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/module_loading.py", line 47, in qualname
return f"{o.__module__}.{o.__name__}"
File "/home/airflow/.local/lib/python3.10/site-packages/databricks/sql/types.py", line 161, in __getattr__
raise AttributeError(item)
AttributeError: __name__. Did you mean: '__ne__'?"><pre class="notranslate"><code class="notranslate">[2023-06-06, 08:52:24 UTC] {sql.py:375} INFO - Running statement: SELECT cast(max(id) as STRING) FROM prod.unified.sessions, parameters: None
[2023-06-06, 08:52:25 UTC] {taskinstance.py:1824} ERROR - Task failed with exception
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/session.py", line 73, in wrapper
return func(*args, **kwargs)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/models/taskinstance.py", line 2354, in xcom_push
XCom.set(
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/session.py", line 73, in wrapper
return func(*args, **kwargs)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/models/xcom.py", line 237, in set
value = cls.serialize_value(
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/models/xcom.py", line 632, in serialize_value
return json.dumps(value, cls=XComEncoder).encode("UTF-8")
File "/usr/local/lib/python3.10/json/__init__.py", line 238, in dumps
**kw).encode(obj)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/json.py", line 102, in encode
o = self.default(o)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/json.py", line 91, in default
return serialize(o)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/serialization/serde.py", line 144, in serialize
return encode(classname, version, serialize(data, depth + 1))
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/serialization/serde.py", line 123, in serialize
return [serialize(d, depth + 1) for d in o]
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/serialization/serde.py", line 123, in <listcomp>
return [serialize(d, depth + 1) for d in o]
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/serialization/serde.py", line 132, in serialize
qn = qualname(o)
File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/module_loading.py", line 47, in qualname
return f"{o.__module__}.{o.__name__}"
File "/home/airflow/.local/lib/python3.10/site-packages/databricks/sql/types.py", line 161, in __getattr__
raise AttributeError(item)
AttributeError: __name__. Did you mean: '__ne__'?
</code></pre></div>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">In _process_output() if self._output_path is False a list of tuples is returned:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def _process_output(self, results: list[Any], descriptions: list[Sequence[Sequence] | None]) -> list[Any]:
if not self._output_path:
return list(zip(descriptions, results))"><pre class="notranslate"><code class="notranslate"> def _process_output(self, results: list[Any], descriptions: list[Sequence[Sequence] | None]) -> list[Any]:
if not self._output_path:
return list(zip(descriptions, results))
</code></pre></div>
<p dir="auto">I suspect this breaks the serialization somehow which might be related to my own meta database(postgres).</p>
<p dir="auto">Replacing the Databricks SQL Operator with simple <strong>PythonOperator</strong> and <strong>DatabricksSqlHook</strong> works just fine:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def get_max_id(ti):
hook = DatabricksSqlHook(databricks_conn_id=databricks_sql_conn_id, sql_endpoint_name='sql_endpoint')
sql = "SELECT cast(max(id) as STRING) FROM prod.unified.sessions"
return str(hook.get_first(sql)[0])"><pre class="notranslate"><code class="notranslate">def get_max_id(ti):
hook = DatabricksSqlHook(databricks_conn_id=databricks_sql_conn_id, sql_endpoint_name='sql_endpoint')
sql = "SELECT cast(max(id) as STRING) FROM prod.unified.sessions"
return str(hook.get_first(sql)[0])
</code></pre></div>
<h3 dir="auto">How to reproduce</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" get_max_id_task = DatabricksSqlOperator(
databricks_conn_id=databricks_sql_conn_id,
sql_endpoint_name='sql_endpoint',
task_id='get_max_id',
sql="SELECT cast(max(id) as STRING) FROM prod.unified.sessions",
do_xcom_push=True
)"><pre class="notranslate"><code class="notranslate"> get_max_id_task = DatabricksSqlOperator(
databricks_conn_id=databricks_sql_conn_id,
sql_endpoint_name='sql_endpoint',
task_id='get_max_id',
sql="SELECT cast(max(id) as STRING) FROM prod.unified.sessions",
do_xcom_push=True
)
</code></pre></div>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Debian GNU/Linux 11 (bullseye) docker image, python 3.10</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">apache-airflow-providers-common-sql==1.5.1<br>
databricks-sql-connector==2.5.2<br>
apache-airflow-providers-databricks==4.2.0</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Docker-Compose</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">Using extended Airflow image, LocalExecutor, Postgres 13 meta db as container in the same stack.<br>
docker-compose version 1.29.2, build 5becea4c<br>
Docker version 23.0.5, build bc4487a</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.6.2</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">I installed <code class="notranslate">apache-airflow</code> and attempted to set up the db via:</p>
<p dir="auto"><code class="notranslate">airflow db init</code></p>
<p dir="auto">but it fails with the following pydantic error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DB: sqlite:////Users/username/airflow/airflow.db
/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/pydantic/_internal/_config.py:257 UserWarning: Valid config keys have changed in V2:
* 'orm_mode' has been renamed to 'from_attributes'
Traceback (most recent call last):
File "Users/username/Desktop/project_root/.venv/bin/airflow", line 8, in <module>
sys.exit(main())
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/__main__.py", line 48, in main
args.func(args)
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/cli/cli_config.py", line 52, in command
return func(*args, **kwargs)
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/cli/commands/db_command.py", line 37, in initdb
db.initdb()
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/utils/session.py", line 76, in wrapper
return func(*args, session=session, **kwargs)
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/utils/db.py", line 711, in initdb
import_all_models()
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/models/__init__.py", line 60, in import_all_models
__getattr__(name)
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/models/__init__.py", line 78, in __getattr__
val = import_string(f"{path}.{name}")
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/utils/module_loading.py", line 36, in import_string
module = import_module(module_path)
File "/opt/homebrew/Cellar/[email protected]/3.9.17/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/models/skipmixin.py", line 25, in <module>
from airflow.serialization.pydantic.dag_run import DagRunPydantic
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/serialization/pydantic/dag_run.py", line 24, in <module>
from airflow.serialization.pydantic.dataset import DatasetEventPydantic
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/serialization/pydantic/dataset.py", line 40, in <module>
class TaskOutletDatasetReferencePydantic(BaseModelPydantic):
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/pydantic/_internal/_model_construction.py", line 95, in __new__
private_attributes = inspect_namespace(
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/pydantic/_internal/_model_construction.py", line 328, in inspect_namespace
raise PydanticUserError(
pydantic.errors.PydanticUserError: A non-annotated attribute was detected: `dag_id = <class 'str'>`. All model fields require a type annotation; if `dag_id` is not meant to be a field, you may be able to resolve this error by annotating it as a `ClassVar` or updating `model_config['ignored_types']`."><pre class="notranslate"><code class="notranslate">DB: sqlite:////Users/username/airflow/airflow.db
/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/pydantic/_internal/_config.py:257 UserWarning: Valid config keys have changed in V2:
* 'orm_mode' has been renamed to 'from_attributes'
Traceback (most recent call last):
File "Users/username/Desktop/project_root/.venv/bin/airflow", line 8, in <module>
sys.exit(main())
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/__main__.py", line 48, in main
args.func(args)
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/cli/cli_config.py", line 52, in command
return func(*args, **kwargs)
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/cli/commands/db_command.py", line 37, in initdb
db.initdb()
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/utils/session.py", line 76, in wrapper
return func(*args, session=session, **kwargs)
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/utils/db.py", line 711, in initdb
import_all_models()
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/models/__init__.py", line 60, in import_all_models
__getattr__(name)
File "Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/models/__init__.py", line 78, in __getattr__
val = import_string(f"{path}.{name}")
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/utils/module_loading.py", line 36, in import_string
module = import_module(module_path)
File "/opt/homebrew/Cellar/[email protected]/3.9.17/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/models/skipmixin.py", line 25, in <module>
from airflow.serialization.pydantic.dag_run import DagRunPydantic
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/serialization/pydantic/dag_run.py", line 24, in <module>
from airflow.serialization.pydantic.dataset import DatasetEventPydantic
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/airflow/serialization/pydantic/dataset.py", line 40, in <module>
class TaskOutletDatasetReferencePydantic(BaseModelPydantic):
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/pydantic/_internal/_model_construction.py", line 95, in __new__
private_attributes = inspect_namespace(
File "/Users/username/Desktop/project_root/.venv/lib/python3.9/site-packages/pydantic/_internal/_model_construction.py", line 328, in inspect_namespace
raise PydanticUserError(
pydantic.errors.PydanticUserError: A non-annotated attribute was detected: `dag_id = <class 'str'>`. All model fields require a type annotation; if `dag_id` is not meant to be a field, you may be able to resolve this error by annotating it as a `ClassVar` or updating `model_config['ignored_types']`.
</code></pre></div>
<h3 dir="auto">How to reproduce</h3>
<ol dir="auto">
<li>install <code class="notranslate">apache-airflow</code> via pip</li>
<li>open terminal, cd to <code class="notranslate">~/airflow</code> folder</li>
<li>run <code class="notranslate">airflow db init</code> command</li>
</ol>
<h3 dir="auto">Operating System</h3>
<p dir="auto">MacOS Ventura 13.3.1.</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto"><strong>apache-airflow-providers-common-sql==1.5.2<br>
apache-airflow-providers-ftp==3.4.2<br>
apache-airflow-providers-http==4.4.2<br>
apache-airflow-providers-imap==3.2.2<br>
apache-airflow-providers-sqlite==3.4.2</strong></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 0 |
<h3 dir="auto">Documentation Link</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Problem</h3>
<p dir="auto">The footer reads:</p>
<blockquote>
<p dir="auto">© Copyright 2021 - 2012 John Hunter, Darren Dale, Eric Firing, Michael Droettboom and the Matplotlib development team; 2012 - 2021 The Matplotlib development team.</p>
</blockquote>
<p dir="auto">The first year range 2021-2012 is obviously wrong.</p>
<h3 dir="auto">Suggested improvement</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto"><s>3.5.0</s> devdocs</p> | <h3 dir="auto">Documentation Link</h3>
<p dir="auto"><a href="https://matplotlib.org/devdocs/index.html" rel="nofollow">https://matplotlib.org/devdocs/index.html</a></p>
<h3 dir="auto">Problem</h3>
<p dir="auto">Bottom copyright starts with</p>
<blockquote>
<p dir="auto">© Copyright 2021 - 2012 John Hunter, ...</p>
</blockquote>
<p dir="auto">Compare with stable docs:</p>
<blockquote>
<p dir="auto">© Copyright 2002 - 2012 John Hunter, ...</p>
</blockquote>
<h3 dir="auto">Suggested improvement</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">master</p>
<h3 dir="auto">Matplotlib documentation version</h3>
<p dir="auto">3.4.2.post1702+g0a4a10c5a1</p> | 1 |
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<p dir="auto">On master:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [3]: values = ['a', 'b', np.nan]
In [4]: lib.infer_dtype(np.array(values))
Out[4]: 'string'"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">values</span> <span class="pl-c1">=</span> [<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s1">np</span>.<span class="pl-s1">nan</span>]
<span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">lib</span>.<span class="pl-en">infer_dtype</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">values</span>))
<span class="pl-v">Out</span>[<span class="pl-c1">4</span>]: <span class="pl-s">'string'</span></pre></div>
<p dir="auto">This returns 'mixed' if the list itself or a Series is passed:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [5]: lib.infer_dtype(values)
Out[5]: 'mixed'
In [6]: lib.infer_dtype(pd.Series(values))
Out[6]: 'mixed'"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">lib</span>.<span class="pl-en">infer_dtype</span>(<span class="pl-s1">values</span>)
<span class="pl-v">Out</span>[<span class="pl-c1">5</span>]: <span class="pl-s">'mixed'</span>
<span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">lib</span>.<span class="pl-en">infer_dtype</span>(<span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">values</span>))
<span class="pl-v">Out</span>[<span class="pl-c1">6</span>]: <span class="pl-s">'mixed'</span></pre></div>
<p dir="auto">This is a problem because it impacts any function that uses hash tables, as it causes NaN to be returned as a string (notice the quotes around <code class="notranslate">'nan'</code> below):</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [7]: pd.unique(np.array(values))
Out[7]: array(['a', 'b', 'nan'], dtype=object)"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">7</span>]: <span class="pl-s1">pd</span>.<span class="pl-en">unique</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">values</span>))
<span class="pl-v">Out</span>[<span class="pl-c1">7</span>]: <span class="pl-en">array</span>([<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s">'nan'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">object</span>)</pre></div>
<p dir="auto">Again, this doesn't happen if the list itself or a Series is passed:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [8]: pd.unique(values)
Out[8]: array(['a', 'b', nan], dtype=object)
In [9]: pd.unique(pd.Series(values))
Out[9]: array(['a', 'b', nan], dtype=object)"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">8</span>]: <span class="pl-s1">pd</span>.<span class="pl-en">unique</span>(<span class="pl-s1">values</span>)
<span class="pl-v">Out</span>[<span class="pl-c1">8</span>]: <span class="pl-en">array</span>([<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s1">nan</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">object</span>)
<span class="pl-v">In</span> [<span class="pl-c1">9</span>]: <span class="pl-s1">pd</span>.<span class="pl-en">unique</span>(<span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">values</span>))
<span class="pl-v">Out</span>[<span class="pl-c1">9</span>]: <span class="pl-en">array</span>([<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s1">nan</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">object</span>)</pre></div>
<p dir="auto">Which appears to be caused by <code class="notranslate">infer_dtype</code> returning 'string' instead of 'mixed' here:<br>
</p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/pandas-dev/pandas/blob/488db6f9a0f19e1d18559e6c2056e9545fe14704/pandas/core/algorithms.py#L207-L211">pandas/pandas/core/algorithms.py</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 207 to 211
in
<a data-pjax="true" class="commit-tease-sha" href="/pandas-dev/pandas/commit/488db6f9a0f19e1d18559e6c2056e9545fe14704">488db6f</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="L207" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="207"></td>
<td id="LC207" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># its cheaper to use a String Hash Table than Object</span> </td>
</tr>
<tr class="border-0">
<td id="L208" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="208"></td>
<td id="LC208" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">lib</span>.<span class="pl-en">infer_dtype</span>(<span class="pl-s1">values</span>) <span class="pl-c1">in</span> [<span class="pl-s">'string'</span>]: </td>
</tr>
<tr class="border-0">
<td id="L209" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="209"></td>
<td id="LC209" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ndtype</span> <span class="pl-c1">=</span> <span class="pl-s">'string'</span> </td>
</tr>
<tr class="border-0">
<td id="L210" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="210"></td>
<td id="LC210" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">else</span>: </td>
</tr>
<tr class="border-0">
<td id="L211" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="211"></td>
<td id="LC211" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ndtype</span> <span class="pl-c1">=</span> <span class="pl-s">'object'</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<h4 dir="auto">Problem description</h4>
<p dir="auto"><code class="notranslate">infer_dtype</code> incorrectly returns 'string', causing NaN to get converted to a string by functions that use hash tables.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto"><code class="notranslate">infer_dtype</code> to return 'mixed'.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pandas-dev/pandas/commit/488db6f9a0f19e1d18559e6c2056e9545fe14704/hovercard" href="https://github.com/pandas-dev/pandas/commit/488db6f9a0f19e1d18559e6c2056e9545fe14704"><tt>488db6f</tt></a><br>
python: 3.6.1.final.0<br>
python-bits: 64<br>
OS: Windows<br>
OS-release: 10<br>
machine: AMD64<br>
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: None<br>
LOCALE: None.None</p>
<p dir="auto">pandas: 0.22.0.dev0+74.g488db6f<br>
pytest: 3.1.2<br>
pip: 9.0.1<br>
setuptools: 27.2.0<br>
Cython: 0.25.2<br>
numpy: 1.13.1<br>
scipy: 0.19.1<br>
pyarrow: 0.6.0<br>
xarray: 0.9.6<br>
IPython: 6.1.0<br>
sphinx: 1.5.6<br>
patsy: 0.4.1<br>
dateutil: 2.6.0<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: None<br>
tables: 3.4.2<br>
numexpr: 2.6.2<br>
feather: 0.4.0<br>
matplotlib: 2.0.2<br>
openpyxl: 2.4.8<br>
xlrd: 1.1.0<br>
xlwt: 1.3.0<br>
xlsxwriter: 0.9.8<br>
lxml: 3.8.0<br>
bs4: None<br>
html5lib: 0.999<br>
sqlalchemy: 1.1.13<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.9.6<br>
s3fs: None<br>
fastparquet: 0.1.0<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | <p dir="auto">It is not clear if this should raise on construction or not<br>
<a href="http://stackoverflow.com/questions/17338148/pandas-duplicate-datetimeindex-entries-lead-to-odd-exception?noredirect=1#comment25166923_17338148" rel="nofollow">http://stackoverflow.com/questions/17338148/pandas-duplicate-datetimeindex-entries-lead-to-odd-exception?noredirect=1#comment25166923_17338148</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [3]: from collections import OrderedDict
In [4]: import datetime as dt
In [5]: a = [1371215933513120, 1371215933513121, 1371215933513122, 1371215933513122]
In [6]: b = [1,2,3,4]
In [7]: df = pd.DataFrame({'a':a, 'b':b, 'c':[dt.datetime.fromtimestamp(t/1000000.) for t in a]})
In [8]: df.index=pd.DatetimeIndex(df['c'])
In [9]: d = OrderedDict()
In [10]: d['x'] = df
In [11]: p = pd.Panel(d)
In [12]: for y in p.major_axis:
....: print y
....: print p.major_xs(y)
....:
2013-06-14 09:18:53.513120
x
a 1371215933513120
b 1
c 2013-06-14 09:18:53.513120
2013-06-14 09:18:53.513121
x
a 1371215933513121
b 2
c 2013-06-14 09:18:53.513121
2013-06-14 09:18:53.513122
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"><pre class="notranslate"><code class="notranslate">In [3]: from collections import OrderedDict
In [4]: import datetime as dt
In [5]: a = [1371215933513120, 1371215933513121, 1371215933513122, 1371215933513122]
In [6]: b = [1,2,3,4]
In [7]: df = pd.DataFrame({'a':a, 'b':b, 'c':[dt.datetime.fromtimestamp(t/1000000.) for t in a]})
In [8]: df.index=pd.DatetimeIndex(df['c'])
In [9]: d = OrderedDict()
In [10]: d['x'] = df
In [11]: p = pd.Panel(d)
In [12]: for y in p.major_axis:
....: print y
....: print p.major_xs(y)
....:
2013-06-14 09:18:53.513120
x
a 1371215933513120
b 1
c 2013-06-14 09:18:53.513120
2013-06-14 09:18:53.513121
x
a 1371215933513121
b 2
c 2013-06-14 09:18:53.513121
2013-06-14 09:18:53.513122
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
</code></pre></div> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report
[x] 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">[ ] bug report
[x] 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>
you need to use <code class="notranslate">constructor</code></p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
perhaps <code class="notranslate">$class</code></p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
<a href="http://plnkr.co/edit/JK1FbSomU15KgKU64Tr1?p=preview" rel="nofollow">http://plnkr.co/edit/JK1FbSomU15KgKU64Tr1?p=preview</a></p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
you have to use <code class="notranslate">constructor</code></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
to have access to static data</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.4</li>
<li><strong>Browser:</strong> Chrome</li>
<li><strong>Language:</strong> TypeScript</li>
</ul>
<p dir="auto"><a href="http://plnkr.co/edit/JK1FbSomU15KgKU64Tr1?p=preview" rel="nofollow">http://plnkr.co/edit/JK1FbSomU15KgKU64Tr1?p=preview</a><br>
related <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="111270690" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/4707" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/4707/hovercard" href="https://github.com/angular/angular/issues/4707">#4707</a></p>
<p dir="auto"><a href="https://tipe.io?ref=github-comment" rel="nofollow"><img src="https://user-images.githubusercontent.com/1016365/34912701-7edec34c-f89c-11e7-8c89-bed6cef064b5.png" alt="github-tipe-logo" style="max-width: 100%;"></a></p> | <h2 dir="auto">I'm submitting a...</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ x ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:"><pre class="notranslate"><code class="notranslate">
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[ ] Performance issue
[ x ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:
</code></pre></div>
<h2 dir="auto">Current behavior</h2>
<p dir="auto">Templates cannot refer to anything not directly associated with the component, so you can't for example do this:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div *ngIf="user.id === someConstant">
</div>
<div *ngIf="user.status === UserStatus.Active"> <!-- UserStatus is an enum -->
</div>
<div *ngIf="isDevMode()">
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">*ngIf</span>="<span class="pl-s">user.id === someConstant</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">*ngIf</span>="<span class="pl-s">user.status === UserStatus.Active</span>"<span class="pl-kos">></span> <span class="pl-c"><!-- UserStatus is an enum --></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">*ngIf</span>="<span class="pl-s">isDevMode()</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">To make this work, I have to declare these as members of my component:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { someConstant } from './somewhere';
import { UserStatus } from './somewhere';
import { isDevMode } from '@angular/core';
export class MyComponent {
public someConstant = someConstant;
public UserStatus = UserStatus;
public isDevMode = isDevMode;
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">someConstant</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./somewhere'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">UserStatus</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./somewhere'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">isDevMode</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">MyComponent</span> <span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-c1">someConstant</span> <span class="pl-c1">=</span> <span class="pl-s1">someConstant</span><span class="pl-kos">;</span>
<span class="pl-k">public</span> <span class="pl-c1">UserStatus</span> <span class="pl-c1">=</span> <span class="pl-smi">UserStatus</span><span class="pl-kos">;</span>
<span class="pl-k">public</span> <span class="pl-c1">isDevMode</span> <span class="pl-c1">=</span> <span class="pl-s1">isDevMode</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">These can quickly clutter the component code, and can't be used for const enums. For const enums I have to duplicate the entire enum into a constant, which becomes a maintenance headache.</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">It would be helpful if I could use constants, enums and functions directly from within the template, without needing to assign them to a component member. Maybe a way of importing variables/types into the HTML, or declaring types in the component that are available to the template. Something like this perhaps:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { someConstant } from './somewhere';
import { UserStatus } from './somewhere';
import { isDevMode } from '@angular/core';
@Component({
selector: 'app-user-list',
templateUrl: './user-list.component.html',
templateImports: [someConstant, UserStatus, isDevMode]
})"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">someConstant</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./somewhere'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">UserStatus</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./somewhere'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">isDevMode</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core'</span><span class="pl-kos">;</span>
@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">selector</span>: <span class="pl-s">'app-user-list'</span><span class="pl-kos">,</span>
<span class="pl-c1">templateUrl</span>: <span class="pl-s">'./user-list.component.html'</span><span class="pl-kos">,</span>
<span class="pl-c1">templateImports</span>: <span class="pl-kos">[</span><span class="pl-s1">someConstant</span><span class="pl-kos">,</span> <span class="pl-smi">UserStatus</span><span class="pl-kos">,</span> <span class="pl-s1">isDevMode</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">(this particular solution wouldn't work for const enums, other solutions may be better)</p>
<h2 dir="auto">Environment</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
Angular CLI: 6.1.2
Node: 8.11.1
OS: linux x64
Angular: 6.1.1"><pre class="notranslate"><code class="notranslate">
Angular CLI: 6.1.2
Node: 8.11.1
OS: linux x64
Angular: 6.1.1
</code></pre></div> | 1 |
<p dir="auto">I'm suggesting some sort of interface to incorporate the functionality of Node's <code class="notranslate">tty</code> module, which would solve <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="656331265" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/6738" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/6738/hovercard" href="https://github.com/denoland/deno/issues/6738">#6738</a>, as well as setting all sort of terminal configurations, such as enabling/disabling input echo, and getting the terminal size.</p> | <p dir="auto">In some cases, such as a <a href="https://git-scm.com/docs/gitcredentials#_custom_helpers" rel="nofollow">Git Credential Helper</a>, a script needs to get both program arguments through stdin, and prompt the user for data.</p>
<p dir="auto">In Linux, this is done by opening <a href="https://linux.die.net/man/4/tty" rel="nofollow">/dev/tty</a> which is, according to the manpage, a handle to the process' <em>controlling terminal</em>, which is a separate stream from stdin.</p>
<p dir="auto">I have also noticed that Deno currently has no handle in its API for such a stream, so for now there's no cross-platform/native solution to this.</p>
<p dir="auto">My suggestion is adding a <code class="notranslate">Deno.tty</code> handle to Deno's API, similar to the <code class="notranslate">Deno.stdin</code> handle, to allow for cross-platform usage of this feature.</p>
<p dir="auto">Edit: On further research, according to <a href="http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/146259" rel="nofollow">this page</a> from the bottom of the internet, something like this could work easily for mac, linux and windows.<br>
Edit2: On even <a href="https://en.wikipedia.org/wiki/Device_file#PC_DOS,_TOS,_OS/2,_and_Windows" rel="nofollow">further research</a>, i got the wrong Windows device name. Edited in the code snippet.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="//Within the Deno namespace:
export const tty = Deno.build.os === "windows"?await Deno.open("CON:"):await Deno.open("/dev/tty");"><pre class="notranslate"><code class="notranslate">//Within the Deno namespace:
export const tty = Deno.build.os === "windows"?await Deno.open("CON:"):await Deno.open("/dev/tty");
</code></pre></div> | 1 |
<blockquote>
<p dir="auto">This is a suggestion for spec change.</p>
</blockquote>
<h3 dir="auto">Problem</h3>
<p dir="auto">Sometimes type's members could only be applicable with some restrictions of enclosing type parameter (generic type constraints).</p>
<p dir="auto">For instance, this is use case of RxJS:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var xs: Observable<Observable<string>>;
xs.mergeAll(); // mergeAll is applicable here
var ys: Observable<string>;
ys.mergeAll(); // mergeAll is NOT applicable here"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">xs</span>: <span class="pl-smi">Observable</span><span class="pl-kos"><</span><span class="pl-smi">Observable</span><span class="pl-kos"><</span><span class="pl-smi">string</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-s1">xs</span><span class="pl-kos">.</span><span class="pl-en">mergeAll</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// mergeAll is applicable here</span>
<span class="pl-k">var</span> <span class="pl-s1">ys</span>: <span class="pl-smi">Observable</span><span class="pl-kos"><</span><span class="pl-smi">string</span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-s1">ys</span><span class="pl-kos">.</span><span class="pl-en">mergeAll</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// mergeAll is NOT applicable here</span></pre></div>
<p dir="auto">Original Rx.NET <a href="http://msdn.microsoft.com/en-us/library/hh229740%28v=vs.103%29.aspx" rel="nofollow">Merge</a> method implemented as C# extension method on type <code class="notranslate">IObservable<IObservable<T>></code>. In RxJS it's implemented as an instance method.</p>
<p dir="auto">Current RxJS typescript definition just use <a href="https://github.com/Reactive-Extensions/RxJS/blob/master/ts/rx-lite.d.ts#L258">unsafe trick</a>:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export interface Observable<T> {
...
mergeAll(): T;
...
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">Observable</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
...
<span class="pl-c1">mergeAll</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-kos">}</span></pre></div>
<p dir="auto">But it can be still unsafely called for as instance of any <code class="notranslate">Observable<T></code>.</p>
<h3 dir="auto">Possible solutions</h3>
<h4 dir="auto">Extension methods</h4>
<p dir="auto">Something like C# extension methods. But don't think it's useful in such cases.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare extensions {
mergeAll<T>(this Observable<Observable<T>> source): Observable<T>;
}"><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-s1">extensions</span> <span class="pl-kos">{</span>
<span class="pl-c1">mergeAll</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-smi">this</span> <span class="pl-smi">Observable</span><span class="pl-c1"><</span><span class="pl-smi">Observable</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">>></span> <span class="pl-s1">source</span><span class="pl-kos">)</span>: <span class="pl-smi">Observable</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-kos">}</span></pre></div>
<p dir="auto">BTW, extensions method could be other cool feature, which change call method (from instance-like to static-like).</p>
<h4 dir="auto">Multiple interface definitions with different constraints</h4>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface A<T> { x(): void; }
interface A<T extends B> { y(): void; }
var a: A<number>;
var b: A<B>;
a.x(); b.x(); // ok
b.y(); // ok
a.y(); // error"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">A</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span> <span class="pl-c1">x</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">A</span><span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">B</span><span class="pl-c1">></span> <span class="pl-kos">{</span> <span class="pl-c1">y</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-s1">a</span>: <span class="pl-smi">A</span><span class="pl-kos"><</span><span class="pl-smi">number</span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">b</span>: <span class="pl-smi">A</span><span class="pl-kos"><</span><span class="pl-smi">B</span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-s1">a</span><span class="pl-kos">.</span><span class="pl-en">x</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-en">x</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// ok</span>
<span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-en">y</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// ok</span>
<span class="pl-s1">a</span><span class="pl-kos">.</span><span class="pl-en">y</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// error</span></pre></div>
<h4 dir="auto">Member-level constraints with reference to enclosing type arguments</h4>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface A<T> {
x(): void;
y<T extends B>(): void; // only applicable if T extends B
z<T extends B>: number; // for any property
// alternative syntax options:
<T extends B>z: number; // 1
z: number where T extends B; // 2
y(): void where T extends B;
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">A</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-c1">x</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span>
<span class="pl-c1">y</span><span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">B</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span> <span class="pl-c">// only applicable if T extends B</span>
<span class="pl-c1">z</span><span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">B</span><span class="pl-c1">></span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-c">// for any property</span>
<span class="pl-c">// alternative syntax options:</span>
<span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">B</span><span class="pl-c1">></span><span class="pl-c1">z</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-c">// 1</span>
<span class="pl-c1">z</span>: <span class="pl-smi">number</span> <span class="pl-s1">where</span> <span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">B</span><span class="pl-kos">;</span> <span class="pl-c">// 2</span>
<span class="pl-c1">y</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span> <span class="pl-s1">where</span> <span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">B</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">I'll suggest this option. Moreover the previous solution options is special case of this one (incompatible constraints are merged on member level).</p> | <p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.10</p>
<h2 dir="auto">Inconsistencies:</h2>
<h3 dir="auto">1. The documentation for compiler options shows that you can set <code class="notranslate">module: "none"</code></h3>
<p dir="auto"><a href="http://www.typescriptlang.org/docs/handbook/compiler-options.html" rel="nofollow">http://www.typescriptlang.org/docs/handbook/compiler-options.html</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2856501/15205118/7e691a12-17c9-11e6-823b-f2ea0b56ea4f.png"><img src="https://cloud.githubusercontent.com/assets/2856501/15205118/7e691a12-17c9-11e6-823b-f2ea0b56ea4f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This suggests that there should be an option to set <code class="notranslate">module: "none"</code> in a tsconfig.json file since it's equivalent to the <code class="notranslate">--module</code> flag.</p>
<h3 dir="auto">2. When editing the tsconfig.json file from within VS Code <code class="notranslate">"none"</code> is not an option for "module".</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2856501/15205543/0e518e36-17cd-11e6-99b9-dfe6b1edbdbc.png"><img src="https://cloud.githubusercontent.com/assets/2856501/15205543/0e518e36-17cd-11e6-99b9-dfe6b1edbdbc.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This contradicts the documentation which says "none" is a valid option.</p>
<h3 dir="auto">3. If you create a new Asp.Net MVC project and add a typescript file and check the project settings you will in fact see that "None" is an option for module output and it outputs the variables as globals using IIFE pattern.</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2856501/15205389/b1fcd1a0-17cb-11e6-8f5f-879495a9b4c8.png"><img src="https://cloud.githubusercontent.com/assets/2856501/15205389/b1fcd1a0-17cb-11e6-8f5f-879495a9b4c8.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This is confusing because the if you try to set module to none from VS code the typescript compiler will actually give an error:<br>
<code class="notranslate">error TS1148: Cannot compile modules unless the '--module' flag is provided with a valid module type. Consider setting the 'module' compiler option in a 'tsconfig.json' file.</code></p>
<p dir="auto">This makes you wonder how it can be possible to set modules as None when in Visual Studio.</p>
<h2 dir="auto">How to compile to equivalent of <code class="notranslate">module: "none"</code></h2>
<p dir="auto">There might be a use case where someone wants to transpile to globals like visual studio does instead of being forced to use "amd", "commonjs", or "umd" and there isn't a clear way to do that in the <code class="notranslate">tsconfig.json</code> options.</p>
<p dir="auto">Is it true that VS code and Visual Studio are both using same compiler and should have the same features? (I know they could target different versions, but assuming they're not)</p>
<p dir="auto">I found that if you use a combination of:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="target: "es5",
module: "es2015"
..."><pre class="notranslate"><code class="notranslate">target: "es5",
module: "es2015"
...
</code></pre></div>
<p dir="auto">It will show an error saying:<br>
<code class="notranslate">error TS1204: Cannot compile modules into 'es2015' when targeting 'ES5' or **lower.**</code><br>
but the output looks the closes to what <code class="notranslate">module: "none"</code> used to do.</p>
<h3 dir="auto">Resolution?</h3>
<p dir="auto">I would guess the easiest is to update tsconfig.json to allow <code class="notranslate">module: "none"</code> so it can be configured to behave the same as visual studio. Then it will also align with the documentation.</p> | 0 |
<p dir="auto">Sorry, I'm not sure if I should open this in the Vue CLI or the Vue CLI Webpack template repository. I'll move them if necessary.</p>
<p dir="auto">The problem is, Vue triggers the <code class="notranslate">componentchanged</code> event of an <a href="https://aframe.io/docs/core/entity.html#Events" rel="nofollow">a-frame</a> component forever.</p>
<p dir="auto">This is the code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<a-scene>
<a-entity>
<a-camera @componentchanged="onChange()">
</a-camera>
</a-entity>
</a-scene>
<script>
export default {
methods: {
onChange: function () {
console.log('Changed!')
}
}
</script>"><pre class="notranslate"><code class="notranslate"><a-scene>
<a-entity>
<a-camera @componentchanged="onChange()">
</a-camera>
</a-entity>
</a-scene>
<script>
export default {
methods: {
onChange: function () {
console.log('Changed!')
}
}
</script>
</code></pre></div>
<p dir="auto">Here's a demo: <a href="https://desolate-island-90618.herokuapp.com/#!/5EfhFj+R3DY1zo8JIGGQhosrSqn7p0t8pON9y5asxnM=" rel="nofollow">https://desolate-island-90618.herokuapp.com/#!/5EfhFj+R3DY1zo8JIGGQhosrSqn7p0t8pON9y5asxnM=</a></p>
<p dir="auto">This only happens in <code class="notranslate">.vue</code> files. The problem doesn't occur in a simple <code class="notranslate">new Vue</code> instance: <a href="http://codepen.io/anon/pen/PNQdwO" rel="nofollow">http://codepen.io/anon/pen/PNQdwO</a></p> | <p dir="auto">Sorry, I'm not sure if I should open this in the Vue CLI or the Vue CLI Webpack template repository. I'll migrate them if necessary.</p>
<p dir="auto">The problem is, Vue triggers the <code class="notranslate">componentchanged</code> event of an <a href="https://aframe.io/docs/core/entity.html#Events" rel="nofollow">a-frame</a> component forever.</p>
<p dir="auto">This is the code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<a-scene>
<a-entity>
<a-camera @componentchanged="onChange()">
</a-camera>
</a-entity>
</a-scene>
<script>
export default {
methods: {
onChange: function () {
console.log('Changed!')
}
}
</script>"><pre class="notranslate"><code class="notranslate"><a-scene>
<a-entity>
<a-camera @componentchanged="onChange()">
</a-camera>
</a-entity>
</a-scene>
<script>
export default {
methods: {
onChange: function () {
console.log('Changed!')
}
}
</script>
</code></pre></div>
<p dir="auto">Here's a demo: <a href="https://desolate-island-90618.herokuapp.com/#!/5EfhFj+R3DY1zo8JIGGQhosrSqn7p0t8pON9y5asxnM=" rel="nofollow">https://desolate-island-90618.herokuapp.com/#!/5EfhFj+R3DY1zo8JIGGQhosrSqn7p0t8pON9y5asxnM=</a> (see console).</p>
<p dir="auto">This only happens in <code class="notranslate">.vue</code> files. The problem doesn't occur in a simple <code class="notranslate">new Vue</code> instance: <a href="http://codepen.io/anon/pen/PNQdwO" rel="nofollow">http://codepen.io/anon/pen/PNQdwO</a></p>
<p dir="auto">(<em>Note:</em> I also tested this code in a fresh <code class="notranslate">vue init webpack</code> project. The problem, seem to occur in <code class="notranslate">.vue</code> files.)</p>
<p dir="auto">(<em>Note 2:</em> The event is being triggered even if the <code class="notranslate">oldData</code> is the same as the <code class="notranslate">newData</code>.)</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sterenb2" rel="nofollow">Geert Jan Sterenborg</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3184?redirect=false" rel="nofollow">SPR-3184</a></strong> and commented</p>
<p dir="auto">Hi,</p>
<p dir="auto">Currently we have a config-module for every specific implementation of our product. These config-modules contain our Spring configuration-files.<br>
So we have a lot of duplicate bean-configs.</p>
<p dir="auto">We initialize the configuration files like so:</p>
<p dir="auto">---start of boot-strap.xml<br>
[CODE]<bean id="core-services" class="....ServiceManager"><br>
<constructor-arg><br>
<list><br>
<value>services/config-file.xml</value><br>
</list><br>
</constructor-arg><br>
</bean>[/CODE]<br>
---end of boot-strap.xml</p>
<p dir="auto">I'm trying to split these modules into a kernel-config-module (i.e. generic-config-modules) and several specific-config modules making use of the parent-child relationship.</p>
<p dir="auto">The problem I'm running into is the following:</p>
<p dir="auto">Generic config-file:<br>
[CODE]<br>
<bean id="a" class="...A"><br>
<constructor-arg ref="c"><br>
</bean></p>
<p dir="auto"><bean id="b" class="...B"><br>
<constructor-arg ref="a"><br>
</bean></p>
<p dir="auto"><bean id="c" class="...C"/>[/CODE]</p>
<p dir="auto">Bean A - uses bean C in generic config-file<br>
Bean B - uses bean A in generic config-file</p>
<p dir="auto">Specific config-file:</p>
<p dir="auto">[CODE]<bean id="a" parent="a"><br>
<constructor-arg ref="d"><br>
</bean>[/CODE]</p>
<p dir="auto"><bean id="d" class="...D"/></p>
<p dir="auto">Bean A - overrides bean A in generic config-file so that it uses bean D (config: <bean id="a" parent="a">....)<br>
Bean D - Some bean</p>
<p dir="auto">And the boot-strap-files:</p>
<p dir="auto">---start of boot-strap-kernel.xml<br>
[CODE] <bean id="core-services-kernel" class="....ServiceManager"><br>
<constructor-arg><br>
<list><br>
<value>services/config-file-kernel.xml</value><br>
</list><br>
</constructor-arg><br>
</bean>[/CODE]<br>
---end of boot-strap-kernel.xml</p>
<p dir="auto">---start of boot-strap-specific.xml<br>
[CODE] <bean id="core-services" class="....ServiceManager"><br>
<constructor-arg><br>
<list><br>
<value>services/config-file.xml</value><br>
</list><br>
</constructor-arg><br>
<constructor-arg ref="core-services-kernel"/><!--Generic is core-services' parent --><br>
</bean>[/CODE]<br>
---end of boot-strap-kernel.xml</p>
<p dir="auto">The problem is that generic-bean B still uses the generic-bean A.</p>
<p dir="auto">In order to use generic-bean B without having to include it in all specific-config-modules I could add a generic-config-file,<br>
include it in core-services and move bean B to this file:</p>
<p dir="auto">---start of boot-strap-specific.xml<br>
[CODE] <bean id="core-services" class="....ServiceManager"><br>
<constructor-arg><br>
<list><br>
<value>services/config-file-kernel-shared.xml</value><br>
<value>services/config-file.xml</value><br>
</list><br>
</constructor-arg><br>
<constructor-arg ref="core-services-kernel"/><!--Generic is core-services' parent --><br>
</bean>[/CODE]<br>
---end of boot-strap-kernel.xml</p>
<p dir="auto">But what if I want to override bean B?</p>
<p dir="auto">The alternative is to move bean B to the specific config-file. If there were other beans depending on B they would have to be moved (in this case duplicated) too.</p>
<p dir="auto">Some forum-questions and issues regarding this matter all boil down to the fact that parent-contexts know nothing of their children.</p>
<p dir="auto">I'm not entirely sure but I guess the goal is that bean-extension should compare to java class-extension.<br>
However since I'm going through the child-context to access bean B that is configured in the parent-context it wouldn't be completely illogic to be able to override the parent-definition.</p>
<p dir="auto">It would be nice to have an extension that would allow to do something like this:</p>
<p dir="auto">[CODE]<bean id="a" .... parent="a"><br>
<override/> <!--- override switch --><br>
<constructor-arg ref="d"><br>
</bean>[/CODE]</p>
<p dir="auto">The override tag should completely override bean A (in child-context as well as parent-context.)</p>
<p dir="auto">I've posted this as a question on the forum (<a href="http://forum.springframework.org/showthread.php?t=34950" rel="nofollow">http://forum.springframework.org/showthread.php?t=34950</a>), but perhaps it could be useful to others if it were included in the core.</p>
<hr>
<p dir="auto">No further details from <a href="https://jira.spring.io/browse/SPR-3184?redirect=false" rel="nofollow">SPR-3184</a></p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=chess2001" rel="nofollow">Vladimiras Makarovas</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3316?redirect=false" rel="nofollow">SPR-3316</a></strong> and commented</p>
<p dir="auto">spring-framework-2.0.4-with-dependencies-20070327-26.zip</p>
<p dir="auto">trace:<br>
javax.security.auth.login.LoginException: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [conf/netsvep-aas-context.xml]; nested exception is java.lang.IllegalArgumentException: Class [org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler] does not implement the NamespaceHandler interface<br>
Caused by: java.lang.IllegalArgumentException: Class [org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler] does not implement the NamespaceHandler interface<br>
at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)<br>
at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96)<br>
at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:82)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:489)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:478)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173)<br>
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)<br>
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)<br>
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:100)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:298)<br>
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91)<br>
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75)<br>
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)<br>
at com.asw.netsvep.modules.aas.DatabaseServerLoginModuleRC.getAuthService(Unknown Source)</p>
<p dir="auto">code:<br>
protected DatabaseServerAuthService getAuthService() {<br>
String path = "classpath:conf/netsvep-aas-context.xml";<br>
ApplicationContext ctx = new ClassPathXmlApplicationContext(path);<br>
DatabaseServerAuthService auth = (DatabaseServerAuthService) ctx.getBean("authService");<br>
return auth;<br>
}</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.4</p> | 0 |
<p dir="auto">I realize this error could be specific to my application but it happens only after upgrading from Next version 2.4.0 to the latest version.</p>
<p dir="auto">I have a dependency which has a dependency to react-addons-css-transition-group. When upgrading the latest 'next' version I get he error below when building the application. Moving back to the old version fixes the problem.</p>
<p dir="auto">Could it be caused by the new webpack version used in the newer versions?</p>
<p dir="auto"><strong>Stacktrace</strong><code class="notranslate">Failed to build on /var/folders/jr/dttm62vx7ss636n38lbv632h0000gn/T/362dd530-0e85-42d9-af04-7288fe481a7e { Error: ./~/react-addons-css-transition-group/index.js Module not found: Error: Can't resolve 'react/lib/ReactCSSTransitionGroup' in '/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react-addons-css-transition-group' resolve 'react/lib/ReactCSSTransitionGroup' in '/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react-addons-css-transition-group' Parsed request is a module using description file: /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react-addons-css-transition-group/package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration aliased with mapping 'react': '/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js' to '/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup' using description file: /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react-addons-css-transition-group/package.json (relative path: .) Field 'browser' doesn't contain a valid alias configuration after using description file: /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react-addons-css-transition-group/package.json (relative path: .) using description file: /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/package.json (relative path: ./dist/react.min.js/lib/ReactCSSTransitionGroup) as directory /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup doesn't exist no extension Field 'browser' doesn't contain a valid alias configuration /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup.js doesn't exist .json Field 'browser' doesn't contain a valid alias configuration /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup.json doesn't exist [/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup] [/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup] [/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup.js] [/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup.json] @ ./~/react-addons-css-transition-group/index.js 1:17-61 @ ./~/auth0-lock/lib/ui/box/chrome.js @ ./~/auth0-lock/lib/ui/box/container.js @ ./~/auth0-lock/lib/core/actions.js @ ./~/auth0-lock/lib/core.js @ ./~/auth0-lock/lib/index.js @ ./utils/auth.js @ ./store.js @ ./pages/contact.js?entry @ multi ./pages/contact.js?entry at /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/next/dist/server/build/index.js:181:21 at /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/next/node_modules/webpack/lib/Compiler.js:272:15 at Compiler.emitRecords (/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/next/node_modules/webpack/lib/Compiler.js:367:37) at /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/next/node_modules/webpack/lib/Compiler.js:265:12 at /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/next/node_modules/webpack/lib/Compiler.js:360:11 at next (/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/tapable/lib/Tapable.js:154:11) at Compiler.compiler.plugin (/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/next/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4) at Compiler.applyPluginsAsyncSeries1 (/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/tapable/lib/Tapable.js:158:13) at Compiler.afterEmit (/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/next/node_modules/webpack/lib/Compiler.js:357:8) at Compiler.<anonymous> (/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/next/node_modules/webpack/lib/Compiler.js:352:14) errors: [ './~/react-addons-css-transition-group/index.js\nModule not found: Error: Can\'t resolve \'react/lib/ReactCSSTransitionGroup\' in \'/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react-addons-css-transition-group\'\nresolve \'react/lib/ReactCSSTransitionGroup\' in \'/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react-addons-css-transition-group\'\n Parsed request is a module\n using description file: /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react-addons-css-transition-group/package.json (relative path: .)\n Field \'browser\' doesn\'t contain a valid alias configuration\n aliased with mapping \'react\': \'/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js\' to \'/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup\'\n using description file: /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react-addons-css-transition-group/package.json (relative path: .)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react-addons-css-transition-group/package.json (relative path: .)\n using description file: /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/package.json (relative path: ./dist/react.min.js/lib/ReactCSSTransitionGroup)\n as directory\n /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup doesn\'t exist\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup.js doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup.json doesn\'t exist\n[/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup]\n[/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup]\n[/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup.js]\n[/Users/Filip/Documents/javascript/RestoBonsApp/RestoBonsWeb/src/node_modules/react/dist/react.min.js/lib/ReactCSSTransitionGroup.json]\n @ ./~/react-addons-css-transition-group/index.js 1:17-61\n @ ./~/auth0-lock/lib/ui/box/chrome.js\n @ ./~/auth0-lock/lib/ui/box/container.js\n @ ./~/auth0-lock/lib/core/actions.js\n @ ./~/auth0-lock/lib/core.js\n @ ./~/auth0-lock/lib/index.js\n @ ./utils/auth.js\n @ ./store.js\n @ ./pages/contact.js?entry\n @ multi ./pages/contact.js?entry' ], warnings: [] }</code></p> | <h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">Bug <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="378734048" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/5635" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/5635/hovercard" href="https://github.com/vercel/next.js/issues/5635">#5635</a> was closed as a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="378517302" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/5628" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/5628/hovercard" href="https://github.com/vercel/next.js/issues/5628">#5628</a>, but I don't think it actually was a duplicate. I can see why you'd think so at first glance though. Both seem to be related to the Fragment tag's usage, but at least for the case of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="378734048" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/5635" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/5635/hovercard" href="https://github.com/vercel/next.js/issues/5635">#5635</a>, I think that was a coincidence because the problem described there is something I'm also seeing.</p>
<p dir="auto">A clear and concise description of what the bug is.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p>
<ol dir="auto">
<li>Run <code class="notranslate">git clone https://github.com/geirman/nextjs-title-bug</code></li>
<li>Run <code class="notranslate">cd nextjs-title-bug</code></li>
<li>Run <code class="notranslate">Yarn</code> (duh!)</li>
<li>Run <code class="notranslate">npm run dev</code></li>
<li><code class="notranslate">Note</code> that the expected title flashes briefly, then becomes empty.</li>
<li>Now disable javascript and reload the page</li>
<li><code class="notranslate">Note</code> the server rendered title persists as expected</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">The server rendered title should persist even after the client script is run</p>
<h2 dir="auto">Screenshots</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1640318/49264434-0d4c8d00-f403-11e8-946f-a3392436a7b7.gif"><img src="https://user-images.githubusercontent.com/1640318/49264434-0d4c8d00-f403-11e8-946f-a3392436a7b7.gif" alt="kapture 2018-11-29 at 18 16 59" data-animated-image="" style="max-width: 100%;"></a></p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: macOS</li>
<li>Browser (if applies) Firefox</li>
<li>Version of Next.js: 7.0.2</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">So you don't have to go through the repo code...here's a copy/paste of the relevant pages.</p>
<p dir="auto"><strong>Page.js</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Head from 'next/head'
import Title from './Title'
const Page = props => (
<div>
<Head>
<Title title={props.title} />
</Head>
{props.children}
</div>
)
export default Page"><pre class="notranslate"><code class="notranslate">import Head from 'next/head'
import Title from './Title'
const Page = props => (
<div>
<Head>
<Title title={props.title} />
</Head>
{props.children}
</div>
)
export default Page
</code></pre></div>
<p dir="auto"><strong>Title.js</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default ({ title }) => (
<title>
{`${title} | My Awesome Website`}
</title>
)"><pre class="notranslate"><code class="notranslate">export default ({ title }) => (
<title>
{`${title} | My Awesome Website`}
</title>
)
</code></pre></div>
<p dir="auto"><strong>/pages/index.js</strong> used like so...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Page from '../layout/Page'
const Home = props => (
<Page title="Home">
<h1>Home</h1>
<p>Hey home!</p>
</Page>
)
export default Home"><pre class="notranslate"><code class="notranslate">import Page from '../layout/Page'
const Home = props => (
<Page title="Home">
<h1>Home</h1>
<p>Hey home!</p>
</Page>
)
export default Home
</code></pre></div> | 0 |
<p dir="auto">On Windows the Menu does not behave very native. For one, pressing Alt should select the first menu ("File"). Then, pressing Arrow-Left or Right I cannot navigate between the menu items. Arrow-Up and down works within the menu.</p> | <p dir="auto">Electron is missing a basic standard feature of the menu system in Windows whereby the user can activate any menu and then use the left and right arrow keys to navigate the entire menu bar.</p>
<p dir="auto">Here is a <a href="https://youtu.be/ANnOtQxrUOc?t=56s" rel="nofollow">short video on youtube</a> which illustrates this behavior at ~0:56.</p> | 1 |
<p dir="auto">OS-X Mountain Lion<br>
Python version 3.3.1<br>
Matplotlib version 1.2.0 Revision 1</p>
<p dir="auto">Almost all text is being partially displayed. For instance, in the example in <a href="http://matplotlib.org/users/text_props.html" rel="nofollow"><em>Text properties and layout</em></a>, the text at the center displays as "<strong>mid</strong>" rather than "<strong>middle</strong>". Most other text in that plot is similarly truncated.</p> | <p dir="auto">To get the estimated (x,y,z) coordinate of a mouse event in a 3D figure we must parse these values from the string <a href="https://github.com/matplotlib/matplotlib/blob/e2315d221251e62130e3cd73c39fe90b5924600f/lib/mpl_toolkits/mplot3d/axes3d.py#L1087-1125">generated</a> by <code class="notranslate">Axes3D.format_coord</code>. Wouldn't it be more useful to factor that out into a separate method (<code class="notranslate">coord</code>?) giving access to <code class="notranslate">x, y, z = proj3d.inv_transform(xd, yd, z, self.M)</code>? <code class="notranslate">format_coord</code> would then simply convert that to the formatted string.</p>
<p dir="auto">The question of how to extract these coordinates has been asked a few times on SO:</p>
<p dir="auto"><a href="http://stackoverflow.com/questions/6748184/matplotlib-plot-surface-get-the-x-y-z-values-written-in-the-bottom-right-cor" rel="nofollow">http://stackoverflow.com/questions/6748184/matplotlib-plot-surface-get-the-x-y-z-values-written-in-the-bottom-right-cor</a><br>
<a href="http://stackoverflow.com/questions/28954611/how-to-extract-3d-mouse-coordinate-on-mouse-click-in-matplotlib-in-python" rel="nofollow">http://stackoverflow.com/questions/28954611/how-to-extract-3d-mouse-coordinate-on-mouse-click-in-matplotlib-in-python</a></p>
<p dir="auto">and aside from duplicating the code within <code class="notranslate">format_coord</code> the best we can do is parse the values out of the generated string.</p> | 0 |
<pre class="notranslate">What does 'go version' print?
go version devel +26aa53304a48 Fri Mar 07 16:08:12 2014 -0500 linux/amd64
What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.
package main
// #cgo pkg-config: cairo
// #include <cairo/cairo.h>
import "C"
//export test
func test(x *C.cairo_t) {}
func main() {}
What happened?
COMPILER OUTPUT
# command-line-arguments
Go type not supported in export: [0]byte
Go type not supported in export: [0]byte
...CGO1.GO FILE
func test(x *[0]byte,) {}
_CGO_EXPORT.H FILE
extern void test(int* p0);
What should have happened instead?
COMPILER OUTPUT
[successful build]
...CGO1.GO FILE
func test(x *_Ctype_cairo_t,) {}
_CGO_EXPORT.H FILE
extern void test(cairo_t* p0);
Please provide any additional information below.
In this case, cairo/cairo.h defines cairo_t as
typedef struct _cairo cairo_t;
but _cairo is never explicitly defined, which is possibly what is confusing cgo.</pre> | <pre class="notranslate">Calling with reflection with embedded types seems to be broken.
Here is a short snippet showing the issue:
package main
import "reflect"
type A struct{}
type B struct{A}
func (a *A) S() { println("Hi!") }
func main() {
b := &B{}
b.S()
reflect.NewValue(b).Method(0).Call([]reflect.Value{})
}
b.S() works, but the next line fails with:
panic: type mismatch: *main.A != *main.B
Looking at the source of Call():
if v := fv.first; v != nil {
// Hard-wired first argument.
if fv.isInterface {
// v is a single uninterpreted word
memmove(addr(ptr), v.getAddr(), ptrSize)
off = ptrSize
} else {
// v is a real value
tv := v.Type()
typesMustMatch(t.In(0), tv)
n := tv.Size()
memmove(addr(ptr), v.getAddr(), n)
off = n
delta = 1
}
}
It looks to my untrained eye like the type checking might be relaxed in the second case
too, in the same way that was done with interfaces in the first case.
The only possible way to reach this code path is via the Method() function, which I
believe is already a proof that the type is indeed acceptable as the receiver of the
given call.
Am I missing something, or could this check be removed?</pre> | 0 |
<h2 dir="auto">Question</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<sharding-jdbc.version>4.1.0</sharding-jdbc.version>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>sharding-jdbc-spring-boot-starter</artifactId>
<version>${sharding-jdbc.version}</version>
</dependency>"><pre class="notranslate"><code class="notranslate"><sharding-jdbc.version>4.1.0</sharding-jdbc.version>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>sharding-jdbc-spring-boot-starter</artifactId>
<version>${sharding-jdbc.version}</version>
</dependency>
</code></pre></div>
<h3 dir="auto">mysql version</h3>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="show variables like '%version%';
INSERT INTO MY_TABLE(Variable_name, Value) VALUES ('version', '8.0.18');"><pre class="notranslate">show variables <span class="pl-k">like</span> <span class="pl-s"><span class="pl-pds">'</span>%version%<span class="pl-pds">'</span></span>;
<span class="pl-k">INSERT INTO</span> MY_TABLE(Variable_name, Value) <span class="pl-k">VALUES</span> (<span class="pl-s"><span class="pl-pds">'</span>version<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>8.0.18<span class="pl-pds">'</span></span>);</pre></div>
<h3 dir="auto">question</h3>
<p dir="auto">I use mybatis and shardingsphere in my project.<br>
This is my sql</p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="select *
from (select user_id as userId, rank_value as rankValue, row_number() over (order by rank_value desc) as seq
from t_stat_rank_day
where rank_type = 1
and rank_day = '2020-10-16'
order by rank_value desc, update_time
limit 50) as go
where go.userId = 1594371406316000000;"><pre class="notranslate"><span class="pl-k">select</span> <span class="pl-k">*</span>
<span class="pl-k">from</span> (<span class="pl-k">select</span> user_id <span class="pl-k">as</span> userId, rank_value <span class="pl-k">as</span> rankValue, row_number() over (<span class="pl-k">order by</span> rank_value <span class="pl-k">desc</span>) <span class="pl-k">as</span> seq
<span class="pl-k">from</span> t_stat_rank_day
<span class="pl-k">where</span> rank_type <span class="pl-k">=</span> <span class="pl-c1">1</span>
<span class="pl-k">and</span> rank_day <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>2020-10-16<span class="pl-pds">'</span></span>
<span class="pl-k">order by</span> rank_value <span class="pl-k">desc</span>, update_time
<span class="pl-k">limit</span> <span class="pl-c1">50</span>) <span class="pl-k">as</span> go
<span class="pl-k">where</span> <span class="pl-c1">go</span>.<span class="pl-c1">userId</span> <span class="pl-k">=</span> <span class="pl-c1">1594371406316000000</span>;</pre></div>
<p dir="auto">But something error happens:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="line 2:14 no viable alternative at input '(selectrow_number()over'
line 2:14 no viable alternative at input '(selectrow_number()over'
line 2:11 extraneous input '(' expecting ')'
line 2:14 mismatched input 'over' expecting {TRUNCATE, POSITION, VIEW, AS, ANY, OFFSET, BEGIN, COMMIT, ROLLBACK, SAVEPOINT, BOOLEAN, DATE, TIME, TIMESTAMP, YEAR, QUARTER, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MICROSECOND, MAX, MIN, SUM, COUNT, AVG, CURRENT, ENABLE, DISABLE, INSTANCE, DO, DEFINER, CASCADED, LOCAL, CLOSE, OPEN, NEXT, NAME, TYPE, TABLES, TABLESPACE, COLUMNS, FIELDS, INDEXES, STATUS, MODIFY, VALUE, DUPLICATE, FIRST, LAST, AFTER, OJ, ACCOUNT, USER, ROLE, START, TRANSACTION, WITHOUT, ESCAPE, SUBPARTITION, STORAGE, SUPER, TEMPORARY, THAN, UNBOUNDED, SIGNED, UPGRADE, VALIDATION, ROLLUP, SOUNDS, UNKNOWN, OFF, ALWAYS, COMMITTED, LEVEL, NO, PASSWORD, PRIVILEGES, ACTION, ALGORITHM, AUTOCOMMIT, BTREE, CHAIN, CHARSET, CHECKSUM, CIPHER, CLIENT, COALESCE, COMMENT, COMPACT, COMPRESSED, COMPRESSION, CONNECTION, CONSISTENT, DATA, DISCARD, DISK, ENCRYPTION, END, ENGINE, EVENT, EXCHANGE, EXECUTE, FILE, FIXED, FOLLOWING, GLOBAL, HASH, IMPORT_, LESS, MEMORY, NONE, PARSER, PARTIAL, PARTITIONING, PERSIST, PRECEDING, PROCESS, PROXY, QUICK, REBUILD, REDUNDANT, RELOAD, REMOVE, REORGANIZE, REPAIR, REVERSE, SESSION, SHUTDOWN, SIMPLE, SLAVE, VISIBLE, INVISIBLE, ENFORCED, AGAINST, LANGUAGE, MODE, QUERY, EXTENDED, EXPANSION, VARIANCE, MAX_ROWS, MIN_ROWS, SQL_BIG_RESULT, SQL_BUFFER_RESULT, SQL_CACHE, SQL_NO_CACHE, STATS_AUTO_RECALC, STATS_PERSISTENT, STATS_SAMPLE_PAGES, ROW_FORMAT, WEIGHT_STRING, COLUMN_FORMAT, INSERT_METHOD, KEY_BLOCK_SIZE, PACK_KEYS, PERSIST_ONLY, BIT_AND, BIT_OR, BIT_XOR, GROUP_CONCAT, JSON_ARRAYAGG, JSON_OBJECTAGG, STD, STDDEV, STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP, AUTO_INCREMENT, AVG_ROW_LENGTH, DELAY_KEY_WRITE, ROTATE, MASTER, BINLOG, ERROR, SCHEDULE, COMPLETION, EVERY, HOST, SOCKET, PORT, SERVER, WRAPPER, OPTIONS, OWNER, RETURNS, CONTAINS, SECURITY, INVOKER, TEMPTABLE, MERGE, UNDEFINED, DATAFILE, FILE_BLOCK_SIZE, EXTENT_SIZE, INITIAL_SIZE, AUTOEXTEND_SIZE, MAX_SIZE, NODEGROUP, WAIT, LOGFILE, UNDOFILE, UNDO_BUFFER_SIZE, REDO_BUFFER_SIZE, HANDLER, PREV, ORGANIZATION, DEFINITION, DESCRIPTION, REFERENCE, FOLLOWS, PRECEDES, IMPORT, CONCURRENT, XML, DUMPFILE, SHARE, CODE, CONTEXT, SOURCE, CHANNEL, CLONE, AGGREGATE, INSTALL, COMPONENT, UNINSTALL, RESOURCE, EXPIRE, NEVER, HISTORY, OPTIONAL, REUSE, MAX_QUERIES_PER_HOUR, MAX_UPDATES_PER_HOUR, MAX_CONNECTIONS_PER_HOUR, MAX_USER_CONNECTIONS, RETAIN, RANDOM, OLD, ISSUER, SUBJECT, CACHE, GENERAL, SLOW, USER_RESOURCES, EXPORT, RELAY, HOSTS, FLUSH, RESET, RESTART, IO_THREAD, SQL_THREAD, SQL_BEFORE_GTIDS, SQL_AFTER_GTIDS, MASTER_LOG_FILE, MASTER_LOG_POS, RELAY_LOG_FILE, RELAY_LOG_POS, SQL_AFTER_MTS_GAPS, UNTIL, DEFAULT_AUTH, PLUGIN_DIR, STOP, IDENTIFIER_, STRING_}"><pre class="notranslate"><span class="pl-s1">line</span> <span class="pl-c1">2</span>:<span class="pl-c1">14</span> <span class="pl-s1">no</span> <span class="pl-smi">viable</span> <span class="pl-s1">alternative</span> <span class="pl-smi">at</span> <span class="pl-s1">input</span> <span class="pl-s">'(selectrow_number()over'</span>
<span class="pl-s1">line</span> <span class="pl-c1">2</span>:<span class="pl-c1">14</span> <span class="pl-s1">no</span> <span class="pl-s1">viable</span> <span class="pl-s1">alternative</span> <span class="pl-s1">at</span> <span class="pl-s1">input</span> <span class="pl-s">'(selectrow_number()over'</span>
<span class="pl-s1">line</span> <span class="pl-c1">2</span>:<span class="pl-c1">11</span> <span class="pl-s1">extraneous</span> <span class="pl-s1">input</span> <span class="pl-s">'('</span> <span class="pl-s1">expecting</span> <span class="pl-s">')'</span>
<span class="pl-s1">line</span> <span class="pl-c1">2</span>:<span class="pl-c1">14</span> <span class="pl-s1">mismatched</span> <span class="pl-s1">input</span> <span class="pl-s">'over'</span> <span class="pl-s1">expecting</span> {<span class="pl-c1">TRUNCATE</span>, <span class="pl-c1">POSITION</span>, <span class="pl-c1">VIEW</span>, <span class="pl-c1">AS</span>, <span class="pl-c1">ANY</span>, <span class="pl-c1">OFFSET</span>, <span class="pl-c1">BEGIN</span>, <span class="pl-c1">COMMIT</span>, <span class="pl-c1">ROLLBACK</span>, <span class="pl-c1">SAVEPOINT</span>, <span class="pl-c1">BOOLEAN</span>, <span class="pl-c1">DATE</span>, <span class="pl-c1">TIME</span>, <span class="pl-c1">TIMESTAMP</span>, <span class="pl-c1">YEAR</span>, <span class="pl-c1">QUARTER</span>, <span class="pl-c1">MONTH</span>, <span class="pl-c1">WEEK</span>, <span class="pl-c1">DAY</span>, <span class="pl-c1">HOUR</span>, <span class="pl-c1">MINUTE</span>, <span class="pl-c1">SECOND</span>, <span class="pl-c1">MICROSECOND</span>, <span class="pl-c1">MAX</span>, <span class="pl-c1">MIN</span>, <span class="pl-c1">SUM</span>, <span class="pl-c1">COUNT</span>, <span class="pl-c1">AVG</span>, <span class="pl-c1">CURRENT</span>, <span class="pl-c1">ENABLE</span>, <span class="pl-c1">DISABLE</span>, <span class="pl-c1">INSTANCE</span>, <span class="pl-c1">DO</span>, <span class="pl-c1">DEFINER</span>, <span class="pl-c1">CASCADED</span>, <span class="pl-c1">LOCAL</span>, <span class="pl-c1">CLOSE</span>, <span class="pl-c1">OPEN</span>, <span class="pl-c1">NEXT</span>, <span class="pl-c1">NAME</span>, <span class="pl-c1">TYPE</span>, <span class="pl-c1">TABLES</span>, <span class="pl-c1">TABLESPACE</span>, <span class="pl-c1">COLUMNS</span>, <span class="pl-c1">FIELDS</span>, <span class="pl-c1">INDEXES</span>, <span class="pl-c1">STATUS</span>, <span class="pl-c1">MODIFY</span>, <span class="pl-c1">VALUE</span>, <span class="pl-c1">DUPLICATE</span>, <span class="pl-c1">FIRST</span>, <span class="pl-c1">LAST</span>, <span class="pl-c1">AFTER</span>, <span class="pl-c1">OJ</span>, <span class="pl-c1">ACCOUNT</span>, <span class="pl-c1">USER</span>, <span class="pl-c1">ROLE</span>, <span class="pl-c1">START</span>, <span class="pl-c1">TRANSACTION</span>, <span class="pl-c1">WITHOUT</span>, <span class="pl-c1">ESCAPE</span>, <span class="pl-c1">SUBPARTITION</span>, <span class="pl-c1">STORAGE</span>, <span class="pl-c1">SUPER</span>, <span class="pl-c1">TEMPORARY</span>, <span class="pl-c1">THAN</span>, <span class="pl-c1">UNBOUNDED</span>, <span class="pl-c1">SIGNED</span>, <span class="pl-c1">UPGRADE</span>, <span class="pl-c1">VALIDATION</span>, <span class="pl-c1">ROLLUP</span>, <span class="pl-c1">SOUNDS</span>, <span class="pl-c1">UNKNOWN</span>, <span class="pl-c1">OFF</span>, <span class="pl-c1">ALWAYS</span>, <span class="pl-c1">COMMITTED</span>, <span class="pl-c1">LEVEL</span>, <span class="pl-c1">NO</span>, <span class="pl-c1">PASSWORD</span>, <span class="pl-c1">PRIVILEGES</span>, <span class="pl-c1">ACTION</span>, <span class="pl-c1">ALGORITHM</span>, <span class="pl-c1">AUTOCOMMIT</span>, <span class="pl-c1">BTREE</span>, <span class="pl-c1">CHAIN</span>, <span class="pl-c1">CHARSET</span>, <span class="pl-c1">CHECKSUM</span>, <span class="pl-c1">CIPHER</span>, <span class="pl-c1">CLIENT</span>, <span class="pl-c1">COALESCE</span>, <span class="pl-c1">COMMENT</span>, <span class="pl-c1">COMPACT</span>, <span class="pl-c1">COMPRESSED</span>, <span class="pl-c1">COMPRESSION</span>, <span class="pl-c1">CONNECTION</span>, <span class="pl-c1">CONSISTENT</span>, <span class="pl-c1">DATA</span>, <span class="pl-c1">DISCARD</span>, <span class="pl-c1">DISK</span>, <span class="pl-c1">ENCRYPTION</span>, <span class="pl-c1">END</span>, <span class="pl-c1">ENGINE</span>, <span class="pl-c1">EVENT</span>, <span class="pl-c1">EXCHANGE</span>, <span class="pl-c1">EXECUTE</span>, <span class="pl-c1">FILE</span>, <span class="pl-c1">FIXED</span>, <span class="pl-c1">FOLLOWING</span>, <span class="pl-c1">GLOBAL</span>, <span class="pl-c1">HASH</span>, <span class="pl-c1">IMPORT_</span>, <span class="pl-c1">LESS</span>, <span class="pl-c1">MEMORY</span>, <span class="pl-c1">NONE</span>, <span class="pl-c1">PARSER</span>, <span class="pl-c1">PARTIAL</span>, <span class="pl-c1">PARTITIONING</span>, <span class="pl-c1">PERSIST</span>, <span class="pl-c1">PRECEDING</span>, <span class="pl-c1">PROCESS</span>, <span class="pl-c1">PROXY</span>, <span class="pl-c1">QUICK</span>, <span class="pl-c1">REBUILD</span>, <span class="pl-c1">REDUNDANT</span>, <span class="pl-c1">RELOAD</span>, <span class="pl-c1">REMOVE</span>, <span class="pl-c1">REORGANIZE</span>, <span class="pl-c1">REPAIR</span>, <span class="pl-c1">REVERSE</span>, <span class="pl-c1">SESSION</span>, <span class="pl-c1">SHUTDOWN</span>, <span class="pl-c1">SIMPLE</span>, <span class="pl-c1">SLAVE</span>, <span class="pl-c1">VISIBLE</span>, <span class="pl-c1">INVISIBLE</span>, <span class="pl-c1">ENFORCED</span>, <span class="pl-c1">AGAINST</span>, <span class="pl-c1">LANGUAGE</span>, <span class="pl-c1">MODE</span>, <span class="pl-c1">QUERY</span>, <span class="pl-c1">EXTENDED</span>, <span class="pl-c1">EXPANSION</span>, <span class="pl-c1">VARIANCE</span>, <span class="pl-c1">MAX_ROWS</span>, <span class="pl-c1">MIN_ROWS</span>, <span class="pl-c1">SQL_BIG_RESULT</span>, <span class="pl-c1">SQL_BUFFER_RESULT</span>, <span class="pl-c1">SQL_CACHE</span>, <span class="pl-c1">SQL_NO_CACHE</span>, <span class="pl-c1">STATS_AUTO_RECALC</span>, <span class="pl-c1">STATS_PERSISTENT</span>, <span class="pl-c1">STATS_SAMPLE_PAGES</span>, <span class="pl-c1">ROW_FORMAT</span>, <span class="pl-c1">WEIGHT_STRING</span>, <span class="pl-c1">COLUMN_FORMAT</span>, <span class="pl-c1">INSERT_METHOD</span>, <span class="pl-c1">KEY_BLOCK_SIZE</span>, <span class="pl-c1">PACK_KEYS</span>, <span class="pl-c1">PERSIST_ONLY</span>, <span class="pl-c1">BIT_AND</span>, <span class="pl-c1">BIT_OR</span>, <span class="pl-c1">BIT_XOR</span>, <span class="pl-c1">GROUP_CONCAT</span>, <span class="pl-c1">JSON_ARRAYAGG</span>, <span class="pl-c1">JSON_OBJECTAGG</span>, <span class="pl-c1">STD</span>, <span class="pl-c1">STDDEV</span>, <span class="pl-c1">STDDEV_POP</span>, <span class="pl-c1">STDDEV_SAMP</span>, <span class="pl-c1">VAR_POP</span>, <span class="pl-c1">VAR_SAMP</span>, <span class="pl-c1">AUTO_INCREMENT</span>, <span class="pl-c1">AVG_ROW_LENGTH</span>, <span class="pl-c1">DELAY_KEY_WRITE</span>, <span class="pl-c1">ROTATE</span>, <span class="pl-c1">MASTER</span>, <span class="pl-c1">BINLOG</span>, <span class="pl-c1">ERROR</span>, <span class="pl-c1">SCHEDULE</span>, <span class="pl-c1">COMPLETION</span>, <span class="pl-c1">EVERY</span>, <span class="pl-c1">HOST</span>, <span class="pl-c1">SOCKET</span>, <span class="pl-c1">PORT</span>, <span class="pl-c1">SERVER</span>, <span class="pl-c1">WRAPPER</span>, <span class="pl-c1">OPTIONS</span>, <span class="pl-c1">OWNER</span>, <span class="pl-c1">RETURNS</span>, <span class="pl-c1">CONTAINS</span>, <span class="pl-c1">SECURITY</span>, <span class="pl-c1">INVOKER</span>, <span class="pl-c1">TEMPTABLE</span>, <span class="pl-c1">MERGE</span>, <span class="pl-c1">UNDEFINED</span>, <span class="pl-c1">DATAFILE</span>, <span class="pl-c1">FILE_BLOCK_SIZE</span>, <span class="pl-c1">EXTENT_SIZE</span>, <span class="pl-c1">INITIAL_SIZE</span>, <span class="pl-c1">AUTOEXTEND_SIZE</span>, <span class="pl-c1">MAX_SIZE</span>, <span class="pl-c1">NODEGROUP</span>, <span class="pl-c1">WAIT</span>, <span class="pl-c1">LOGFILE</span>, <span class="pl-c1">UNDOFILE</span>, <span class="pl-c1">UNDO_BUFFER_SIZE</span>, <span class="pl-c1">REDO_BUFFER_SIZE</span>, <span class="pl-c1">HANDLER</span>, <span class="pl-c1">PREV</span>, <span class="pl-c1">ORGANIZATION</span>, <span class="pl-c1">DEFINITION</span>, <span class="pl-c1">DESCRIPTION</span>, <span class="pl-c1">REFERENCE</span>, <span class="pl-c1">FOLLOWS</span>, <span class="pl-c1">PRECEDES</span>, <span class="pl-c1">IMPORT</span>, <span class="pl-c1">CONCURRENT</span>, <span class="pl-c1">XML</span>, <span class="pl-c1">DUMPFILE</span>, <span class="pl-c1">SHARE</span>, <span class="pl-c1">CODE</span>, <span class="pl-c1">CONTEXT</span>, <span class="pl-c1">SOURCE</span>, <span class="pl-c1">CHANNEL</span>, <span class="pl-c1">CLONE</span>, <span class="pl-c1">AGGREGATE</span>, <span class="pl-c1">INSTALL</span>, <span class="pl-c1">COMPONENT</span>, <span class="pl-c1">UNINSTALL</span>, <span class="pl-c1">RESOURCE</span>, <span class="pl-c1">EXPIRE</span>, <span class="pl-c1">NEVER</span>, <span class="pl-c1">HISTORY</span>, <span class="pl-c1">OPTIONAL</span>, <span class="pl-c1">REUSE</span>, <span class="pl-c1">MAX_QUERIES_PER_HOUR</span>, <span class="pl-c1">MAX_UPDATES_PER_HOUR</span>, <span class="pl-c1">MAX_CONNECTIONS_PER_HOUR</span>, <span class="pl-c1">MAX_USER_CONNECTIONS</span>, <span class="pl-c1">RETAIN</span>, <span class="pl-c1">RANDOM</span>, <span class="pl-c1">OLD</span>, <span class="pl-c1">ISSUER</span>, <span class="pl-c1">SUBJECT</span>, <span class="pl-c1">CACHE</span>, <span class="pl-c1">GENERAL</span>, <span class="pl-c1">SLOW</span>, <span class="pl-c1">USER_RESOURCES</span>, <span class="pl-c1">EXPORT</span>, <span class="pl-c1">RELAY</span>, <span class="pl-c1">HOSTS</span>, <span class="pl-c1">FLUSH</span>, <span class="pl-c1">RESET</span>, <span class="pl-c1">RESTART</span>, <span class="pl-c1">IO_THREAD</span>, <span class="pl-c1">SQL_THREAD</span>, <span class="pl-c1">SQL_BEFORE_GTIDS</span>, <span class="pl-c1">SQL_AFTER_GTIDS</span>, <span class="pl-c1">MASTER_LOG_FILE</span>, <span class="pl-c1">MASTER_LOG_POS</span>, <span class="pl-c1">RELAY_LOG_FILE</span>, <span class="pl-c1">RELAY_LOG_POS</span>, <span class="pl-c1">SQL_AFTER_MTS_GAPS</span>, <span class="pl-c1">UNTIL</span>, <span class="pl-c1">DEFAULT_AUTH</span>, <span class="pl-c1">PLUGIN_DIR</span>, <span class="pl-c1">STOP</span>, <span class="pl-c1">IDENTIFIER_</span>, <span class="pl-c1">STRING_</span>}</pre></div>
<p dir="auto">I want to get the rank by using <code class="notranslate">row_number</code>, even if I use another way for example</p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
select *
from (select a.*, @rank := @rank + 1 As seq
from (select @rank := 0, user_id, rank_value as rankValue
from hoho_trade.t_stat_rank_day
where rank_type = 1
and rank_day = '2020-10-15'
order by rank_value desc, update_time
limit 50) as a
) b
where user_id = 1594371406316000000;"><pre class="notranslate"><span class="pl-k">select</span> <span class="pl-k">*</span>
<span class="pl-k">from</span> (<span class="pl-k">select</span> a.<span class="pl-k">*</span>, @rank :<span class="pl-k">=</span> @rank <span class="pl-k">+</span> <span class="pl-c1">1</span> <span class="pl-k">As</span> seq
<span class="pl-k">from</span> (<span class="pl-k">select</span> @rank :<span class="pl-k">=</span> <span class="pl-c1">0</span>, user_id, rank_value <span class="pl-k">as</span> rankValue
<span class="pl-k">from</span> <span class="pl-c1">hoho_trade</span>.<span class="pl-c1">t_stat_rank_day</span>
<span class="pl-k">where</span> rank_type <span class="pl-k">=</span> <span class="pl-c1">1</span>
<span class="pl-k">and</span> rank_day <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>2020-10-15<span class="pl-pds">'</span></span>
<span class="pl-k">order by</span> rank_value <span class="pl-k">desc</span>, update_time
<span class="pl-k">limit</span> <span class="pl-c1">50</span>) <span class="pl-k">as</span> a
) b
<span class="pl-k">where</span> user_id <span class="pl-k">=</span> <span class="pl-c1">1594371406316000000</span>;</pre></div>
<p dir="auto">That appears the same mismatch error.<br>
What can I do?<br>
Thanks sincerely!</p> | <h2 dir="auto">Bug Report</h2>
<blockquote>
<p dir="auto">ERROR Maxwell - SQLException: No database selected</p>
</blockquote>
<p dir="auto">When I use shardingproxy connect maxwell , It throw this error ,and maxwell could not start<br>
When I use proxysql or mysql cli connect maxwell, It run OK.</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">Mysql version: 5.7.21<br>
Maxwell version: 1.26.4<br>
Shardingproxy version: 4.1.1</p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">ShardingSphere-Proxy</p>
<h3 dir="auto">step as below</h3>
<p dir="auto"><code class="notranslate"> ./maxwell --client_id="maxwell" --user='maxwell' --host='xx.xx.xx.11' --password="xxxxxxx" --port='23306' --log_level=DEBUG --producer=stdout --filter=exclude:*.*,include:db1.tb1.*</code></p>
<blockquote>
<p dir="auto">Using kafka version: 1.0.0<br>
11:11:45,421 ERROR Maxwell - SQLException: No database selecte</p>
</blockquote> | 0 |
<p dir="auto">I deleted the node_modules directory and reinstalled it, then I met this problem<br>
how can I make it works correctly, please help me</p> | <p dir="auto">I just upgraded to <code class="notranslate">[email protected]</code>, I use a custom server, when I try to <code class="notranslate">run dev</code>, I get an error.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm run dev
> [email protected] dev /Users/foo/gitlab/next-project/backend
> babel-node ./src/server.js
/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328
throw e;
^
Error: Plugin 0 specified in "/Users/foo/gitlab/next-project/backend/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/Users/foo/gitlab/next-project/backend/node_modules/next/babel.js")
at Plugin.init (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/plugin.js:131:13)
at Function.normalisePlugin (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
at Array.map (<anonymous>)
at Function.normalisePlugins (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `babel-node ./src/server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/foo/.npm/_logs/2018-04-30T08_41_09_819Z-debug.log"><pre class="notranslate"><code class="notranslate">npm run dev
> [email protected] dev /Users/foo/gitlab/next-project/backend
> babel-node ./src/server.js
/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328
throw e;
^
Error: Plugin 0 specified in "/Users/foo/gitlab/next-project/backend/node_modules/next/babel.js" provided an invalid property of "default" (While processing preset: "/Users/foo/gitlab/next-project/backend/node_modules/next/babel.js")
at Plugin.init (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/plugin.js:131:13)
at Function.normalisePlugin (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:152:12)
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:184:30
at Array.map (<anonymous>)
at Function.normalisePlugins (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:14
at /Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:323:22
at Array.map (<anonymous>)
at OptionManager.resolvePresets (/Users/foo/gitlab/next-project/backend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `babel-node ./src/server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/foo/.npm/_logs/2018-04-30T08_41_09_819Z-debug.log
</code></pre></div>
<blockquote>
<p dir="auto">UPDATE all this passed after upgrading all babel packages to v7</p>
</blockquote>
<p dir="auto">Now this is the new error.... See below for complete error message</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR Failed to compile with 1 errors 10:32:07
error in ./pages/_document.js
Module build failed: Error: [BABEL] /Users/foo/gitlab/zyombo/backend/pages/_document.js: .value is not a valid Plugin property"><pre class="notranslate"><code class="notranslate">ERROR Failed to compile with 1 errors 10:32:07
error in ./pages/_document.js
Module build failed: Error: [BABEL] /Users/foo/gitlab/zyombo/backend/pages/_document.js: .value is not a valid Plugin property
</code></pre></div> | 1 |
<p dir="auto"><strong>Migrated issue, originally created by Dmytro Starosud (<a href="https://github.com/dima-starosud">@dima-starosud</a>)</strong></p>
<p dir="auto">This is using sqlalchemy 1.2.0b3.</p>
<p dir="auto">Please consider following code snippet.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" class A(Base):
__tablename__ = 'a'
id = Column(Integer, primary_key=True)
value = Column(String)
mapper = inspect(A).mapper
print('Initial', mapper.all_orm_descriptors.keys())
A.value_2 = hybrid_property(lambda me: me.value)
configure_mappers()
print('Added', mapper.all_orm_descriptors.keys())
del A.value_2
configure_mappers()
print('Deleted', mapper.all_orm_descriptors.keys())
from sqlalchemy.orm.mapper import _memoized_configured_property
_memoized_configured_property.expire_instance(mapper)
print('Expired', mapper.all_orm_descriptors.keys())
>>>
Initial ['value', '__mapper__', 'id']
Added ['value', 'value_2', '__mapper__', 'id']
Deleted ['value', 'value_2', '__mapper__', 'id']
Expired ['value', '__mapper__', 'id']
"><pre class="notranslate"><code class="notranslate"> class A(Base):
__tablename__ = 'a'
id = Column(Integer, primary_key=True)
value = Column(String)
mapper = inspect(A).mapper
print('Initial', mapper.all_orm_descriptors.keys())
A.value_2 = hybrid_property(lambda me: me.value)
configure_mappers()
print('Added', mapper.all_orm_descriptors.keys())
del A.value_2
configure_mappers()
print('Deleted', mapper.all_orm_descriptors.keys())
from sqlalchemy.orm.mapper import _memoized_configured_property
_memoized_configured_property.expire_instance(mapper)
print('Expired', mapper.all_orm_descriptors.keys())
>>>
Initial ['value', '__mapper__', 'id']
Added ['value', 'value_2', '__mapper__', 'id']
Deleted ['value', 'value_2', '__mapper__', 'id']
Expired ['value', '__mapper__', 'id']
</code></pre></div>
<p dir="auto">I think <code class="notranslate">_memoized_configured_property</code> is not supposed to be used outside lib code.<br>
Is there <em>official</em> way to do this?</p> | <p dir="auto"><strong>Migrated issue, originally created by Dmytro Starosud (<a href="https://github.com/dima-starosud">@dima-starosud</a>)</strong></p>
<p dir="auto">This is using sqlalchemy 1.2.0b3.</p>
<p dir="auto">I've faced weird behavior shown in following code snippet. Assertion in that test fails. But if you comment either <code class="notranslate">#1</code> or <code class="notranslate">#2</code> or both it will pass.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Base = declarative_base()
class Target(Base):
__tablename__ = 'target'
id = Column(Integer, primary_key=True)
descriptors = lambda: inspect(Target).all_orm_descriptors.keys()
# these two calls make test fail
configure_mappers() #1
descriptors() #2
Target.value = hybrid_property(lambda _: 'Hello!')
configure_mappers()
assert 'value' in descriptors()"><pre class="notranslate"><code class="notranslate"> Base = declarative_base()
class Target(Base):
__tablename__ = 'target'
id = Column(Integer, primary_key=True)
descriptors = lambda: inspect(Target).all_orm_descriptors.keys()
# these two calls make test fail
configure_mappers() #1
descriptors() #2
Target.value = hybrid_property(lambda _: 'Hello!')
configure_mappers()
assert 'value' in descriptors()
</code></pre></div>
<p dir="auto">Please let me know if I get it wrong.</p>
<p dir="auto">Thanks a lot in advance!</p> | 1 |
<p dir="auto">Electron Version:<br>
4.0.6<br>
Operating System:<br>
windows 10 1803<br>
Expected Behavior<br>
It shd print using PrintToPDF() when requested from the renderer</p>
<p dir="auto">Actual Behavior<br>
Upon the print request everything freezes</p>
<p dir="auto">To Reproduce<br>
//RENDERER<br>
await ipc.sendSync("ExecuteBackendFx", { fxName: "PrintToPDF", fxArgs: null });<br>
//MAIN<br>
global.PrintToPDF = async () => {<br>
let out = await new Promise((resolve, reject) => {<br>
mainWindow.webContents.printToPDF(<br>
{<br>
marginsType: 0,<br>
printBackground: false,<br>
printSelectionOnly: false,<br>
landscape: false<br>
},<br>
function(error1, data1) {<br>
fs.writeFile(rootDir + "/UI/Temp/print.pdf", (data1, error1) => {<br>
resolve("Success");<br>
});<br>
}<br>
);<br>
}<br>
});</p>
<p dir="auto">return out;<br>
}</p>
<p dir="auto">Additional Information<br>
It prints normally when the request comes from the backend directly.for eg calling the function directly from the debug on VSCODE</p> | <ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>4.0.6</li>
</ul>
</li>
<li><strong>Operating System:</strong><br>
windows 10 1803</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">It shd print using PrintToPDF() when requested from the renderer</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Upon the print request from the renderer using await everything freezes</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">//RENDERER<br>
await ipc.sendSync("ExecuteBackendFx", { fxName: "PrintToPDF", fxArgs: null });<br>
//MAIN<br>
global.PrintToPDF = async () => {<br>
let out = await new Promise((resolve, reject) => {<br>
mainWindow.webContents.printToPDF(<br>
{<br>
marginsType: 0,<br>
printBackground: false,<br>
printSelectionOnly: false,<br>
landscape: false<br>
},<br>
function(error1, data1) {<br>
fs.writeFile(rootDir + "/UI/Temp/print.pdf", (data1, error1) => {<br>
resolve("Success");<br>
});<br>
}<br>
);<br>
}<br>
});</p>
<p dir="auto">return out;<br>
}</p>
<h3 dir="auto">Additional Information</h3>
<h1 dir="auto">CALL STACK</h1>
<p dir="auto">WebContents.printToPDF (c:\BucksWild\node_modules\electron\dist\resources\electron.asar\browser\api\web-contents.js:218)<br>
dataOut (c:\BucksWild\main.js:310)<br>
global.PrintToPDF (c:\BucksWild\main.js:308)<br>
ExecuteBackendFx (c:\BucksWild\IPCEVENTS.js:131)<br>
InitializeEvents.ipc.on (c:\BucksWild\IPCEVENTS.js:157)<br>
emit (events.js:182)<br>
(anonymous function) (c:\BucksWild\node_modules\electron\dist\resources\electron.asar\browser\api\web-contents.js:355)<br>
emit (events.js:182)</p>
<p dir="auto">Unable to open 'web-contents.js': File not found (file:///c:/BucksWild/node_modules/electron/dist/resources/electron.asar/browser/api/web-contents.js).</p>
<p dir="auto">It prints normally when the request comes from the backend directly.for eg calling the function directly from the debug on VSCODE</p> | 1 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.10</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/shenron/kbuymoz0/" rel="nofollow">https://jsfiddle.net/shenron/kbuymoz0/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Create a watcher, and reject a promise inside.</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">Vue should capture the reject with <code class="notranslate">errorCaptured</code></p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">The reject has not been captured</p> | <p dir="auto">Hi,</p>
<p dir="auto">I am trying to build components (<a href="https://github.com/dgerber/vue-formidable">here</a>) which use a settable computed property bound to the parent vm with <code class="notranslate">prop</code>. These components may also need to set a default value for it, calling the property setter during compilation.</p>
<p dir="auto">Rather than setting up custom events which duplicate the role of <code class="notranslate">prop</code>, it seemed cleaner to make <a href="https://github.com/dgerber/vue/tree/prop-bindings">these changes</a> to vue. What do you think?</p> | 0 |
<p dir="auto">In the lovely FirstPersonCamera object, the onMouseDown event calls the function <code class="notranslate">event.preventDefault()</code> which, of course, prevents clicking the mouse from doing what it usually does. However, I want to have a text box overlay in certain cases that can work in conjunction with the FirstPersonCamera. Currently, the event listener for the mouse click overrides all mouse clicks anywhere, meaning clicking on a textbox doesn't give it focus (and presumably this affects a host of other issues). Can you make the event listeners specific to the dom element of the renderer?</p> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">The WebGLRenderer already calculates whether an object is frustum culled, using an internal Frustum.</p>
<p dir="auto">It'd be nice if this information was exposed so that we don't have to duplicate the Scene traversal and calculations with our own Frustum outside of the renderer.</p>
<p dir="auto">A couple ideas:</p>
<ul dir="auto">
<li>Maybe Mesh objects can have an <code class="notranslate">onFrustumCullChange</code> property that is <code class="notranslate">undefined</code> or <code class="notranslate">null</code> by default. If it is set to a function, then when the frustum culling for the object changes the function can be called with true or false.</li>
<li>Another idea would be to just set a boolean flag on the Mesh objects, but this would make logic relying on it be one frame behind. In most cases it wouldn't be a problem. The user could make the property into a getter/setter to achieve the same feature as the <code class="notranslate">onFrustumCullChange</code> idea.</li>
</ul>
<p dir="auto">Any other ways to do it without requiring a second traversal and calculations?</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" checked=""> Dev</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
</ul> | 0 |
<p dir="auto">I'm on Windows 7, with a username of 19 characters including 1 dot (not my choice, it's a company machine) - monusername.ADOMAIN below. Installer bombs out, log as follows:</p>
<p dir="auto">Program: Starting Squirrel Updater: --install .<br>
Program: Starting install, writing to C:\Users\monusername.ADOMAIN\AppData\Local\SquirrelTemp<br>
CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\monusername.ADOMAIN\AppData\Local\atom\packages\RELEASES'.<br>
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)<br>
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)<br>
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)<br>
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)<br>
at Squirrel.UpdateManager.CheckForUpdateImpl.d__28.MoveNext()<br>
CheckForUpdateImpl: Reading RELEASES file from C:\Users\monusername.ADOMAIN\AppData\Local\SquirrelTemp<br>
CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch<br>
ApplyReleasesImpl: Writing files to app directory: C:\Users\monusername.ADOMAIN\AppData\Local\atom\app-0.177.0<br>
IEnableLogger: Failed to write file: C:\Users\monusername.ADOMAIN\AppData\Local\atom\app-0.177.0: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.<br>
at System.IO.PathHelper.GetFullPathName()<br>
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)<br>
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)<br>
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)<br>
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)<br>
at NuGet.PhysicalPackageFile.GetStream()<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass8b.b__8a()<br>
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)<br>
IEnableLogger: Failed to install package to app dir: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.<br>
at System.IO.PathHelper.GetFullPathName()<br>
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)<br>
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)<br>
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)<br>
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)<br>
at NuGet.PhysicalPackageFile.GetStream()<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass8b.b__8a()<br>
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.copyFileToLocation(FileSystemInfo target, IPackageFile x)<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.b__80(IPackageFile x)<br>
at System.Collections.Generic.List<code class="notranslate">1.ForEach(Action</code>1 action)<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.b__7f()<br>
at System.Threading.Tasks.Task.InnerInvoke()<br>
at System.Threading.Tasks.Task.Execute()<br>
--- End of stack trace from previous location where exception was thrown ---<br>
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<br>
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.d__86.MoveNext()<br>
--- End of stack trace from previous location where exception was thrown ---<br>
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<br>
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<br>
at Squirrel.Utility.d__4b`1.MoveNext()</p>
<p dir="auto">Any ideas?</p> | <p dir="auto">I download AtomSetup.exe<br>
I run it as an administrator<br>
I agree there are probably curious permission setups and my user directory is mapped to a central server.<br>
I get no choices where to install from the installer.<br>
Other applications have worked<br>
I get the error dialog. Here's the log.<br>
I can't alter where it tries to install, nor am I clear why the install path is too long.<br>
Chocolatey didn't install 174.1 either - there's clearly something pathological in my setup.<br>
Any chance of being able to configure where it installs to and from?<br>
============SquirrelSetup.log============<br>
Program: Starting Squirrel Updater: --install .<br>
Program: Starting install, writing to C:\Users\john.drummond\AppData\Local\SquirrelTemp<br>
CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\john.drummond\AppData\Local\atom\packages\RELEASES'.<br>
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)<br>
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)<br>
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)<br>
at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)<br>
at Squirrel.UpdateManager.CheckForUpdateImpl.d__28.MoveNext()<br>
CheckForUpdateImpl: Reading RELEASES file from C:\Users\john.drummond\AppData\Local\SquirrelTemp<br>
CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch<br>
ApplyReleasesImpl: Writing files to app directory: C:\Users\john.drummond\AppData\Local\atom\app-0.174.0<br>
IEnableLogger: Failed to write file: C:\Users\john.drummond\AppData\Local\atom\app-0.174.0: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.<br>
at System.IO.PathHelper.GetFullPathName()<br>
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)<br>
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)<br>
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)<br>
at NuGet.PhysicalPackageFile.GetStream()<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass8b.b__8a()<br>
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)<br>
IEnableLogger: Failed to install package to app dir: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.<br>
at System.IO.PathHelper.GetFullPathName()<br>
at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)<br>
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)<br>
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)<br>
at NuGet.PhysicalPackageFile.GetStream()<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass8b.b__8a()<br>
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.copyFileToLocation(FileSystemInfo target, IPackageFile x)<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.b__80(IPackageFile x)<br>
at System.Collections.Generic.List<code class="notranslate">1.ForEach(Action</code>1 action)<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass84.b__7f()<br>
at System.Threading.Tasks.Task.InnerInvoke()<br>
at System.Threading.Tasks.Task.Execute()<br>
--- End of stack trace from previous location where exception was thrown ---<br>
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<br>
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<br>
at Squirrel.UpdateManager.ApplyReleasesImpl.d__86.MoveNext()<br>
--- End of stack trace from previous location where exception was thrown ---<br>
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)<br>
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)<br>
at Squirrel.Utility.d__4b`1.MoveNext()</p> | 1 |
<pre class="notranslate">We're getting occasional failures in the garbage collector when it tries to scan an
interface and gets a bad interface table pointer.
sync to tip
set GOEXPERIMENT=precisestack
set GOGC=0
run all.bash
With GOGC=0 it crashes reliably.
SIGSEGV: segmentation violation
PC=0x46daa4
scaninterfacedata(0x2, 0x7f7c76899290, 0x1, 0x7f7c769b5dc0)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/mgc0.c:1428 +0x84
scanbitvector(0x7f7c76899290, 0x732f0c, 0x4c4501, 0x7f7c769b5dc0)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/mgc0.c:1461 +0x11e
scanframe(0x7f7c769b5c50, 0x7f7c769b5dc0)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/mgc0.c:1525 +0x16e
runtime.gentraceback(0x46eed2, 0x7f7c76899108, 0x0, 0xc20812eb40, 0x0, ...)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/traceback_x86.c:155 +0x3ff
addstackroots(0xc20812eb40, 0x7f7c769b5dc0)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/mgc0.c:1581 +0x168
markroot(0xc20802e000, 0x9)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/mgc0.c:1278 +0xbe
runtime.parfordo(0xc20802e000)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/parfor.c:105 +0xa3
gc(0x7f7c76899130)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/mgc0.c:2170 +0x259
mgc(0xc20812eb40)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/mgc0.c:2111 +0x2e
runtime.mcall(0x47e1f7)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/asm_amd64.s:181 +0x4b
goroutine 21 [garbage collection]:
runtime.gc(0xc200000000)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/mgc0.c:2082 +0x1b2 fp=0x7f7c76899140
runtime.mallocgc(0x8, 0x66df00, 0x0)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/malloc.goc:218 +0x1b8 fp=0x7f7c768991b8
runtime.new(0x66df00, 0x47f6c8)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/runtime/malloc.goc:815 +0x32 fp=0x7f7c768991d8
os/exec.(*Cmd).stdin(0xc208165040, 0xc2080561c8, 0xc208087600, 0x3d)
/usr/local/google/home/khr/sandbox/go-ro2/src/pkg/os/exec/exec.go:148 +0x40 fp=0x7f7c76899280
...
It is dying here:
tab = *(Itab**)scanp;
if(tab->type->size <= sizeof(void*) && (tab->type->kind & KindNoPointers))
return;
46da9d: 48 8b 0a mov (%rdx),%rcx ; tab = *(Itab**)scanp;
46daa0: 48 8b 41 08 mov 0x8(%rcx),%rax ; tab->type
46daa4: 48 8b 00 mov (%rax),%rax ; tab->type->size --- faults here
46daa7: 48 83 f8 08 cmp $0x8,%rax
46daab: 77 a2 ja 46da4f <scaninterfacedata+0x2f>
rax is junk (0x672f6c61636f6c2f) at the faulting instruction. rcx is 0xc208087600,
which is apparently not an *Itab like it should be.
Possibly related to <a href="https://golang.org/issue/7205" rel="nofollow">issue #7205</a>.</pre> | <p dir="auto">This statement causes numerous confusion in mailing lists, people try to tie it to thread-safety and inability to assign to string variables. And it does not have any formal meaning behind it. The formal part here is that string indexing operation cannot be assigned to and is not addressable. And that is stated right in the next paragraph: "if s[i] is the i'th byte of a string, &s[i] is invalid" and duplicated in description of addressability and assignment statement.</p>
<p dir="auto">The kind of "immutability" that statement refers to is implementation ground. And so better be described in Effective Go in extended form with implications to thread-safety and string copying.</p>
<p dir="auto">The proposed changes:</p>
<ol dir="auto">
<li>Remove "Strings are immutable: once created, it is impossible to change the contents of a string".</li>
<li>Add it is illegal to assign to s[i] right after "if s[i] is the i'th byte of a string, &s[i] is invalid" for consistency.</li>
<li>Remove "non-constant" in "a[x] is the non-constant byte value at index x and the type of a[x] is byte".</li>
<li>Add a section to Effective Go with the discussion of string "immutability".</li>
</ol> | 0 |
<p dir="auto">three.js's documentation contains a bunch of fake hyperlinks; anchor tags which do not have an <code class="notranslate">href</code> attribute but instead rely on JavaScript <code class="notranslate">onclick</code> events to navigate.</p>
<p dir="auto">These links can't be opened in new tabs by middle-clicking or by right-clicking. The links also don't show a URL preview in the status bar when the user hovers over them.</p>
<p dir="auto">This is terrible for usability and should be universally discouraged across the web.</p>
<p dir="auto">Example:</p>
<ol dir="auto">
<li>Open <a href="https://threejs.org/docs/index.html#api/en/animation/AnimationAction" rel="nofollow">https://threejs.org/docs/index.html#api/en/animation/AnimationAction</a></li>
<li>Try to middle-click the blue <em>AnimationClips</em> text which appears to be a hyperlink.</li>
<li>Try to right-click the same text and open the link in a new tab or new window.</li>
<li>You can't.</li>
</ol>
<p dir="auto">The links should have a proper <code class="notranslate">href</code> attribute added to them.</p> | <p dir="auto">Hi mrdoob/team,</p>
<p dir="auto">Many times while going through the documentation I would like to ctrl/cmd+click on links pointing to particular class documentation to open in new tab. Because the elements don't even contain href attribute, it simply doesn't work. Similarly, I can't right click and "Open in new tab".</p>
<p dir="auto">I'm not providing an example because you can pick any documentation page and look for any documentation-linked class name to see the problem.</p>
<p dir="auto">The documentation of three.js is pretty good and I'm thankful! Just wondering if it'd not be too much work to perhaps update the onclick listener / setFragmentUrl function to consider if a modifier is pressed. (I understand the lack of href is because you want the doc page to be like an SPA).</p>
<p dir="auto">Thank you for your consideration and have a great day,<br>
Michal</p> | 1 |
<p dir="auto">It's one of the feature I'd love have in Atom.<br>
It should save tabs, open files, root directories, cursor position,...<br>
Do you think it can be integrated ?</p> | <p dir="auto">A feature I love about ST2 and iA Writer, which I'm missing in Atom, is when you quit the app with open windows (including unsaved documents), they all appear again when you reopen.</p>
<p dir="auto">This has saved me countless times in my workflow to handle having to do a system restart for software update, etc and not have to take time to save all my unsaved docs, etc.</p>
<p dir="auto">It's also nice because I generally have five or six open projects that I just keep minimized in the editor for ease of access. It would be great to have such a feature in Atom.</p> | 1 |
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">When you use the copy method from the InstancedBufferGeometry the instanceCount attribute is copied by defualt. This could lead to errors, since the copy method accepts any kind of geometry and for this reason the instanceCount could be set to undefined.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<p dir="auto">call InstancedBufferGeometry .copy passing a BufferGeometry of a Geometry and the instanceCount will be set to undefined</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">The copy method should check the type of the geometry passed as input and only if it is an InstancedBufferGeometry the instanceCount should be copied.</p>
<p dir="auto"><strong>Platform:</strong></p>
<ul dir="auto">
<li>All</li>
<li>Three.js version: [master]</li>
</ul> | <p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">In r117 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="599967027" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/19135" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/19135/hovercard" href="https://github.com/mrdoob/three.js/pull/19135">#19135</a>) you renamed <code class="notranslate">maxInstancedCount</code> to <code class="notranslate">instanceCount</code> AND changed the default value from <code class="notranslate">undefined</code> to <code class="notranslate">Infinity</code>. However, there is a rare case when it still becomes undefined: copying from a non-instanced geometry.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<p dir="auto">If you call <code class="notranslate">instancedGeo.copy(simpleGeo);</code> it overwrites <code class="notranslate">Infinity</code> with <code class="notranslate">undefined</code>. Then, during rendering, it is converted to <code class="notranslate">NaN</code> and passed to <code class="notranslate">drawElementsInstancedANGLE</code>.</p>
<p dir="auto">See <a href="https://github.com/mrdoob/three.js/pull/19135/files">the changes</a>:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11373544/126136677-d47c1c44-b0b3-404f-8fab-201ff21150d1.png"><img src="https://user-images.githubusercontent.com/11373544/126136677-d47c1c44-b0b3-404f-8fab-201ff21150d1.png" alt="20210719-121610" style="max-width: 100%;"></a></p>
<p dir="auto">In r116 this undefined value perfectly worked, so we have a regression here.</p>
<p dir="auto">I cannot provide a small working example yet, just a code review.</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto"><code class="notranslate">InstancedBufferGeometry.copy()</code> should be able to copy from any <code class="notranslate">BufferGeometry</code>, instanced or not.</p>
<p dir="auto"><strong>Platform:</strong></p>
<ul dir="auto">
<li>Device: any</li>
<li>OS: any</li>
<li>Browser: any</li>
<li>Three.js version: r117 and up</li>
</ul> | 1 |
<h4 dir="auto">Related Issues</h4>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="591135324" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6017" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/6017/hovercard" href="https://github.com/celery/celery/issues/6017">#6017</a> Celery Multi creates pid and log files in the wrong directory</p>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>:</p>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# celery report
software -> celery:4.4.3 (cliffs) kombu:4.6.9 py:3.7.7
billiard:3.6.3.0 py-amqp:2.6.0
platform -> system:Linux arch:64bit, ELF
kernel version:4.19.0-8-amd64 imp:CPython
loader -> celery.loaders.default.Loader
settings -> transport:amqp results:disabled
"><pre class="notranslate"><code class="notranslate"># celery report
software -> celery:4.4.3 (cliffs) kombu:4.6.9 py:3.7.7
billiard:3.6.3.0 py-amqp:2.6.0
platform -> system:Linux arch:64bit, ELF
kernel version:4.19.0-8-amd64 imp:CPython
loader -> celery.loaders.default.Loader
settings -> transport:amqp results:disabled
</code></pre></div>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Celery Version</strong>: 4.4.3</li>
</ul>
<p dir="auto"></p>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery multi start ... --pidfile=/var/run/demo/celeryd-%n.pid"><pre class="notranslate"><code class="notranslate">celery multi start ... --pidfile=/var/run/demo/celeryd-%n.pid
</code></pre></div>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">celery runs</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">start failed</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery multi v4.4.3 (cliffs)
_annotate_with_default_opts: print options
OrderedDict([('--app', 'service.celery:app'),
('--pidfile', '/var/run/demo/celeryd-%n.pid'),
('--logfile', '/var/log/demo/celeryd-%n%I.log'),
('--loglevel', 'INFO'),
('--workdir', '/var/lib/demo-celery'),
('--events', None),
('--heartbeat-interval', '5'),
('--without-gossip', None),
('--queues', 'high'),
('--concurrency', '1'),
('-n', '[email protected]')])
Traceback (most recent call last):
File "/var/www/misc/ve-2006011156/bin/celery", line 8, in <module>
sys.exit(main())
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/__main__.py", line 16, in main
_main()
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/celery.py", line 322, in main
cmd.execute_from_commandline(argv)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/celery.py", line 495, in execute_from_commandline
super(CeleryCommand, self).execute_from_commandline(argv)))
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/base.py", line 305, in execute_from_commandline
return self.handle_argv(self.prog_name, argv[1:])
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/celery.py", line 487, in handle_argv
return self.execute(command, argv)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/celery.py", line 419, in execute
).run_from_argv(self.prog_name, argv[1:], command=argv[0])
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/celery.py", line 335, in run_from_argv
return cmd.execute_from_commandline([command] + argv)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 266, in execute_from_commandline
return self.call_command(argv[0], argv[1:])
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 273, in call_command
return self.commands[command](*argv) or EX_OK
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 143, in _inner
return fun(self, *args, **kwargs)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 151, in _inner
return fun(self, self.cluster_from_argv(argv), **kwargs)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 361, in cluster_from_argv
_, cluster = self._cluster_from_argv(argv, cmd=cmd)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 366, in _cluster_from_argv
return p, self.Cluster(list(nodes), cmd=cmd)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/apps/multi.py", line 306, in <genexpr>
for name in names
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/apps/multi.py", line 314, in _node_from_options
p.optmerge(namespace, options), p.passthrough)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/apps/multi.py", line 136, in __init__
options or OrderedDict())
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/apps/multi.py", line 145, in _annotate_with_default_opts
self._setdefaultopt(options, ['--pidfile', '-p'], '/var/run/celery/%n.pid')
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/apps/multi.py", line 159, in _setdefaultopt
os.makedirs(dir_path)
File "/var/www/misc/ve-2006011156/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/run/celery'
systemd[1]: [email protected]: Control process exited, code=exited, status=1/FAILURE"><pre class="notranslate"><code class="notranslate">celery multi v4.4.3 (cliffs)
_annotate_with_default_opts: print options
OrderedDict([('--app', 'service.celery:app'),
('--pidfile', '/var/run/demo/celeryd-%n.pid'),
('--logfile', '/var/log/demo/celeryd-%n%I.log'),
('--loglevel', 'INFO'),
('--workdir', '/var/lib/demo-celery'),
('--events', None),
('--heartbeat-interval', '5'),
('--without-gossip', None),
('--queues', 'high'),
('--concurrency', '1'),
('-n', '[email protected]')])
Traceback (most recent call last):
File "/var/www/misc/ve-2006011156/bin/celery", line 8, in <module>
sys.exit(main())
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/__main__.py", line 16, in main
_main()
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/celery.py", line 322, in main
cmd.execute_from_commandline(argv)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/celery.py", line 495, in execute_from_commandline
super(CeleryCommand, self).execute_from_commandline(argv)))
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/base.py", line 305, in execute_from_commandline
return self.handle_argv(self.prog_name, argv[1:])
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/celery.py", line 487, in handle_argv
return self.execute(command, argv)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/celery.py", line 419, in execute
).run_from_argv(self.prog_name, argv[1:], command=argv[0])
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/celery.py", line 335, in run_from_argv
return cmd.execute_from_commandline([command] + argv)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 266, in execute_from_commandline
return self.call_command(argv[0], argv[1:])
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 273, in call_command
return self.commands[command](*argv) or EX_OK
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 143, in _inner
return fun(self, *args, **kwargs)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 151, in _inner
return fun(self, self.cluster_from_argv(argv), **kwargs)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 361, in cluster_from_argv
_, cluster = self._cluster_from_argv(argv, cmd=cmd)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/bin/multi.py", line 366, in _cluster_from_argv
return p, self.Cluster(list(nodes), cmd=cmd)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/apps/multi.py", line 306, in <genexpr>
for name in names
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/apps/multi.py", line 314, in _node_from_options
p.optmerge(namespace, options), p.passthrough)
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/apps/multi.py", line 136, in __init__
options or OrderedDict())
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/apps/multi.py", line 145, in _annotate_with_default_opts
self._setdefaultopt(options, ['--pidfile', '-p'], '/var/run/celery/%n.pid')
File "/var/www/misc/ve-2006011156/lib/python3.7/site-packages/celery/apps/multi.py", line 159, in _setdefaultopt
os.makedirs(dir_path)
File "/var/www/misc/ve-2006011156/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/run/celery'
systemd[1]: [email protected]: Control process exited, code=exited, status=1/FAILURE
</code></pre></div> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>:</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<h1 dir="auto">Actual Behavior</h1> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> @code_warntype (Int ∘ identity)(1)"><pre class="notranslate"><code class="notranslate">julia> @code_warntype (Int ∘ identity)(1)
</code></pre></div>
<p dir="auto">gives</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Variables:
#self#::getfield(Base, Symbol("##57#58")){DataType,typeof(identity)}
x::Tuple{Int64}
Body:
begin
return ((Core.getfield)(#self#::getfield(Base, Symbol("##57#58")){DataType,typeof(identity)}, :f)::DataType)((Core.getfield)(x::Tuple{Int64}, 1)::Int64)::Any
end::Any"><pre class="notranslate"><code class="notranslate">Variables:
#self#::getfield(Base, Symbol("##57#58")){DataType,typeof(identity)}
x::Tuple{Int64}
Body:
begin
return ((Core.getfield)(#self#::getfield(Base, Symbol("##57#58")){DataType,typeof(identity)}, :f)::DataType)((Core.getfield)(x::Tuple{Int64}, 1)::Int64)::Any
end::Any
</code></pre></div>
<p dir="auto">Similar, when <code class="notranslate">Int</code> is replaced by another type.</p> | <p dir="auto">There seems to be a performance regression in fft as demonstrated below:</p>
<p dir="auto">slowdown2.jl</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function ch(nsteps, u)
w = complex(u)
p = plan_fft!(w)
q = plan_ifft!(w)
for n in 1:nsteps
w = p*w
w = q*w
end
w
end
srand(1)
u = rand(2^16)
ch(5, u)
@time ch(100, u)"><pre class="notranslate"><code class="notranslate">function ch(nsteps, u)
w = complex(u)
p = plan_fft!(w)
q = plan_ifft!(w)
for n in 1:nsteps
w = p*w
w = q*w
end
w
end
srand(1)
u = rand(2^16)
ch(5, u)
@time ch(100, u)
</code></pre></div>
<p dir="auto">Julia 0.4.6:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_% /usr/bin/julia slowdown2.jl
0.299310 seconds (246 allocations: 1.015 MB)"><pre class="notranslate"><code class="notranslate">_% /usr/bin/julia slowdown2.jl
0.299310 seconds (246 allocations: 1.015 MB)
</code></pre></div>
<p dir="auto">Julia 0.5 RC3:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_% /usr/local/julia/bin/julia slowdown2.jl
3.104827 seconds (271 allocations: 1.015 MB)"><pre class="notranslate"><code class="notranslate">_% /usr/local/julia/bin/julia slowdown2.jl
3.104827 seconds (271 allocations: 1.015 MB)
</code></pre></div>
<p dir="auto">Here is the versioninfo:</p>
<p dir="auto">Julia 0.4.6:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_% /usr/bin/julia -e 'versioninfo()'
Julia Version 0.4.6
Commit 2e358ce* (2016-06-19 17:16 UTC)
Platform Info:
System: Linux (x86_64-redhat-linux)
CPU: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Nehalem)
LAPACK: libopenblasp.so.0
LIBM: libopenlibm
LLVM: libLLVM-3.3"><pre class="notranslate"><code class="notranslate">_% /usr/bin/julia -e 'versioninfo()'
Julia Version 0.4.6
Commit 2e358ce* (2016-06-19 17:16 UTC)
Platform Info:
System: Linux (x86_64-redhat-linux)
CPU: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Nehalem)
LAPACK: libopenblasp.so.0
LIBM: libopenlibm
LLVM: libLLVM-3.3
</code></pre></div>
<p dir="auto">Julia 0.5 RC3:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_% /usr/local/julia/bin/julia -e 'versioninfo()'
Julia Version 0.5.0-rc3+0
Commit e6f843b (2016-08-22 23:43 UTC)
Platform Info:
System: Linux (x86_64-unknown-linux-gnu)
CPU: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, westmere)"><pre class="notranslate"><code class="notranslate">_% /usr/local/julia/bin/julia -e 'versioninfo()'
Julia Version 0.5.0-rc3+0
Commit e6f843b (2016-08-22 23:43 UTC)
Platform Info:
System: Linux (x86_64-unknown-linux-gnu)
CPU: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, westmere)
</code></pre></div> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.0-SNAPSHOT</li>
</ul>
<h3 dir="auto">Step to reproduce this issue</h3>
<ol dir="auto">
<li><a href="https://github.com/apache/incubator-dubbo/blob/master/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java">https://github.com/apache/incubator-dubbo/blob/master/dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/integration/RegistryProtocol.java</a></li>
</ol>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" private URL getRegisteredProviderUrl(final Invoker<?> originInvoker) {
URL providerUrl = getProviderUrl(originInvoker);
//The address you see at the registry
return providerUrl.removeParameters(getFilteredKeys(providerUrl))
.removeParameter(Constants.MONITOR_KEY)
.removeParameter(Constants.BIND_IP_KEY)
.removeParameter(Constants.BIND_PORT_KEY)
.removeParameter(QOS_ENABLE)
.removeParameter(QOS_PORT)
.removeParameter(ACCEPT_FOREIGN_IP)
.removeParameter(VALIDATION_KEY)
.removeParameter(INTERFACES);
}
TO
private URL getRegisteredProviderUrl(final Invoker<?> originInvoker) {
URL providerUrl = getProviderUrl(originInvoker);
// 此处移除async标记,仅保留标记在provider端
Set<String> keySet = providerUrl.getParameters().keySet();
List<String> asyncKey = new ArrayList<>();
for(String key : keySet) {
if(key.endsWith("." + Constants.ASYNC_KEY) || key.equals(Constants.ASYNC_KEY)) {
asyncKey.add(key);
}
}
//The address you see at the registry
return providerUrl.removeParameters(getFilteredKeys(providerUrl))
.removeParameter(Constants.MONITOR_KEY)
.removeParameter(Constants.BIND_IP_KEY)
.removeParameter(Constants.BIND_PORT_KEY)
.removeParameter(QOS_ENABLE)
.removeParameter(QOS_PORT)
.removeParameter(ACCEPT_FOREIGN_IP)
.removeParameter(VALIDATION_KEY)
.removeParameter(INTERFACES)
.removeParameters(asyncKey);
}"><pre class="notranslate"> <span class="pl-k">private</span> <span class="pl-smi">URL</span> <span class="pl-s1">getRegisteredProviderUrl</span>(<span class="pl-k">final</span> <span class="pl-smi">Invoker</span><?> <span class="pl-s1">originInvoker</span>) {
<span class="pl-smi">URL</span> <span class="pl-s1">providerUrl</span> = <span class="pl-en">getProviderUrl</span>(<span class="pl-s1">originInvoker</span>);
<span class="pl-c">//The address you see at the registry</span>
<span class="pl-k">return</span> <span class="pl-s1">providerUrl</span>.<span class="pl-en">removeParameters</span>(<span class="pl-en">getFilteredKeys</span>(<span class="pl-s1">providerUrl</span>))
.<span class="pl-en">removeParameter</span>(<span class="pl-smi">Constants</span>.<span class="pl-c1">MONITOR_KEY</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-smi">Constants</span>.<span class="pl-c1">BIND_IP_KEY</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-smi">Constants</span>.<span class="pl-c1">BIND_PORT_KEY</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-c1">QOS_ENABLE</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-c1">QOS_PORT</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-c1">ACCEPT_FOREIGN_IP</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-c1">VALIDATION_KEY</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-c1">INTERFACES</span>);
}
<span class="pl-smi">TO</span>
<span class="pl-s1">private</span> <span class="pl-smi">URL</span> <span class="pl-s1">getRegisteredProviderUrl</span>(<span class="pl-k">final</span> <span class="pl-smi">Invoker</span><?> <span class="pl-s1">originInvoker</span>) {
<span class="pl-smi">URL</span> <span class="pl-s1">providerUrl</span> = <span class="pl-en">getProviderUrl</span>(<span class="pl-s1">originInvoker</span>);
<span class="pl-c">// 此处移除async标记,仅保留标记在provider端</span>
<span class="pl-smi">Set</span><<span class="pl-smi">String</span>> <span class="pl-s1">keySet</span> = <span class="pl-s1">providerUrl</span>.<span class="pl-en">getParameters</span>().<span class="pl-en">keySet</span>();
<span class="pl-smi">List</span><<span class="pl-smi">String</span>> <span class="pl-s1">asyncKey</span> = <span class="pl-k">new</span> <span class="pl-smi">ArrayList</span><>();
<span class="pl-k">for</span>(<span class="pl-smi">String</span> <span class="pl-s1">key</span> : <span class="pl-s1">keySet</span>) {
<span class="pl-k">if</span>(<span class="pl-s1">key</span>.<span class="pl-en">endsWith</span>(<span class="pl-s">"."</span> + <span class="pl-smi">Constants</span>.<span class="pl-c1">ASYNC_KEY</span>) || <span class="pl-s1">key</span>.<span class="pl-en">equals</span>(<span class="pl-smi">Constants</span>.<span class="pl-c1">ASYNC_KEY</span>)) {
<span class="pl-s1">asyncKey</span>.<span class="pl-en">add</span>(<span class="pl-s1">key</span>);
}
}
<span class="pl-c">//The address you see at the registry</span>
<span class="pl-k">return</span> <span class="pl-s1">providerUrl</span>.<span class="pl-en">removeParameters</span>(<span class="pl-en">getFilteredKeys</span>(<span class="pl-s1">providerUrl</span>))
.<span class="pl-en">removeParameter</span>(<span class="pl-smi">Constants</span>.<span class="pl-c1">MONITOR_KEY</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-smi">Constants</span>.<span class="pl-c1">BIND_IP_KEY</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-smi">Constants</span>.<span class="pl-c1">BIND_PORT_KEY</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-c1">QOS_ENABLE</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-c1">QOS_PORT</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-c1">ACCEPT_FOREIGN_IP</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-c1">VALIDATION_KEY</span>)
.<span class="pl-en">removeParameter</span>(<span class="pl-c1">INTERFACES</span>)
.<span class="pl-en">removeParameters</span>(<span class="pl-s1">asyncKey</span>);
}</pre></div>
<p dir="auto">that if Provider use "provider async" like this:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" public String sayHello(String name) {
System.out.println("Main sayHello() method start.");
final AsyncContext asyncContext = RpcContext.startAsync();
new Thread(() -> {
asyncContext.signalContextSwitch();
System.out.println("Attachment from consumer: " + RpcContext.getContext().getAttachment("consumer-key1"));
System.out.println(" -- Async start.");
try {
Thread.sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}
asyncContext.write("Hello " + name + ", response from provider.");
System.out.println(" -- Async end.");
}).start();
System.out.println("Main sayHello() method end.");
return "hello, " + name;
}
<dubbo:method name="sayHello" async="true"/>"><pre class="notranslate"> <span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-s1">sayHello</span>(<span class="pl-smi">String</span> <span class="pl-s1">name</span>) {
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Main sayHello() method start."</span>);
<span class="pl-k">final</span> <span class="pl-smi">AsyncContext</span> <span class="pl-s1">asyncContext</span> = <span class="pl-smi">RpcContext</span>.<span class="pl-en">startAsync</span>();
<span class="pl-k">new</span> <span class="pl-smi">Thread</span>(() -> {
<span class="pl-s1">asyncContext</span>.<span class="pl-en">signalContextSwitch</span>();
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Attachment from consumer: "</span> + <span class="pl-smi">RpcContext</span>.<span class="pl-en">getContext</span>().<span class="pl-en">getAttachment</span>(<span class="pl-s">"consumer-key1"</span>));
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">" -- Async start."</span>);
<span class="pl-k">try</span> {
<span class="pl-smi">Thread</span>.<span class="pl-en">sleep</span>(<span class="pl-c1">500</span>);
} <span class="pl-k">catch</span> (<span class="pl-smi">InterruptedException</span> <span class="pl-s1">e</span>) {
<span class="pl-s1">e</span>.<span class="pl-en">printStackTrace</span>();
}
<span class="pl-s1">asyncContext</span>.<span class="pl-en">write</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">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">" -- Async end."</span>);
}).<span class="pl-en">start</span>();
<span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"Main sayHello() method end."</span>);
<span class="pl-k">return</span> <span class="pl-s">"hello, "</span> + <span class="pl-s1">name</span>;
}
<<span class="pl-s1">dubbo</span>:<span class="pl-smi">method</span> <span class="pl-s1">name</span>=<span class="pl-s">"sayHello"</span> <span class="pl-s1">async</span>=<span class="pl-s">"true"</span>/></pre></div>
<p dir="auto">and consumer user dubbo version low than 2.7.0-SNAPSHOT,<br>
"async = true" will know from provider registed url, that need consumer use old async to invoke this method. But it is not what we expected, we think async should only be set by consumer itself.<br>
英文不太好,中文版:</p>
<ol dir="auto">
<li>Provider版本使用 2.7.0-SNAPSHOT版本,然后发布接口使用了"provider async"的方式(见上面第二段代码),则需要在发布的时候添加<code class="notranslate"> <dubbo:method name="sayHello" async="true"/></code>则会将 async=true 的标记注册到注册中心,这时候就会将标记透传到 Consumer 端,导致服务调用变成异步的,而出现返回值为 null 的情况。</li>
<li>根据我个人的理解,async 标记应该仅由 provider 或 consumer 自己指定,而不应该透传到对方感知。</li>
</ol> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: MacOS Catalina 10.15 Beta</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">project struct</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/832040/62096991-240bf200-b2b8-11e9-8d4e-c9cee2802c06.png"><img src="https://user-images.githubusercontent.com/832040/62096991-240bf200-b2b8-11e9-8d4e-c9cee2802c06.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">DubboConfiguration</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Configuration
@EnableDubbo(scanBasePackages = "com.weiguang.www.dubboprovider.service")
@PropertySource(value = "classpath:dubbo-provider.properties")
public class DubboConfiguration {
@Bean
public ProviderConfig providerConfig(){
ProviderConfig providerConfig = new ProviderConfig();
providerConfig.setTimeout(3000);
return providerConfig;
}
}
"><pre class="notranslate"><code class="notranslate">@Configuration
@EnableDubbo(scanBasePackages = "com.weiguang.www.dubboprovider.service")
@PropertySource(value = "classpath:dubbo-provider.properties")
public class DubboConfiguration {
@Bean
public ProviderConfig providerConfig(){
ProviderConfig providerConfig = new ProviderConfig();
providerConfig.setTimeout(3000);
return providerConfig;
}
}
</code></pre></div>
<h3 dir="auto">log</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[DUBBO] No Spring Bean annotating Dubbo's @Service was found under package[com.weiguang.www.dubboconsumer.config], dubbo version: 2.7.3, current host: 192.168.1.111"><pre class="notranslate"><code class="notranslate">[DUBBO] No Spring Bean annotating Dubbo's @Service was found under package[com.weiguang.www.dubboconsumer.config], dubbo version: 2.7.3, current host: 192.168.1.111
</code></pre></div>
<p dir="auto">搜索的是config文件所在的目录,并不是 <code class="notranslate">@EnableDubbo(scanBasePackages = "com.weiguang.www.dubboprovider.service")</code> 指定的目录。</p>
<p dir="auto">导致在zookeeper中,provider内容为空,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[zk: 127.0.0.1:2181(CONNECTED) 0] ls /
[dubbo, zookeeper]
[zk: 127.0.0.1:2181(CONNECTED) 1] ls /dubbo
[com.weiguang.www.dubbointerface.service.HelloService]
[zk: 127.0.0.1:2181(CONNECTED) 2] ls /dubbo/com.weiguang.www.dubbointerface.service.HelloService
[configurators, consumers, providers, routers]
[zk: 127.0.0.1:2181(CONNECTED) 3] ls /dubbo/com.weiguang.www.dubbointerface.service.HelloService/providers
[]
[zk: 127.0.0.1:2181(CONNECTED) 4] "><pre class="notranslate"><code class="notranslate">[zk: 127.0.0.1:2181(CONNECTED) 0] ls /
[dubbo, zookeeper]
[zk: 127.0.0.1:2181(CONNECTED) 1] ls /dubbo
[com.weiguang.www.dubbointerface.service.HelloService]
[zk: 127.0.0.1:2181(CONNECTED) 2] ls /dubbo/com.weiguang.www.dubbointerface.service.HelloService
[configurators, consumers, providers, routers]
[zk: 127.0.0.1:2181(CONNECTED) 3] ls /dubbo/com.weiguang.www.dubbointerface.service.HelloService/providers
[]
[zk: 127.0.0.1:2181(CONNECTED) 4]
</code></pre></div>
<p dir="auto">最终导致consumer 调用时出现 No provider availabe 错误:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "timestamp": "2019-07-30T02:39:07.740+0000",
"status": 500,
"error": "Internal Server Error",
"message": "No provider available from registry 127.0.0.1:2181 for service com.weiguang.www.dubbointerface.service.HelloService:1.0.0 on consumer 192.168.1.111 use dubbo version 2.7.3, please check status of providers(disabled, not registered or in blacklist).",
"path": "/hello""><pre class="notranslate"><code class="notranslate"> "timestamp": "2019-07-30T02:39:07.740+0000",
"status": 500,
"error": "Internal Server Error",
"message": "No provider available from registry 127.0.0.1:2181 for service com.weiguang.www.dubbointerface.service.HelloService:1.0.0 on consumer 192.168.1.111 use dubbo version 2.7.3, please check status of providers(disabled, not registered or in blacklist).",
"path": "/hello"
</code></pre></div>
<h3 dir="auto">解决方法:</h3>
<p dir="auto">需要在configuration类上加注解 <code class="notranslate">@DubboComponentScan(basePackages = "com.weiguang.www.dubboprovider.service") </code> ,service才会被注册。</p> | 0 |
<p dir="auto">Hi,</p>
<p dir="auto">I have a simple IconMenu which is not controlled. Once the menu is displayed and any MenuItem is clicked, the menu closes as expected. However clicking anywhere after this logs the error -</p>
<p dir="auto"><code class="notranslate">Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the IconMenu component.</code></p>
<p dir="auto">The call-stack is -</p>
<p dir="auto">warning @ bundle.js:2198<br>
getInternalInstanceReadyForUpdate @ bundle.js:5913<br>
ReactUpdateQueue.enqueueSetState @ bundle.js:6060<br>
ReactComponent.setState @ bundle.js:15918<br>
close @ bundle.js:54613<br>
requestClose @ bundle.js:42206<br>
componentClickAway @ bundle.js:42210<br>
onClickAway @ bundle.js:42509</p>
<p dir="auto">And a bigger issue is that the error count per click keeps increasing on every subsequent menu show/dismiss cycle. E.g. during the very first occurrence, only one error is reported per click. The next time I click on the icon to show the menu and then dismiss it by selecting some item, <strong>two</strong> errors are reported per click. This would happen if the menu is not cleaning up events correctly and would eventually lead to leaks.</p> | <p dir="auto">This is a new regression only observed in 0.14.2, downgrading to 0.14.1 removes warning.</p>
<p dir="auto">On umounting any IconMenu component, I receive the following warning and stacktrace that is entirely within Material UI:</p>
<p dir="auto">Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the IconMenu</p>
<p dir="auto">component.warning @ warning.js:45<br>
getInternalInstanceReadyForUpdate @ ReactUpdateQueue.js:34<br>
ReactUpdateQueue.enqueueSetState @ ReactUpdateQueue.js:181<br>
ReactComponent.setState @ ReactComponent.js:65<br>
close @ icon-menu.js:174<br>
requestClose @ popover.js:207<br>
componentClickAway @ popover.js:211<br>
onClickAway @ render-to-layer.js:99</p>
<p dir="auto">Clicking anywhere at all triggers the warning again, as if the popover was still active.</p> | 1 |
<pre class="notranslate">$ go version
go version devel +f2e954f463e0 Thu Aug 29 10:16:09 2013 +0200 linux/amd64
steps that will reproduce the problem:
1. $ cd $GOPATH/src
$ unzip path/to/attached/delfile.zip
2. $ go install delfile
$ ../bin/delfile
prints "still there"
3. $ rm delfile/deleted.go
$ go install delfile
$ ../bin/delfile
prints "still there"
the expected output of the second go install is:
# delfile
./main.go:4: undefined: deleted
same behavior is observed for non command/main packages.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/6294/0/delfile.zip" rel="nofollow">delfile.zip</a> (598 bytes)</li>
</ol> | <p dir="auto">by <strong>AndersEdmanXYZ</strong>:</p>
<pre class="notranslate">running go get to fetch pkg from external sources need extra tools to be installed as
listed in <a href="http://code.google.com/p/go-wiki/wiki/GoGetTools" rel="nofollow">http://code.google.com/p/go-wiki/wiki/GoGetTools</a>
Documentation
in <a href="http://golang.org/cmd/go/" rel="nofollow">http://golang.org/cmd/go/</a> description of go get is external tool need not mentioned
error response could be more helpfull: Example:
c:\Go>go get code.google.com/p/draw2d/draw2d
# cd .; hg clone -U <a href="https://code.google.com/p/draw2d" rel="nofollow">https://code.google.com/p/draw2d</a>
C:\Go\src\pkg\code.google.com\p\draw2d
package code.google.com/p/draw2d/draw2d: exec: "hg": executable file not found
in %PATH%
Improved response could mention that needed "hg" is required external sw that
must be installed
Which operating system are you using?
Windows
Which version are you using? (run 'go version')
1.0.3</pre> | 0 |
<ul dir="auto">
<li>VSCode Version:<br>
1.1.1</li>
<li>OS Version:<br>
RHEL 7.2</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>type <code class="notranslate">Ctrl+P</code> and <code class="notranslate">ext install csharp</code></li>
<li>The status bar at the left bottom remains "installing" status. It doesn' t finish for several hours.</li>
</ol>
<p dir="auto">I get into this situation only csharp extension. I can install other extensions such as go, python.<br>
I have a workaround that I install csharp extension other Linux distro machine and copy ~/.vscode/extensions/ms-vscode.csharp-1.0.11 to RHEL machine.<br>
However, I'd like to know the root cause. Could you help me?</p> | <ul dir="auto">
<li>VSCode Version:1.2.0</li>
<li>OS Version:ubuntu 16.4</li>
</ul>
<p dir="auto">on a remote server or while editing root needed config files from builtin terminal i have to use vim at the moment .<br>
Is there or will there be a functionality to pipe file into current code pane from builtin terminal</p> | 0 |
<p dir="auto">Since <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="468703548" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/1987" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/1987/hovercard" href="https://github.com/microsoft/terminal/issues/1987">#1987</a>, our SxS manifest is auto-generated, so it's certainly possible to run the terminal unpackaged again. However, we need the <code class="notranslate">resources.pri</code> that's only generated by building the CascadiaPackage project. Ideally, we'd be able to rebuild the terminal code (with <code class="notranslate">bx</code>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="475150143" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/2168" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/terminal/pull/2168/hovercard" href="https://github.com/microsoft/terminal/pull/2168">#2168</a>), and launch it using <code class="notranslate">openterm</code>. We need to figure out a way to get openterm to build the appx's resources.pri for us, and not re-build every time <code class="notranslate">openterm</code> is called.</p> | <p dir="auto">I've built successful from command line using the following command.<br>
<code class="notranslate">msbuild /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v142 /p:TargetPlatformVersion=10.0.18362.0 /p:PreferredToolArchitecture=x64 OpenConsole.sln</code><br>
I'm trying to find a possible solution for deploying from the command line. Is adding <code class="notranslate">/p:DeployOnBuild=true</code> enough? What other things need be done if necessary? Any guidance on what Deploy does, e.g. copying files to where, writing some environmental variables?</p> | 1 |
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<p dir="auto">Case 1</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
df = pd.DataFrame({
'a' : [1,1,1,2,2,2,3,3,3],
'b' : [1,2,3,4,5,6,7,8,9],
})
df.groupby('a', as_index=False).agg({'a': 'count'})"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({
<span class="pl-s">'a'</span> : [<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">3</span>,<span class="pl-c1">3</span>],
<span class="pl-s">'b'</span> : [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>,<span class="pl-c1">6</span>,<span class="pl-c1">7</span>,<span class="pl-c1">8</span>,<span class="pl-c1">9</span>],
})
<span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'a'</span>, <span class="pl-s1">as_index</span><span class="pl-c1">=</span><span class="pl-c1">False</span>).<span class="pl-en">agg</span>({<span class="pl-s">'a'</span>: <span class="pl-s">'count'</span>})</pre></div>
<p dir="auto">Case 2</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
df = pd.DataFrame({
'a' : [1,1,1,2,2,2,3,3,3],
'b' : [1,2,3,4,5,6,7,8,9],
})
df.groupby(['a']).agg({'a': 'count'}).reset_index(level=0)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({
<span class="pl-s">'a'</span> : [<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">3</span>,<span class="pl-c1">3</span>],
<span class="pl-s">'b'</span> : [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>,<span class="pl-c1">6</span>,<span class="pl-c1">7</span>,<span class="pl-c1">8</span>,<span class="pl-c1">9</span>],
})
<span class="pl-s1">df</span>.<span class="pl-en">groupby</span>([<span class="pl-s">'a'</span>]).<span class="pl-en">agg</span>({<span class="pl-s">'a'</span>: <span class="pl-s">'count'</span>}).<span class="pl-en">reset_index</span>(<span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)</pre></div>
<p dir="auto">It returns "ValueError: cannot insert a, already exists" for both caes.</p>
<h4 dir="auto">Problem description</h4>
<p dir="auto">So far, I could found 2 functions which calls "insert" function without "allow_duplicates=True" option.<br>
One is in "def _insert_inaxis_grouper_inplace" from "pandas/core/groupby.py"</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="result.insert(0, name, lev)"><pre class="notranslate"><span class="pl-s1">result</span>.<span class="pl-en">insert</span>(<span class="pl-c1">0</span>, <span class="pl-s1">name</span>, <span class="pl-s1">lev</span>)</pre></div>
<p dir="auto">and another is in "def reset_index" from "pandas/core/frame.py"</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" new_obj.insert(0, name, level_values)"><pre class="notranslate"> <span class="pl-s1">new_obj</span>.<span class="pl-en">insert</span>(<span class="pl-c1">0</span>, <span class="pl-s1">name</span>, <span class="pl-s1">level_values</span>)</pre></div>
<p dir="auto">For both cases, it result in ValueError as I wrote in Code section.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">I think for both cases it should at least return some kind of dataframe without returning ValueError.</p>
<ol dir="auto">
<li>It should add a new column even it was duplicated.</li>
<li>It should add a new column with renaming it (say a_1 or a_x as new column).</li>
</ol>
<p dir="auto">My concern is</p>
<ol dir="auto">
<li>Is this a bug?</li>
</ol>
<ul dir="auto">
<li>Should we supposed to aggrecate for "as_index=False" dataframe or do "reset_index" to aggregated dataframe?</li>
<li>(i.e. Are there any other way to rename column before doing reset_index or agg?)</li>
</ul>
<ol start="2" dir="auto">
<li>If this were a bug, how could I fix it?</li>
</ol>
<ul dir="auto">
<li>I could add "allow_duplicate=True" option for both lines.</li>
<li>Or, I could rename column by adding "_x" or "_dup" or any kind of suffix.</li>
</ul>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.6.4.final.0<br>
python-bits: 64<br>
OS: Linux<br>
OS-release: 4.8.0-53-generic<br>
machine: x86_64<br>
processor: x86_64<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: ja_JP.UTF-8<br>
LOCALE: ja_JP.UTF-8</p>
<p dir="auto">pandas: 0.22.0<br>
pytest: 3.5.0<br>
pip: 9.0.3<br>
setuptools: 39.0.1<br>
Cython: 0.28.1<br>
numpy: 1.14.2<br>
scipy: 1.0.1<br>
pyarrow: None<br>
xarray: None<br>
IPython: 6.2.1<br>
sphinx: 1.7.2<br>
patsy: 0.5.0<br>
dateutil: 2.7.2<br>
pytz: 2018.3<br>
blosc: None<br>
bottleneck: 1.2.1<br>
tables: 3.4.2<br>
numexpr: 2.6.4<br>
feather: None<br>
matplotlib: 2.2.2<br>
openpyxl: 2.5.1<br>
xlrd: 1.1.0<br>
xlwt: 1.3.0<br>
xlsxwriter: 1.0.2<br>
lxml: 4.2.1<br>
bs4: 4.6.0<br>
html5lib: 1.0.1<br>
sqlalchemy: 1.2.5<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.10<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | <p dir="auto">From <a href="http://stackoverflow.com/questions/17979327/drop-rows-with-multiple-keys-in-pandas/17979614?noredirect=1#comment26286280_17979614" rel="nofollow">this</a> SO question.</p>
<p dir="auto">The user had two dataframes and wanted to use the second as the values argument to <code class="notranslate">isin</code>.</p>
<p dir="auto">We'd need to think about how to handle the other index. In this case the user only cared about the columns, not the index labels.</p>
<p dir="auto">Previous issues/PRs: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16809406" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/4258" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/4258/hovercard" href="https://github.com/pandas-dev/pandas/pull/4258">#4258</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16637967" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/4211" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/4211/hovercard" href="https://github.com/pandas-dev/pandas/issues/4211">#4211</a></p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dvb123" rel="nofollow">David Victor</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8016?redirect=false" rel="nofollow">SPR-8016</a></strong>* and commented</p>
<p dir="auto">I am working with an API which returns an empty response body on http status 200 (OK) & a body which is populated on http status 400 (Bad Request).</p>
<p dir="auto">When using RestTemplate.getForEntity() this is fine for the case where the body is populated, however I get an exception for the 'null body' case.</p>
<p dir="auto">My understanding is one should provide a class implementing the ResponseBody interface & make the call via the execute() method on the RestTemplate.</p>
<p dir="auto">This task is a request to consider that the use case here is common & whether Spring should offer something out of the box for this situation.</p>
<p dir="auto">Also See: <a href="http://stackoverflow.com/questions/3322381/spring-resttemplate-behavior-when-handling-responses-with-a-status-of-no-content/3648447#3648447" rel="nofollow">http://stackoverflow.com/questions/3322381/spring-resttemplate-behavior-when-handling-responses-with-a-status-of-no-content/3648447#3648447</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M1</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="398109841" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12566" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12566/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12566">#12566</a> Better handling of 204 No Content in RestTemplate (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398179152" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/17560" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/17560/hovercard" href="https://github.com/spring-projects/spring-framework/issues/17560">#17560</a> Resttemplate with HttpComponentsClientHttpRequestFactory will make HttpMessageConverterExtractor.extractData return null if the header contains content-encoding gzip, the connection is closed and the response isn't chunked (<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="398176553" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/17309" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/17309/hovercard" href="https://github.com/spring-projects/spring-framework/issues/17309">#17309</a> RestTemplate cannot handle GZIP response since 4.1.3 (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">9 votes, 19 watchers</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-6745?redirect=false" rel="nofollow">SPR-6745</a></strong> and commented</p>
<p dir="auto">This means annotation-driven type conversion does not work when binding to JavaBean properties with SpEL. This can be worked around by defining annotations on the method parameter of a setter method, and the return value of a getter, but is not ideal.</p>
<p dir="auto">SpEL should be consistent with BeanWrapper with its TypeDescriptor configuration when getting and setting JavaBean properties. This likely means use of a BeanTypeDescriptor in those cases.</p>
<p dir="auto">This was noticed when attempting to use a SpEL-based data mapper to map String fields in a Map to a JavaBean, where annotation-driven parsing rules were specified on JavaBean fields. This works fine with a BeanWrapper since the BeanTypeDescriptor exposes annotations from the field, getter, and setter. Unfortunately, SpEl just uses the default TypeDescriptor in these cases which only exposes parameter annotations.</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="398102865" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11493" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11493/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11493">#11493</a> Allow SpEl expressions to be evaluated from JSPs (<em><strong>"is depended on by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398097313" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10748" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10748/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10748">#10748</a> Create a Unified EL implementation with Spring EL</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/117b1382333bd7e2ae26a85359b3cda89df9afef/hovercard" href="https://github.com/spring-projects/spring-framework/commit/117b1382333bd7e2ae26a85359b3cda89df9afef"><tt>117b138</tt></a></p> | 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): no</li>
<li>OS Platform and Distribution :windows 10 pro 16299</li>
<li>TensorFlow installed from : conda install</li>
<li>TensorFlow version (use command below): tensorflow 2.0.0b1</li>
<li>Python version:3.6.9</li>
</ul>
<h2 dir="auto">log</h2>
<p dir="auto">ImportError Traceback (most recent call last)<br>
~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <br>
57<br>
---> 58 from tensorflow.python.pywrap_tensorflow_internal import *<br>
59 from tensorflow.python.pywrap_tensorflow_internal import <strong>version</strong></p>
<p dir="auto">~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in <br>
27 return _mod<br>
---> 28 _pywrap_tensorflow_internal = swig_import_helper()<br>
29 del swig_import_helper</p>
<p dir="auto">~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()<br>
23 try:<br>
---> 24 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br>
25 finally:</p>
<p dir="auto">~\Anaconda3\lib\imp.py in load_module(name, file, filename, details)<br>
242 else:<br>
--> 243 return load_dynamic(name, filename, file)<br>
244 elif type_ == PKG_DIRECTORY:</p>
<p dir="auto">~\Anaconda3\lib\imp.py in load_dynamic(name, path, file)<br>
342 name=name, loader=loader, origin=path)<br>
--> 343 return _load(spec)<br>
344</p>
<p dir="auto">ImportError: DLL load failed: The specified module could not be found.</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">ImportError Traceback (most recent call last)<br>
in <br>
----> 1 import tensorflow as tf</p>
<p dir="auto">~\Anaconda3\lib\site-packages\tensorflow_<em>init</em>_.py in <br>
38 import sys as _sys<br>
39<br>
---> 40 from tensorflow.python.tools import module_util as _module_util<br>
41<br>
42 from tensorflow._api.v2 import audio</p>
<p dir="auto">~\Anaconda3\lib\site-packages\tensorflow\python_<em>init</em>_.py in <br>
47 import numpy as np<br>
48<br>
---> 49 from tensorflow.python import pywrap_tensorflow<br>
50<br>
51 # Protocol buffers</p>
<p dir="auto">~\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <br>
72 for some common reasons and solutions. Include the entire stack trace<br>
73 above this error message when asking for help.""" % traceback.format_exc()<br>
---> 74 raise ImportError(msg)<br>
75<br>
76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long</p>
<p dir="auto">ImportError: Traceback (most recent call last):<br>
File "C:\Users\BLACK MANTIS\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\Users\BLACK MANTIS\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\Users\BLACK MANTIS\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br>
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br>
File "C:\Users\BLACK MANTIS\Anaconda3\lib\imp.py", line 243, in load_module<br>
return load_dynamic(name, filename, file)<br>
File "C:\Users\BLACK MANTIS\Anaconda3\lib\imp.py", line 343, in load_dynamic<br>
return _load(spec)<br>
ImportError: DLL load failed: The specified module could not be found.</p>
<p dir="auto">Failed to load the native TensorFlow runtime.</p>
<p dir="auto">See <a href="https://www.tensorflow.org/install/errors" rel="nofollow">https://www.tensorflow.org/install/errors</a></p>
<p dir="auto">for some common reasons and solutions. Include the entire stack trace<br>
above this error message when asking for help.</p> | <p dir="auto"><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): No</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 x64</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: No</li>
<li>TensorFlow installed from (source or binary): binary</li>
<li>TensorFlow version (use command below): tensorflow-gpu-1.13.1</li>
<li>Python version: 3.6.4</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: CUDA 10.1/cuDNN7.5</li>
<li>GPU model and memory: 930mx 2GB</li>
</ul>
<p dir="auto"><strong>Describe the current behavior</strong><br>
Fails to run because of an Import Error whenever I try to import tf-GPU,<br>
<strong>Describe the expected behavior</strong><br>
Expected it to import so I could use it.<br>
<strong>Code to reproduce the issue</strong><br>
import tensorflow as tf</p>
<h2 dir="auto"><strong>Other info / logs</strong></h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ImportError Traceback (most recent call last)
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>
57
---> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import __version__
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in <module>
27 return _mod
---> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
23 try:
---> 24 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
25 finally:
c:\users\ent\appdata\local\programs\python\python36\lib\imp.py in load_module(name, file, filename, details)
242 else:
--> 243 return load_dynamic(name, filename, file)
244 elif type_ == PKG_DIRECTORY:
c:\users\ent\appdata\local\programs\python\python36\lib\imp.py in load_dynamic(name, path, file)
342 name=name, loader=loader, origin=path)
--> 343 return _load(spec)
344
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
<ipython-input-1-602d2050546b> in <module>
----> 1 import tensorflow as tf
2 import time
3 import os
4 from tensorflow.examples.tutorials.mnist import input_data
5
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\__init__.py in <module>
22
23 # pylint: disable=g-bad-import-order
---> 24 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
25
26 from tensorflow._api.v1 import app
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\__init__.py in <module>
47 import numpy as np
48
---> 49 from tensorflow.python import pywrap_tensorflow
50
51 # Protocol buffers
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>
72 for some common reasons and solutions. Include the entire stack trace
73 above this error message when asking for help.""" % traceback.format_exc()
---> 74 raise ImportError(msg)
75
76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long
ImportError: Traceback (most recent call last):
File "c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\ent\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\ent\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime. "><pre class="notranslate"><code class="notranslate">ImportError Traceback (most recent call last)
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>
57
---> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import __version__
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in <module>
27 return _mod
---> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
23 try:
---> 24 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
25 finally:
c:\users\ent\appdata\local\programs\python\python36\lib\imp.py in load_module(name, file, filename, details)
242 else:
--> 243 return load_dynamic(name, filename, file)
244 elif type_ == PKG_DIRECTORY:
c:\users\ent\appdata\local\programs\python\python36\lib\imp.py in load_dynamic(name, path, file)
342 name=name, loader=loader, origin=path)
--> 343 return _load(spec)
344
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
<ipython-input-1-602d2050546b> in <module>
----> 1 import tensorflow as tf
2 import time
3 import os
4 from tensorflow.examples.tutorials.mnist import input_data
5
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\__init__.py in <module>
22
23 # pylint: disable=g-bad-import-order
---> 24 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
25
26 from tensorflow._api.v1 import app
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\__init__.py in <module>
47 import numpy as np
48
---> 49 from tensorflow.python import pywrap_tensorflow
50
51 # Protocol buffers
c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>
72 for some common reasons and solutions. Include the entire stack trace
73 above this error message when asking for help.""" % traceback.format_exc()
---> 74 raise ImportError(msg)
75
76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long
ImportError: Traceback (most recent call last):
File "c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "c:\users\ent\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "c:\users\ent\appdata\local\programs\python\python36\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "c:\users\ent\appdata\local\programs\python\python36\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
</code></pre></div>
<hr> | 1 |
<p dir="auto">When we create a lazy load service , It is supposed to pass initializer to staticProxyConstructor of a proxy instead of its constructor. I have no idea why this happened, please check this <a href="https://github.com/Sylius/Sylius/issues/4335" data-hovercard-type="issue" data-hovercard-url="/Sylius/Sylius/issues/4335/hovercard">link.</a></p> | <p dir="auto">Symfony 2.8.1<br>
PHP 7.0.2.1 (debian)</p>
<p dir="auto">I've enabled the Symonfy serializer.</p>
<p dir="auto">I'm using the <code class="notranslate">"friendsofsymfony/rest-bundle": "^1.7"</code> with the following config:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fos_rest:
param_fetcher_listener: force
routing_loader:
include_format: false
view:
mime_types:
json: ['application/json', 'application/json;version=1.0', 'application/json;version=1.1', 'application/json;version=1.2']
view_response_listener: 'force'
formats:
xml: true
json: true
templating_formats:
html: true
format_listener:
rules:
- { path: ^/, priorities: [ html, json, xml ], fallback_format: ~, prefer_extension: true }
media_type:
version_regex: '/(v|version)=(?P<version>[0-9\.]+)/'
exception:
codes:
'Symfony\Component\Routing\Exception\ResourceNotFoundException': 404
'Doctrine\ORM\OptimisticLockException': HTTP_CONFLICT
messages:
'Symfony\Component\Routing\Exception\ResourceNotFoundException': true
allowed_methods_listener: true
access_denied_listener:
json: true
body_listener: true"><pre class="notranslate"><span class="pl-ent">fos_rest</span>:
<span class="pl-ent">param_fetcher_listener</span>: <span class="pl-s">force</span>
<span class="pl-ent">routing_loader</span>:
<span class="pl-ent">include_format</span>: <span class="pl-c1">false</span>
<span class="pl-ent">view</span>:
<span class="pl-ent">mime_types</span>:
<span class="pl-ent">json</span>: <span class="pl-s">['application/json', 'application/json;version=1.0', 'application/json;version=1.1', 'application/json;version=1.2']</span>
<span class="pl-ent">view_response_listener</span>: <span class="pl-s"><span class="pl-pds">'</span>force<span class="pl-pds">'</span></span>
<span class="pl-ent">formats</span>:
<span class="pl-ent">xml</span>: <span class="pl-c1">true</span>
<span class="pl-ent">json</span>: <span class="pl-c1">true</span>
<span class="pl-ent">templating_formats</span>:
<span class="pl-ent">html</span>: <span class="pl-c1">true</span>
<span class="pl-ent">format_listener</span>:
<span class="pl-ent">rules</span>:
- <span class="pl-s">{ path: ^/, priorities: [ html, json, xml ], fallback_format: ~, prefer_extension: true }</span>
<span class="pl-ent">media_type</span>:
<span class="pl-ent">version_regex</span>: <span class="pl-s"><span class="pl-pds">'</span>/(v|version)=(?P<version>[0-9\.]+)/<span class="pl-pds">'</span></span>
<span class="pl-ent">exception</span>:
<span class="pl-ent">codes</span>:
<span class="pl-s"><span class="pl-pds">'</span><span class="pl-ent">Symfony\Component\Routing\Exception\ResourceNotFoundException</span><span class="pl-pds">'</span></span>: <span class="pl-c1">404</span>
<span class="pl-s"><span class="pl-pds">'</span><span class="pl-ent">Doctrine\ORM\OptimisticLockException</span><span class="pl-pds">'</span></span>: <span class="pl-s">HTTP_CONFLICT</span>
<span class="pl-ent">messages</span>:
<span class="pl-s"><span class="pl-pds">'</span><span class="pl-ent">Symfony\Component\Routing\Exception\ResourceNotFoundException</span><span class="pl-pds">'</span></span>: <span class="pl-c1">true</span>
<span class="pl-ent">allowed_methods_listener</span>: <span class="pl-c1">true</span>
<span class="pl-ent">access_denied_listener</span>:
<span class="pl-ent">json</span>: <span class="pl-c1">true</span>
<span class="pl-ent">body_listener</span>: <span class="pl-c1">true</span></pre></div>
<p dir="auto">And this is a part of my controller action:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public function getNewsAction(Request $request)
{
...
$news = [generator news]..
...
$view = $this->view($news);
return $this->handleView($view, 200);
}"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">getNewsAction</span>(<span class="pl-smi"><span class="pl-smi">Request</span></span> <span class="pl-s1"><span class="pl-c1">$</span>request</span>)
{
<span class="pl-c1">.</span>.<span class="pl-c1">.</span>
<span class="pl-s1"><span class="pl-c1">$</span>news</span> = [generator news].<span class="pl-c1">.</span>
.<span class="pl-c1">.</span>.
<span class="pl-s1"><span class="pl-c1">$</span>view</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-en">view</span>(<span class="pl-s1"><span class="pl-c1">$</span>news</span>);
<span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-en">handleView</span>(<span class="pl-s1"><span class="pl-c1">$</span>view</span>, <span class="pl-c1">200</span>);
}</pre></div>
<p dir="auto">I'm trying to debug the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An Exception was thrown while handling: Type error: Argument 1 passed to
FOSRestBundleSerializerSymfonySerializerAdapter_0000000052c9fc6b000000005a32441d7f491784
a700368952f1ec7813de5f79::__construct() must implement interface
Symfony\Component\Serializer\SerializerInterface, instance of Closure given, called in
/tmpfs/dev/cache/appDevDebugProjectContainer.php on line 2766"><pre class="notranslate"><code class="notranslate">An Exception was thrown while handling: Type error: Argument 1 passed to
FOSRestBundleSerializerSymfonySerializerAdapter_0000000052c9fc6b000000005a32441d7f491784
a700368952f1ec7813de5f79::__construct() must implement interface
Symfony\Component\Serializer\SerializerInterface, instance of Closure given, called in
/tmpfs/dev/cache/appDevDebugProjectContainer.php on line 2766
</code></pre></div>
<p dir="auto">Even when using the JMSSerializer I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An Exception was thrown while handling: Type error: Argument 1 passed to
FOSRestBundleSerializerJMSSerializerAdapter_000000003e79141b0000000013a926a47f491784a70
0368952f1ec7813de5f79::__construct() must implement interface JMS\Serializer\SerializerInterface,
instance of Closure given, called in /tmpfs/dev/cache/appDevDebugProjectContainer.php on line 2789"><pre class="notranslate"><code class="notranslate">An Exception was thrown while handling: Type error: Argument 1 passed to
FOSRestBundleSerializerJMSSerializerAdapter_000000003e79141b0000000013a926a47f491784a70
0368952f1ec7813de5f79::__construct() must implement interface JMS\Serializer\SerializerInterface,
instance of Closure given, called in /tmpfs/dev/cache/appDevDebugProjectContainer.php on line 2789
</code></pre></div>
<p dir="auto">This is the generated code:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/**
* Gets the 'fos_rest.serializer' service.
*
* This service is shared.
* This method always returns the same instance of the service.
*
* @param bool $lazyLoad whether to try lazy-loading the service with a proxy
*
* @return \FOS\RestBundle\Serializer\JMSSerializerAdapter A FOS\RestBundle\Serializer\JMSSerializerAdapter instance.
*/
public function getFosRest_SerializerService($lazyLoad = true)
{
if ($lazyLoad) {
$container = $this;
return $this->services['fos_rest.serializer'] = new FOSRestBundleSerializerJMSSerializerAdapter_000000003e79141b0000000013a926a47f491784a
700368952f1ec7813de5f79(
function (&$wrappedInstance, \ProxyManager\Proxy\LazyLoadingInterface $proxy) use ($container) {
$wrappedInstance = $container->getFosRest_SerializerService(false);
$proxy->setProxyInitializer(null);
return true;
}
);
}
return new \FOS\RestBundle\Serializer\JMSSerializerAdapter($this->get('jms_serializer'));
}"><pre class="notranslate"><span class="pl-c">/**</span>
<span class="pl-c"> * Gets the 'fos_rest.serializer' service.</span>
<span class="pl-c"> *</span>
<span class="pl-c"> * This service is shared.</span>
<span class="pl-c"> * This method always returns the same instance of the service.</span>
<span class="pl-c"> *</span>
<span class="pl-c"> * @param bool $lazyLoad whether to try lazy-loading the service with a proxy</span>
<span class="pl-c"> *</span>
<span class="pl-c"> * @return \FOS\RestBundle\Serializer\JMSSerializerAdapter A FOS\RestBundle\Serializer\JMSSerializerAdapter instance.</span>
<span class="pl-c"> */</span>
<span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">getFosRest_SerializerService</span>(<span class="pl-s1"><span class="pl-c1">$</span>lazyLoad</span> = <span class="pl-c1">true</span>)
{
<span class="pl-k">if</span> (<span class="pl-s1"><span class="pl-c1">$</span>lazyLoad</span>) {
<span class="pl-s1"><span class="pl-c1">$</span>container</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>;
<span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-c1">services</span>[<span class="pl-s">'fos_rest.serializer'</span>] = <span class="pl-k">new</span> <span class="pl-v">FOSRestBundleSerializerJMSSerializerAdapter_000000003e79141b0000000013a926a47f491784a</span>
<span class="pl-c1">700368952</span>f1ec7813de5f79(
<span class="pl-k">function</span> (&<span class="pl-s1"><span class="pl-c1">$</span>wrappedInstance</span>, <span class="pl-smi"><span class="pl-smi">\<span class="pl-v">ProxyManager</span>\<span class="pl-v">Proxy</span>\<span class="pl-v">LazyLoadingInterface</span></span></span> <span class="pl-s1"><span class="pl-c1">$</span>proxy</span>) <span class="pl-k">use</span> (<span class="pl-s1"><span class="pl-c1">$</span>container</span>) {
<span class="pl-s1"><span class="pl-c1">$</span>wrappedInstance</span> = <span class="pl-s1"><span class="pl-c1">$</span>container</span>-><span class="pl-en">getFosRest_SerializerService</span>(<span class="pl-c1">false</span>);
<span class="pl-s1"><span class="pl-c1">$</span>proxy</span>-><span class="pl-en">setProxyInitializer</span>(<span class="pl-c1">null</span>);
<span class="pl-k">return</span> <span class="pl-c1">true</span>;
}
);
}
<span class="pl-k">return</span> <span class="pl-k">new</span> \<span class="pl-c1">FOS</span>\<span class="pl-v">RestBundle</span>\<span class="pl-v">Serializer</span>\<span class="pl-v">JMSSerializerAdapter</span>(<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-><span class="pl-en">get</span>(<span class="pl-s">'jms_serializer'</span>));
}</pre></div>
<p dir="auto">Any idea where I should start looking for this problem?<br>
I've also seen it in another project (unsolved).</p> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/8b204fa74ef59a859dc39ed963048becf27118c19162f1bc079d147796d46f63/687474703a2f2f692e696d6775722e636f6d2f7a41753945464b2e706e67"><img src="https://camo.githubusercontent.com/8b204fa74ef59a859dc39ed963048becf27118c19162f1bc079d147796d46f63/687474703a2f2f692e696d6775722e636f6d2f7a41753945464b2e706e67" alt="" data-canonical-src="http://i.imgur.com/zAu9EFK.png" style="max-width: 100%;"></a></p>
<ol dir="auto">
<li><a href="http://getbootstrap.com/javascript/#carousel" rel="nofollow">http://getbootstrap.com/javascript/#carousel</a></li>
<li>Change <code class="notranslate">.carousel-control</code> width to <code class="notranslate">16px</code> from devtools</li>
</ol>
<p dir="auto">The left one is too close to the edge / the right one is too far from the edge.</p> | <p dir="auto">When your popover has non-html content (for example jquery object) and you reopen popover - events on content (jquery object) doesn't work.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stefanneculai/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stefanneculai">@stefanneculai</a> added <code class="notranslate">empty()</code> call in setContent (so jquery removes events). Commit:<br>
<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/41628c90a259101291a679fa112307a354fd32ee/hovercard" href="https://github.com/twbs/bootstrap/commit/41628c90a259101291a679fa112307a354fd32ee"><tt>41628c9</tt></a></p> | 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><br>
When using FormBuilder, FormGroup, FormControl, and Validators.required, the "required" and "ng-reflect-required" attributes are missing from the input. After <a href="https://angular.io/docs/ts/latest/guide/forms.html" rel="nofollow">this guide</a>:<br>
I use</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".ng-valid[required], .ng-valid.required {
...
}"><pre class="notranslate"><code class="notranslate">.ng-valid[required], .ng-valid.required {
...
}
</code></pre></div>
<p dir="auto">for signing inputs that are OK or erroneous. It sounds wrong to maintain validators in two different places.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
When Validators.required is added to the FormControl's synchronous validators, the .ng-valid[required] or .ng-valid.required should fire.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
<a href="http://plnkr.co/edit/dQTANsTnaFbwXXjC35gD?p=info" rel="nofollow">http://plnkr.co/edit/dQTANsTnaFbwXXjC35gD?p=info</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
It sounds wrong to maintain validators in two different places, but having such a CSS selector is nice to have.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Arch Linux i686, Apache</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.0</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all | Chrome XX | Firefox XX]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = v6.7.0</p>
</li>
</ul> | <p dir="auto"><strong>Steps to reproduce and a minimal demo of the problem</strong></p>
<p dir="auto"><a href="http://plnkr.co/edit/IAMpyeJl9rQlAcEFPoRs?p=preview" rel="nofollow">http://plnkr.co/edit/IAMpyeJl9rQlAcEFPoRs?p=preview</a></p>
<p dir="auto"><em>What steps should we try in your demo to see the problem?</em></p>
<ol dir="auto">
<li>put some input longer than 2 characters in the first input</li>
<li>try to put some input longer than 2 characters in the second input</li>
</ol>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">HTML5 specifies a number of validation attributes for form elements that browsers are able to interpret to various effects. These are useful for things like restricting input length (maxLength) and for doing DOM queries (e.g. find all required input elements).</p>
<p dir="auto">Currently, Angular2 applies validation for a number of these attributes if they are applied in the form template. However, when forms are built using FormBuilder, validation is defined in the ControlMeta object and not as attributes on the form elements. ngControl does not apply these validations as attributes to the host element, so when FormBuilder is used, either these attributes will not get defined and therefore the browser's HTML5 validation behavior will not be in effect or validation constraints must be duplicated in the form templates and ControlMeta.</p>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto">I think it would be useful to have the ngControl directive manage HTML5 validation attributes on the host form element based on the validators applied to the Control object.</p>
<p dir="auto"><strong>Other information</strong></p> | 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">bug report</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ec2_lc module</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">1.9.2</p>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">basic configuration</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">ec2_lc fail to create when no default vpc in region</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">:</p>
<ol dir="auto">
<li>delete default vpc in some region</li>
<li>create non-default vpc by hand or ec2_vpc module</li>
<li>try run</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- ec2_lc:
name: launch config
state: present
image_id: any
region: "{{ region }}"
key_name: any
security_groups: ['any group doesnt matter' ]
instance_type: t1.micro"><pre class="notranslate"><code class="notranslate">- ec2_lc:
name: launch config
state: present
image_id: any
region: "{{ region }}"
key_name: any
security_groups: ['any group doesnt matter' ]
instance_type: t1.micro
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Launch configuration should be created .<br>
like:<br>
awscli create launch config without any errors.<br>
aws web console show same error but anyway create config.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">error happen</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="failed: [127.0.0.1] => {"failed": true}
msg: BotoServerError: 400 Bad Request
<ErrorResponse xmlns="http://autoscaling.amazonaws.com/doc/2011-01-01/">
<Error>
<Type>Sender</Type>
<Code>ValidationError</Code>
<Message>No default VPC for this user</Message>
</Error>
<RequestId>a95979d7-28d0-11e5-a457-7b851bc22db7</RequestId>
</ErrorResponse>"><pre class="notranslate"><code class="notranslate">failed: [127.0.0.1] => {"failed": true}
msg: BotoServerError: 400 Bad Request
<ErrorResponse xmlns="http://autoscaling.amazonaws.com/doc/2011-01-01/">
<Error>
<Type>Sender</Type>
<Code>ValidationError</Code>
<Message>No default VPC for this user</Message>
</Error>
<RequestId>a95979d7-28d0-11e5-a457-7b851bc22db7</RequestId>
</ErrorResponse>
</code></pre></div>
<p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94596428" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/1719" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/1719/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/1719">ansible/ansible-modules-core#1719</a></p> | <h5 dir="auto">Issue Type:</h5>
<ul dir="auto">
<li>Bug Report
<ul dir="auto">
<li>feature request</li>
</ul>
</li>
</ul>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 1.9.3<br>
Also tried with the early 2.0.0 version.</p>
<h5 dir="auto">Ansible Configuration:</h5>
<p dir="auto">Nothing special, just the inventory, sudo_user, remote_user and added additional roles_path.</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Ubuntu 14.04 for manager and managed</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">I’m trying to auto-configure elb and asg, but when using the ec2_lc module for the preparation I get the error that I don’t have a default VPC</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">Try to run the prepare launch task using ec2_lc module without a default VPC</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">It should work even when no default VPC is used, or an option to declare the VPC would be helpful.</p>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="failed: [localhost] => {"failed": true}
msg: BotoServerError: 400 Bad Request
<ErrorResponse xmlns="http://autoscaling.amazonaws.com/doc/2011-01-01/">
<Error>
<Type>Sender</Type>
<Code>ValidationError</Code>
▽
1 ---
<Message>No default VPC for this user</Message>
</Error>
<RequestId>b4f24941-9384-32-9bc2-ef8e4ec57f44</RequestId>
</ErrorResponse>
FATAL: all hosts have already failed -- aborting"><pre class="notranslate"><code class="notranslate">failed: [localhost] => {"failed": true}
msg: BotoServerError: 400 Bad Request
<ErrorResponse xmlns="http://autoscaling.amazonaws.com/doc/2011-01-01/">
<Error>
<Type>Sender</Type>
<Code>ValidationError</Code>
▽
1 ---
<Message>No default VPC for this user</Message>
</Error>
<RequestId>b4f24941-9384-32-9bc2-ef8e4ec57f44</RequestId>
</ErrorResponse>
FATAL: all hosts have already failed -- aborting
</code></pre></div> | 1 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">Error text:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2175/2785] C:\Users\circleci\project\build\win_tmp\bin\sccache-cl.exe /TP -DAT_PARALLEL_OPENMP=1 -DCPUINFO_SUPPORTED_PLATFORM=1 -DFMT_HEADER_ONLY=1 -DIDEEP_USE_MKL -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTH_BLAS_MKL -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_DEPRECATE=1 -D_OPENMP_NOFORCE_MANIFEST -Dtorch_cpu_EXPORTS -Iaten\src -I..\aten\src -I. -I..\ -I..\cmake\..\third_party\benchmark\include -Icaffe2\contrib\aten -I..\third_party\onnx -Ithird_party\onnx -I..\third_party\foxi -Ithird_party\foxi -I..\caffe2\..\torch\csrc\api -I..\caffe2\..\torch\csrc\api\include -I..\caffe2\aten\src\TH -Icaffe2\aten\src\TH -I..\caffe2\..\torch\..\aten\src -Icaffe2\aten\src -Icaffe2\..\aten\src -Icaffe2\..\aten\src\ATen -I..\caffe2\..\torch\csrc -I..\caffe2\..\torch\..\third_party\miniz-2.0.8 -I..\aten\src\TH -I..\aten\..\third_party\catch\single_include -I..\aten\src\ATen\.. -Icaffe2\aten\src\ATen -I..\third_party\miniz-2.0.8 -I..\caffe2\core\nomnigraph\include -I..\c10\.. -Ithird_party\ideep\mkl-dnn\include -I..\third_party\ideep\mkl-dnn\src\..\include -I..\third_party\cpuinfo\include -I..\third_party\FP16\include -I..\third_party\fmt\include -I..\cmake\..\third_party\googletest\googlemock\include -I..\cmake\..\third_party\googletest\googletest\include -I..\third_party\protobuf\src -Iwin_tmp\mkl\include -I..\cmake\..\third_party\eigen -IC:\Jenkins\Miniconda3\include -IC:\Jenkins\Miniconda3\lib\site-packages\numpy\core\include -I..\cmake\..\third_party\pybind11\include -I..\third_party\ideep\mkl-dnn\include -I..\third_party\ideep\include -I..\caffe2 /DWIN32 /D_WINDOWS /GR /EHsc /w /bigobj -openmp -DNDEBUG -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /MD /O2 /Ob2 /DNDEBUG /w /bigobj -DNDEBUG -DUSE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD /Z7 /EHsc /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -O2 -DCAFFE2_BUILD_MAIN_LIB -DONNX_BUILD_MAIN_LIB -std:c++14 /showIncludes /Focaffe2\CMakeFiles\torch_cpu.dir\__\torch\csrc\jit\ir\alias_analysis.cpp.obj /Fdcaffe2\CMakeFiles\torch_cpu.dir\ /FS -c ..\torch\csrc\jit\ir\alias_analysis.cpp
FAILED: caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/ir/alias_analysis.cpp.obj
C:\Users\circleci\project\build\win_tmp\bin\sccache-cl.exe /TP -DAT_PARALLEL_OPENMP=1 -DCPUINFO_SUPPORTED_PLATFORM=1 -DFMT_HEADER_ONLY=1 -DIDEEP_USE_MKL -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTH_BLAS_MKL -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_DEPRECATE=1 -D_OPENMP_NOFORCE_MANIFEST -Dtorch_cpu_EXPORTS -Iaten\src -I..\aten\src -I. -I..\ -I..\cmake\..\third_party\benchmark\include -Icaffe2\contrib\aten -I..\third_party\onnx -Ithird_party\onnx -I..\third_party\foxi -Ithird_party\foxi -I..\caffe2\..\torch\csrc\api -I..\caffe2\..\torch\csrc\api\include -I..\caffe2\aten\src\TH -Icaffe2\aten\src\TH -I..\caffe2\..\torch\..\aten\src -Icaffe2\aten\src -Icaffe2\..\aten\src -Icaffe2\..\aten\src\ATen -I..\caffe2\..\torch\csrc -I..\caffe2\..\torch\..\third_party\miniz-2.0.8 -I..\aten\src\TH -I..\aten\..\third_party\catch\single_include -I..\aten\src\ATen\.. -Icaffe2\aten\src\ATen -I..\third_party\miniz-2.0.8 -I..\caffe2\core\nomnigraph\include -I..\c10\.. -Ithird_party\ideep\mkl-dnn\include -I..\third_party\ideep\mkl-dnn\src\..\include -I..\third_party\cpuinfo\include -I..\third_party\FP16\include -I..\third_party\fmt\include -I..\cmake\..\third_party\googletest\googlemock\include -I..\cmake\..\third_party\googletest\googletest\include -I..\third_party\protobuf\src -Iwin_tmp\mkl\include -I..\cmake\..\third_party\eigen -IC:\Jenkins\Miniconda3\include -IC:\Jenkins\Miniconda3\lib\site-packages\numpy\core\include -I..\cmake\..\third_party\pybind11\include -I..\third_party\ideep\mkl-dnn\include -I..\third_party\ideep\include -I..\caffe2 /DWIN32 /D_WINDOWS /GR /EHsc /w /bigobj -openmp -DNDEBUG -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /MD /O2 /Ob2 /DNDEBUG /w /bigobj -DNDEBUG -DUSE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD /Z7 /EHsc /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -O2 -DCAFFE2_BUILD_MAIN_LIB -DONNX_BUILD_MAIN_LIB -std:c++14 /showIncludes /Focaffe2\CMakeFiles\torch_cpu.dir\__\torch\csrc\jit\ir\alias_analysis.cpp.obj /Fdcaffe2\CMakeFiles\torch_cpu.dir\ /FS -c ..\torch\csrc\jit\ir\alias_analysis.cpp
error: failed to execute compile
caused by: error reading compile response from server
caused by: Failed to read response header
caused by: An existing connection was forcibly closed by the remote host. (os error 10054)"><pre class="notranslate"><code class="notranslate">[2175/2785] C:\Users\circleci\project\build\win_tmp\bin\sccache-cl.exe /TP -DAT_PARALLEL_OPENMP=1 -DCPUINFO_SUPPORTED_PLATFORM=1 -DFMT_HEADER_ONLY=1 -DIDEEP_USE_MKL -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTH_BLAS_MKL -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_DEPRECATE=1 -D_OPENMP_NOFORCE_MANIFEST -Dtorch_cpu_EXPORTS -Iaten\src -I..\aten\src -I. -I..\ -I..\cmake\..\third_party\benchmark\include -Icaffe2\contrib\aten -I..\third_party\onnx -Ithird_party\onnx -I..\third_party\foxi -Ithird_party\foxi -I..\caffe2\..\torch\csrc\api -I..\caffe2\..\torch\csrc\api\include -I..\caffe2\aten\src\TH -Icaffe2\aten\src\TH -I..\caffe2\..\torch\..\aten\src -Icaffe2\aten\src -Icaffe2\..\aten\src -Icaffe2\..\aten\src\ATen -I..\caffe2\..\torch\csrc -I..\caffe2\..\torch\..\third_party\miniz-2.0.8 -I..\aten\src\TH -I..\aten\..\third_party\catch\single_include -I..\aten\src\ATen\.. -Icaffe2\aten\src\ATen -I..\third_party\miniz-2.0.8 -I..\caffe2\core\nomnigraph\include -I..\c10\.. -Ithird_party\ideep\mkl-dnn\include -I..\third_party\ideep\mkl-dnn\src\..\include -I..\third_party\cpuinfo\include -I..\third_party\FP16\include -I..\third_party\fmt\include -I..\cmake\..\third_party\googletest\googlemock\include -I..\cmake\..\third_party\googletest\googletest\include -I..\third_party\protobuf\src -Iwin_tmp\mkl\include -I..\cmake\..\third_party\eigen -IC:\Jenkins\Miniconda3\include -IC:\Jenkins\Miniconda3\lib\site-packages\numpy\core\include -I..\cmake\..\third_party\pybind11\include -I..\third_party\ideep\mkl-dnn\include -I..\third_party\ideep\include -I..\caffe2 /DWIN32 /D_WINDOWS /GR /EHsc /w /bigobj -openmp -DNDEBUG -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /MD /O2 /Ob2 /DNDEBUG /w /bigobj -DNDEBUG -DUSE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD /Z7 /EHsc /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -O2 -DCAFFE2_BUILD_MAIN_LIB -DONNX_BUILD_MAIN_LIB -std:c++14 /showIncludes /Focaffe2\CMakeFiles\torch_cpu.dir\__\torch\csrc\jit\ir\alias_analysis.cpp.obj /Fdcaffe2\CMakeFiles\torch_cpu.dir\ /FS -c ..\torch\csrc\jit\ir\alias_analysis.cpp
FAILED: caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/jit/ir/alias_analysis.cpp.obj
C:\Users\circleci\project\build\win_tmp\bin\sccache-cl.exe /TP -DAT_PARALLEL_OPENMP=1 -DCPUINFO_SUPPORTED_PLATFORM=1 -DFMT_HEADER_ONLY=1 -DIDEEP_USE_MKL -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DONNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_torch -DTH_BLAS_MKL -DWIN32_LEAN_AND_MEAN -D_CRT_SECURE_NO_DEPRECATE=1 -D_OPENMP_NOFORCE_MANIFEST -Dtorch_cpu_EXPORTS -Iaten\src -I..\aten\src -I. -I..\ -I..\cmake\..\third_party\benchmark\include -Icaffe2\contrib\aten -I..\third_party\onnx -Ithird_party\onnx -I..\third_party\foxi -Ithird_party\foxi -I..\caffe2\..\torch\csrc\api -I..\caffe2\..\torch\csrc\api\include -I..\caffe2\aten\src\TH -Icaffe2\aten\src\TH -I..\caffe2\..\torch\..\aten\src -Icaffe2\aten\src -Icaffe2\..\aten\src -Icaffe2\..\aten\src\ATen -I..\caffe2\..\torch\csrc -I..\caffe2\..\torch\..\third_party\miniz-2.0.8 -I..\aten\src\TH -I..\aten\..\third_party\catch\single_include -I..\aten\src\ATen\.. -Icaffe2\aten\src\ATen -I..\third_party\miniz-2.0.8 -I..\caffe2\core\nomnigraph\include -I..\c10\.. -Ithird_party\ideep\mkl-dnn\include -I..\third_party\ideep\mkl-dnn\src\..\include -I..\third_party\cpuinfo\include -I..\third_party\FP16\include -I..\third_party\fmt\include -I..\cmake\..\third_party\googletest\googlemock\include -I..\cmake\..\third_party\googletest\googletest\include -I..\third_party\protobuf\src -Iwin_tmp\mkl\include -I..\cmake\..\third_party\eigen -IC:\Jenkins\Miniconda3\include -IC:\Jenkins\Miniconda3\lib\site-packages\numpy\core\include -I..\cmake\..\third_party\pybind11\include -I..\third_party\ideep\mkl-dnn\include -I..\third_party\ideep\include -I..\caffe2 /DWIN32 /D_WINDOWS /GR /EHsc /w /bigobj -openmp -DNDEBUG -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION /MD /O2 /Ob2 /DNDEBUG /w /bigobj -DNDEBUG -DUSE_GCC_GET_CPUID -DUSE_AVX -DUSE_AVX2 -DTH_HAVE_THREAD /Z7 /EHsc /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -O2 -DCAFFE2_BUILD_MAIN_LIB -DONNX_BUILD_MAIN_LIB -std:c++14 /showIncludes /Focaffe2\CMakeFiles\torch_cpu.dir\__\torch\csrc\jit\ir\alias_analysis.cpp.obj /Fdcaffe2\CMakeFiles\torch_cpu.dir\ /FS -c ..\torch\csrc\jit\ir\alias_analysis.cpp
error: failed to execute compile
caused by: error reading compile response from server
caused by: Failed to read response header
caused by: An existing connection was forcibly closed by the remote host. (os error 10054)
</code></pre></div>
<p dir="auto">PyTorch jobs:<br>
<a href="https://circleci.com/gh/pytorch/pytorch/5412064?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link" rel="nofollow">https://circleci.com/gh/pytorch/pytorch/5412064?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link</a><br>
<a href="https://circleci.com/gh/pytorch/pytorch/5408975?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link" rel="nofollow">https://circleci.com/gh/pytorch/pytorch/5408975?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link</a></p>
<p dir="auto">Binary jobs:<br>
<a href="https://circleci.com/gh/pytorch/pytorch/5413952?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link" rel="nofollow">https://circleci.com/gh/pytorch/pytorch/5413952?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link</a></p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>python setup.py build</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Build pass.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">Please copy and paste the output from our<br>
<a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br>
(or fill out the checklist below manually).</p>
<p dir="auto">You can get the script and run it with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
</code></pre></div>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): master</li>
<li>OS (e.g., Linux): Windows</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): source</li>
<li>Build command you used (if compiling from source): python setup.py build</li>
<li>Python version: 3.6</li>
<li>CUDA/cuDNN version: N/A</li>
<li>GPU models and configuration: N/A</li>
<li>Any other relevant information:</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Related: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="479248639" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/24145" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/24145/hovercard" href="https://github.com/pytorch/pytorch/issues/24145">#24145</a></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/seemethere/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/seemethere">@seemethere</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peterjc123/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peterjc123">@peterjc123</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nbcsm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nbcsm">@nbcsm</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/guyang3532/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/guyang3532">@guyang3532</a></p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">Use multinomial on cuda without replacement, it generates repeated items occasionally.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for i in range(10000):
for j in torch.ones(600,30000,device="cuda").multinomial(1000):
if j.size()!=j.unique().size():
print('error')"><pre class="notranslate"><span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">10000</span>):
<span class="pl-k">for</span> <span class="pl-s1">j</span> <span class="pl-c1">in</span> <span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">600</span>,<span class="pl-c1">30000</span>,<span class="pl-s1">device</span><span class="pl-c1">=</span><span class="pl-s">"cuda"</span>).<span class="pl-en">multinomial</span>(<span class="pl-c1">1000</span>):
<span class="pl-k">if</span> <span class="pl-s1">j</span>.<span class="pl-en">size</span>()<span class="pl-c1">!=</span><span class="pl-s1">j</span>.<span class="pl-en">unique</span>().<span class="pl-en">size</span>():
<span class="pl-en">print</span>(<span class="pl-s">'error'</span>)</pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">That error shall never be printed out, but it did.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">python 3.6, pytorch 1.0.0, anaconda3, CUDA 9.1<br>
Let me know if you cannot reproduce it</p>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Spending a whole day to debug my own project code, thinking of underflow or overflow or any of my fault. It turns out the GPU version of multinomial is just bs, feels bad man.</p> | 0 |
<p dir="auto">Apparently this works well in practice and it's pretty robust and can work on heterogeneous columns.<br>
The idea is to univariately sample from the training set. The obvious downside is that you have to store the training set.<br>
For few unique values we could store the counts, but that would require separately treating those with few unique values and standard continuous.<br>
Though for the continuous case we could also use binning to get around storing the training set.... hm...</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thomasjpfan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thomasjpfan">@thomasjpfan</a></p> | <p dir="auto">The purpose would be to provide an unbiased, stochastic, univariate imputer. The imputer would replace missing values by values sampled uniformly at random from the non-missing values of the sample column.</p>
<p dir="auto">This would require to add additional <code class="notranslate">random_state</code> constructor parameter to the class.</p>
<p dir="auto">As for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="329773579" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/11208" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/11208/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/11208">#11208</a> this strategy should work both on numerical and non-numerical dtypes.</p> | 1 |
<p dir="auto">We have been iterating on Dashboard native filer behind the feature flag after announcing phase 1 testing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="771409531" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/12148" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/12148/hovercard" href="https://github.com/apache/superset/issues/12148">#12148</a></p>
<p dir="auto">All bugs that are identified have been fixed, lots of new features have been added since then, based on request and feedback from the community. We are heavily testing this week and will make all features fully available in days.</p>
<p dir="auto">Many thanks to all the contributors(phase 2) <g-emoji class="g-emoji" alias="pray" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f64f.png">🙏</g-emoji><br>
Project lead: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/villebro/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/villebro">@villebro</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/simcha90/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/simcha90">@simcha90</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/agatapst/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/agatapst">@agatapst</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zhaoyongjie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zhaoyongjie">@zhaoyongjie</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/amitmiran137/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/amitmiran137">@amitmiran137</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/suddjian/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/suddjian">@suddjian</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67837651/110897832-06d03f80-82b3-11eb-8d4b-03e563b5bb73.png"><img width="1892" alt="Screen Shot 2021-03-11 at 9 44 42 PM" src="https://user-images.githubusercontent.com/67837651/110897832-06d03f80-82b3-11eb-8d4b-03e563b5bb73.png" style="max-width: 100%;"></a></p>
<ol dir="auto">
<li>Range filter!!<br>
User now can set up a range filter by selecting a numeric column. filter detects min and max values as DEFAULT VALUE. Set filter range by sliding.</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67837651/110895963-80fec500-82af-11eb-9583-1a8b1225cdc7.png"><img width="405" alt="Screen Shot 2021-03-11 at 9 18 19 PM" src="https://user-images.githubusercontent.com/67837651/110895963-80fec500-82af-11eb-9583-1a8b1225cdc7.png" style="max-width: 100%;"></a></p>
<ol start="2" dir="auto">
<li>Native time column select- Support multiple time columns!!</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67837651/110896105-c3280680-82af-11eb-8e4b-e72809573463.png"><img width="1885" alt="Screen Shot 2021-03-11 at 9 08 03 PM" src="https://user-images.githubusercontent.com/67837651/110896105-c3280680-82af-11eb-8e4b-e72809573463.png" style="max-width: 100%;"></a></p>
<ol start="3" dir="auto">
<li>Native time grain filter!!!</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67837651/110896187-ef438780-82af-11eb-81ee-6192203c0a4f.png"><img width="398" alt="Screen Shot 2021-03-11 at 9 22 19 PM" src="https://user-images.githubusercontent.com/67837651/110896187-ef438780-82af-11eb-81ee-6192203c0a4f.png" style="max-width: 100%;"></a></p>
<ol start="4" dir="auto">
<li>Native new time filter - support LAST, PREVIOUS, CUSTOM, free text and ADVANCED syntax!!</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67837651/110896580-c079e100-82b0-11eb-9265-9f2a8df126f8.png"><img width="777" alt="Screen Shot 2021-03-11 at 9 23 45 PM" src="https://user-images.githubusercontent.com/67837651/110896580-c079e100-82b0-11eb-9265-9f2a8df126f8.png" style="max-width: 100%;"></a></p>
<ol start="5" dir="auto">
<li>Sort value and multiple select by default</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67837651/110898042-60386e80-82b3-11eb-9000-b08eb9bada67.png"><img width="963" alt="Screen Shot 2021-03-11 at 9 47 11 PM" src="https://user-images.githubusercontent.com/67837651/110898042-60386e80-82b3-11eb-9000-b08eb9bada67.png" style="max-width: 100%;"></a></p>
<p dir="auto">To test, set "DASHBOARD_NATIVE_FILTERS": True in config.py</p>
<p dir="auto">Please comment in the thread if you find any issues. We will address reported issues(bug) ASAP!<br>
New feature requests will be considered, and implemented for next iteration in the future. <g-emoji class="g-emoji" alias="pray" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f64f.png">🙏</g-emoji></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>
<h3 dir="auto">Expected results</h3>
<h3 dir="auto">Actual results</h3>
<h3 dir="auto">Steps to reproduce</h3> | 0 |
<p dir="auto">react-select has a couple of typings issues, I think.</p>
<p dir="auto"><code class="notranslate">OptionRendererHandler</code>, and <code class="notranslate">ValueRendererHandler</code> incorrectly specify <code class="notranslate">option: Option<TValue></code> when it should be <code class="notranslate">option: TValue</code>.</p>
<p dir="auto">Debugging the callback shows that the raw/original object is sent to these handlers, not one wrapped in an <code class="notranslate">Option<T></code>.</p> | <p dir="auto">1>c:\Program Files (x86)\Microsoft SDKs\TypeScript\2.6\lib.es2015.iterable.d.ts(203,11): error TS2300: Build:Duplicate identifier 'Promise'.<br>
1>c:\Program Files (x86)\Microsoft SDKs\TypeScript\2.6\lib.es2015.promise.d.ts(223,13): error TS2300: Build:Duplicate identifier 'Promise'.<br>
1>c:\Program Files (x86)\Microsoft SDKs\TypeScript\2.6\lib.es2015.symbol.wellknown.d.ts(168,11): error TS2300: Build:Duplicate identifier 'Promise'.<br>
1>c:\Program Files (x86)\Microsoft SDKs\TypeScript\2.6\lib.es5.d.ts(1292,11): error TS2300: Build:Duplicate identifier 'Promise'.<br>
1>c:\users\username\node_modules@types\es6-promise\index.d.ts(11,15): error TS2300: Build:Duplicate identifier 'Promise'.<br>
1>c:\users\username\node_modules@types\es6-promise\index.d.ts(42,19): error TS2300: Build:Duplicate identifier 'Promise'.</p>
<p dir="auto">tsconfig: -</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"noStrictGenericChecks": true
}
}"><pre class="notranslate"><code class="notranslate">{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"noStrictGenericChecks": true
}
}
</code></pre></div>
<p dir="auto">Package.Json:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
{
"name": "angular-quickstart",
"version": "1.0.0",
"description": "QuickStart package.json from the documentation, supplemented with testing support",
"scripts": {
"build": "tsc -p src/",
"build:watch": "tsc -p src/ -w",
"build:e2e": "tsc -p e2e/",
"serve": "lite-server -c=bs-config.json",
"serve:e2e": "lite-server -c=bs-config.e2e.json",
"prestart": "npm run build",
"start": "concurrently \"npm run build:watch\" \"npm run serve\"",
"pree2e": "npm run build:e2e",
"e2e": "concurrently \"npm run serve:e2e\" \"npm run protractor\" --kill-others --success first",
"preprotractor": "webdriver-manager update",
"protractor": "protractor protractor.config.js",
"pretest": "npm run build",
"test": "concurrently \"npm run build:watch\" \"karma start karma.conf.js\"",
"pretest:once": "npm run build",
"test:once": "karma start karma.conf.js --single-run",
"lint": "tslint ./src/**/*.ts -t verbose"
},
"keywords": [],
"author": "",
"license": "MIT",
"dependencies": {
"@angular/common": "~4.3.4",
"@angular/compiler": "~4.3.4",
"@angular/core": "~4.3.4",
"@angular/forms": "~4.3.4",
"@angular/http": "~4.3.4",
"@angular/platform-browser": "~4.3.4",
"@angular/platform-browser-dynamic": "~4.3.4",
"@angular/router": "~4.3.4",
"angular-in-memory-web-api": "~0.3.0",
"systemjs": "0.19.40",
"core-js": "^2.4.1",
"rxjs": "5.0.1",
"zone.js": "^0.8.4"
},
"devDependencies": {
"concurrently": "^3.2.0",
"lite-server": "^2.2.2",
"typescript": "2.6.0",
"canonical-path": "0.0.2",
"tslint": "^3.15.1",
"lodash": "^4.16.4",
"jasmine-core": "~2.4.1",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~4.0.14",
"rimraf": "^2.5.4",
"@types/node": "^6.0.46",
"@types/jasmine": "2.5.36"
},
"repository": {}
}
"><pre class="notranslate"><code class="notranslate">
{
"name": "angular-quickstart",
"version": "1.0.0",
"description": "QuickStart package.json from the documentation, supplemented with testing support",
"scripts": {
"build": "tsc -p src/",
"build:watch": "tsc -p src/ -w",
"build:e2e": "tsc -p e2e/",
"serve": "lite-server -c=bs-config.json",
"serve:e2e": "lite-server -c=bs-config.e2e.json",
"prestart": "npm run build",
"start": "concurrently \"npm run build:watch\" \"npm run serve\"",
"pree2e": "npm run build:e2e",
"e2e": "concurrently \"npm run serve:e2e\" \"npm run protractor\" --kill-others --success first",
"preprotractor": "webdriver-manager update",
"protractor": "protractor protractor.config.js",
"pretest": "npm run build",
"test": "concurrently \"npm run build:watch\" \"karma start karma.conf.js\"",
"pretest:once": "npm run build",
"test:once": "karma start karma.conf.js --single-run",
"lint": "tslint ./src/**/*.ts -t verbose"
},
"keywords": [],
"author": "",
"license": "MIT",
"dependencies": {
"@angular/common": "~4.3.4",
"@angular/compiler": "~4.3.4",
"@angular/core": "~4.3.4",
"@angular/forms": "~4.3.4",
"@angular/http": "~4.3.4",
"@angular/platform-browser": "~4.3.4",
"@angular/platform-browser-dynamic": "~4.3.4",
"@angular/router": "~4.3.4",
"angular-in-memory-web-api": "~0.3.0",
"systemjs": "0.19.40",
"core-js": "^2.4.1",
"rxjs": "5.0.1",
"zone.js": "^0.8.4"
},
"devDependencies": {
"concurrently": "^3.2.0",
"lite-server": "^2.2.2",
"typescript": "2.6.0",
"canonical-path": "0.0.2",
"tslint": "^3.15.1",
"lodash": "^4.16.4",
"jasmine-core": "~2.4.1",
"karma": "^1.3.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~4.0.14",
"rimraf": "^2.5.4",
"@types/node": "^6.0.46",
"@types/jasmine": "2.5.36"
},
"repository": {}
}
</code></pre></div>
<p dir="auto">npm 5.5.1<br>
node 8.9.1</p>
<p dir="auto">Any workaround?</p> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> [:A=>rand(2)]
1-element Array{Pair{Symbol,Array{Float64,1}},1}:
Error showing value of type Array{Pair{Symbol,Array{Float64,1}},1}:
ERROR: AssertionError: Array{Float64,1} is not a subtype of Pair{Symbol,Array{Float64,1}}
Stacktrace:
[1] typeinfo_prefix(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Array{Float64,1}) at ./arrayshow.jl:479
[2] show_vector(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Array{Float64,1}, ::Char, ::Char) at ./arrayshow.jl:432 (repeats 2 times)
[3] show at ./arrayshow.jl:446 [inlined]
[4] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Pair{Symbol,Array{Float64,1}}) at ./show.jl:579
[5] #sprint#345(::IOContext{REPL.Terminals.TTYTerminal}, ::Int64, ::Function, ::Function, ::Pair{Symbol,Array{Float64,1}}, ::Vararg{Pair{Symbol,Array{Float64,1}},N} where N) at ./strings/io.jl:91
[6] #sprint at ./<missing>:0 [inlined]
[7] alignment(::IOContext{REPL.Terminals.TTYTerminal}, ::Pair{Symbol,Array{Float64,1}}) at ./show.jl:1789
[8] alignment(::IOContext{REPL.Terminals.TTYTerminal}, ::Array{Pair{Symbol,Array{Float64,1}},1}, ::Base.OneTo{Int64}, ::Base.OneTo{Int64}, ::Int64, ::Int64, ::Int64) at ./arrayshow.jl:68
[9] print_matrix(::IOContext{REPL.Terminals.TTYTerminal}, ::Array{Pair{Symbol,Array{Float64,1}},1}, ::String, ::String, ::String, ::String, ::String, ::String, ::Int64, ::Int64) at ./arrayshow.jl:187
[10] print_matrix at ./arrayshow.jl:160 [inlined]
[11] print_array at ./arrayshow.jl:309 [inlined]
[12] show(::IOContext{REPL.Terminals.TTYTerminal}, ::MIME{Symbol("text/plain")}, ::Array{Pair{Symbol,Array{Float64,1}},1}) at ./arrayshow.jl:345
[13] display(::REPL.REPLDisplay{REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::Array{Pair{Symbol,Array{Float64,1}},1}) at /buildworker/worker/build_ubuntu64/build/usr/share/julia/site/v0.7/REPL/src/REPL.jl:131
[14] display(::REPL.REPLDisplay{REPL.LineEditREPL}, ::Array{Pair{Symbol,Array{Float64,1}},1}) at /buildworker/worker/build_ubuntu64/build/usr/share/julia/site/v0.7/REPL/src/REPL.jl:134
[15] display(::Array{Pair{Symbol,Array{Float64,1}},1}) at ./multimedia.jl:287
[16] (::getfield(Base, Symbol("#inner#4")){Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},typeof(display),Tuple{Array{Pair{Symbol,Array{Float64,1}},1}}})() at ./essentials.jl:639
[17] #invokelatest#3 at ./essentials.jl:640 [inlined]
[18] invokelatest at ./essentials.jl:639 [inlined]
[19] print_response(::REPL.Terminals.TTYTerminal, ::Any, ::Nothing, ::Bool, ::Bool, ::Nothing) at /buildworker/worker/build_ubuntu64/build/usr/share/julia/site/v0.7/REPL/src/REPL.jl:152
[20] print_response(::REPL.LineEditREPL, ::Any, ::Nothing, ::Bool, ::Bool) at /buildworker/worker/build_ubuntu64/build/usr/share/julia/site/v0.7/REPL/src/REPL.jl:138
[21] (::getfield(REPL, Symbol("#do_respond#42")){Bool,getfield(REPL, Symbol("##52#61")){REPL.LineEditREPL,REPL.REPLHistoryProvider},REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /buildworker/worker/build_ubuntu64/build/usr/share/julia/site/v0.7/REPL/src/REPL.jl:704
[22] top-level scope"><pre class="notranslate"><code class="notranslate">julia> [:A=>rand(2)]
1-element Array{Pair{Symbol,Array{Float64,1}},1}:
Error showing value of type Array{Pair{Symbol,Array{Float64,1}},1}:
ERROR: AssertionError: Array{Float64,1} is not a subtype of Pair{Symbol,Array{Float64,1}}
Stacktrace:
[1] typeinfo_prefix(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Array{Float64,1}) at ./arrayshow.jl:479
[2] show_vector(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Array{Float64,1}, ::Char, ::Char) at ./arrayshow.jl:432 (repeats 2 times)
[3] show at ./arrayshow.jl:446 [inlined]
[4] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Pair{Symbol,Array{Float64,1}}) at ./show.jl:579
[5] #sprint#345(::IOContext{REPL.Terminals.TTYTerminal}, ::Int64, ::Function, ::Function, ::Pair{Symbol,Array{Float64,1}}, ::Vararg{Pair{Symbol,Array{Float64,1}},N} where N) at ./strings/io.jl:91
[6] #sprint at ./<missing>:0 [inlined]
[7] alignment(::IOContext{REPL.Terminals.TTYTerminal}, ::Pair{Symbol,Array{Float64,1}}) at ./show.jl:1789
[8] alignment(::IOContext{REPL.Terminals.TTYTerminal}, ::Array{Pair{Symbol,Array{Float64,1}},1}, ::Base.OneTo{Int64}, ::Base.OneTo{Int64}, ::Int64, ::Int64, ::Int64) at ./arrayshow.jl:68
[9] print_matrix(::IOContext{REPL.Terminals.TTYTerminal}, ::Array{Pair{Symbol,Array{Float64,1}},1}, ::String, ::String, ::String, ::String, ::String, ::String, ::Int64, ::Int64) at ./arrayshow.jl:187
[10] print_matrix at ./arrayshow.jl:160 [inlined]
[11] print_array at ./arrayshow.jl:309 [inlined]
[12] show(::IOContext{REPL.Terminals.TTYTerminal}, ::MIME{Symbol("text/plain")}, ::Array{Pair{Symbol,Array{Float64,1}},1}) at ./arrayshow.jl:345
[13] display(::REPL.REPLDisplay{REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::Array{Pair{Symbol,Array{Float64,1}},1}) at /buildworker/worker/build_ubuntu64/build/usr/share/julia/site/v0.7/REPL/src/REPL.jl:131
[14] display(::REPL.REPLDisplay{REPL.LineEditREPL}, ::Array{Pair{Symbol,Array{Float64,1}},1}) at /buildworker/worker/build_ubuntu64/build/usr/share/julia/site/v0.7/REPL/src/REPL.jl:134
[15] display(::Array{Pair{Symbol,Array{Float64,1}},1}) at ./multimedia.jl:287
[16] (::getfield(Base, Symbol("#inner#4")){Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},typeof(display),Tuple{Array{Pair{Symbol,Array{Float64,1}},1}}})() at ./essentials.jl:639
[17] #invokelatest#3 at ./essentials.jl:640 [inlined]
[18] invokelatest at ./essentials.jl:639 [inlined]
[19] print_response(::REPL.Terminals.TTYTerminal, ::Any, ::Nothing, ::Bool, ::Bool, ::Nothing) at /buildworker/worker/build_ubuntu64/build/usr/share/julia/site/v0.7/REPL/src/REPL.jl:152
[20] print_response(::REPL.LineEditREPL, ::Any, ::Nothing, ::Bool, ::Bool) at /buildworker/worker/build_ubuntu64/build/usr/share/julia/site/v0.7/REPL/src/REPL.jl:138
[21] (::getfield(REPL, Symbol("#do_respond#42")){Bool,getfield(REPL, Symbol("##52#61")){REPL.LineEditREPL,REPL.REPLHistoryProvider},REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /buildworker/worker/build_ubuntu64/build/usr/share/julia/site/v0.7/REPL/src/REPL.jl:704
[22] top-level scope
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> versioninfo()
Julia Version 0.7.0-DEV.4390
Commit 79c7bdd9ec (2018-02-26 07:59 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, haswell)
Environment:
JULIA_BINDIR = /opt/julia/bin
JULIA_HOME = /opt/julia0p6/bin"><pre class="notranslate"><code class="notranslate">julia> versioninfo()
Julia Version 0.7.0-DEV.4390
Commit 79c7bdd9ec (2018-02-26 07:59 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, haswell)
Environment:
JULIA_BINDIR = /opt/julia/bin
JULIA_HOME = /opt/julia0p6/bin
</code></pre></div> | <p dir="auto">Would be useful for many packages, JuliennedArrays, LightQuery, SplitApplyCombine, MappedArrays, Query, etc. Base already has an AbstractEltypelessArray: the lazy broadcast machinery, it would just be a matter of formalizing the interface. Given that traits aren't coming any time soon, it couldn't be <code class="notranslate"><: AbstractArray</code>, so we would have to duplicate all of the machinery for <code class="notranslate">AbstactArrays</code>. I could try to build a prototype if people are interested?</p> | 0 |
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="919511943" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/10939" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/10939/hovercard" href="https://github.com/denoland/deno/pull/10939">#10939</a> we landed primordials into <code class="notranslate">deno_core</code>. They are frozen intrinsics that are not vulnerable to prototype pollution. We now need to undergo the tedious task to refactor all of our JS code to use these primordials. Here is the TODO list:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/webidl/00_webidl.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="935719507" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11227" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11227/hovercard" href="https://github.com/denoland/deno/pull/11227">#11227</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/00_infra.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="935830156" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11228" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11228/hovercard" href="https://github.com/denoland/deno/pull/11228">#11228</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/01_dom_exception.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="935830156" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11228" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11228/hovercard" href="https://github.com/denoland/deno/pull/11228">#11228</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/01_mimesniff.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="935830156" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11228" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11228/hovercard" href="https://github.com/denoland/deno/pull/11228">#11228</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/02_event.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936351352" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11264" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11264/hovercard" href="https://github.com/denoland/deno/pull/11264">#11264</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/02_structured_clone.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936499960" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11273" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11273/hovercard" href="https://github.com/denoland/deno/pull/11273">#11273</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/03_abort_signal.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936499960" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11273" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11273/hovercard" href="https://github.com/denoland/deno/pull/11273">#11273</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/04_global_interfaces.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936499960" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11273" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11273/hovercard" href="https://github.com/denoland/deno/pull/11273">#11273</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/05_base64.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936499960" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11273" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11273/hovercard" href="https://github.com/denoland/deno/pull/11273">#11273</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/06_streams.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936295887" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11251" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11251/hovercard" href="https://github.com/denoland/deno/pull/11251">#11251</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/08_text_encoding.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936499960" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11273" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11273/hovercard" href="https://github.com/denoland/deno/pull/11273">#11273</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/09_file.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="937907481" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11299" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11299/hovercard" href="https://github.com/denoland/deno/pull/11299">#11299</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/10_filereader.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="937907481" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11299" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11299/hovercard" href="https://github.com/denoland/deno/pull/11299">#11299</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/11_blob_url.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="937907481" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11299" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11299/hovercard" href="https://github.com/denoland/deno/pull/11299">#11299</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/web/12_location.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936499960" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11273" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11273/hovercard" href="https://github.com/denoland/deno/pull/11273">#11273</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/broadcast_channel/01_broadcast_channel.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/littledivy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/littledivy">@littledivy</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="935950236" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11231" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11231/hovercard" href="https://github.com/denoland/deno/pull/11231">#11231</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/console/01_colors.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/littledivy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/littledivy">@littledivy</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936266433" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11249" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11249/hovercard" href="https://github.com/denoland/deno/pull/11249">#11249</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/console/02_console.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/littledivy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/littledivy">@littledivy</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936266433" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11249" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11249/hovercard" href="https://github.com/denoland/deno/pull/11249">#11249</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/crypto/00_webidl.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/littledivy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/littledivy">@littledivy</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="935846020" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11229" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11229/hovercard" href="https://github.com/denoland/deno/pull/11229">#11229</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/crypto/01_crypto.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/littledivy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/littledivy">@littledivy</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="935846020" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11229" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11229/hovercard" href="https://github.com/denoland/deno/pull/11229">#11229</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/fetch/01_fetch_util.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satyarohith/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satyarohith">@satyarohith</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936379028" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11266" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11266/hovercard" href="https://github.com/denoland/deno/pull/11266">#11266</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/fetch/20_headers.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satyarohith/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satyarohith">@satyarohith</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936379028" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11266" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11266/hovercard" href="https://github.com/denoland/deno/pull/11266">#11266</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/fetch/21_formdata.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satyarohith/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satyarohith">@satyarohith</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936379028" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11266" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11266/hovercard" href="https://github.com/denoland/deno/pull/11266">#11266</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/fetch/22_body.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satyarohith/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satyarohith">@satyarohith</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936379028" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11266" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11266/hovercard" href="https://github.com/denoland/deno/pull/11266">#11266</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/fetch/22_http_client.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satyarohith/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satyarohith">@satyarohith</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936379028" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11266" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11266/hovercard" href="https://github.com/denoland/deno/pull/11266">#11266</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/fetch/23_request.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satyarohith/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satyarohith">@satyarohith</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936379028" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11266" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11266/hovercard" href="https://github.com/denoland/deno/pull/11266">#11266</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/fetch/23_response.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satyarohith/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satyarohith">@satyarohith</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936379028" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11266" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11266/hovercard" href="https://github.com/denoland/deno/pull/11266">#11266</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/fetch/26_fetch.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satyarohith/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satyarohith">@satyarohith</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936379028" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11266" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11266/hovercard" href="https://github.com/denoland/deno/pull/11266">#11266</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/net/01_net.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936253865" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11243" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11243/hovercard" href="https://github.com/denoland/deno/pull/11243">#11243</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/net/02_tls.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936253865" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11243" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11243/hovercard" href="https://github.com/denoland/deno/pull/11243">#11243</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/net/03_http.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936253865" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11243" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11243/hovercard" href="https://github.com/denoland/deno/pull/11243">#11243</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/net/04_net_unstable.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936253865" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11243" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11243/hovercard" href="https://github.com/denoland/deno/pull/11243">#11243</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/timers/01_timers.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SimonRask/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SimonRask">@SimonRask</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936319563" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11256" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11256/hovercard" href="https://github.com/denoland/deno/pull/11256">#11256</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/timers/02_performance.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SimonRask/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SimonRask">@SimonRask</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936319563" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11256" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11256/hovercard" href="https://github.com/denoland/deno/pull/11256">#11256</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/url/00_url.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="935660555" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11225" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11225/hovercard" href="https://github.com/denoland/deno/pull/11225">#11225</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/webgpu/01_webgpu.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936354511" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11265" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11265/hovercard" href="https://github.com/denoland/deno/pull/11265">#11265</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/webgpu/02_idl_types.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936354511" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11265" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11265/hovercard" href="https://github.com/denoland/deno/pull/11265">#11265</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/websocket/01_websocket.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/littledivy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/littledivy">@littledivy</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936214816" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11240" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11240/hovercard" href="https://github.com/denoland/deno/pull/11240">#11240</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> extensions/webstorage/01_webstorage.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/littledivy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/littledivy">@littledivy</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936191758" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11239" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11239/hovercard" href="https://github.com/denoland/deno/pull/11239">#11239</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/01_build.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936246670" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11241" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11241/hovercard" href="https://github.com/denoland/deno/pull/11241">#11241</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/01_errors.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936246670" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11241" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11241/hovercard" href="https://github.com/denoland/deno/pull/11241">#11241</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/01_version.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936246670" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11241" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11241/hovercard" href="https://github.com/denoland/deno/pull/11241">#11241</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/01_web_util.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936246670" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11241" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11241/hovercard" href="https://github.com/denoland/deno/pull/11241">#11241</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/06_util.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936246670" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11241" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11241/hovercard" href="https://github.com/denoland/deno/pull/11241">#11241</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/11_workers.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936246670" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11241" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11241/hovercard" href="https://github.com/denoland/deno/pull/11241">#11241</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/12_io.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936246670" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11241" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11241/hovercard" href="https://github.com/denoland/deno/pull/11241">#11241</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/13_buffer.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SimonRask/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SimonRask">@SimonRask</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265163" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11247" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11247/hovercard" href="https://github.com/denoland/deno/pull/11247">#11247</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/30_fs.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SimonRask/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SimonRask">@SimonRask</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265163" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11247" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11247/hovercard" href="https://github.com/denoland/deno/pull/11247">#11247</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/30_metrics.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SimonRask/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SimonRask">@SimonRask</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/30_os.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_compiler_api.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_diagnostics.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_error_stack.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_files.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_fs_events.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_permissions.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_plugins.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_process.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_read_file.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_signals.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_testing.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_tty.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/40_write_file.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/41_prompt.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/90_deno_ns.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> runtime/js/99_main.js (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bartlomieju/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bartlomieju">@bartlomieju</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936265221" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/11248" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/11248/hovercard" href="https://github.com/denoland/deno/pull/11248">#11248</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All the snippets of code that are executed from rust via deno_core / deno_runtime / deno at runtime</li>
</ul>
<p dir="auto">I will open some first PRs shortly that show how a migration of a file to primordials should look.</p>
<p dir="auto">If you want to convert some files, please comment on this issue before starting so we don't duplicate work.</p> | 0 |
|
<p dir="auto">Hey I know there are a lot of issue related but none on 4.6.1.</p>
<p dir="auto">The gif is really slow. I get it from direct file not an Url.</p>
<p dir="auto"><code class="notranslate">Glide.with(context).asGif().load(R.raw.update_needed).into(imageView);</code></p>
<p dir="auto">Some idea?</p> | <p dir="auto"><strong>Glide Version</strong>: 3.7.0</p>
<p dir="auto"><strong>Device/Android Version</strong>: 6.0</p>
<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:</p>
<p dir="auto">dump the image when resource ready and check the quality that decode from resource & cache</p>
<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(image.getContext()).load(uri).asBitmap().diskCacheStrategy(DiskCacheStrategy.RESULT)
.signature(key).listener(new GlideImageListener() {
@Override
public boolean onResourceReady(Bitmap resource, Uri uri,Target<Bitmap> target,boolean isFromMemoryCache, boolean isFirstResource) {
BitmapUtils.dumpBmp(resource, "res_" + System.currentTimeMillis());
return super.onResourceReady(resource, uri, target, isFromMemoryCache, isFirstResource);
}
}).into(new GlideImageTarget(image));"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">image</span>.<span class="pl-en">getContext</span>()).<span class="pl-en">load</span>(<span class="pl-s1">uri</span>).<span class="pl-en">asBitmap</span>().<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">RESULT</span>)
.<span class="pl-en">signature</span>(<span class="pl-s1">key</span>).<span class="pl-en">listener</span>(<span class="pl-k">new</span> <span class="pl-smi">GlideImageListener</span>() {
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">boolean</span> <span class="pl-en">onResourceReady</span>(<span class="pl-smi">Bitmap</span> <span class="pl-s1">resource</span>, <span class="pl-smi">Uri</span> <span class="pl-s1">uri</span>,<span class="pl-smi">Target</span><<span class="pl-smi">Bitmap</span>> <span class="pl-s1">target</span>,<span class="pl-smi">boolean</span> <span class="pl-s1">isFromMemoryCache</span>, <span class="pl-smi">boolean</span> <span class="pl-s1">isFirstResource</span>) {
<span class="pl-smi">BitmapUtils</span>.<span class="pl-en">dumpBmp</span>(<span class="pl-s1">resource</span>, <span class="pl-s">"res_"</span> + <span class="pl-smi">System</span>.<span class="pl-en">currentTimeMillis</span>());
<span class="pl-k">return</span> <span class="pl-en">super</span>.<span class="pl-en">onResourceReady</span>(<span class="pl-s1">resource</span>, <span class="pl-s1">uri</span>, <span class="pl-s1">target</span>, <span class="pl-s1">isFromMemoryCache</span>, <span class="pl-s1">isFirstResource</span>);
}
}).<span class="pl-en">into</span>(<span class="pl-k">new</span> <span class="pl-smi">GlideImageTarget</span>(<span class="pl-s1">image</span>));</pre></div>
<p dir="auto">dump compressed bitmap to jpeg & quality 100 and save the file.<br>
the resource bitmap and the cache are the same size(width&height) ,but different file length!!<br>
and resource bitmap quality is better than cahce one , they are different !!!</p>
<p dir="auto">I don't know which part changed the image quality<br>
so I write new ImageDecoder&ImageEncoder to test the part different , and still the same that save to cache before and decode from cache , the image quality had been changed.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(image.getContext()).load(uri).asBitmap().diskCacheStrategy(DiskCacheStrategy.RESULT).imageDecoder(new ImageDecoder(image.getContext())).encoder(new ImageEncoder())
.signature(key).listener(new GlideImageListener() {
@Override
public boolean onResourceReady(Bitmap resource, Uri uri,Target<Bitmap> target,boolean isFromMemoryCache, boolean isFirstResource) {
BitmapUtils.dumpBmp(resource, "res_" + System.currentTimeMillis());
return super.onResourceReady(resource, uri, target, isFromMemoryCache, isFirstResource);
}
}).into(new GlideImageTarget(image));
"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">image</span>.<span class="pl-en">getContext</span>()).<span class="pl-en">load</span>(<span class="pl-s1">uri</span>).<span class="pl-en">asBitmap</span>().<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">RESULT</span>).<span class="pl-en">imageDecoder</span>(<span class="pl-k">new</span> <span class="pl-smi">ImageDecoder</span>(<span class="pl-s1">image</span>.<span class="pl-en">getContext</span>())).<span class="pl-en">encoder</span>(<span class="pl-k">new</span> <span class="pl-smi">ImageEncoder</span>())
.<span class="pl-en">signature</span>(<span class="pl-s1">key</span>).<span class="pl-en">listener</span>(<span class="pl-k">new</span> <span class="pl-smi">GlideImageListener</span>() {
<span class="pl-c1">@</span><span class="pl-c1">Override</span>
<span class="pl-k">public</span> <span class="pl-smi">boolean</span> <span class="pl-en">onResourceReady</span>(<span class="pl-smi">Bitmap</span> <span class="pl-s1">resource</span>, <span class="pl-smi">Uri</span> <span class="pl-s1">uri</span>,<span class="pl-smi">Target</span><<span class="pl-smi">Bitmap</span>> <span class="pl-s1">target</span>,<span class="pl-smi">boolean</span> <span class="pl-s1">isFromMemoryCache</span>, <span class="pl-smi">boolean</span> <span class="pl-s1">isFirstResource</span>) {
<span class="pl-smi">BitmapUtils</span>.<span class="pl-en">dumpBmp</span>(<span class="pl-s1">resource</span>, <span class="pl-s">"res_"</span> + <span class="pl-smi">System</span>.<span class="pl-en">currentTimeMillis</span>());
<span class="pl-k">return</span> <span class="pl-en">super</span>.<span class="pl-en">onResourceReady</span>(<span class="pl-s1">resource</span>, <span class="pl-s1">uri</span>, <span class="pl-s1">target</span>, <span class="pl-s1">isFromMemoryCache</span>, <span class="pl-s1">isFirstResource</span>);
}
}).<span class="pl-en">into</span>(<span class="pl-k">new</span> <span class="pl-smi">GlideImageTarget</span>(<span class="pl-s1">image</span>));</pre></div>
<p dir="auto">so can you help me to check this issue ?</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=yatesco" rel="nofollow">Colin Yates</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1993?redirect=false" rel="nofollow">SPR-1993</a></strong> and commented</p>
<p dir="auto">IIRC calling RequestUtils.getStringParameter() for a request parameter which had no value would return "". In Spring 2.0M4 it throws a BindingException. This is wrong IMHO :) because there is an explicit getRequiredStringParameter, the implication being that getStringParameter will handle empty parameters as well as missing parameters.</p>
<p dir="auto">Stack trace:</p>
<p dir="auto">org.springframework.web.bind.ServletRequestBindingException: Required string parameter 'password' contains no value<br>
at org.springframework.web.bind.ServletRequestUtils$ParameterParser.validateRequiredParameter(ServletRequestUtils.java:530)<br>
at org.springframework.web.bind.ServletRequestUtils$StringParser.validateRequiredString(ServletRequestUtils.java:678)<br>
at org.springframework.web.bind.ServletRequestUtils.getRequiredStringParameter(ServletRequestUtils.java:492)<br>
at org.springframework.web.bind.ServletRequestUtils.getStringParameter(ServletRequestUtils.java:449)</p>
<p dir="auto">Use case: I have a form which allows a user to enter a password, that password may be null, or it may be empty, it seems acceptable to me that I should be able to do:</p>
<p dir="auto">String password = ServletRequestUtils.getStringParameter(request, PASSWORD_PARAM);<br>
if (!StringUtils.hasLength(password)) {</p>
<p dir="auto">}</p>
<p dir="auto">Thanks.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 M4</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="398065991" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6695" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6695/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6695">#6695</a> Unexpected results from ServletRequestUtils.getStringParameters when parameter has empty String (<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="398078349" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8212" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8212/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8212">#8212</a> Bug in ServletRequestUtils getStringParameter</li>
</ul>
<p dir="auto">2 votes, 3 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=paul4christ79" rel="nofollow">Paul Benedict</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6162?redirect=false" rel="nofollow">SPR-6162</a></strong> and commented</p>
<p dir="auto">Our team had two different context files with two bean definitions named the same. Truth be told, one developer didn't know another his other teammate already defined it elsewhere. Because bean definition classes weren't identical, the auto-wiring was failing (for apparently confounding reasons), and it took a while to track down what was going on.</p>
<p dir="auto">Now <beans> already has <code class="notranslate">@default-merge</code>, but what about a new <code class="notranslate">@default-override</code> to stop this kind of "gotcha"? A duplicate should fail the context load. We found the override message in our log file eventually, but it was at INFO (we think it should be WARN). In any event, the default of <code class="notranslate">@default-override</code> should be "true" to retain backwards compatibility.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6</p>
<p dir="auto">1 votes, 1 watchers</p> | 0 |
<h3 dir="auto">Describe the bug</h3>
<p dir="auto">See the reproduction source code. I select two same columns in Core. Result column descriptions are drastically different when compiled with SQLite dialect. That leads to crashes in the downstream projects that rely on <code class="notranslate">_result_columns</code>, for example, <a href="https://github.com/encode/databases/blob/master/databases/backends/sqlite.py#L180">encode/databases</a>. The subsequent crash is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" metadata = CursorResultMetaData(context, cursor.description)
/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/cursor.py:180: in __init__
raw = self._merge_cursor_description(
/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/cursor.py:415: in _merge_cursor_description
return [
/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/cursor.py:415: in <listcomp>
return [
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sqlalchemy.engine.cursor.CursorResultMetaData object at 0x7f2e0195bee0>
context = <sqlalchemy.dialects.sqlite.base.SQLiteExecutionContext object at 0x7f2e01928e50>
cursor_description = (('pr_node_id', None, None, None, None, None, ...), ('repository_full_name', None, None, None, None, None, ...), ('rel...e, None, None, ...), ('author', None, None, None, None, None, ...), ('merger', None, None, None, None, None, ...), ...)
result_columns = [('pr_node_id', 'pr_node_id', (Column('pr_node_id', BigInteger(), table=<done_pull_request_facts>, primary_key=True, n...(), table=<done_pull_request_facts>), 'merger', 'merger', 'github.done_pull_request_facts_merger'), BigInteger()), ...]
def _merge_textual_cols_by_position(
self, context, cursor_description, result_columns
):
num_ctx_cols = len(result_columns) if result_columns else None
if num_ctx_cols > len(cursor_description):
util.warn(
"Number of columns in textual SQL (%d) is "
"smaller than number of columns requested (%d)"
% (num_ctx_cols, len(cursor_description))
)
seen = set()
for (
idx,
colname,
untranslated,
coltype,
) in self._colnames_from_description(context, cursor_description):
if idx < num_ctx_cols:
ctx_rec = result_columns[idx]
obj = ctx_rec[RM_OBJECTS]
ridx = idx
mapped_type = ctx_rec[RM_TYPE]
> if obj[0] in seen:
E IndexError: tuple index out of range
/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/cursor.py:503: IndexError"><pre class="notranslate"><code class="notranslate"> metadata = CursorResultMetaData(context, cursor.description)
/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/cursor.py:180: in __init__
raw = self._merge_cursor_description(
/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/cursor.py:415: in _merge_cursor_description
return [
/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/cursor.py:415: in <listcomp>
return [
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sqlalchemy.engine.cursor.CursorResultMetaData object at 0x7f2e0195bee0>
context = <sqlalchemy.dialects.sqlite.base.SQLiteExecutionContext object at 0x7f2e01928e50>
cursor_description = (('pr_node_id', None, None, None, None, None, ...), ('repository_full_name', None, None, None, None, None, ...), ('rel...e, None, None, ...), ('author', None, None, None, None, None, ...), ('merger', None, None, None, None, None, ...), ...)
result_columns = [('pr_node_id', 'pr_node_id', (Column('pr_node_id', BigInteger(), table=<done_pull_request_facts>, primary_key=True, n...(), table=<done_pull_request_facts>), 'merger', 'merger', 'github.done_pull_request_facts_merger'), BigInteger()), ...]
def _merge_textual_cols_by_position(
self, context, cursor_description, result_columns
):
num_ctx_cols = len(result_columns) if result_columns else None
if num_ctx_cols > len(cursor_description):
util.warn(
"Number of columns in textual SQL (%d) is "
"smaller than number of columns requested (%d)"
% (num_ctx_cols, len(cursor_description))
)
seen = set()
for (
idx,
colname,
untranslated,
coltype,
) in self._colnames_from_description(context, cursor_description):
if idx < num_ctx_cols:
ctx_rec = result_columns[idx]
obj = ctx_rec[RM_OBJECTS]
ridx = idx
mapped_type = ctx_rec[RM_TYPE]
> if obj[0] in seen:
E IndexError: tuple index out of range
/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/cursor.py:503: IndexError
</code></pre></div>
<h3 dir="auto">To Reproduce</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy import Column, Integer, select
from sqlalchemy.dialects.sqlite import pysqlite
from sqlalchemy.engine import ExecutionContext
from sqlalchemy.ext.declarative import declarative_base
class Foo(declarative_base()):
__tablename__ = "whatever"
bar = Column(Integer(), primary_key=True)
class CompilationContext:
def __init__(self, context: ExecutionContext):
self.context = context
def main():
query = select([Foo.bar, Foo.bar])
compiled = query.compile(dialect=pysqlite.dialect(paramstyle="qmark"))
print(compiled._result_columns[0])
print(compiled._result_columns[1])
if __name__ == "__main__":
main()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">Column</span>, <span class="pl-v">Integer</span>, <span class="pl-s1">select</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">dialects</span>.<span class="pl-s1">sqlite</span> <span class="pl-k">import</span> <span class="pl-s1">pysqlite</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">engine</span> <span class="pl-k">import</span> <span class="pl-v">ExecutionContext</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">declarative</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span>
<span class="pl-k">class</span> <span class="pl-v">Foo</span>(<span class="pl-en">declarative_base</span>()):
<span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"whatever"</span>
<span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>(), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-k">class</span> <span class="pl-v">CompilationContext</span>:
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">context</span>: <span class="pl-v">ExecutionContext</span>):
<span class="pl-s1">self</span>.<span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-s1">context</span>
<span class="pl-k">def</span> <span class="pl-en">main</span>():
<span class="pl-s1">query</span> <span class="pl-c1">=</span> <span class="pl-en">select</span>([<span class="pl-v">Foo</span>.<span class="pl-s1">bar</span>, <span class="pl-v">Foo</span>.<span class="pl-s1">bar</span>])
<span class="pl-s1">compiled</span> <span class="pl-c1">=</span> <span class="pl-s1">query</span>.<span class="pl-en">compile</span>(<span class="pl-s1">dialect</span><span class="pl-c1">=</span><span class="pl-s1">pysqlite</span>.<span class="pl-en">dialect</span>(<span class="pl-s1">paramstyle</span><span class="pl-c1">=</span><span class="pl-s">"qmark"</span>))
<span class="pl-en">print</span>(<span class="pl-s1">compiled</span>.<span class="pl-s1">_result_columns</span>[<span class="pl-c1">0</span>])
<span class="pl-en">print</span>(<span class="pl-s1">compiled</span>.<span class="pl-s1">_result_columns</span>[<span class="pl-c1">1</span>])
<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>:
<span class="pl-en">main</span>()</pre></div>
<h3 dir="auto">Error</h3>
<p dir="auto">The provided code prints:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="('bar', 'bar', (Column('bar', Integer(), table=<whatever>, primary_key=True, nullable=False), 'bar', 'bar', 'whatever_bar'), Integer())
('bar__1', '%(575564119221534721 bar_)s', (), Integer())"><pre class="notranslate"><code class="notranslate">('bar', 'bar', (Column('bar', Integer(), table=<whatever>, primary_key=True, nullable=False), 'bar', 'bar', 'whatever_bar'), Integer())
('bar__1', '%(575564119221534721 bar_)s', (), Integer())
</code></pre></div>
<p dir="auto">The third tuple element in the second item is an empty tuple instead of a proper pointer to Column.</p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>OS: Ubuntu 20.04</li>
<li>Python: 3.8.10</li>
<li>SQLAlchemy: 1.4.29</li>
<li>Database: SQLite</li>
<li>DBAPI (eg: psycopg, cx_oracle, mysqlclient): pysqlite</li>
</ul>
<h3 dir="auto">Additional context</h3>
<p dir="auto">This code works differently on 1.3.x, it prints:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="('bar', 'bar', (Column('bar', Integer(), table=<whatever>, primary_key=True, nullable=False), 'bar', 'bar'), Integer())
Traceback (most recent call last):
File "reproduce.py", line 26, in <module>
main()
File "reproduce.py", line 22, in main
print(compiled._result_columns[1])
IndexError: list index out of range"><pre class="notranslate"><code class="notranslate">('bar', 'bar', (Column('bar', Integer(), table=<whatever>, primary_key=True, nullable=False), 'bar', 'bar'), Integer())
Traceback (most recent call last):
File "reproduce.py", line 26, in <module>
main()
File "reproduce.py", line 22, in main
print(compiled._result_columns[1])
IndexError: list index out of range
</code></pre></div>
<p dir="auto">In other words, 1.3.x does not generate the second element for the duplicate.</p> | <p dir="auto"><strong>Migrated issue, originally created by wenlong_lu</strong></p>
<p dir="auto">I have several large(billions of rows) tables which need upsert operations. I have checked the <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384613771" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/960" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/960/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/960">#960</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384626284" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/2551" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/2551/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/2551">#2551</a>, and still did not get what I want. if you think this is duplicated, pls close it.</p>
<h3 dir="auto">upsert idea from PostgreSQL official page</h3>
<p dir="auto">I just follow the idea presented on postgres page:<br>
<a href="http://www.postgresql.org/docs/9.4/static/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING" rel="nofollow">http://www.postgresql.org/docs/9.4/static/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING</a></p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CREATE TABLE db (a INT PRIMARY KEY, b TEXT);
CREATE FUNCTION merge_db(key INT, data TEXT) RETURNS VOID AS
$$
BEGIN
LOOP
-- first try to update the key
UPDATE db SET b = data WHERE a = key;
IF found THEN
RETURN;
END IF;
-- not there, so try to insert the key
-- if someone else inserts the same key concurrently,
-- we could get a unique-key failure
BEGIN
INSERT INTO db(a,b) VALUES (key, data);
RETURN;
EXCEPTION WHEN unique_violation THEN
-- Do nothing, and loop to try the UPDATE again.
END;
END LOOP;
END;
$$
LANGUAGE plpgsql;
SELECT merge_db(1, 'david');
SELECT merge_db(1, 'dennis')"><pre class="notranslate"><span class="pl-k">CREATE</span> <span class="pl-k">TABLE</span> <span class="pl-en">db</span> (a <span class="pl-k">INT</span> <span class="pl-k">PRIMARY KEY</span>, b <span class="pl-k">TEXT</span>);
<span class="pl-k">CREATE</span> <span class="pl-k">FUNCTION</span> <span class="pl-en">merge_db</span>(key <span class="pl-k">INT</span>, data <span class="pl-k">TEXT</span>) RETURNS VOID <span class="pl-k">AS</span>
$$
<span class="pl-k">BEGIN</span>
LOOP
<span class="pl-c"><span class="pl-c">--</span> first try to update the key</span>
<span class="pl-k">UPDATE</span> db <span class="pl-k">SET</span> b <span class="pl-k">=</span> data <span class="pl-k">WHERE</span> a <span class="pl-k">=</span> key;
IF found THEN
RETURN;
END IF;
<span class="pl-c"><span class="pl-c">--</span> not there, so try to insert the key</span>
<span class="pl-c"><span class="pl-c">--</span> if someone else inserts the same key concurrently,</span>
<span class="pl-c"><span class="pl-c">--</span> we could get a unique-key failure</span>
<span class="pl-k">BEGIN</span>
<span class="pl-k">INSERT INTO</span> db(a,b) <span class="pl-k">VALUES</span> (key, data);
RETURN;
EXCEPTION WHEN unique_violation THEN
<span class="pl-c"><span class="pl-c">--</span> Do nothing, and loop to try the UPDATE again.</span>
END;
END LOOP;
END;
$$
LANGUAGE plpgsql;
<span class="pl-k">SELECT</span> merge_db(<span class="pl-c1">1</span>, <span class="pl-s"><span class="pl-pds">'</span>david<span class="pl-pds">'</span></span>);
<span class="pl-k">SELECT</span> merge_db(<span class="pl-c1">1</span>, <span class="pl-s"><span class="pl-pds">'</span>dennis<span class="pl-pds">'</span></span>)</pre></div>
<h3 dir="auto">Our modified version</h3>
<p dir="auto">Since our insert and update statement are dynamic and complex type(jsonb, hstore, etc) involved, We prefer to build sql statements on sqlalchemy side. our pgsql script follows as:</p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="-- Function: merge_record(text, text)
-- DROP FUNCTION merge_record(text, text);
CREATE OR REPLACE FUNCTION merge_record(update_expression text, insert_expression text)
RETURNS integer AS
$BODY$
declare
row_affected integer;
BEGIN
-- usually loop twice would be ok, here we set max value as 50 times.
-- it should be enough
FOR i IN 1..50 LOOP
-- first try to update the key
execute update_expression;
GET DIAGNOSTICS row_affected = ROW_COUNT;
IF row_affected > 0 THEN
RETURN 1;
END IF;
-- not there, so try to insert the key
-- if someone else inserts the same key concurrently,
-- we could get a unique-key failure
BEGIN
execute insert_expression;
RETURN 1;
EXCEPTION WHEN unique_violation THEN
-- Do nothing, and loop to try the UPDATE again.
END;
END LOOP;
END;
$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
ALTER FUNCTION merge_record(text, text)
OWNER TO postgres;"><pre class="notranslate"><span class="pl-c"><span class="pl-c">--</span> Function: merge_record(text, text)</span>
<span class="pl-c"><span class="pl-c">--</span> DROP FUNCTION merge_record(text, text);</span>
<span class="pl-k">CREATE OR REPLACE</span> <span class="pl-k">FUNCTION</span> <span class="pl-en">merge_record</span>(update_expression <span class="pl-k">text</span>, insert_expression <span class="pl-k">text</span>)
RETURNS <span class="pl-k">integer</span> <span class="pl-k">AS</span>
$BODY$
declare
row_affected <span class="pl-k">integer</span>;
<span class="pl-k">BEGIN</span>
<span class="pl-c"><span class="pl-c">--</span> usually loop twice would be ok, here we set max value as 50 times.</span>
<span class="pl-c"><span class="pl-c">--</span> it should be enough</span>
FOR i <span class="pl-k">IN</span> <span class="pl-c1">1</span>..<span class="pl-c1">50</span> LOOP
<span class="pl-c"><span class="pl-c">--</span> first try to update the key</span>
execute update_expression;
GET DIAGNOSTICS row_affected <span class="pl-k">=</span> ROW_COUNT;
IF row_affected <span class="pl-k">></span> <span class="pl-c1">0</span> THEN
RETURN <span class="pl-c1">1</span>;
END IF;
<span class="pl-c"><span class="pl-c">--</span> not there, so try to insert the key</span>
<span class="pl-c"><span class="pl-c">--</span> if someone else inserts the same key concurrently,</span>
<span class="pl-c"><span class="pl-c">--</span> we could get a unique-key failure</span>
<span class="pl-k">BEGIN</span>
execute insert_expression;
RETURN <span class="pl-c1">1</span>;
EXCEPTION WHEN unique_violation THEN
<span class="pl-c"><span class="pl-c">--</span> Do nothing, and loop to try the UPDATE again.</span>
END;
END LOOP;
END;
$BODY$
LANGUAGE plpgsql VOLATILE
COST <span class="pl-c1">100</span>;
<span class="pl-k">ALTER</span> <span class="pl-k">FUNCTION</span> merge_record(<span class="pl-k">text</span>, <span class="pl-k">text</span>)
OWNER TO postgres;</pre></div>
<h3 dir="auto">Target script to be generated</h3>
<p dir="auto">SO what i want to build on client side is</p>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="select merge_record(update_expression, insert_expression);
e.g.
select merge_record(
'update target_table set s1="v1", jsonb2={"k1": "v1", "k1": "v2"}, hstore3={"k3"=>"v3", "k4"=>"v4"} where unique_id=45678766',
'insert into target_table (s1, jsonb2, hstore3, unique_id) VALUES("v1", {"k1": "v1", "k1": "v2"}, {"k3"=>"v3", "k4"=>"v4"}, 45678766)'
);"><pre class="notranslate"><span class="pl-k">select</span> merge_record(update_expression, insert_expression);
<span class="pl-c1">e</span>.<span class="pl-c1">g</span>.
<span class="pl-k">select</span> merge_record(
<span class="pl-s"><span class="pl-pds">'</span>update target_table set s1="v1", jsonb2={"k1": "v1", "k1": "v2"}, hstore3={"k3"=>"v3", "k4"=>"v4"} where unique_id=45678766<span class="pl-pds">'</span></span>,
<span class="pl-s"><span class="pl-pds">'</span>insert into target_table (s1, jsonb2, hstore3, unique_id) VALUES("v1", {"k1": "v1", "k1": "v2"}, {"k3"=>"v3", "k4"=>"v4"}, 45678766)<span class="pl-pds">'</span></span>
);</pre></div>
<h3 dir="auto">Problems we encountered</h3>
<p dir="auto">WE have used sqlalchemy SQL language expression to build the SQL statements dynamically. BUT the problem is that, values have many special characters, like $, \n etc (some of them are html text, so everything is possible). The exceptions are, that is invalid SQL statements generated, always happen several times per month.</p>
<h2 dir="auto">Reasons for the problems</h2>
<p dir="auto"><strong>SO we think we must miss sth</strong>. pls give some suggestion if any. related code follows as:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="raw_upsert_sql_statement = "select merge_record('%s', '%s')" % (update_expression, insert_expression)
conn.execute(text(raw_upsert_sql_statement))
insert_expression
dialect = postgresql.dialect()
target_table = self.__table__
stmt = target_table.insert().values(attr_value_hash)
sql_template = unicode(stmt.compile(dialect=dialect))
attr_value_hash = self._convert_safe_sql_str(attr_value_hash)
insert_expression = sql_template % (attr_value_hash)
update_expression
dialect = postgresql.dialect()
stmt = target_table.update().where(eval(self.condition_script)).values(attr_template_hash)
sql_template = unicode(stmt.compile(dialect=dialect))
attr_value_hash = self._convert_safe_sql_str(attr_value_hash)
update_expression = sql_template % (attr_value_hash)
### this should be the stupid parts
def _convert_safe_sql_str(self, params):
ret_params = {}
log.debug("Before converting: %s" % params)
# error:'dict' object does not support indexing
# fix: replace("%", "%%")
for k, v in params.iteritems():
try:
if type(v) in (datetime, str, unicode):
ret_params[k] = ('$$%s$$' % v).replace("'", "").replace("%", "%%")
elif type(v) in (MutableList, list):
ret_params[k] = ('$$%s$$' % v).replace("[", "{").replace("]", "}").replace("u'", "").replace("'", "").replace("%", "%%")
elif type(v) == MutableDict:
ret_params[k] = ('$$%s$$' % v).replace("{", "").replace("}", "").replace(":", "=>").replace("'", "").replace("%", "%%")
elif type(v) == dict:
ret_params[k] = ('$$%s$$' % json.dumps(v)).replace("\'", "").replace("%", "%%")
elif type(v) in (int, bool, float):
ret_params[k] = v
except Exception as ex:
log.error(ex.message)
log.error(traceback.format_exc())
raise ex
log.debug("After converting: %s" % ret_params)
return ret_params"><pre class="notranslate"><span class="pl-s1">raw_upsert_sql_statement</span> <span class="pl-c1">=</span> <span class="pl-s">"select merge_record('%s', '%s')"</span> <span class="pl-c1">%</span> (<span class="pl-s1">update_expression</span>, <span class="pl-s1">insert_expression</span>)
<span class="pl-s1">conn</span>.<span class="pl-en">execute</span>(<span class="pl-en">text</span>(<span class="pl-s1">raw_upsert_sql_statement</span>))
<span class="pl-s1">insert_expression</span>
<span class="pl-s1">dialect</span> <span class="pl-c1">=</span> <span class="pl-s1">postgresql</span>.<span class="pl-en">dialect</span>()
<span class="pl-s1">target_table</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">__table__</span>
<span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-s1">target_table</span>.<span class="pl-en">insert</span>().<span class="pl-en">values</span>(<span class="pl-s1">attr_value_hash</span>)
<span class="pl-s1">sql_template</span> <span class="pl-c1">=</span> <span class="pl-en">unicode</span>(<span class="pl-s1">stmt</span>.<span class="pl-en">compile</span>(<span class="pl-s1">dialect</span><span class="pl-c1">=</span><span class="pl-s1">dialect</span>))
<span class="pl-s1">attr_value_hash</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_convert_safe_sql_str</span>(<span class="pl-s1">attr_value_hash</span>)
<span class="pl-s1">insert_expression</span> <span class="pl-c1">=</span> <span class="pl-s1">sql_template</span> <span class="pl-c1">%</span> (<span class="pl-s1">attr_value_hash</span>)
<span class="pl-s1">update_expression</span>
<span class="pl-s1">dialect</span> <span class="pl-c1">=</span> <span class="pl-s1">postgresql</span>.<span class="pl-en">dialect</span>()
<span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-s1">target_table</span>.<span class="pl-en">update</span>().<span class="pl-en">where</span>(<span class="pl-en">eval</span>(<span class="pl-s1">self</span>.<span class="pl-s1">condition_script</span>)).<span class="pl-en">values</span>(<span class="pl-s1">attr_template_hash</span>)
<span class="pl-s1">sql_template</span> <span class="pl-c1">=</span> <span class="pl-en">unicode</span>(<span class="pl-s1">stmt</span>.<span class="pl-en">compile</span>(<span class="pl-s1">dialect</span><span class="pl-c1">=</span><span class="pl-s1">dialect</span>))
<span class="pl-s1">attr_value_hash</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_convert_safe_sql_str</span>(<span class="pl-s1">attr_value_hash</span>)
<span class="pl-s1">update_expression</span> <span class="pl-c1">=</span> <span class="pl-s1">sql_template</span> <span class="pl-c1">%</span> (<span class="pl-s1">attr_value_hash</span>)
<span class="pl-c">### this should be the stupid parts</span>
<span class="pl-k">def</span> <span class="pl-en">_convert_safe_sql_str</span>(<span class="pl-s1">self</span>, <span class="pl-s1">params</span>):
<span class="pl-s1">ret_params</span> <span class="pl-c1">=</span> {}
<span class="pl-s1">log</span>.<span class="pl-en">debug</span>(<span class="pl-s">"Before converting: %s"</span> <span class="pl-c1">%</span> <span class="pl-s1">params</span>)
<span class="pl-c"># error:'dict' object does not support indexing</span>
<span class="pl-c"># fix: replace("%", "%%")</span>
<span class="pl-k">for</span> <span class="pl-s1">k</span>, <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">params</span>.<span class="pl-en">iteritems</span>():
<span class="pl-k">try</span>:
<span class="pl-k">if</span> <span class="pl-en">type</span>(<span class="pl-s1">v</span>) <span class="pl-c1">in</span> (<span class="pl-s1">datetime</span>, <span class="pl-s1">str</span>, <span class="pl-s1">unicode</span>):
<span class="pl-s1">ret_params</span>[<span class="pl-s1">k</span>] <span class="pl-c1">=</span> (<span class="pl-s">'$$%s$$'</span> <span class="pl-c1">%</span> <span class="pl-s1">v</span>).<span class="pl-en">replace</span>(<span class="pl-s">"'"</span>, <span class="pl-s">""</span>).<span class="pl-en">replace</span>(<span class="pl-s">"%"</span>, <span class="pl-s">"%%"</span>)
<span class="pl-k">elif</span> <span class="pl-en">type</span>(<span class="pl-s1">v</span>) <span class="pl-c1">in</span> (<span class="pl-v">MutableList</span>, <span class="pl-s1">list</span>):
<span class="pl-s1">ret_params</span>[<span class="pl-s1">k</span>] <span class="pl-c1">=</span> (<span class="pl-s">'$$%s$$'</span> <span class="pl-c1">%</span> <span class="pl-s1">v</span>).<span class="pl-en">replace</span>(<span class="pl-s">"["</span>, <span class="pl-s">"{"</span>).<span class="pl-en">replace</span>(<span class="pl-s">"]"</span>, <span class="pl-s">"}"</span>).<span class="pl-en">replace</span>(<span class="pl-s">"u'"</span>, <span class="pl-s">""</span>).<span class="pl-en">replace</span>(<span class="pl-s">"'"</span>, <span class="pl-s">""</span>).<span class="pl-en">replace</span>(<span class="pl-s">"%"</span>, <span class="pl-s">"%%"</span>)
<span class="pl-k">elif</span> <span class="pl-en">type</span>(<span class="pl-s1">v</span>) <span class="pl-c1">==</span> <span class="pl-v">MutableDict</span>:
<span class="pl-s1">ret_params</span>[<span class="pl-s1">k</span>] <span class="pl-c1">=</span> (<span class="pl-s">'$$%s$$'</span> <span class="pl-c1">%</span> <span class="pl-s1">v</span>).<span class="pl-en">replace</span>(<span class="pl-s">"{"</span>, <span class="pl-s">""</span>).<span class="pl-en">replace</span>(<span class="pl-s">"}"</span>, <span class="pl-s">""</span>).<span class="pl-en">replace</span>(<span class="pl-s">":"</span>, <span class="pl-s">"=>"</span>).<span class="pl-en">replace</span>(<span class="pl-s">"'"</span>, <span class="pl-s">""</span>).<span class="pl-en">replace</span>(<span class="pl-s">"%"</span>, <span class="pl-s">"%%"</span>)
<span class="pl-k">elif</span> <span class="pl-en">type</span>(<span class="pl-s1">v</span>) <span class="pl-c1">==</span> <span class="pl-s1">dict</span>:
<span class="pl-s1">ret_params</span>[<span class="pl-s1">k</span>] <span class="pl-c1">=</span> (<span class="pl-s">'$$%s$$'</span> <span class="pl-c1">%</span> <span class="pl-s1">json</span>.<span class="pl-en">dumps</span>(<span class="pl-s1">v</span>)).<span class="pl-en">replace</span>(<span class="pl-s">"<span class="pl-cce">\'</span>"</span>, <span class="pl-s">""</span>).<span class="pl-en">replace</span>(<span class="pl-s">"%"</span>, <span class="pl-s">"%%"</span>)
<span class="pl-k">elif</span> <span class="pl-en">type</span>(<span class="pl-s1">v</span>) <span class="pl-c1">in</span> (<span class="pl-s1">int</span>, <span class="pl-s1">bool</span>, <span class="pl-s1">float</span>):
<span class="pl-s1">ret_params</span>[<span class="pl-s1">k</span>] <span class="pl-c1">=</span> <span class="pl-s1">v</span>
<span class="pl-k">except</span> <span class="pl-v">Exception</span> <span class="pl-k">as</span> <span class="pl-s1">ex</span>:
<span class="pl-s1">log</span>.<span class="pl-en">error</span>(<span class="pl-s1">ex</span>.<span class="pl-s1">message</span>)
<span class="pl-s1">log</span>.<span class="pl-en">error</span>(<span class="pl-s1">traceback</span>.<span class="pl-en">format_exc</span>())
<span class="pl-k">raise</span> <span class="pl-s1">ex</span>
<span class="pl-s1">log</span>.<span class="pl-en">debug</span>(<span class="pl-s">"After converting: %s"</span> <span class="pl-c1">%</span> <span class="pl-s1">ret_params</span>)
<span class="pl-k">return</span> <span class="pl-s1">ret_params</span></pre></div>
<p dir="auto">thx a lot.</p>
<p dir="auto">wenlong</p> | 0 |
<p dir="auto">Hi, I'm new to github and still trying to find my feet. So if this comment is in the wrong place then please let me know.</p>
<p dir="auto">I have noticed a change in the mixins.less which causes my code to break. It seems that there is a mistake (starting at line 388) where the @ and the { have been swapped around. This happens again in multiple places further down the file.</p>
<p dir="auto">The error being returned is "parse error: failed at <code class="notranslate">{ .span(@index); }</code> ../less/lib/bootstrap/mixins.less on line 578"</p> | <p dir="auto">With latest version of mixins.less lessphp (version 0.3.8) if showing error:<br>
Fatal error: Uncaught exception 'Exception' with message 'parse error: failed at <code class="notranslate">{ .span(@index); }</code> ../less/mixins.less on line 578'</p>
<p dir="auto">There are no problems with previous versions with<br>
(~".span@{index}") { .span(<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/Index/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Index">@Index</a>); }</p> | 1 |
<p dir="auto">Have this exception during indexation documents for suggest completion:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" suggest_top_products:
client: default
index_name: my_index_suggest_top_products
use_alias: true
settings:
number_of_shards: 6
number_of_replicas: 0
index:
analysis:
analyzer:
completion:
type: custom
tokenizer: whitespace
filter: [short_word_delimiter, lowercase, asciifolding, apostrophe, op_synonyms, snow_english]
char_filter: html_strip
filter:
snow_english:
type: snowball
language: English
short_word_delimiter:
type: word_delimiter
generate_word_parts: true
generate_number_parts: true
catenate_words: true
catenate_numbers: true
catenate_all: true
split_on_case_change: true
preserve_original: true
op_synonyms:
type: synonym
ignore_case: true
expand: true
synonyms:
- "riflescopes, rifle scopes"
- "riflescope, rifle scope"
types:
auto_suggest:
mappings:
text: {type: string, index: not_analyzed}
top_products:
type: completion
index_analyzer: completion
search_analyzer: completion
payloads: true
preserve_position_increments: false
preserve_separators: false"><pre class="notranslate"><code class="notranslate"> suggest_top_products:
client: default
index_name: my_index_suggest_top_products
use_alias: true
settings:
number_of_shards: 6
number_of_replicas: 0
index:
analysis:
analyzer:
completion:
type: custom
tokenizer: whitespace
filter: [short_word_delimiter, lowercase, asciifolding, apostrophe, op_synonyms, snow_english]
char_filter: html_strip
filter:
snow_english:
type: snowball
language: English
short_word_delimiter:
type: word_delimiter
generate_word_parts: true
generate_number_parts: true
catenate_words: true
catenate_numbers: true
catenate_all: true
split_on_case_change: true
preserve_original: true
op_synonyms:
type: synonym
ignore_case: true
expand: true
synonyms:
- "riflescopes, rifle scopes"
- "riflescope, rifle scope"
types:
auto_suggest:
mappings:
text: {type: string, index: not_analyzed}
top_products:
type: completion
index_analyzer: completion
search_analyzer: completion
payloads: true
preserve_position_increments: false
preserve_separators: false
</code></pre></div>
<p dir="auto">Document is:<br>
{"text":"Sure-Fire Z59 Click-On Lock-Out Tailcap for C2 / C3 / D2 / D3 / G3 / M2 / M3 / M3T / M4 Flashlights","top_products":{"input":["Sure-Fire Z59 Click-On Lock-Out Tailcap for C2 C3 D2 D3 G3 M2 M3 M3T M4 Flashlights","C2 C3 D2 D3 G3 M2 M3 M3T M4 Flashlights"],"output":"Sure-Fire Z59 Click-On Lock-Out Tailcap for C2 / C3 / D2 / D3 / G3 / M2 / M3 / M3T / M4 Flashlights","weight":"144","payload":{"type":"top_product","product_id":"32378","weight":"144","primary_image":"opplanet-surefire-tailcaps-switches-z59","rating":"0.00","review_count":"0","url":"surefire-tailcaps-switches-z59"}}}</p> | <p dir="auto">I use the context suggester for, well, suggestions, and I have more than 256 different categories.</p>
<p dir="auto">When I try to index a document with 257 categories, I get the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"error":"IllegalArgumentException[TokenStream expanded to 257 finite strings. Only <= 256 finite strings are supported]",
"status":500
}"><pre class="notranslate"><code class="notranslate">{
"error":"IllegalArgumentException[TokenStream expanded to 257 finite strings. Only <= 256 finite strings are supported]",
"status":500
}
</code></pre></div>
<p dir="auto">I have uploaded a simple curl example here: <a href="https://gist.github.com/goldmar/2c3f64575df420a5413a">https://gist.github.com/goldmar/2c3f64575df420a5413a</a></p> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.