text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">Celery version 4.2.0</p> <p dir="auto">I want to get results of tasks in group.<br> In development i'm using a CELERY_ALWAYS_EAGER=True.<br> If i run code below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@shared_task def task_in_group(): return &quot;something&quot; @shared_task def task_finishing_chain(results): return results @shared_task def task_launcher(): chain_tasks = chain( group( task_in_group.si(), task_in_group.si() ), task_finishing_chain.s()) chain_tasks.apply_async() def run_tasks(): task_launcher.apply_async()"><pre class="notranslate"><code class="notranslate">@shared_task def task_in_group(): return "something" @shared_task def task_finishing_chain(results): return results @shared_task def task_launcher(): chain_tasks = chain( group( task_in_group.si(), task_in_group.si() ), task_finishing_chain.s()) chain_tasks.apply_async() def run_tasks(): task_launcher.apply_async() </code></pre></div> <p dir="auto">then i'm getting the following exception:</p> <pre class="notranslate">Task my_app.tasks.task_in_group[36c33a48-3047-4be8-82f1-70b985e87980] succeeded in 0.00011961600012000417s: 'something' Task my_app.tasks.task_in_group[1e3a13c3-fbb7-4535-bf68-3f988a331a42] succeeded in 3.561300013643631e-05s: 'something' Task my_app.tasks.task_launcher[0fbbae47-f3fc-4a2d-b2ce-b10c8e91182c] raised unexpected: RuntimeError('Never call result.get() within a task!\nSee http://docs.celeryq.org/en/latest/userguide/tasks.html#task-synchronous-subtasks\n',) Traceback (most recent call last): File "/home/vagrant/python35/lib/python3.5/site-packages/celery/app/trace.py", line 382, in trace_task R = retval = fun(*args, **kwargs) File "/vagrant/my_app/tasks.py", line 268, in task_launcher chain_tasks.apply_async() File "/home/vagrant/python35/lib/python3.5/site-packages/celery/canvas.py", line 1230, in apply_async body=body, task_id=task_id, **options) File "/home/vagrant/python35/lib/python3.5/site-packages/celery/canvas.py", line 1239, in apply args=(tasks.apply(args, kwargs).get(propagate=propagate),), File "/home/vagrant/python35/lib/python3.5/site-packages/celery/result.py", line 671, in get on_interval=on_interval, File "/home/vagrant/python35/lib/python3.5/site-packages/celery/result.py", line 722, in join assert_will_not_block() File "/home/vagrant/python35/lib/python3.5/site-packages/celery/result.py", line 41, in assert_will_not_block raise RuntimeError(E_WOULDBLOCK) RuntimeError: Never call result.get() within a task! </pre> <p dir="auto">On production everything works normally with CELERY_ALWAYS_EAGER=False.</p>
<p dir="auto"><code class="notranslate">Task.retry()</code> always raises a <code class="notranslate">RuntimeError</code> if <code class="notranslate">task_always_eager</code> and <code class="notranslate">task_eager_propagates</code> are set to <code class="notranslate">True</code>. This is counterintuitive. I would expect this example to work:</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(__name__, config_source=dict(task_always_eager=True, task_eager_propagates=True)) @app.task(bind=True, default_retry_delay=1, max_retries=None, shared=False) def foo(self, i): if i &lt;= 0: return 'Task succeeded!' else: self.retry((i - 1,)) foo.delay(3)"><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-s1">__name__</span>, <span class="pl-s1">config_source</span><span class="pl-c1">=</span><span class="pl-en">dict</span>(<span class="pl-s1">task_always_eager</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">task_eager_propagates</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">default_retry_delay</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">max_retries</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">shared</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)</span> <span class="pl-k">def</span> <span class="pl-en">foo</span>(<span class="pl-s1">self</span>, <span class="pl-s1">i</span>): <span class="pl-k">if</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;=</span> <span class="pl-c1">0</span>: <span class="pl-k">return</span> <span class="pl-s">'Task succeeded!'</span> <span class="pl-k">else</span>: <span class="pl-s1">self</span>.<span class="pl-en">retry</span>((<span class="pl-s1">i</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span>,)) <span class="pl-s1">foo</span>.<span class="pl-en">delay</span>(<span class="pl-c1">3</span>)</pre></div> <p dir="auto">But instead it raises this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): ... raise RuntimeError(E_WOULDBLOCK) RuntimeError: Never call result.get() within a task! See http://docs.celeryq.org/en/latest/userguide/tasks.html#task-synchronous-subtasks"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): ... raise RuntimeError(E_WOULDBLOCK) RuntimeError: Never call result.get() within a task! See http://docs.celeryq.org/en/latest/userguide/tasks.html#task-synchronous-subtasks </code></pre></div> <p dir="auto">This can be reproduced on master and with 4.2.0rc2.</p>
1
<ul dir="auto"> <li>VSCode Version: 1.2.0 - Insider</li> <li>OS Version: Windows 7</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Resize the terminal to be very narrow so that some text gets cut off</li> <li>Resize it back to normal size</li> <li>See that the text is either still cut off or drawn in a weird way</li> </ol> <p dir="auto">notice how "All rights reserved" is not redrawn<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6615558/15784997/b43e3768-297a-11e6-9293-2ceaa827ac71.png"><img src="https://cloud.githubusercontent.com/assets/6615558/15784997/b43e3768-297a-11e6-9293-2ceaa827ac71.png" alt="a" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6615558/15784996/b4382ab2-297a-11e6-87fd-fad43f1229ec.png"><img src="https://cloud.githubusercontent.com/assets/6615558/15784996/b4382ab2-297a-11e6-87fd-fad43f1229ec.png" alt="b" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6615558/15784998/b4482f34-297a-11e6-8297-d9926aa638b7.png"><img src="https://cloud.githubusercontent.com/assets/6615558/15784998/b4482f34-297a-11e6-8297-d9926aa638b7.png" alt="c" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1794099/12577709/842de4b0-c41c-11e5-819e-c1415cde7247.png"><img src="https://cloud.githubusercontent.com/assets/1794099/12577709/842de4b0-c41c-11e5-819e-c1415cde7247.png" alt="screen shot 2016-01-26 at 11 03 52" style="max-width: 100%;"></a></p>
0
<p dir="auto"><a href="url">https://discuss.pytorch.org/t/dataloader-when-num-worker-0-there-is-bug/25643</a></p> <p dir="auto">We Hope developers can help us.<br> Many pepole has the problems, but there is no solution available.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class DeephomographyDataset(Dataset): ''' DeepHomography Dataset ''' def __init__(self,hdf5file,imgs_key='images',labels_key='labels', transform=None): ''' :argument :param hdf5file: the hdf5 file including the images and the label. :param transform (callable, optional): Optional transform to be applied on a sample ''' self.db=h5py.File(hdf5file,'r') # store the images and the labels keys=list(self.db.keys()) if imgs_key not in keys: raise(' the ims_key should not be {}, should be one of {}' .format(imgs_key,keys)) if labels_key not in keys: raise(' the labels_key should not be {}, should be one of {}' .format(labels_key,keys)) self.imgs_key=imgs_key self.labels_key=labels_key self.transform=transform def __len__(self): return len(self.db[self.labels_key]) def __getitem__(self, idx): image=self.db[self.imgs_key][idx] label=self.db[self.labels_key][idx] sample={'images':image,'labels':label} if self.transform: sample=self.transform(sample) return sample "><pre class="notranslate"><code class="notranslate">class DeephomographyDataset(Dataset): ''' DeepHomography Dataset ''' def __init__(self,hdf5file,imgs_key='images',labels_key='labels', transform=None): ''' :argument :param hdf5file: the hdf5 file including the images and the label. :param transform (callable, optional): Optional transform to be applied on a sample ''' self.db=h5py.File(hdf5file,'r') # store the images and the labels keys=list(self.db.keys()) if imgs_key not in keys: raise(' the ims_key should not be {}, should be one of {}' .format(imgs_key,keys)) if labels_key not in keys: raise(' the labels_key should not be {}, should be one of {}' .format(labels_key,keys)) self.imgs_key=imgs_key self.labels_key=labels_key self.transform=transform def __len__(self): return len(self.db[self.labels_key]) def __getitem__(self, idx): image=self.db[self.imgs_key][idx] label=self.db[self.labels_key][idx] sample={'images':image,'labels':label} if self.transform: sample=self.transform(sample) return sample </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="batchSize=30 trainDataset=DeephomographyDataset(pth_config.TRAIN_H5_FILE, transform=transforms.Lambda( lambda x: toTensor(x))) traindataloader=DataLoader(trainDataset,batch_size=batchSize,shuffle=True, num_workers=20)"><pre class="notranslate"><code class="notranslate">batchSize=30 trainDataset=DeephomographyDataset(pth_config.TRAIN_H5_FILE, transform=transforms.Lambda( lambda x: toTensor(x))) traindataloader=DataLoader(trainDataset,batch_size=batchSize,shuffle=True, num_workers=20) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# samplesss=trainDataset[0]"><pre class="notranslate"><code class="notranslate"># samplesss=trainDataset[0] </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for i, sample in enumerate(trainDataset): ...."><pre class="notranslate"><code class="notranslate">for i, sample in enumerate(trainDataset): .... </code></pre></div> <p dir="auto">some errors are repoted as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/dler/pytorch_codes_from_pc4/DeepHomography/my_Model/training_deephomography.py&quot;, line 138, in &lt;module&gt; epoch_num) File &quot;/home/dler/pytorch_codes_from_pc4/DeepHomography/my_Model/training_deephomography.py&quot;, line 49, in train_model for i, sample in enumerate(dataloaders[phase]): File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py&quot;, line 322, in __next__ return self._process_next_batch(batch) File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py&quot;, line 357, in _process_next_batch raise batch.exc_type(batch.exc_msg) KeyError: 'Traceback (most recent call last):\n File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py&quot;, line 106, in _worker_loop\n samples = collate_fn([dataset[i] for i in batch_indices])\n File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py&quot;, line 106, in &lt;listcomp&gt;\n samples = collate_fn([dataset[i] for i in batch_indices])\n File &quot;/home/dler/pytorch_codes_from_pc4/DeepHomography/preprocessing/generate_dataset.py&quot;, line 34, in __getitem__\n label=self.db[self.labels_key][idx]\n File &quot;h5py/_objects.pyx&quot;, line 54, in h5py._objects.with_phil.wrapper\n File &quot;h5py/_objects.pyx&quot;, line 55, in h5py._objects.with_phil.wrapper\n File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/h5py/_hl/group.py&quot;, line 167, in __getitem__\n oid = h5o.open(self.id, self._e(name), lapl=self._lapl)\n File &quot;h5py/_objects.pyx&quot;, line 54, in h5py._objects.with_phil.wrapper\n File &quot;h5py/_objects.pyx&quot;, line 55, in h5py._objects.with_phil.wrapper\n File &quot;h5py/h5o.pyx&quot;, line 190, in h5py.h5o.open\nKeyError: \'Unable to open object (bad object header version number)\'\n' Exception ignored in: &lt;bound method _DataLoaderIter.__del__ of &lt;torch.utils.data.dataloader._DataLoaderIter object at 0x7f09bc58dac8&gt;&gt; Traceback (most recent call last): File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py&quot;, line 399, in __del__ self._shutdown_workers() File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py&quot;, line 378, in _shutdown_workers self.worker_result_queue.get() File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/multiprocessing/queues.py&quot;, line 337, in get return _ForkingPickler.loads(res) File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/multiprocessing/reductions.py&quot;, line 151, in rebuild_storage_fd fd = df.detach() File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/multiprocessing/resource_sharer.py&quot;, line 57, in detach with _resource_sharer.get_connection(self._id) as conn: File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/multiprocessing/resource_sharer.py&quot;, line 87, in get_connection c = Client(address, authkey=process.current_process().authkey) File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/multiprocessing/connection.py&quot;, line 487, in Client c = SocketClient(address) File &quot;/home/dler/anaconda3/envs/pytorch4/lib/python3.6/multiprocessing/connection.py&quot;, line 614, in SocketClient s.connect(address) ConnectionRefusedError: [Errno 111] Connection refused Process finished with exit code 1"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/home/dler/pytorch_codes_from_pc4/DeepHomography/my_Model/training_deephomography.py", line 138, in &lt;module&gt; epoch_num) File "/home/dler/pytorch_codes_from_pc4/DeepHomography/my_Model/training_deephomography.py", line 49, in train_model for i, sample in enumerate(dataloaders[phase]): File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 322, in __next__ return self._process_next_batch(batch) File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 357, in _process_next_batch raise batch.exc_type(batch.exc_msg) KeyError: 'Traceback (most recent call last):\n File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop\n samples = collate_fn([dataset[i] for i in batch_indices])\n File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 106, in &lt;listcomp&gt;\n samples = collate_fn([dataset[i] for i in batch_indices])\n File "/home/dler/pytorch_codes_from_pc4/DeepHomography/preprocessing/generate_dataset.py", line 34, in __getitem__\n label=self.db[self.labels_key][idx]\n File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper\n File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper\n File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/h5py/_hl/group.py", line 167, in __getitem__\n oid = h5o.open(self.id, self._e(name), lapl=self._lapl)\n File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper\n File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper\n File "h5py/h5o.pyx", line 190, in h5py.h5o.open\nKeyError: \'Unable to open object (bad object header version number)\'\n' Exception ignored in: &lt;bound method _DataLoaderIter.__del__ of &lt;torch.utils.data.dataloader._DataLoaderIter object at 0x7f09bc58dac8&gt;&gt; Traceback (most recent call last): File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 399, in __del__ self._shutdown_workers() File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 378, in _shutdown_workers self.worker_result_queue.get() File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/multiprocessing/queues.py", line 337, in get return _ForkingPickler.loads(res) File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/site-packages/torch/multiprocessing/reductions.py", line 151, in rebuild_storage_fd fd = df.detach() File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/multiprocessing/resource_sharer.py", line 57, in detach with _resource_sharer.get_connection(self._id) as conn: File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/multiprocessing/resource_sharer.py", line 87, in get_connection c = Client(address, authkey=process.current_process().authkey) File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/multiprocessing/connection.py", line 487, in Client c = SocketClient(address) File "/home/dler/anaconda3/envs/pytorch4/lib/python3.6/multiprocessing/connection.py", line 614, in SocketClient s.connect(address) ConnectionRefusedError: [Errno 111] Connection refused Process finished with exit code 1 </code></pre></div> <blockquote> </blockquote> <p dir="auto">Interestingly, when the code <code class="notranslate">samplesss=trainDataset[0];</code> ` uncomment, there is no error reported! But, the dataset traindataloader returned by the DataLoader is wrong, namely some data is not the raw data.</p> <p dir="auto">So, I know how the num_wokers in DataLoader affect the code?<br> in addition, my computer have 32 cpu cores. I set num_workers to 20.<br> My OS is unbuntu 16.0, the version of pytorch is 0.4! python is 3.6</p>
1
<p dir="auto">On Julia 1.1 1.2 1.3</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function mean_foo(m) where {T} f = NTuple[] n = [1,1] for i in 1:2 x = ntuple(_-&gt;zeros(10),n[i]) for j in 1:n[i] x[j] .= sum(rand(length(m)).*m) end push!(f,x) end return f end mean_foo([rand(10) for _ in 1:4])"><pre class="notranslate"><code class="notranslate">function mean_foo(m) where {T} f = NTuple[] n = [1,1] for i in 1:2 x = ntuple(_-&gt;zeros(10),n[i]) for j in 1:n[i] x[j] .= sum(rand(length(m)).*m) end push!(f,x) end return f end mean_foo([rand(10) for _ in 1:4]) </code></pre></div> <p dir="auto">make Julia crashes with the error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unreachable reached at 0x7f0de61f9aa2 signal (4): Illegal instruction"><pre class="notranslate"><code class="notranslate">Unreachable reached at 0x7f0de61f9aa2 signal (4): Illegal instruction </code></pre></div> <p dir="auto">With the error happening on <code class="notranslate">push!(f,x)</code></p>
<p dir="auto">version information:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 1.0.3 Commit 099e826241 (2018-12-18 01:34 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, broadwell) Environment: JULIA_EDITOR = &quot;C:\JuliaPro-1.0.3.1\app-1.32.2\atom.exe&quot; -a JULIA_NUM_THREADS = 16 JULIA_PKG_SERVER = https://pkg.juliacomputing.com/ JULIA_PKG_TOKEN_PATH = C:\Users\bguenter\.juliapro\token.toml"><pre class="notranslate"><code class="notranslate">Julia Version 1.0.3 Commit 099e826241 (2018-12-18 01:34 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.0 (ORCJIT, broadwell) Environment: JULIA_EDITOR = "C:\JuliaPro-1.0.3.1\app-1.32.2\atom.exe" -a JULIA_NUM_THREADS = 16 JULIA_PKG_SERVER = https://pkg.juliacomputing.com/ JULIA_PKG_TOKEN_PATH = C:\Users\bguenter\.juliapro\token.toml </code></pre></div> <p dir="auto">Smallest function that produces the bug</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; function test(input...) b::NTuple = input end test (generic function with 1 method)"><pre class="notranslate"><code class="notranslate">julia&gt; function test(input...) b::NTuple = input end test (generic function with 1 method) </code></pre></div> <p dir="auto">How to produce the bug</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; test(1,2,3) Unreachable reached at 000000001DBCAA98 Please submit a bug report with steps to reproduce this fault, and any error messages that follow (i n their entirety). Thanks. Exception: EXCEPTION_ILLEGAL_INSTRUCTION at 0x1dbcaa98 -- test at .\none:2 in expression starting at no file:0 test at .\none:2 jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1831 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2184do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:324 eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:430 eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:363 [in lined] eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:678 jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\ interpreter.c:806 unknown function (ip: FFFFFFFFFFFFFFFE) unknown function (ip: 00000000119D37FF) unknown function (ip: FFFFFFFFFFFFFFFF) jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:805 jl_toplevel_eval_in at /home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:622 eval at .\boot.jl:319 [inlined] repleval at C:\Users\bguenter\.juliapro\JuliaPro_v1.0.3.1\packages\Atom\v2iqN\src\repl.jl:139 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2184#164 at C:\Users\bguenter\.juliapro\JuliaPro_v1.0.3.1\packages\Atom\v2iqN\src\repl.jl:161with_logstate at .\logging.jl:395 with_logger at .\logging.jl:491 [inlined] evalrepl at C:\Users\bguenter\.juliapro\JuliaPro_v1.0.3.1\packages\Atom\v2iqN\src\repl.jl:152 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2184do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:324 eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:430 eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:363 [in lined] eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:678 jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\ interpreter.c:806 unknown function (ip: FFFFFFFFFFFFFFFE) unknown function (ip: 00000000119D348F) unknown function (ip: FFFFFFFFFFFFFFFF) jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:805 jl_toplevel_eval_in at /home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:622 eval at .\boot.jl:319 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2184eval_user_input at C:\Users\julia\AppData\Local\Julia-1.0.3\share\julia\stdlib\v1.0\REPL\src\REPL.jl :85 macro expansion at C:\Users\julia\AppData\Local\Julia-1.0.3\share\julia\stdlib\v1.0\REPL\src\REPL.jl :117 [inlined] #28 at .\task.jl:259 jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1831 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2184jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1537 [inlined] start_task at /home/Administrator/buildbot/worker/package_win64/build/src\task.c:268 Allocations: 30636752 (Pool: 30631301; Big: 5451); GC: 69 Julia has exited. Press Enter to start a new session."><pre class="notranslate"><code class="notranslate">julia&gt; test(1,2,3) Unreachable reached at 000000001DBCAA98 Please submit a bug report with steps to reproduce this fault, and any error messages that follow (i n their entirety). Thanks. Exception: EXCEPTION_ILLEGAL_INSTRUCTION at 0x1dbcaa98 -- test at .\none:2 in expression starting at no file:0 test at .\none:2 jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1831 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2184do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:324 eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:430 eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:363 [in lined] eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:678 jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\ interpreter.c:806 unknown function (ip: FFFFFFFFFFFFFFFE) unknown function (ip: 00000000119D37FF) unknown function (ip: FFFFFFFFFFFFFFFF) jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:805 jl_toplevel_eval_in at /home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:622 eval at .\boot.jl:319 [inlined] repleval at C:\Users\bguenter\.juliapro\JuliaPro_v1.0.3.1\packages\Atom\v2iqN\src\repl.jl:139 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2184#164 at C:\Users\bguenter\.juliapro\JuliaPro_v1.0.3.1\packages\Atom\v2iqN\src\repl.jl:161with_logstate at .\logging.jl:395 with_logger at .\logging.jl:491 [inlined] evalrepl at C:\Users\bguenter\.juliapro\JuliaPro_v1.0.3.1\packages\Atom\v2iqN\src\repl.jl:152 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2184do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:324 eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:430 eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:363 [in lined] eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:678 jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\ interpreter.c:806 unknown function (ip: FFFFFFFFFFFFFFFE) unknown function (ip: 00000000119D348F) unknown function (ip: FFFFFFFFFFFFFFFF) jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:805 jl_toplevel_eval_in at /home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:622 eval at .\boot.jl:319 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2184eval_user_input at C:\Users\julia\AppData\Local\Julia-1.0.3\share\julia\stdlib\v1.0\REPL\src\REPL.jl :85 macro expansion at C:\Users\julia\AppData\Local\Julia-1.0.3\share\julia\stdlib\v1.0\REPL\src\REPL.jl :117 [inlined] #28 at .\task.jl:259 jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1831 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2184jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1537 [inlined] start_task at /home/Administrator/buildbot/worker/package_win64/build/src\task.c:268 Allocations: 30636752 (Pool: 30631301; Big: 5451); GC: 69 Julia has exited. Press Enter to start a new session. </code></pre></div>
1
<p dir="auto">Hello All,</p> <p dir="auto">In a project that I am working on, we are using Symfony as a middleware between the Java WebService and the browser.</p> <p dir="auto">Strangely Symfony converts a 201 response received from the WebService to a 302 Redirect.</p> <p dir="auto">I am not sure if this is the reason why this is happening.<br> <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/Response.php#L1129">https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/Response.php#L1129</a></p> <p dir="auto"><a href="https://tools.ietf.org/html/rfc7231#section-7.1.2" rel="nofollow">https://tools.ietf.org/html/rfc7231#section-7.1.2</a></p> <p dir="auto">Any suggestions would be of great help.<br> Thanks in advance.</p>
<h2 dir="auto">Context</h2> <p dir="auto">I have a listener on <code class="notranslate">KernelEvents::REQUEST</code> doing some checks related to the current request (to be precise I am validating its format against a swagger spec file).</p> <h2 dir="auto">Issue</h2> <p dir="auto">When an exception occurred, the HttpKernel's <code class="notranslate">ExceptionListener</code> duplicates the request (without the query and request arguments), changes the method to <code class="notranslate">GET</code> and then call <code class="notranslate">$kernel-&gt;handle()</code>.<br> This request will be handled by my <code class="notranslate">KernelEvents::REQUEST</code> listener which will throw an exception because the Request is not valid from a domain point of view.</p> <h2 dir="auto">Solution</h2> <p dir="auto">Do not use a sub-request or forge a brand new request against a reserved endpoint.</p> <p dir="auto">What do you think?</p>
0
<p dir="auto">Celery 4.0.0<br> Python 3.5.2<br> (rest of report output below)</p> <p dir="auto">I recently pushed celery beat to production (I had been using celery without beat with no issues for several months). It had 1 task to run several times daily, but it duplicated the task many times per second, gradually overwhelming the capacity of my small elasticache instance and resulting in <strong>OOM error</strong>.</p> <p dir="auto">I was searching for similar errors online and found the following:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6489776" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/943" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/943/hovercard?comment_id=8112993&amp;comment_type=issue_comment" href="https://github.com/celery/celery/issues/943#issuecomment-8112993">#943 (comment)</a></p> <p dir="auto">While not exactly the same, changing timezone back to default settings seemed to solve the issue for now. To be clear, previously I had:<br> enable_utc = False<br> timezone = 'America/New_York'</p> <p dir="auto">I changed these to:<br> enable_utc = True</p> <p dir="auto">and it seemed to solve the problem (for now).</p> <p dir="auto">** celery -A [proj] report:</p> <p dir="auto">software -&gt; celery:4.0.0 (latentcall) kombu:4.0.0 py:3.5.2<br> billiard:3.5.0.2 redis:2.10.5<br> platform -&gt; system:Linux arch:64bit, ELF imp:CPython<br> loader -&gt; celery.loaders.app.AppLoader<br> settings -&gt; transport:redis results:redis://[elasticache]</p> <p dir="auto">result_persistent: False<br> enable_utc: False<br> result_serializer: 'json'<br> include: [tasks -- redacted]<br> result_backend: 'redis://[elasticache]<br> task_create_missing_queues: True<br> task_acks_late: False<br> timezone: 'America/New_York'<br> broker_url: '[elasticache]'<br> task_serializer: 'json'<br> crontab: &lt;class 'celery.schedules.crontab'&gt;<br> broker_transport_options: {<br> 'visibility_timeout': 600}<br> task_time_limit: 200<br> task_always_eager: False<br> task_queues:<br> (&lt;unbound Queue default -&gt; &lt;unbound Exchange default(direct)&gt; -&gt; default&gt;,<br> &lt;unbound Queue render -&gt; &lt;unbound Exchange media(direct)&gt; -&gt; media.render&gt;,<br> &lt;unbound Queue emails -&gt; &lt;unbound Exchange media(direct)&gt; -&gt; media.emails&gt;,<br> &lt;unbound Queue other -&gt; &lt;unbound Exchange media(direct)&gt; -&gt; media.other&gt;)<br> beat_schedule: {<br> 'lookup-emails-to-send': { 'args': [],<br> 'schedule': &lt;crontab: 0 9,12,15,18,21 * * * (m/h/d/dM/MY)&gt;,<br> 'task': 'send_emails'}}<br> accept_content: ['json']<br> task_default_exchange_type: 'direct'<br> task_routes:<br> ('worker.routes.AppRouter',)<br> worker_prefetch_multiplier: 1<br> BROKER_URL: [elasticache]</p> <p dir="auto">** Worker error message after OOM:<br> Traceback (most recent call last):<br> File "python3.5/site-packages/celery/beat.py", line 299, in apply_async<br> **entry.options)<br> File "python3.5/site-packages/celery/app/task.py", line 536, in apply_async<br> **options<br> File "python3.5/site-packages/celery/app/base.py", line 717, in send_task<br> amqp.send_task_message(P, name, message, **options)<br> File "python3.5/site-packages/celery/app/amqp.py", line 554, in send_task_message<br> **properties<br> File "python3.5/site-packages/kombu/messaging.py", line 178, in publish<br> exchange_name, declare,<br> File "python3.5/site-packages/kombu/connection.py", line 527, in _ensured<br> errback and errback(exc, 0)<br> File "python3.5/contextlib.py", line 77, in <strong>exit</strong><br> self.gen.throw(type, value, traceback)<br> File "python3.5/site-packages/kombu/connection.py", line 419, in _reraise_as_library_errors<br> sys.exc_info()[2])<br> File "python3.5/site-packages/vine/five.py", line 175, in reraise<br> raise value.with_traceback(tb)<br> File "python3.5/site-packages/kombu/connection.py", line 414, in _reraise_as_library_errors<br> yield<br> File "python3.5/site-packages/kombu/connection.py", line 494, in _ensured<br> return fun(*args, **kwargs)<br> File "python3.5/site-packages/kombu/messaging.py", line 200, in _publish<br> mandatory=mandatory, immediate=immediate,<br> File "python3.5/site-packages/kombu/transport/virtual/base.py", line 608, in basic_publish<br> return self._put(routing_key, message, **kwargs)<br> File "python3.5/site-packages/kombu/transport/redis.py", line 766, in _put<br> client.lpush(self._q_for_pri(queue, pri), dumps(message))<br> File "python3.5/site-packages/redis/client.py", line 1227, in lpush<br> return self.execute_command('LPUSH', name, *values)<br> File "python3.5/site-packages/redis/client.py", line 573, in execute_command<br> return self.parse_response(connection, command_name, **options)<br> File "python3.5/site-packages/redis/client.py", line 585, in parse_response<br> response = connection.read_response()<br> File "python3.5/site-packages/redis/connection.py", line 582, in read_response<br> raise response<br> kombu.exceptions.OperationalError: OOM command not allowed when used memory &gt; 'maxmemory'.</p> <p dir="auto">** Example log showing rapidly duplicated beat tasks:<br> [2017-05-20 09:00:00,096: INFO/PoolWorker-1] Task send_emails[1d24250f-c254-4fd8-8ffc-cfb17b98a392] succeeded in 0.01704882364720106s: True<br> [2017-05-20 09:00:00,098: INFO/MainProcess] Received task: send_emails[e968cc65-0924-4d31-b2d7-9a3e3f5aefda]<br> [2017-05-20 09:00:00,115: INFO/PoolWorker-1] Task send_emails[e968cc65-0823-4d31-b2d7-9a3e3f5aefda] succeeded in 0.015948095358908176s: True<br> [2017-05-20 09:00:00,117: INFO/MainProcess] Received task: send_emails[2fb9f7ac-5f6a-42e1-813e-25ea4023dc81]<br> [2017-05-20 09:00:00,136: INFO/PoolWorker-1] Task send_emails[2fb9f7ac-5f6a-42e1-813e-25ea4023dc81] succeeded in 0.018534105271100998s: True<br> [2017-05-20 09:00:00,140: INFO/MainProcess] Received task: send_emails[59493c0b-1858-497f-a0dc-a4c8e4ba3a63]<br> [2017-05-20 09:00:00,161: INFO/PoolWorker-1] Task send_emails[59493c0b-1858-497f-a0dc-a4c8e4ba3a63] succeeded in 0.020539570599794388s: True<br> [2017-05-20 09:00:00,164: INFO/MainProcess] Received task: send_emails[3aac612f-75dd-4530-9b55-1e288bec8db4]<br> [2017-05-20 09:00:00,205: INFO/PoolWorker-1] Task send_emails[3aac612f-75dd-4530-9b55-1e288bec8db4] succeeded in 0.04063933063298464s: True<br> [2017-05-20 09:00:00,208: INFO/MainProcess] Received task: send_emails[7edf60cb-d1c4-4ae5-af10-03414da672fa]</p>
<h2 dir="auto">I happened to install celery 4.1.0 with django_celey_beat 1.0.1, the DatabaseScheduler seems not working well.</h2> <p dir="auto">[2017-08-07 21:12:10,790: DEBUG/MainProcess] DatabaseScheduler: Fetching database schedule<br> [2017-08-07 21:12:10,797: DEBUG/MainProcess] Current schedule:<br> &lt;ModelEntry: celery.backend_cleanup celery.backend_cleanup(<em>[], **{}) &lt;crontab: 0 4 * * * (m/h/d/dM/MY)&gt;&gt;<br> &lt;ModelEntry: schedule GeneBank.tasks.test(</em>[], **{}) &lt;crontab: * * * * * (m/h/d/dM/MY)&gt;&gt;<br> [2017-08-07 21:12:10,807: DEBUG/MainProcess] beat: Ticking with max interval-&gt;5.00 seconds<br> [2017-08-07 21:12:10,809: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:12:15,813: DEBUG/MainProcess] beat: Synchronizing schedule...<br> [2017-08-07 21:12:15,813: INFO/MainProcess] Writing entries...<br> [2017-08-07 21:12:15,816: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:12:20,818: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:12:25,825: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:12:30,831: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:12:35,839: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:12:40,844: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:12:45,851: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:12:50,854: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:12:55,860: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:13:00,862: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:13:05,870: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> ^C[2017-08-07 21:13:10,245: INFO/MainProcess] Writing entries...<br> [2017-08-07 21:13:10,246: INFO/MainProcess] Writing entries...</p> <h2 dir="auto">As u can see, the scheduler was supposed to send beat at every minute, but the beat didn't show up, (i've set crontab to be all *, so couldn't be timezone problem)</h2> <h1 dir="auto">But in celery 4.0.2, everything goes fine! I don't know whether it is a bug or not. Maybe the django_celery_beat isn't compatible with 4.1.0.</h1> <p dir="auto">[2017-08-07 21:18:43,339: DEBUG/MainProcess] Current schedule:<br> &lt;ModelEntry: celery.backend_cleanup celery.backend_cleanup(<em>[], **{}) &lt;crontab: 0 4 * * * (m/h/d/dM/MY)&gt;&gt;<br> &lt;ModelEntry: schedule GeneBank.tasks.test(</em>[], **{}) &lt;crontab: * * * * * (m/h/d/dM/MY)&gt;&gt;<br> [2017-08-07 21:18:43,351: DEBUG/MainProcess] beat: Ticking with max interval-&gt;5.00 seconds<br> [2017-08-07 21:18:43,364: INFO/MainProcess] Scheduler: Sending due task schedule (GeneBank.tasks.test)<br> [2017-08-07 21:18:43,376: DEBUG/MainProcess] beat: Synchronizing schedule...<br> [2017-08-07 21:18:43,376: INFO/MainProcess] Writing entries...<br> [2017-08-07 21:18:43,380: DEBUG/MainProcess] GeneBank.tasks.test sent. id-&gt;9c1bdf10-0a5f-440a-98db-9eb24433a8d4<br> [2017-08-07 21:18:43,381: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:18:48,386: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:18:53,392: DEBUG/MainProcess] beat: Waking up in 5.00 seconds.<br> [2017-08-07 21:18:58,397: DEBUG/MainProcess] beat: Waking up in 1.59 seconds.<br> [2017-08-07 21:19:00,001: INFO/MainProcess] Scheduler: Sending due task schedule (GeneBank.tasks.test)</p>
1
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Loaded page.</li> <li>Fast Refreshed.</li> <li>Started profiler.</li> <li>Stopped profiler. Crash.</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.6.0-6cceaeb67</p> <p dir="auto">Call stack: at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:162638)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161628)<br> at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:164582)<br> at ec (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:339280)<br> at ci (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59620)<br> at nl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:69923)<br> at Ll (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:110996)<br> at qc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102381)<br> at Hc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102306)<br> at Vc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:102171)</p> <p dir="auto">Component stack: in ec<br> in div<br> in div<br> in div<br> in So<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in rl<br> in Ze<br> in fn<br> in Ga<br> in _s</p>
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>I was using the devtools to investigate some performance issues w/ an app I help maintain</li> <li>I had just turned on the "Record why each component rendered while profiling" checkbox</li> <li>I ran a profile while navigating on the underlying page</li> </ol> <p dir="auto">The react profiler tab in the devtools gave this error, I think as I clicked the record icon to stop recording the profile.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.5.0-355970aa4</p> <p dir="auto">Call stack: at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:160881)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:160015)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)</p> <p dir="auto">Component stack: in ec<br> in div<br> in div<br> in div<br> in So<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in rl<br> in Ze<br> in fn<br> in Ga<br> in _s</p>
1
<p dir="auto">The file routing.png is referenced in router.html.twig but is missing. I haven't found it anywhere in the bundle.</p>
<p dir="auto">As @Partugal already mentioned in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/symfony/symfony/commit/8fa061cc6e6635d403cca9b98e934a3b4021b892/hovercard" href="https://github.com/symfony/symfony/commit/8fa061cc6e6635d403cca9b98e934a3b4021b892"><tt>8fa061c</tt></a>, the icon for that section/panel is missing.</p>
1
<p dir="auto">VsCode 0.10.4</p> <p dir="auto">When I click on "Format Code" in the context menu, i get the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Main Thread sent to worker the following message:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19 workbench.main.js:16 Object {type: &quot;threadService&quot;, payload: Array[3]}payload: Array[3]type: &quot;threadService&quot;__proto__: Object workbench.main.js:16 And the worker replied with an error:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19 workbench.main.js:16 Object {stack: &quot;TypeError: Cannot read property 'startLineNumber' …tor/common/worker/editorWorkerServer.js:14:31951)&quot;, message: &quot;TypeError: Cannot read property 'startLineNumber' of null&quot;}message: &quot;TypeError: Cannot read property 'startLineNumber' of null&quot;stack: &quot;TypeError: Cannot read property 'startLineNumber' of null↵ at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655)↵ at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906)↵ at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265↵ at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244)↵ at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843)↵ at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236)↵ at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490)↵ at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479)↵ at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878)↵ at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951)&quot;__proto__: Object workbench.main.js:90 TypeError: Cannot read property 'startLineNumber' of null: TypeError: Cannot read property 'startLineNumber' of null at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655) at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906) at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265 at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244) at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843) at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236) at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490) at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479) at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878) at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951)e.onUnexpectedError @ workbench.main.js:90(anonymous function) @ workbench.main.js:90e.onUnexpectedError @ workbench.main.js:10u @ workbench.main.js:9e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19 workbench.main.js:63 TypeError: Cannot read property 'startLineNumber' of null: TypeError: Cannot read property 'startLineNumber' of null at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655) at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906) at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265 at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244) at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843) at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236) at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490) at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479) at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878) at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951)"><pre class="notranslate"><code class="notranslate">Main Thread sent to worker the following message:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19 workbench.main.js:16 Object {type: "threadService", payload: Array[3]}payload: Array[3]type: "threadService"__proto__: Object workbench.main.js:16 And the worker replied with an error:e._onError @ workbench.main.js:16e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19 workbench.main.js:16 Object {stack: "TypeError: Cannot read property 'startLineNumber' …tor/common/worker/editorWorkerServer.js:14:31951)", message: "TypeError: Cannot read property 'startLineNumber' of null"}message: "TypeError: Cannot read property 'startLineNumber' of null"stack: "TypeError: Cannot read property 'startLineNumber' of null↵ at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655)↵ at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906)↵ at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265↵ at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244)↵ at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843)↵ at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236)↵ at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490)↵ at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479)↵ at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878)↵ at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951)"__proto__: Object workbench.main.js:90 TypeError: Cannot read property 'startLineNumber' of null: TypeError: Cannot read property 'startLineNumber' of null at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655) at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906) at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265 at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244) at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843) at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236) at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490) at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479) at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878) at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951)e.onUnexpectedError @ workbench.main.js:90(anonymous function) @ workbench.main.js:90e.onUnexpectedError @ workbench.main.js:10u @ workbench.main.js:9e._onmessage @ workbench.main.js:16e._onSerializedMessage @ workbench.main.js:16(anonymous function) @ workbench.main.js:16worker.onmessage @ workbench.main.js:19 workbench.main.js:63 TypeError: Cannot read property 'startLineNumber' of null: TypeError: Cannot read property 'startLineNumber' of null at Function.e.startPosition (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:4:24655) at n.format (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/htmlWorker.js:8:13906) at file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10265 at t.Class.define.then (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/base/common/worker/workerServer.js:4:25244) at e.t._worker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:16843) at e.formatDocument (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/languages/html/common/html.js:4:10236) at t.OneWorker (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:15:490) at e.(anonymous function) [as formatDocument] (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:13:12479) at t._handleRequest (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31878) at t.dispatch (file:///C:/Program%20Files%20(x86)/Microsoft%20VS%20Code/resources/app/out/vs/editor/common/worker/editorWorkerServer.js:14:31951) </code></pre></div>
<ul dir="auto"> <li>open HTML file</li> <li>run format (entire document)</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5047891/11807883/1facd200-a31d-11e5-8e73-29c14d0910e3.png"><img src="https://cloud.githubusercontent.com/assets/5047891/11807883/1facd200-a31d-11e5-8e73-29c14d0910e3.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">I am unable to locate the cursor between <code class="notranslate">}}</code> and <code class="notranslate">&lt;</code>, when I click the space between, nothing happens.</p>
<ul dir="auto"> <li>VSCode Version:1.8.2</li> <li>OS Version:ubuntu 15.10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>ctrl +shift + p open the pane</li> <li>type ext install</li> <li>search for extensions and click one of their readme button</li> <li>the pane will close after clicking</li> </ol>
0
<h2 dir="auto">Checklist</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.2.1 (windowlicker) kombu:4.2.1 py:3.6.5 billiard:3.5.0.4 py-amqp:2.3.2 platform -&gt; system:Linux arch:64bit, ELF imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:disabled"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.2.1 (windowlicker) kombu:4.2.1 py:3.6.5 billiard:3.5.0.4 py-amqp:2.3.2 platform -&gt; system:Linux arch:64bit, ELF imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:disabled </code></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> </ul> <h2 dir="auto">Steps to reproduce</h2> <p dir="auto">Run a Celery worker with <code class="notranslate">--pool=solo</code> option and send it a SIGTERM while executing a task. By running <a href="https://gist.github.com/entwanne/819db854ea3e01f6e54968bab9ecc723">this script</a> for example.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">The task should complete before the process stops, like when running without <code class="notranslate">--pool=solo</code>.</p> <h2 dir="auto">Actual behavior</h2> <p dir="auto">The worker prints "worker: Warm shutdown (MainProcess)" and immediatly stops.</p> <p dir="auto">Maybe related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175209840" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/3430" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3430/hovercard" href="https://github.com/celery/celery/issues/3430">#3430</a></p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%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%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 in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <ul dir="auto"> <li>None</li> </ul> <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">Description</h1> <p dir="auto">I had a deployed dev django application on AWS cloud with SQS setup via url format <code class="notranslate">sqs://aws_access_key_id:aws_secret_access_key@</code>. This was the first thing I saw to make it running with SQS.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/50069473/146331493-2b330b7a-8cc7-49ab-a0d9-3498491ec646.png"><img src="https://user-images.githubusercontent.com/50069473/146331493-2b330b7a-8cc7-49ab-a0d9-3498491ec646.png" alt="2021-12-12!UNITO-UNDERSCORE!14-22-11" style="max-width: 100%;"></a></p> <p dir="auto">Since it was development server I had <code class="notranslate">DEBUG=True</code> for the django. Django itself in debug mode shows environment variables when it hits 500 error.<br> The problem is that in this case sqs url setup becomes dangerous. It's exposed to the page while other type of environment variables like <code class="notranslate">token</code>, <code class="notranslate">password</code>, etc are hidden.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/50069473/146332737-144d880d-466b-4171-aa49-d0cae239d8c3.png"><img src="https://user-images.githubusercontent.com/50069473/146332737-144d880d-466b-4171-aa49-d0cae239d8c3.png" alt="2021-12-12!UNITO-UNDERSCORE!10-27-29" style="max-width: 100%;"></a></p> <p dir="auto">I know this might sound like it's not related to celery, but since celery is mostly used with django in many projects I consider the SQS setup documentation dangerous to newcomers and to the people who didn't notice that.</p> <p dir="auto">Actually someone from the internet really got access to the key and we lost some money..</p> <h1 dir="auto">Suggestions</h1> <p dir="auto">Either add a warning that this is dangerous to use access and secret key with turned on debug mode on django or completely delete this sqs url format with access and secret keys.</p>
0
<p dir="auto">React version: 16.13.1</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>I used the following code in Jest</li> </ol> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" it(&quot;should not rerender when setting state to the same value via click&quot;, async () =&gt; { const callback = jest.fn(); function MyComponent() { const [foo, setFoo] = useState(&quot;bir&quot;); callback(); return (&lt;div data-testid=&quot;test&quot; onClick={() =&gt; setFoo(&quot;bar&quot;)}&gt;{foo}&lt;/div&gt;); } const { getByTestId } = render(&lt;MyComponent /&gt;) const testElement = getByTestId(&quot;test&quot;); expect(testElement.textContent).toEqual(&quot;bir&quot;); expect(callback).toBeCalledTimes(1); act(() =&gt; { fireEvent.click(testElement); }); expect(testElement.textContent).toEqual(&quot;bar&quot;); expect(callback).toBeCalledTimes(2); act(() =&gt; { fireEvent.click(testElement); }); expect(testElement.textContent).toEqual(&quot;bar&quot;); expect(callback).toBeCalledTimes(2); // gets 3 here /* assuming we update the last line as follows expect(callback).toBeCalledTimes(3); // really should be 2 act(() =&gt; { fireEvent.click(testElement); }); expect(testElement.textContent).toEqual(&quot;bar&quot;); expect(callback).toBeCalledTimes(3); // does not re-render */ })"><pre class="notranslate"> <span class="pl-s1">it</span><span class="pl-kos">(</span><span class="pl-s">"should not rerender when setting state to the same value via click"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">callback</span> <span class="pl-c1">=</span> <span class="pl-s1">jest</span><span class="pl-kos">.</span><span class="pl-en">fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-smi">MyComponent</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-kos">[</span><span class="pl-s1">foo</span><span class="pl-kos">,</span> <span class="pl-s1">setFoo</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-s">"bir"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">callback</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">(</span><span class="pl-kos">&lt;</span><span class="pl-smi">div</span><span class="pl-kos"></span> <span class="pl-s1">data</span><span class="pl-c1">-</span><span class="pl-s1">testid</span><span class="pl-c1">=</span><span class="pl-s">"test"</span> <span class="pl-en">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-en">setFoo</span><span class="pl-kos">(</span><span class="pl-s">"bar"</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span>foo<span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span>div&gt;<span class="pl-kos">)</span>; <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> <span class="pl-c1">getByTestId</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">&lt;</span><span class="pl-smi">MyComponent</span><span class="pl-kos"></span> <span class="pl-c1">/</span>&gt;<span class="pl-kos">)</span> <span class="pl-s1">const</span> <span class="pl-s1">testElement</span> <span class="pl-c1">=</span> <span class="pl-en">getByTestId</span><span class="pl-kos">(</span><span class="pl-s">"test"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">testElement</span><span class="pl-kos">.</span><span class="pl-c1">textContent</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toEqual</span><span class="pl-kos">(</span><span class="pl-s">"bir"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">callback</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeCalledTimes</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">act</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">fireEvent</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-s1">testElement</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">expect</span><span class="pl-kos">(</span><span class="pl-s1">testElement</span><span class="pl-kos">.</span><span class="pl-c1">textContent</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toEqual</span><span class="pl-kos">(</span><span class="pl-s">"bar"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">callback</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeCalledTimes</span><span class="pl-kos">(</span><span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">act</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">fireEvent</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-s1">testElement</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">expect</span><span class="pl-kos">(</span><span class="pl-s1">testElement</span><span class="pl-kos">.</span><span class="pl-c1">textContent</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toEqual</span><span class="pl-kos">(</span><span class="pl-s">"bar"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">callback</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeCalledTimes</span><span class="pl-kos">(</span><span class="pl-c1">2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// gets 3 here</span> <span class="pl-c">/*</span> <span class="pl-c"> assuming we update the last line as follows</span> <span class="pl-c"> expect(callback).toBeCalledTimes(3); // really should be 2</span> <span class="pl-c"> act(() =&gt; { fireEvent.click(testElement); });</span> <span class="pl-c"> expect(testElement.textContent).toEqual("bar");</span> <span class="pl-c"> expect(callback).toBeCalledTimes(3); // does not re-render</span> <span class="pl-c"> */</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Link to code example:</p> <ul dir="auto"> <li>Similar code in <a href="https://codesandbox.io/s/rerender-on-first-two-clicks-700c0?file=/src/App.js" rel="nofollow">codesandbox</a></li> <li>Simlar AND working code in <a href="https://snack.expo.dev/@trajano/usestate-test" rel="nofollow">an Expo Snack</a></li> </ul> <h2 dir="auto">The current behavior</h2> <p dir="auto">On initial render OK<br> On first click, rerender due to value change OK<br> On second click, rerender even with the same value NOT OK</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">On initial render OK<br> On first click, rerender due to value change OK<br> On second click, no rerender because useState dispatch with the same value</p> <p dir="auto">Note this works correctly on React-Native as shown by Expo</p>
<p dir="auto">React version:</p> <h2 dir="auto">Steps To Reproduce</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { useState, useEffect, useRef } from &quot;react&quot;; function App() { const [count, setCount] = useState(0); const countLast = useRef(0); function handleClick() { const num = 1; setCount(num); console.log(num == countLast.current, &quot;set num&quot;, num, &quot;last count:&quot;, countLast.current); } useEffect(() =&gt; { countLast.current = count; console.log(&quot;effect&quot;); }); console.log(&quot;Render&quot;); return ( &lt;div&gt; &lt;button onClick={handleClick}&gt;Next&lt;/button&gt; {count} &lt;/div&gt; ); } export default App;"><pre class="notranslate"><code class="notranslate">import { useState, useEffect, useRef } from "react"; function App() { const [count, setCount] = useState(0); const countLast = useRef(0); function handleClick() { const num = 1; setCount(num); console.log(num == countLast.current, "set num", num, "last count:", countLast.current); } useEffect(() =&gt; { countLast.current = count; console.log("effect"); }); console.log("Render"); return ( &lt;div&gt; &lt;button onClick={handleClick}&gt;Next&lt;/button&gt; {count} &lt;/div&gt; ); } export default App; </code></pre></div> <p dir="auto">Link to code example:<br> <a href="https://codesandbox.io/s/confident-satoshi-3othy?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/confident-satoshi-3othy?file=/src/App.js</a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22582226/147873129-89338b13-0e93-485e-a3b2-2cb9dedd2b64.png"><img src="https://user-images.githubusercontent.com/22582226/147873129-89338b13-0e93-485e-a3b2-2cb9dedd2b64.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">When I clicked the button for the second time, The "Render" string is printed, But the third and after clicks are not printed.<br> The second click should be consistent with the follow-up, it is not printing "Render" strings, beacuse <code class="notranslate">num == countLast.current</code> is True.<br> This inconsistency of behavior can cause a lot of confusion.</p>
1
<h3 dir="auto">Summary</h3> <p dir="auto">When transforming response data via AxiosRequestConfig.transformResponse, there is no way to drive transformation logic differently depending on the HTTP status of the response.</p> <p dir="auto">This is a problem for me because I want to implement a transform that transforms only successful responses. Successful responses (in 200 range) are guaranteed to contain data in a well-defined format that I want to transform, but unsuccessful responses may contain a variety of response data structures (dependent on the type of error) that I want to pass-through my transform without modification so that they can be later processed by a more generic error response handler.</p> <p dir="auto">Implementing my transform to detect what type of structure is in the response based on the response data alone is impractical. The API I am working with clearly defines the structure of the response for each HTTP status code it may respond with, so there's no reason that I should have to reverse-engineer what kind of response it is by inspecting the response data (and it may not even be possible to do so unambiguously).</p> <p dir="auto">Some options:</p> <h4 dir="auto">Pass HTTP status code to AxiosRequestConfig.transformResponse (most useful option IMO)</h4> <p dir="auto">Pros:</p> <ul dir="auto"> <li>Allows for granularity of transforming data differently based on status code.</li> </ul> <p dir="auto">Cons:</p> <ul dir="auto"> <li>Requires duplicating logic to decide whether response code is success vs error if that's all you care about (maybe this could be solved by also passing a "success" boolean?).</li> <li>Introduces a difference in signature for transformResponse vs transformRequest, which may complicate some of the existing design/code that essentially treats them both the same.</li> </ul> <h4 dir="auto">Add 2 new options to AxiosRequestConfig:</h4> <ul dir="auto"> <li>transformSuccessResponse: transforms response data ONLY for success responses</li> <li>transformErrorResponse: transforms response data ONLY for error responses.</li> </ul> <p dir="auto">Pros:</p> <ul dir="auto"> <li>Makes use of existing determination of which status codes are considered success vs error.</li> </ul> <p dir="auto">Cons:</p> <ul dir="auto"> <li>Missing granularity for converting different response data structures for different error status codes.</li> <li>Requires backward compatibility for continuing to use transformResponse for all responses.</li> </ul> <h3 dir="auto">Context</h3> <ul dir="auto"> <li>axios version: <em>e.g.: v0.17.1</em></li> <li>Environment: *e.g.: irrelevant</li> </ul>
<h4 dir="auto">Summary</h4> <p dir="auto">Recently <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="291855598" data-permission-text="Title is private" data-url="https://github.com/axios/axios/issues/1323" data-hovercard-type="issue" data-hovercard-url="/axios/axios/issues/1323/hovercard" href="https://github.com/axios/axios/issues/1323">#1323</a> has been fixed, however <code class="notranslate">follow-redirects</code> is still not correctly implemented: current version does not handle errors correctly.<br> Indeed, if <code class="notranslate">maxBodyLength</code> is 10MB and the resource fetched after the redirect is bigger, <code class="notranslate">follow-redirects</code> will emit an error but that error will occur outside of axios promise chain.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Request body larger than maxBodyLength limit at RedirectableRequest.write (./node_modules/follow-redirects/index.js:66:24) at FormData.CombinedStream.write (./node_modules/combined-stream/lib/combined_stream.js:118:8) at FormData.CombinedStream._pipeNext (./node_modules/combined-stream/lib/combined_stream.js:106:8) at FormData.CombinedStream._getNext (./node_modules/combined-stream/lib/combined_stream.js:79:10) at FormData.CombinedStream._pipeNext (./node_modules/combined-stream/lib/combined_stream.js:107:8) at FormData.CombinedStream._getNext (./node_modules/combined-stream/lib/combined_stream.js:79:10) at FormData.CombinedStream.resume (./node_modules/combined-stream/lib/combined_stream.js:134:10) at FormData.CombinedStream.pipe (./node_modules/combined-stream/lib/combined_stream.js:64:8) at dispatchHttpRequest (./node_modules/axios/lib/adapters/http.js:227:12) at httpAdapter (./node_modules/axios/lib/adapters/http.js:18:10) at dispatchRequest (./node_modules/axios/lib/core/dispatchRequest.js:59:10)"><pre class="notranslate"><code class="notranslate">Error: Request body larger than maxBodyLength limit at RedirectableRequest.write (./node_modules/follow-redirects/index.js:66:24) at FormData.CombinedStream.write (./node_modules/combined-stream/lib/combined_stream.js:118:8) at FormData.CombinedStream._pipeNext (./node_modules/combined-stream/lib/combined_stream.js:106:8) at FormData.CombinedStream._getNext (./node_modules/combined-stream/lib/combined_stream.js:79:10) at FormData.CombinedStream._pipeNext (./node_modules/combined-stream/lib/combined_stream.js:107:8) at FormData.CombinedStream._getNext (./node_modules/combined-stream/lib/combined_stream.js:79:10) at FormData.CombinedStream.resume (./node_modules/combined-stream/lib/combined_stream.js:134:10) at FormData.CombinedStream.pipe (./node_modules/combined-stream/lib/combined_stream.js:64:8) at dispatchHttpRequest (./node_modules/axios/lib/adapters/http.js:227:12) at httpAdapter (./node_modules/axios/lib/adapters/http.js:18:10) at dispatchRequest (./node_modules/axios/lib/core/dispatchRequest.js:59:10) </code></pre></div> <p dir="auto">Axios should intercept that error and reject the promise</p> <h4 dir="auto">Context</h4> <ul dir="auto"> <li>axios version: v0.17.1 + master</li> <li>Environment: node v8.4.0</li> </ul>
0
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.2.0 (latest released)</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Debian GNU/Linux 11 (bullseye)</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-ftp==2.0.1<br> apache-airflow-providers-http==2.0.1<br> apache-airflow-providers-imap==2.0.1<br> apache-airflow-providers-postgres==2.3.0<br> apache-airflow-providers-sqlite==2.0.1</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other Docker-based deployment</p> <h3 dir="auto">Deployment details</h3> <p dir="auto">The host machine runs Windows 10 Enterprise build 19043.1237. The version of Docker Desktop is 4.1.1 (69879). Docker image is based on python:3.8-slim, and it's a single-machine deployment.</p> <h3 dir="auto">What happened</h3> <p dir="auto">If runs a python script with BashOperator and supplies any "env" argument to BashOperator, the <code class="notranslate">sys.executable</code> variable of the python session becomes <code class="notranslate">None</code></p> <h3 dir="auto">What you expected to happen</h3> <p dir="auto"><code class="notranslate">sys.executable</code> should populates the path of python executable when using BashOperator with "env" argument</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">I was running the following DAG</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import datetime from airflow import DAG from airflow.operators.bash import BashOperator with DAG( dag_id='testdag', start_date=datetime.datetime(2021,10,1), schedule_interval='0 11 * * *', # daily 11 AM UTC catchup=False ) as dag: test_task = BashOperator( task_id = 'test_task' ,bash_command= 'echo $(python3 -c &quot;import sys;print(sys.executable)&quot;)' ,env={'test':'test'} )"><pre class="notranslate"><code class="notranslate">import datetime from airflow import DAG from airflow.operators.bash import BashOperator with DAG( dag_id='testdag', start_date=datetime.datetime(2021,10,1), schedule_interval='0 11 * * *', # daily 11 AM UTC catchup=False ) as dag: test_task = BashOperator( task_id = 'test_task' ,bash_command= 'echo $(python3 -c "import sys;print(sys.executable)")' ,env={'test':'test'} ) </code></pre></div> <p dir="auto">And the log showed:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2021-10-22, 12:02:09 EDT] {taskinstance.py:1035} INFO - Dependencies all met for &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:02:07.768715+00:00 [queued]&gt; [2021-10-22, 12:02:09 EDT] {taskinstance.py:1035} INFO - Dependencies all met for &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:02:07.768715+00:00 [queued]&gt; [2021-10-22, 12:02:09 EDT] {taskinstance.py:1241} INFO - -------------------------------------------------------------------------------- [2021-10-22, 12:02:09 EDT] {taskinstance.py:1242} INFO - Starting attempt 1 of 1 [2021-10-22, 12:02:09 EDT] {taskinstance.py:1243} INFO - -------------------------------------------------------------------------------- [2021-10-22, 12:02:09 EDT] {taskinstance.py:1262} INFO - Executing &lt;Task(BashOperator): test_task&gt; on 2021-10-22 16:02:07.768715+00:00 [2021-10-22, 12:02:09 EDT] {standard_task_runner.py:52} INFO - Started process 15435 to run task [2021-10-22, 12:02:09 EDT] {standard_task_runner.py:76} INFO - Running: ['airflow', 'tasks', 'run', 'testdag', 'test_task', 'manual__2021-10-22T16:02:07.768715+00:00', '--job-id', '31', '--raw', '--subdir', 'DAGS_FOLDER/test.py', '--cfg-path', '/tmp/tmpwzxrybgg', '--error-file', '/tmp/tmpqqsq91p4'] [2021-10-22, 12:02:09 EDT] {standard_task_runner.py:77} INFO - Job 31: Subtask test_task [2021-10-22, 12:02:09 EDT] {logging_mixin.py:109} INFO - Running &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:02:07.768715+00:00 [running]&gt; on host 8f4f12aea4ed [2021-10-22, 12:02:10 EDT] {taskinstance.py:1412} INFO - Exporting the following env vars: AIRFLOW_CTX_DAG_OWNER=airflow AIRFLOW_CTX_DAG_ID=testdag AIRFLOW_CTX_TASK_ID=test_task AIRFLOW_CTX_EXECUTION_DATE=2021-10-22T16:02:07.768715+00:00 AIRFLOW_CTX_DAG_RUN_ID=manual__2021-10-22T16:02:07.768715+00:00 [2021-10-22, 12:02:10 EDT] {subprocess.py:62} INFO - Tmp dir root location: /tmp [2021-10-22, 12:02:10 EDT] {subprocess.py:74} INFO - Running command: ['bash', '-c', 'echo $(python3 -c &quot;import sys;print(sys.executable)&quot;)'] [2021-10-22, 12:02:10 EDT] {subprocess.py:85} INFO - Output: [2021-10-22, 12:02:10 EDT] {subprocess.py:89} INFO - [2021-10-22, 12:02:10 EDT] {subprocess.py:93} INFO - Command exited with return code 0 [2021-10-22, 12:02:10 EDT] {taskinstance.py:1270} INFO - Marking task as SUCCESS. dag_id=testdag, task_id=test_task, execution_date=20211022T160207, start_date=20211022T160209, end_date=20211022T160210 [2021-10-22, 12:02:10 EDT] {local_task_job.py:154} INFO - Task exited with return code 0 [2021-10-22, 12:02:10 EDT] {local_task_job.py:264} INFO - 0 downstream tasks scheduled from follow-on schedule check"><pre class="notranslate"><code class="notranslate">[2021-10-22, 12:02:09 EDT] {taskinstance.py:1035} INFO - Dependencies all met for &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:02:07.768715+00:00 [queued]&gt; [2021-10-22, 12:02:09 EDT] {taskinstance.py:1035} INFO - Dependencies all met for &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:02:07.768715+00:00 [queued]&gt; [2021-10-22, 12:02:09 EDT] {taskinstance.py:1241} INFO - -------------------------------------------------------------------------------- [2021-10-22, 12:02:09 EDT] {taskinstance.py:1242} INFO - Starting attempt 1 of 1 [2021-10-22, 12:02:09 EDT] {taskinstance.py:1243} INFO - -------------------------------------------------------------------------------- [2021-10-22, 12:02:09 EDT] {taskinstance.py:1262} INFO - Executing &lt;Task(BashOperator): test_task&gt; on 2021-10-22 16:02:07.768715+00:00 [2021-10-22, 12:02:09 EDT] {standard_task_runner.py:52} INFO - Started process 15435 to run task [2021-10-22, 12:02:09 EDT] {standard_task_runner.py:76} INFO - Running: ['airflow', 'tasks', 'run', 'testdag', 'test_task', 'manual__2021-10-22T16:02:07.768715+00:00', '--job-id', '31', '--raw', '--subdir', 'DAGS_FOLDER/test.py', '--cfg-path', '/tmp/tmpwzxrybgg', '--error-file', '/tmp/tmpqqsq91p4'] [2021-10-22, 12:02:09 EDT] {standard_task_runner.py:77} INFO - Job 31: Subtask test_task [2021-10-22, 12:02:09 EDT] {logging_mixin.py:109} INFO - Running &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:02:07.768715+00:00 [running]&gt; on host 8f4f12aea4ed [2021-10-22, 12:02:10 EDT] {taskinstance.py:1412} INFO - Exporting the following env vars: AIRFLOW_CTX_DAG_OWNER=airflow AIRFLOW_CTX_DAG_ID=testdag AIRFLOW_CTX_TASK_ID=test_task AIRFLOW_CTX_EXECUTION_DATE=2021-10-22T16:02:07.768715+00:00 AIRFLOW_CTX_DAG_RUN_ID=manual__2021-10-22T16:02:07.768715+00:00 [2021-10-22, 12:02:10 EDT] {subprocess.py:62} INFO - Tmp dir root location: /tmp [2021-10-22, 12:02:10 EDT] {subprocess.py:74} INFO - Running command: ['bash', '-c', 'echo $(python3 -c "import sys;print(sys.executable)")'] [2021-10-22, 12:02:10 EDT] {subprocess.py:85} INFO - Output: [2021-10-22, 12:02:10 EDT] {subprocess.py:89} INFO - [2021-10-22, 12:02:10 EDT] {subprocess.py:93} INFO - Command exited with return code 0 [2021-10-22, 12:02:10 EDT] {taskinstance.py:1270} INFO - Marking task as SUCCESS. dag_id=testdag, task_id=test_task, execution_date=20211022T160207, start_date=20211022T160209, end_date=20211022T160210 [2021-10-22, 12:02:10 EDT] {local_task_job.py:154} INFO - Task exited with return code 0 [2021-10-22, 12:02:10 EDT] {local_task_job.py:264} INFO - 0 downstream tasks scheduled from follow-on schedule check </code></pre></div> <p dir="auto">In my tests, as long as something is passed through "env" argument to the BashOperator which runs a python scripts, the spawned python session will have the <code class="notranslate">sys.executable</code> variable as <code class="notranslate">None</code>.</p> <h3 dir="auto">Anything else</h3> <p dir="auto">The actual python script I tried to run is using <code class="notranslate">Snowflake.connector</code> library. The library tries to identify the underlying OS/platform using <code class="notranslate">platform.libc_ver(sys.executable)</code> function call. Very weirdly, in this case, the value of <code class="notranslate">sys.executable</code> becomes the temporary execution directory (such as <code class="notranslate">/tmp/airflowtmpyes4ub8l</code> in the following log). Not sure if this info helps.</p> <p dir="auto">DAG</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import datetime from airflow import DAG from airflow.operators.bash import BashOperator with DAG( dag_id='testdag', start_date=datetime.datetime(2021,10,1), schedule_interval='0 11 * * *', # daily 11 AM UTC catchup=False ) as dag: test_task = BashOperator( task_id = 'test_task' ,bash_command = 'python3 -c &quot;import snowflake.connector&quot;' ,env={'test':'test'}"><pre class="notranslate"><code class="notranslate">import datetime from airflow import DAG from airflow.operators.bash import BashOperator with DAG( dag_id='testdag', start_date=datetime.datetime(2021,10,1), schedule_interval='0 11 * * *', # daily 11 AM UTC catchup=False ) as dag: test_task = BashOperator( task_id = 'test_task' ,bash_command = 'python3 -c "import snowflake.connector"' ,env={'test':'test'} </code></pre></div> <p dir="auto">The log</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2021-10-22, 12:34:52 EDT] {taskinstance.py:1035} INFO - Dependencies all met for &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:34:48.077920+00:00 [queued]&gt; [2021-10-22, 12:34:52 EDT] {taskinstance.py:1035} INFO - Dependencies all met for &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:34:48.077920+00:00 [queued]&gt; [2021-10-22, 12:34:52 EDT] {taskinstance.py:1241} INFO - -------------------------------------------------------------------------------- [2021-10-22, 12:34:52 EDT] {taskinstance.py:1242} INFO - Starting attempt 1 of 1 [2021-10-22, 12:34:52 EDT] {taskinstance.py:1243} INFO - -------------------------------------------------------------------------------- [2021-10-22, 12:34:52 EDT] {taskinstance.py:1262} INFO - Executing &lt;Task(BashOperator): test_task&gt; on 2021-10-22 16:34:48.077920+00:00 [2021-10-22, 12:34:52 EDT] {standard_task_runner.py:52} INFO - Started process 17378 to run task [2021-10-22, 12:34:52 EDT] {standard_task_runner.py:76} INFO - Running: ['airflow', 'tasks', 'run', 'testdag', 'test_task', 'manual__2021-10-22T16:34:48.077920+00:00', '--job-id', '37', '--raw', '--subdir', 'DAGS_FOLDER/test.py', '--cfg-path', '/tmp/tmp0smgg6b6', '--error-file', '/tmp/tmpa9trmhpd'] [2021-10-22, 12:34:52 EDT] {standard_task_runner.py:77} INFO - Job 37: Subtask test_task [2021-10-22, 12:34:52 EDT] {logging_mixin.py:109} INFO - Running &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:34:48.077920+00:00 [running]&gt; on host 8f4f12aea4ed [2021-10-22, 12:34:52 EDT] {taskinstance.py:1412} INFO - Exporting the following env vars: AIRFLOW_CTX_DAG_OWNER=airflow AIRFLOW_CTX_DAG_ID=testdag AIRFLOW_CTX_TASK_ID=test_task AIRFLOW_CTX_EXECUTION_DATE=2021-10-22T16:34:48.077920+00:00 AIRFLOW_CTX_DAG_RUN_ID=manual__2021-10-22T16:34:48.077920+00:00 [2021-10-22, 12:34:52 EDT] {subprocess.py:62} INFO - Tmp dir root location: /tmp [2021-10-22, 12:34:52 EDT] {subprocess.py:74} INFO - Running command: ['bash', '-c', 'python3 -c &quot;import snowflake.connector&quot;'] [2021-10-22, 12:34:52 EDT] {subprocess.py:85} INFO - Output: [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - Traceback (most recent call last): [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt; [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File &quot;/usr/local/lib/python3.8/site-packages/snowflake/connector/__init__.py&quot;, line 15, in &lt;module&gt; [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - from .connection import SnowflakeConnection [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File &quot;/usr/local/lib/python3.8/site-packages/snowflake/connector/connection.py&quot;, line 31, in &lt;module&gt; [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - from . import errors, proxy [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File &quot;/usr/local/lib/python3.8/site-packages/snowflake/connector/errors.py&quot;, line 14, in &lt;module&gt; [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - from .description import CLIENT_NAME, SNOWFLAKE_CONNECTOR_VERSION [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File &quot;/usr/local/lib/python3.8/site-packages/snowflake/connector/description.py&quot;, line 17, in &lt;module&gt; [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - PLATFORM = platform.platform() [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File &quot;/usr/local/lib/python3.8/platform.py&quot;, line 1206, in platform [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - libcname, libcversion = libc_ver(sys.executable) [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File &quot;/usr/local/lib/python3.8/platform.py&quot;, line 193, in libc_ver [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - with open(executable, 'rb') as f: [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - IsADirectoryError: [Errno 21] Is a directory: '/tmp/airflowtmpyes4ub8l' [2021-10-22, 12:34:52 EDT] {subprocess.py:93} INFO - Command exited with return code 1 [2021-10-22, 12:34:52 EDT] {taskinstance.py:1686} ERROR - Task failed with exception Traceback (most recent call last): File &quot;/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py&quot;, line 1324, in _run_raw_task self._execute_task_with_callbacks(context) File &quot;/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py&quot;, line 1443, in _execute_task_with_callbacks result = self._execute_task(context, self.task) File &quot;/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py&quot;, line 1499, in _execute_task result = execute_callable(context=context) File &quot;/usr/local/lib/python3.8/site-packages/airflow/operators/bash.py&quot;, line 187, in execute raise AirflowException( airflow.exceptions.AirflowException: Bash command failed. The command returned a non-zero exit code 1. [2021-10-22, 12:34:52 EDT] {taskinstance.py:1270} INFO - Marking task as FAILED. dag_id=testdag, task_id=test_task, execution_date=20211022T163448, start_date=20211022T163452, end_date=20211022T163452 [2021-10-22, 12:34:52 EDT] {standard_task_runner.py:88} ERROR - Failed to execute job 37 for task test_task Traceback (most recent call last): File &quot;/usr/local/lib/python3.8/site-packages/airflow/task/task_runner/standard_task_runner.py&quot;, line 85, in _start_by_fork args.func(args, dag=self.dag) File &quot;/usr/local/lib/python3.8/site-packages/airflow/cli/cli_parser.py&quot;, line 48, in command return func(*args, **kwargs) File &quot;/usr/local/lib/python3.8/site-packages/airflow/utils/cli.py&quot;, line 92, in wrapper return f(*args, **kwargs) File &quot;/usr/local/lib/python3.8/site-packages/airflow/cli/commands/task_command.py&quot;, line 292, in task_run _run_task_by_selected_method(args, dag, ti) File &quot;/usr/local/lib/python3.8/site-packages/airflow/cli/commands/task_command.py&quot;, line 107, in _run_task_by_selected_method _run_raw_task(args, ti) File &quot;/usr/local/lib/python3.8/site-packages/airflow/cli/commands/task_command.py&quot;, line 180, in _run_raw_task ti._run_raw_task( File &quot;/usr/local/lib/python3.8/site-packages/airflow/utils/session.py&quot;, line 70, in wrapper return func(*args, session=session, **kwargs) File &quot;/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py&quot;, line 1324, in _run_raw_task self._execute_task_with_callbacks(context) File &quot;/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py&quot;, line 1443, in _execute_task_with_callbacks result = self._execute_task(context, self.task) File &quot;/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py&quot;, line 1499, in _execute_task result = execute_callable(context=context) File &quot;/usr/local/lib/python3.8/site-packages/airflow/operators/bash.py&quot;, line 187, in execute raise AirflowException( airflow.exceptions.AirflowException: Bash command failed. The command returned a non-zero exit code 1. [2021-10-22, 12:34:52 EDT] {local_task_job.py:154} INFO - Task exited with return code 1 [2021-10-22, 12:34:52 EDT] {local_task_job.py:264} INFO - 0 downstream tasks scheduled from follow-on schedule check"><pre class="notranslate"><code class="notranslate">[2021-10-22, 12:34:52 EDT] {taskinstance.py:1035} INFO - Dependencies all met for &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:34:48.077920+00:00 [queued]&gt; [2021-10-22, 12:34:52 EDT] {taskinstance.py:1035} INFO - Dependencies all met for &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:34:48.077920+00:00 [queued]&gt; [2021-10-22, 12:34:52 EDT] {taskinstance.py:1241} INFO - -------------------------------------------------------------------------------- [2021-10-22, 12:34:52 EDT] {taskinstance.py:1242} INFO - Starting attempt 1 of 1 [2021-10-22, 12:34:52 EDT] {taskinstance.py:1243} INFO - -------------------------------------------------------------------------------- [2021-10-22, 12:34:52 EDT] {taskinstance.py:1262} INFO - Executing &lt;Task(BashOperator): test_task&gt; on 2021-10-22 16:34:48.077920+00:00 [2021-10-22, 12:34:52 EDT] {standard_task_runner.py:52} INFO - Started process 17378 to run task [2021-10-22, 12:34:52 EDT] {standard_task_runner.py:76} INFO - Running: ['airflow', 'tasks', 'run', 'testdag', 'test_task', 'manual__2021-10-22T16:34:48.077920+00:00', '--job-id', '37', '--raw', '--subdir', 'DAGS_FOLDER/test.py', '--cfg-path', '/tmp/tmp0smgg6b6', '--error-file', '/tmp/tmpa9trmhpd'] [2021-10-22, 12:34:52 EDT] {standard_task_runner.py:77} INFO - Job 37: Subtask test_task [2021-10-22, 12:34:52 EDT] {logging_mixin.py:109} INFO - Running &lt;TaskInstance: testdag.test_task manual__2021-10-22T16:34:48.077920+00:00 [running]&gt; on host 8f4f12aea4ed [2021-10-22, 12:34:52 EDT] {taskinstance.py:1412} INFO - Exporting the following env vars: AIRFLOW_CTX_DAG_OWNER=airflow AIRFLOW_CTX_DAG_ID=testdag AIRFLOW_CTX_TASK_ID=test_task AIRFLOW_CTX_EXECUTION_DATE=2021-10-22T16:34:48.077920+00:00 AIRFLOW_CTX_DAG_RUN_ID=manual__2021-10-22T16:34:48.077920+00:00 [2021-10-22, 12:34:52 EDT] {subprocess.py:62} INFO - Tmp dir root location: /tmp [2021-10-22, 12:34:52 EDT] {subprocess.py:74} INFO - Running command: ['bash', '-c', 'python3 -c "import snowflake.connector"'] [2021-10-22, 12:34:52 EDT] {subprocess.py:85} INFO - Output: [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - Traceback (most recent call last): [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File "&lt;string&gt;", line 1, in &lt;module&gt; [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File "/usr/local/lib/python3.8/site-packages/snowflake/connector/__init__.py", line 15, in &lt;module&gt; [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - from .connection import SnowflakeConnection [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File "/usr/local/lib/python3.8/site-packages/snowflake/connector/connection.py", line 31, in &lt;module&gt; [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - from . import errors, proxy [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File "/usr/local/lib/python3.8/site-packages/snowflake/connector/errors.py", line 14, in &lt;module&gt; [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - from .description import CLIENT_NAME, SNOWFLAKE_CONNECTOR_VERSION [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File "/usr/local/lib/python3.8/site-packages/snowflake/connector/description.py", line 17, in &lt;module&gt; [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - PLATFORM = platform.platform() [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File "/usr/local/lib/python3.8/platform.py", line 1206, in platform [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - libcname, libcversion = libc_ver(sys.executable) [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - File "/usr/local/lib/python3.8/platform.py", line 193, in libc_ver [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - with open(executable, 'rb') as f: [2021-10-22, 12:34:52 EDT] {subprocess.py:89} INFO - IsADirectoryError: [Errno 21] Is a directory: '/tmp/airflowtmpyes4ub8l' [2021-10-22, 12:34:52 EDT] {subprocess.py:93} INFO - Command exited with return code 1 [2021-10-22, 12:34:52 EDT] {taskinstance.py:1686} ERROR - Task failed with exception Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 1324, in _run_raw_task self._execute_task_with_callbacks(context) File "/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 1443, in _execute_task_with_callbacks result = self._execute_task(context, self.task) File "/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 1499, in _execute_task result = execute_callable(context=context) File "/usr/local/lib/python3.8/site-packages/airflow/operators/bash.py", line 187, in execute raise AirflowException( airflow.exceptions.AirflowException: Bash command failed. The command returned a non-zero exit code 1. [2021-10-22, 12:34:52 EDT] {taskinstance.py:1270} INFO - Marking task as FAILED. dag_id=testdag, task_id=test_task, execution_date=20211022T163448, start_date=20211022T163452, end_date=20211022T163452 [2021-10-22, 12:34:52 EDT] {standard_task_runner.py:88} ERROR - Failed to execute job 37 for task test_task Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/airflow/task/task_runner/standard_task_runner.py", line 85, in _start_by_fork args.func(args, dag=self.dag) File "/usr/local/lib/python3.8/site-packages/airflow/cli/cli_parser.py", line 48, in command return func(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/airflow/utils/cli.py", line 92, in wrapper return f(*args, **kwargs) File "/usr/local/lib/python3.8/site-packages/airflow/cli/commands/task_command.py", line 292, in task_run _run_task_by_selected_method(args, dag, ti) File "/usr/local/lib/python3.8/site-packages/airflow/cli/commands/task_command.py", line 107, in _run_task_by_selected_method _run_raw_task(args, ti) File "/usr/local/lib/python3.8/site-packages/airflow/cli/commands/task_command.py", line 180, in _run_raw_task ti._run_raw_task( File "/usr/local/lib/python3.8/site-packages/airflow/utils/session.py", line 70, in wrapper return func(*args, session=session, **kwargs) File "/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 1324, in _run_raw_task self._execute_task_with_callbacks(context) File "/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 1443, in _execute_task_with_callbacks result = self._execute_task(context, self.task) File "/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 1499, in _execute_task result = execute_callable(context=context) File "/usr/local/lib/python3.8/site-packages/airflow/operators/bash.py", line 187, in execute raise AirflowException( airflow.exceptions.AirflowException: Bash command failed. The command returned a non-zero exit code 1. [2021-10-22, 12:34:52 EDT] {local_task_job.py:154} INFO - Task exited with return code 1 [2021-10-22, 12:34:52 EDT] {local_task_job.py:264} INFO - 0 downstream tasks scheduled from follow-on schedule check </code></pre></div> <p dir="auto">Thank you so much for the help!</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">Body</h3> <p dir="auto">I have a kind request for all the contributors to the latest provider packages release.<br> Could you help us to test the RC versions of the providers and let us know in the comment,<br> if the issue is addressed there.</p> <h2 dir="auto">Providers that need testing</h2> <p dir="auto">Those are providers that require testing as there were some substantial changes introduced:</p> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-amazon/2.3.0rc1" rel="nofollow">amazon: 2.3.0rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18156" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18156/hovercard">Add IAM Role Credentials to S3ToRedshiftTransfer and RedshiftToS3Transfer (#18156)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/john-jac/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/john-jac">@john-jac</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18241" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18241/hovercard">Adding missing <code class="notranslate">replace</code> param directive in docstring of SalesforceToS3Operator (#18241)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josh-fell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josh-fell">@josh-fell</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18027" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18027/hovercard">Added upsert method on S3ToRedshift operator (#18027)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mariotaddeucci/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mariotaddeucci">@mariotaddeucci</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17563" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17563/hovercard">Add Spark to the EMR cluster for the job flow examples (#17563)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/snolan-amount/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/snolan-amount">@snolan-amount</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18561" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18561/hovercard">Update s3_list.py (#18561)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Xilorole/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Xilorole">@Xilorole</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17626" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17626/hovercard">ECSOperator realtime logging (#17626)</a>: @codenamestif</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18036" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18036/hovercard">Deprecate default pod name in EKSPodOperator (#18036)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mik-laj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mik-laj">@mik-laj</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17448" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17448/hovercard">Aws secrets manager backend (#17448)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/JavierLopezT/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/JavierLopezT">@JavierLopezT</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17609" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17609/hovercard">sftp_to_s3 stream file option (#17609)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/john-jac/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/john-jac">@john-jac</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17987" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17987/hovercard">AwsBaseHook make <code class="notranslate">client_type</code> &amp; <code class="notranslate">resource_type</code> optional params for <code class="notranslate">get_client_type</code> &amp; <code class="notranslate">get_resource_type</code> (#17987)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17960" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17960/hovercard">Delete unnecessary parameters in EKSPodOperator (#17960)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mik-laj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mik-laj">@mik-laj</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17209" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17209/hovercard">ECSOperator returns last logs when ECS task fails (#17209)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pmalafosse/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pmalafosse">@pmalafosse</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17951" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17951/hovercard">Refresh credentials for long-running pods on EKS (#17951)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mik-laj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mik-laj">@mik-laj</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-apache-cassandra/2.1.0rc1" rel="nofollow">apache.cassandra: 2.1.0rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18620" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18620/hovercard">Adding a default conn ID value for Apache Cassandra sensors (#18620)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josh-fell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josh-fell">@josh-fell</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-apache-hdfs/2.1.1rc1" rel="nofollow">apache.hdfs: 2.1.1rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18331" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18331/hovercard">hdfs provider: fix deprecation warning in WebHDFSHook (#18331)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Aakcht/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Aakcht">@Aakcht</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-cncf-kubernetes/2.0.3rc1" rel="nofollow">cncf.kubernetes: 2.0.3rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18070" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18070/hovercard">Fix KubernetesPodOperator reattach when not deleting pods (#18070)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jedcunningham/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jedcunningham">@jedcunningham</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18377" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18377/hovercard">Make Kubernetes job description fit on one log line (#18377)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/collinmcnulty/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/collinmcnulty">@collinmcnulty</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17649" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17649/hovercard">Do not fail KubernetesPodOperator tasks if log following fails (#17649)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/baryluk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/baryluk">@baryluk</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-databricks/2.0.2rc1" rel="nofollow">databricks: 2.0.2rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18339" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18339/hovercard">Move DB call out of <code class="notranslate">DatabricksHook.__init__</code> (#18339)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kaxil/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kaxil">@kaxil</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-docker/2.2.0rc1" rel="nofollow">docker: 2.2.0rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/15330" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15330/hovercard">Add a Docker Taskflow decorator (#15330)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dimberman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dimberman">@dimberman</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-google/6.0.0rc1" rel="nofollow">google: 6.0.0rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18184" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18184/hovercard">Migrate Google Cloud Build from Discovery API to Python SDK (#18184)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ryanyuan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ryanyuan">@ryanyuan</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18459" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18459/hovercard">Add index to the dataset name to have separate dataset for each DAG (#18459)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/deedmitrij/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/deedmitrij">@deedmitrij</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18142" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18142/hovercard">Add missing <strong>init</strong>.py files for some test packages (#18142)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17868" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17868/hovercard">Add possibility to run DAGs from system tests and see DAGs logs (#17868)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/deedmitrij/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/deedmitrij">@deedmitrij</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18493" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18493/hovercard">Rename AzureDataLakeStorage to ADLS (#18493)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18088" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18088/hovercard">Make next_dagrun_info take a data interval (#18088)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/uranusjr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/uranusjr">@uranusjr</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18143" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18143/hovercard">Use parameters instead of params (#18143)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/msumit/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/msumit">@msumit</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17887" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17887/hovercard">New google operator: SQLToGoogleSheetsOperator (#17887)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mariotaddeucci/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mariotaddeucci">@mariotaddeucci</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18494" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18494/hovercard">Fix part of Google system tests (#18494)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mnojek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mnojek">@mnojek</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18548" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18548/hovercard">Fix kubernetes engine system test (#18548)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/deedmitrij/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/deedmitrij">@deedmitrij</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18373" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18373/hovercard">Fix BigQuery system test (#18373)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/deedmitrij/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/deedmitrij">@deedmitrij</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17998" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17998/hovercard">Fix error when create external table using table resource (#17998)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tnyz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tnyz">@tnyz</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18073" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18073/hovercard">Fix BigQuery data extraction in BigQueryToMySqlOperator (#18073)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wolfier/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wolfier">@wolfier</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18040" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18040/hovercard">Fix providers tests in main branch with eager upgrades (#18040)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18006" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18006/hovercard">fix(CloudSqlProxyRunner): don't query connections from Airflow DB (#18006)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/m1racoli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/m1racoli">@m1racoli</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18150" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18150/hovercard">Remove check for at least one schema in GCSToBigquery (#18150)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/c-nuro/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/c-nuro">@c-nuro</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17496" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17496/hovercard">deduplicate running jobs on BigQueryInsertJobOperator (#17496)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/blcksrx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/blcksrx">@blcksrx</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-hashicorp/2.1.1rc1" rel="nofollow">hashicorp: 2.1.1rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18064" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18064/hovercard">Fixing Vault AppRole authentication with CONN_URI (#18064)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nathadfield/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nathadfield">@nathadfield</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-microsoft-azure/3.2.0rc1" rel="nofollow">microsoft.azure: 3.2.0rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18493" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18493/hovercard">Rename AzureDataLakeStorage to ADLS (#18493)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/17885" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17885/hovercard">Creating ADF pipeline run operator, sensor + ADF custom conn fields (#17885)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josh-fell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josh-fell">@josh-fell</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18168" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18168/hovercard">Rename LocalToAzureDataLakeStorageOperator to LocalFilesystemToADLSOperator (#18168)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18109" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18109/hovercard">Rename FileToWasbOperator to LocalFilesystemToWasbOperator (#18109)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18287" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18287/hovercard">Fixed wasb hook attempting to create container when getting a blob client (#18287)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ignaski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ignaski">@ignaski</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18386" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18386/hovercard">Removing redundant relabeling of ADX conn field (#18386)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josh-fell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josh-fell">@josh-fell</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18456" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18456/hovercard">Proper handling of Account URL custom conn field in AzureBatchHook (#18456)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/josh-fell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/josh-fell">@josh-fell</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-microsoft-psrp/1.0.1rc1" rel="nofollow">microsoft.psrp: 1.0.1rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18014" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18014/hovercard">Fix unexpected bug in exiting PSRPHook.client context manager (#18014)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/malthe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malthe">@malthe</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-neo4j/2.0.2rc1" rel="nofollow">neo4j: 2.0.2rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18007" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18007/hovercard">fix Neo4jHook to get the query response (#18007)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/minu7/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/minu7">@minu7</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-papermill/2.1.0rc1" rel="nofollow">papermill: 2.1.0rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18357" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18357/hovercard">Add support for templated fields in PapermillOperator (#18357)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18174" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18174/hovercard">Fix usage of <code class="notranslate">range(len())</code> to <code class="notranslate">enumerate</code> (#18174)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kaxil/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kaxil">@kaxil</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-postgres/2.3.0rc1" rel="nofollow">postgres: 2.3.0rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18027" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18027/hovercard">Added upsert method on S3ToRedshift operator (#18027)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mariotaddeucci/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mariotaddeucci">@mariotaddeucci</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/18236" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18236/hovercard">Fix example dag of PostgresOperator (#18236)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-slack/4.1.0rc1" rel="nofollow">slack: 4.1.0rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/18466" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/18466/hovercard">Restore 'filename' to template_fields of SlackAPIFileOperator (#18466)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SayTen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SayTen">@SayTen</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-snowflake/2.2.0rc1" rel="nofollow">snowflake: 2.2.0rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17741" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17741/hovercard">Add Snowflake DQ Operators (#17741)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/denimalpaca/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/denimalpaca">@denimalpaca</a></li> </ul> <h3 dir="auto">Provider <a href="https://pypi.org/project/apache-airflow-providers-ssh/2.2.0rc1" rel="nofollow">ssh: 2.2.0rc1</a></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/17236" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/17236/hovercard">[Airflow 16364] Add conn_timeout and cmd_timeout params to SSHOperator; add conn_timeout param to SSHHook (#17236)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fatmumuhomer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fatmumuhomer">@fatmumuhomer</a></li> </ul> <h2 dir="auto">New Providers:</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Provider <a href="https://pypi.org/project/apache-airflow-providers-influxdb/1.0.0rc1" rel="nofollow">influxdb: 1.0.0rc1</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/subkanthi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/subkanthi">@subkanthi</a></li> </ul> <h2 dir="auto">Providers that do not need testing</h2> <p dir="auto">We have a number of providers that had doc-only changes so they are not released.</p> <h3 dir="auto">Committer</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I acknowledge that I am a maintainer/committer of the Apache Airflow project.</li> </ul>
0
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>yes</td> </tr> <tr> <td>BC Break report?</td> <td>yes/no</td> </tr> <tr> <td>RFC?</td> <td>yes/no</td> </tr> <tr> <td>Symfony version</td> <td>4.*</td> </tr> </tbody> </table> <p dir="auto">Debug code leftover in production is smelly, but there are cases where this occurs (for example you are debugging somethin in production and you run the same codebase in development and production mode on different ports or domains).</p> <p dir="auto">In such a case it would help alot if the <code class="notranslate">dump</code> function would be replaced with an empty stub (or something that sends warning messages to the logger that there is a forgotten <code class="notranslate">dump</code> function in the code) to not exit at this position with an "call to undefined function".</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>yes</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.2</td> </tr> </tbody> </table> <p dir="auto">I'm very addicted to dump() to debug my code and i find it a invaluable tool, so thank you very much!<br> Unfortunately some time i forget to rid off of a dump or two in the code and if the code bump into production i got an exception because dump() does not exists.</p> <p dir="auto">I understand this should not happen and i should get more controls in place, but it happens; so my proposal: why not create a fake dump() function for production environment that does absolutely nothing?</p> <p dir="auto">Regards,<br> Matteo</p>
1
<p dir="auto">I have a monorepo, containing a <code class="notranslate">create-react-app</code> application, a <code class="notranslate">next.js</code> application and a separate library. This library is linked (with <code class="notranslate">yarn link</code>) to the two applications and has <code class="notranslate">styled-components</code> as a peer dependency, which is installed in both the applications.</p> <p dir="auto">The linking works fine in the <code class="notranslate">create-react-app</code> application but in <code class="notranslate">next.js</code> it breaks resulting in the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error in @scrnhq/eurovision-elements Module not found: Error: Can't resolve 'styled-components' in '/Users/robert/sites/eurovision/elements/dist' ModuleNotFoundError: Module not found: Error: Can't resolve 'styled-components' in '/Users/robert/sites/eurovision/elements/dist' at factoryCallback (/Users/robert/sites/eurovision/pulse/node_modules/webpack/lib/Compilation.js:276:40) at factory (/Users/robert/sites/eurovision/pulse/node_modules/webpack/lib/NormalModuleFactory.js:235:20) at resolver (/Users/robert/sites/eurovision/pulse/node_modules/webpack/lib/NormalModuleFactory.js:60:20) at asyncLib.parallel (/Users/robert/sites/eurovision/pulse/node_modules/webpack/lib/NormalModuleFactory.js:127:20) at /Users/robert/sites/eurovision/pulse/node_modules/async/dist/async.js:3874:9 at /Users/robert/sites/eurovision/pulse/node_modules/async/dist/async.js:473:16 at iteratorCallback (/Users/robert/sites/eurovision/pulse/node_modules/async/dist/async.js:1048:13) at /Users/robert/sites/eurovision/pulse/node_modules/async/dist/async.js:958:16 at /Users/robert/sites/eurovision/pulse/node_modules/async/dist/async.js:3871:13 at resolvers.normal.resolve (/Users/robert/sites/eurovision/pulse/node_modules/webpack/lib/NormalModuleFactory.js:119:22) at onError (/Users/robert/sites/eurovision/pulse/node_modules/enhanced-resolve/lib/Resolver.js:65:10) at loggingCallbackWrapper (/Users/robert/sites/eurovision/pulse/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) at runAfter (/Users/robert/sites/eurovision/pulse/node_modules/enhanced-resolve/lib/Resolver.js:158:4) at innerCallback (/Users/robert/sites/eurovision/pulse/node_modules/enhanced-resolve/lib/Resolver.js:146:3) at loggingCallbackWrapper (/Users/robert/sites/eurovision/pulse/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) at next (/Users/robert/sites/eurovision/pulse/node_modules/tapable/lib/Tapable.js:252:11)"><pre class="notranslate"><code class="notranslate">Error in @scrnhq/eurovision-elements Module not found: Error: Can't resolve 'styled-components' in '/Users/robert/sites/eurovision/elements/dist' ModuleNotFoundError: Module not found: Error: Can't resolve 'styled-components' in '/Users/robert/sites/eurovision/elements/dist' at factoryCallback (/Users/robert/sites/eurovision/pulse/node_modules/webpack/lib/Compilation.js:276:40) at factory (/Users/robert/sites/eurovision/pulse/node_modules/webpack/lib/NormalModuleFactory.js:235:20) at resolver (/Users/robert/sites/eurovision/pulse/node_modules/webpack/lib/NormalModuleFactory.js:60:20) at asyncLib.parallel (/Users/robert/sites/eurovision/pulse/node_modules/webpack/lib/NormalModuleFactory.js:127:20) at /Users/robert/sites/eurovision/pulse/node_modules/async/dist/async.js:3874:9 at /Users/robert/sites/eurovision/pulse/node_modules/async/dist/async.js:473:16 at iteratorCallback (/Users/robert/sites/eurovision/pulse/node_modules/async/dist/async.js:1048:13) at /Users/robert/sites/eurovision/pulse/node_modules/async/dist/async.js:958:16 at /Users/robert/sites/eurovision/pulse/node_modules/async/dist/async.js:3871:13 at resolvers.normal.resolve (/Users/robert/sites/eurovision/pulse/node_modules/webpack/lib/NormalModuleFactory.js:119:22) at onError (/Users/robert/sites/eurovision/pulse/node_modules/enhanced-resolve/lib/Resolver.js:65:10) at loggingCallbackWrapper (/Users/robert/sites/eurovision/pulse/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) at runAfter (/Users/robert/sites/eurovision/pulse/node_modules/enhanced-resolve/lib/Resolver.js:158:4) at innerCallback (/Users/robert/sites/eurovision/pulse/node_modules/enhanced-resolve/lib/Resolver.js:146:3) at loggingCallbackWrapper (/Users/robert/sites/eurovision/pulse/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19) at next (/Users/robert/sites/eurovision/pulse/node_modules/tapable/lib/Tapable.js:252:11) </code></pre></div> <p dir="auto">Installing <code class="notranslate">styled-components</code> inside this library is not possible as it has to be a peer dependency, see: <a href="https://www.styled-components.com/docs/faqs#i-am-a-library-author-should-i-bundle-styledcomponents-with-my-library" rel="nofollow">https://www.styled-components.com/docs/faqs#i-am-a-library-author-should-i-bundle-styledcomponents-with-my-library</a></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto"><code class="notranslate">next.js</code> should resolve peer dependencies of linked modules in the correct way, meaning from the project's <code class="notranslate">node_modules</code> folder.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">It looks like peer dependencies currently are not resolved from the correct place, as it looks like it's only looking at the folder (and parents) of the linked module itself.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">As this is a closed source project I can't share the source code or set up, but if necessary I can add a similar reproducible example later.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>5.1.0</td> </tr> <tr> <td>node</td> <td>9.6.1</td> </tr> <tr> <td>OS</td> <td>10.13.2</td> </tr> </tbody> </table>
<p dir="auto">The <code class="notranslate">next/dynamic</code> import is failing in <a href="https://github.com/zeit/next.js/blob/master/server/build/babel/plugins/handle-import.js#L43">handle-import.js</a> due to a preprocessed module name evaluating to <code class="notranslate">undefined</code>. Boiled down version of code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// index.js const preval_modulename = preval` module.exports = './hello-' + 'world'; `; console.log(preval_modulename); // prints './hello-world' const DynamicComponent = dynamic(import(preval_modulename)); // reduces to import(undefined) // .babelrc { &quot;presets&quot;: [ &quot;next/babel&quot; ], &quot;plugins&quot;: [ &quot;preval&quot; ] }"><pre class="notranslate"><span class="pl-c">// index.js</span> <span class="pl-k">const</span> <span class="pl-s1">preval_modulename</span> <span class="pl-c1">=</span> <span class="pl-en">preval</span><span class="pl-s">`</span> <span class="pl-s"> module.exports = './hello-' + 'world';</span> <span class="pl-s">`</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">preval_modulename</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// prints './hello-world'</span> <span class="pl-k">const</span> <span class="pl-v">DynamicComponent</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s1">preval_modulename</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// reduces to import(undefined)</span> <span class="pl-c">// .babelrc</span> <span class="pl-kos">{</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span> <span class="pl-s">"next/babel"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-s">"preval"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">Previous issues such as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="246778680" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/2690" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/2690/hovercard" href="https://github.com/vercel/next.js/issues/2690">#2690</a> are similar, however I believe that the extra wrinkle of attempting to use <a href="https://www.npmjs.com/package/babel-plugin-preval" rel="nofollow">preval</a> warrants this as a new issue.</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">According to the <a href="https://babeljs.io/docs/plugins/#plugin-preset-ordering" rel="nofollow">babel docs</a> plugins should operate prior to presets. For this reason, I expected the preval plugin to build a static string at build time which the import handler plugin can parse and register chunks as usual.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Instead, the import call evaluates the <code class="notranslate">preval</code> expression as <code class="notranslate">undefined</code>, which causes the dynamic import to fail. Interestingly, a <code class="notranslate">console.log</code> of the <code class="notranslate">preval</code> value does produce the correct value, not <code class="notranslate">undefined</code>. I expect this is due to a nuance of Babel's AST and the interaction between the plugins which I do not understand.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Cannot read property '0' of undefined at getModulePath (.../node_modules/next/dist/server/build/babel/plugins/handle-import.js:34:30)"><pre class="notranslate"><code class="notranslate">Cannot read property '0' of undefined at getModulePath (.../node_modules/next/dist/server/build/babel/plugins/handle-import.js:34:30) </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Install <a href="https://www.npmjs.com/package/babel-plugin-preval" rel="nofollow">preval</a> babel plugin</li> <li>Pass result of any <code class="notranslate">preval</code> expression to <code class="notranslate">import()</code></li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I am building a gallery of components, with a directory of components:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=". ├── gallery | ├── first-component.js | ├── another-component.js | ├── yet-another-component.js | ├── more-component.js | ├── yet-more-component.js | // continue indefinitely"><pre class="notranslate"><code class="notranslate">. ├── gallery | ├── first-component.js | ├── another-component.js | ├── yet-another-component.js | ├── more-component.js | ├── yet-more-component.js | // continue indefinitely </code></pre></div> <p dir="auto">Because the gallery will be added to indefinitely, I wish for each to be dynamically loaded independently without manually adding them as separate dynamic imports:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const First = dynamic(import('../gallery/first-component')); const Another = dynamic(import('../gallery/another-component')); const YetAnother = dynamic(import('../gallery/yet-another-component')); const More = dynamic(import('../gallery/more-component')); const YetMore = dynamic(import('../gallery/yet-more-component')); // continue indefinitely // is manual and error prone vs const DirectoryBundle = dynamic({ modules: props =&gt; { const components = preval`getDirectoryComponents()`; return components }, render: (props, components) =&gt; // ... })"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">First</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../gallery/first-component'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-v">Another</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../gallery/another-component'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-v">YetAnother</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../gallery/yet-another-component'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-v">More</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../gallery/more-component'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-v">YetMore</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../gallery/yet-more-component'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// continue indefinitely</span> <span class="pl-c">// is manual and error prone vs</span> <span class="pl-k">const</span> <span class="pl-v">DirectoryBundle</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-en">modules</span>: <span class="pl-s1">props</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">components</span> <span class="pl-c1">=</span> <span class="pl-en">preval</span><span class="pl-s">`getDirectoryComponents()`</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">components</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">render</span>: <span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">,</span> <span class="pl-s1">components</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-c">// ...</span><span class="pl-s1"></span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">The Webpack docs discuss <a href="https://webpack.js.org/guides/dependency-management/#require-with-expression" rel="nofollow">requiring with an expression</a> however I have been unsuccessful in my attempts to hybridize this with <code class="notranslate">next/dynamic</code>.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>3.2.2</td> </tr> <tr> <td>node</td> <td>8.5.0</td> </tr> <tr> <td>OS</td> <td>Linux 4.10.0-33-generic</td> </tr> <tr> <td>browser</td> <td>Chrome 61.0.3163.91 (Official Build) (64-bit)</td> </tr> </tbody> </table>
0
<p dir="auto"><strong>Apache Airflow version</strong>:<br> Master branch</p> <p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):<br> N/A</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>OS</strong> (e.g. from /etc/os-release): MacOS</li> <li><strong>Browser</strong>: Safari</li> <li><strong>Others</strong>: breeze environment</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto">Nothing happens when clicking "Log" or "All instances" in this view<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9528307/98704517-0a8f9c00-237d-11eb-87d1-e0571c8b0914.png"><img width="1020" alt="Screenshot 2020-11-10 at 17 43 37" src="https://user-images.githubusercontent.com/9528307/98704517-0a8f9c00-237d-11eb-87d1-e0571c8b0914.png" style="max-width: 100%;"></a></p> <p dir="auto">If I got to instance detail &gt; log then I can see logs.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto">I expect that I can access logs and task instances via mentioned buttons.</p> <p dir="auto"><strong>How to reproduce it</strong>:</p> <p dir="auto">Start webserver and scheduler, go to airflow webui, trigger <code class="notranslate">example_dag_decorator</code>, click on any task from DAG in graph view, click log.</p> <p dir="auto"><strong>Anything else we need to know</strong>:</p> <p dir="auto"><g-emoji class="g-emoji" alias="cat2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f408.png">🐈</g-emoji></p>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.3.1 (latest released)</p> <h3 dir="auto">What happened</h3> <p dir="auto">Hello team!</p> <p dir="auto">I have faced the problem with Grid visibility in the latest 2.3.1 release.</p> <p dir="auto"><strong>My issue (example)</strong></p> <ol dir="auto"> <li>Here is the end of dag code:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... &lt;code&gt; ... telegram_alert = TelegramOperator( task_id='telegram_alert' ,telegram_conn_id='telegram_bot_id' ,chat_id='telegram_chat_id' ,text=&quot;blablabla&quot; ,dag=dag ) python_task_1 &gt;&gt; python_task_2 &gt;&gt; puller &gt;&gt; telegram_alert"><pre class="notranslate"><code class="notranslate">... &lt;code&gt; ... telegram_alert = TelegramOperator( task_id='telegram_alert' ,telegram_conn_id='telegram_bot_id' ,chat_id='telegram_chat_id' ,text="blablabla" ,dag=dag ) python_task_1 &gt;&gt; python_task_2 &gt;&gt; puller &gt;&gt; telegram_alert </code></pre></div> <p dir="auto">Grid:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/68236577/170659035-89e75dc7-19b7-45e1-9e7f-8831abffb98c.png"><img src="https://user-images.githubusercontent.com/68236577/170659035-89e75dc7-19b7-45e1-9e7f-8831abffb98c.png" alt="image" style="max-width: 100%;"></a></p> <ol start="2" dir="auto"> <li>Delete task with telegram alert:<br> Code in the end of dag code:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ... &lt;code&gt; ... python_task_1 &gt;&gt; python_task_2 &gt;&gt; puller "><pre class="notranslate"><code class="notranslate"> ... &lt;code&gt; ... python_task_1 &gt;&gt; python_task_2 &gt;&gt; puller </code></pre></div> <p dir="auto">Grid after deleting (Telegram alert task disappeared):<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/68236577/170659935-c9600bcd-a0c7-47c8-8575-c3ccdd65babd.png"><img src="https://user-images.githubusercontent.com/68236577/170659935-c9600bcd-a0c7-47c8-8575-c3ccdd65babd.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Grid after triggering dag again:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/68236577/170660047-d476017d-8cd4-42f5-8757-fc87ab41d92b.png"><img src="https://user-images.githubusercontent.com/68236577/170660047-d476017d-8cd4-42f5-8757-fc87ab41d92b.png" alt="image" style="max-width: 100%;"></a></p> <ol start="3" dir="auto"> <li>Return task with telegram alert in the dag as it was at the begining.<br> Grid:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/68236577/170660241-bbef16a8-30b1-489b-8b69-fd564c8dd684.png"><img src="https://user-images.githubusercontent.com/68236577/170660241-bbef16a8-30b1-489b-8b69-fd564c8dd684.png" alt="image" style="max-width: 100%;"></a></li> </ol> <h3 dir="auto">PS:</h3> <p dir="auto">As I remember in 2.3.0 there wasn't such bug.<br> I tried to roll back airflow image (from 2.3.1 to 2.3.0) and restart containers but faced error during starting webserver:<br> <em>alembic.util.exc.CommandError: Can't locate revision identified by '1de7bc13c950'</em></p> <p dir="auto">I see the same error when try to execute such command:<br> <em>airflow db downgrade --to-version 2.3.0</em><br> Please help to me to roll back the airflow version or may be I can get some patch which fix this bug.</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">The Grid must be visible at any time at any case</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto"><strong>Steps to reproduce:</strong></p> <ol dir="auto"> <li>Create dag with N tasks</li> <li>Trigger dag</li> <li>Delete 1 task from dag</li> <li>Trigger dag</li> <li>Return deleted task to dag</li> <li>Try to see DagRun history on the Grid page.</li> </ol> <h3 dir="auto">Operating System</h3> <p dir="auto">NAME="Ubuntu" VERSION="21.04 (Hirsute Hippo)" ID=ubuntu ID_LIKE=debian</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-amazon==3.3.0<br> apache-airflow-providers-celery==2.1.4<br> apache-airflow-providers-docker==2.6.0<br> apache-airflow-providers-elasticsearch==3.0.3<br> apache-airflow-providers-google==6.8.0<br> apache-airflow-providers-grpc==2.0.4<br> apache-airflow-providers-hashicorp==2.2.0<br> apache-airflow-providers-http==2.1.2<br> apache-airflow-providers-imap==2.2.3<br> apache-airflow-providers-microsoft-azure==3.8.0<br> apache-airflow-providers-microsoft-mssql==2.1.3<br> apache-airflow-providers-mysql==2.2.3<br> apache-airflow-providers-odbc==2.0.4<br> apache-airflow-providers-postgres==4.1.0<br> apache-airflow-providers-redis==2.0.4<br> apache-airflow-providers-sendgrid==2.0.4<br> apache-airflow-providers-sftp==2.6.0<br> apache-airflow-providers-sqlite==2.1.3<br> apache-airflow-providers-ssh==2.4.3<br> apache-airflow-providers-telegram==2.0.4<br> apache-airflow-providers-vertica==2.1.3</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Docker-Compose</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto">Many dags became unvisible on the Grid page and it is critical for us</p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
0
<p dir="auto">Maxim Naumov <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mnaumovfb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mnaumovfb">@mnaumovfb</a> sends in the following feedback:</p> <hr> <p dir="auto">I thought I would share some feedback from my recent work with register_backward_hook function. I will describe some some inconsistencies in it that may be worth addressing in the future.</p> <h2 dir="auto">Background</h2> <p dir="auto">PyTorch supports different hook functions, including register_hook, register_forward_hook and register_backward_hook. The former is applied to a tensor variable, while the latter two are applied to a layer module. I will discuss the latest form here. It has the following signature <a href="https://pytorch.org/docs/stable/nn.html" rel="nofollow">https://pytorch.org/docs/stable/nn.html</a> <code class="notranslate">func(layer, grad_input, grad_output)</code></p> <h2 dir="auto">Details</h2> <p dir="auto">It is extremely important to understand the meaning of gradients to register_backwards_hook. Let a layer be defined as</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" output z (grad_output) ____|____ |__layer__| | input x (grad_input)"><pre class="notranslate"><code class="notranslate"> output z (grad_output) ____|____ |__layer__| | input x (grad_input) </code></pre></div> <p dir="auto">with overall loss E, error gradient dE/dz^(k) and weight gradient dE/dw^(k).<br> First, let us assume the simplest case: a layer with no bias. Then,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="grad_output= [dE/dz^(k)] grad_input = [dE/dz^(k-1), dE/dw^(k)]"><pre class="notranslate"><code class="notranslate">grad_output= [dE/dz^(k)] grad_input = [dE/dz^(k-1), dE/dw^(k)] </code></pre></div> <h2 dir="auto">Inconsistencies</h2> <p dir="auto">It seems that there are some inconsistencies in how gradients for different layers are handled by this function.</p> <ol dir="auto"> <li>Shape <ul dir="auto"> <li>in convolution layers the weight gradient has the same shape as the weights</li> <li>in fully connected layers the weight gradient is transpose of the weights</li> </ul> </li> <li>Bias <ul dir="auto"> <li>in convolution layers bias gradient are appended: grad_input = [dE/dz^(k-1), dE/dw^(k), dE/db^(k)]</li> <li>in fully connected layers bias gradient are prepended: grad_input = [dE/db^(k), dE/dz^(k-1), dE/dw^(k)]</li> </ul> </li> <li>Batch size &gt; 1 <ul dir="auto"> <li>in convolution layers bias gradient corresponds to the gradient over the entire batch: grad_input = [dE/dz^(k-1), dE/dw^(k), dE/db^(k)]</li> <li>in fully connected layers bias gradient corresponds to the gradient per data point j=1,...,r in the batch (therefore it needs to be added to get the gradient over the entire batch): grad_input = [[dE/db^(k,1),...,dE/db^(k,r)], dE/dz^(k-1), dE/dw^(k)]</li> </ul> </li> </ol> <p dir="auto">These discrepancies can make handling of different layers, bias and batch sizes quite cumbersome in the code. It would help if they were done more consistently in the future.</p>
<p dir="auto">Hi,</p> <p dir="auto">there is something strange in the <code class="notranslate">backward</code> step (or maybe something I don't understand). If I define a Module that takes 3 inputs, the <code class="notranslate">grad_input</code> has to be of size 3, right ? But this is not the case here (from the backward_hook point of view):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F def bh(m,go,gi): print(&quot;Grad Input&quot;) print(go) print(&quot;Grad Output&quot;) print(gi) class M(nn.Module): def __init__(self): super(M,self).__init__() self.register_backward_hook(bh) def forward(self,x,y,z): return (x+y+z) x=Variable(torch.randn(1,5),requires_grad=True) y=Variable(torch.randn(1,5),requires_grad=True) z=Variable(torch.randn(1,5),requires_grad=True) criterion=nn.MSELoss() mod=M() out=mod(x,y,z) loss=criterion(out,Variable(torch.randn(1,5))) loss.backward()``` In that case, when I print grad_input throught the hook function, it is just composed of two elements... Could you tell me where am I wrong ? But `x.grad, y.grad and z.grad` seem correctly computed cc @ezyang @gchanan @zou3519 @SsnL @albanD @gqchen"><pre lang="import" class="notranslate"><code class="notranslate">from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F def bh(m,go,gi): print("Grad Input") print(go) print("Grad Output") print(gi) class M(nn.Module): def __init__(self): super(M,self).__init__() self.register_backward_hook(bh) def forward(self,x,y,z): return (x+y+z) x=Variable(torch.randn(1,5),requires_grad=True) y=Variable(torch.randn(1,5),requires_grad=True) z=Variable(torch.randn(1,5),requires_grad=True) criterion=nn.MSELoss() mod=M() out=mod(x,y,z) loss=criterion(out,Variable(torch.randn(1,5))) loss.backward()``` In that case, when I print grad_input throught the hook function, it is just composed of two elements... Could you tell me where am I wrong ? But `x.grad, y.grad and z.grad` seem correctly computed cc @ezyang @gchanan @zou3519 @SsnL @albanD @gqchen </code></pre></div>
1
<h2 dir="auto">🐛 Bug</h2> <p dir="auto"><code class="notranslate">import torch</code> fails to command prompt without an error for recent nightly builds on Windows.</p> <h2 dir="auto">To Reproduce</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\&gt; pip install future protobuf scipy C:\&gt; pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html Looking in links: https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html Collecting torch Using cached https://download.pytorch.org/whl/nightly/cpu/torch-1.4.0.dev20191216%2Bcpu-cp36-cp36m-win_amd64.whl Collecting torchvision Using cached https://download.pytorch.org/whl/nightly/cpu/torchvision-0.5.0.dev20191215%2Bcpu-cp36-cp36m-win_amd64.whl Requirement already satisfied: numpy in c:\python36\lib\site-packages (from torchvision) (1.17.4) Requirement already satisfied: six in c:\python36\lib\site-packages (from torchvision) (1.13.0) Requirement already satisfied: pillow&gt;=4.1.1 in c:\python36\lib\site-packages (from torchvision) (6.2.1) Installing collected packages: torch, torchvision Successfully installed torch-1.4.0.dev20191216+cpu torchvision-0.5.0.dev20191215+cpu C:\&gt;python Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import torch C:\&gt;"><pre class="notranslate"><code class="notranslate">C:\&gt; pip install future protobuf scipy C:\&gt; pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html Looking in links: https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html Collecting torch Using cached https://download.pytorch.org/whl/nightly/cpu/torch-1.4.0.dev20191216%2Bcpu-cp36-cp36m-win_amd64.whl Collecting torchvision Using cached https://download.pytorch.org/whl/nightly/cpu/torchvision-0.5.0.dev20191215%2Bcpu-cp36-cp36m-win_amd64.whl Requirement already satisfied: numpy in c:\python36\lib\site-packages (from torchvision) (1.17.4) Requirement already satisfied: six in c:\python36\lib\site-packages (from torchvision) (1.13.0) Requirement already satisfied: pillow&gt;=4.1.1 in c:\python36\lib\site-packages (from torchvision) (6.2.1) Installing collected packages: torch, torchvision Successfully installed torch-1.4.0.dev20191216+cpu torchvision-0.5.0.dev20191215+cpu C:\&gt;python Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import torch C:\&gt; </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Import completes waiting for next Python command.</p> <h2 dir="auto">Environment</h2> <p dir="auto"><code class="notranslate">collect_env.py</code> does not complete as <code class="notranslate">import torch</code> fails.</p> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0):</li> <li>OS (e.g., Linux): Windows 10 (1909 18363)</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): pip</li> <li>Python version: 3.6.7</li> </ul>
<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">'import torch' starts to fail in the nightly jobs beginning from Dec. 15.</p> <p dir="auto"><a href="https://dev.azure.com/pytorch/PyTorch/_build/results?buildId=18361&amp;view=results" rel="nofollow">https://dev.azure.com/pytorch/PyTorch/_build/results?buildId=18361&amp;view=results</a><br> <a href="https://dev.azure.com/pytorch/PyTorch/_build/results?buildId=18363&amp;view=results" rel="nofollow">https://dev.azure.com/pytorch/PyTorch/_build/results?buildId=18363&amp;view=results</a></p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>import torch</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Import success.</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 install</li> <li>Python version: 3.5/3.6/3.7</li> <li>CUDA/cuDNN version: None / 9.2 / 10.1</li> <li>GPU models and configuration: None</li> <li>Any other relevant information:</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Looks like some of the errors are intermittent.</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/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peterjc123/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peterjc123">@peterjc123</a></p>
1
<p dir="auto"><code class="notranslate">tensorflow</code> currently handles duplicates in <code class="notranslate">SparseTensor</code> by keeping the value for the last index of a repeated coordinate. However, some operations for this would come in quite handy, namely non-max or non-min suppression (keeping the maximum or minimum values for repeated coordinates), sum (summing the values for repeated coordinates) or mean (averaging the values for repeated coordinates).</p> <p dir="auto">There is currently a solution for this in <a href="https://stackoverflow.com/questions/38233821/merge-duplicate-indices-in-a-sparse-tensor" rel="nofollow">https://stackoverflow.com/questions/38233821/merge-duplicate-indices-in-a-sparse-tensor</a>. It works great, but to be honest it feels a bit clunky to use.</p>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: Yes</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Ubuntu 14.04</li> <li><strong>TensorFlow installed from (source or binary)</strong>: Binary (pip install)</li> <li><strong>TensorFlow version (use command below)</strong>: ('v1.2.0-rc2-21-g12f033d', '1.2.0')</li> <li><strong>Bazel version (if compiling from source)</strong>: N/A</li> <li><strong>CUDA/cuDNN version</strong>: 8.0</li> <li><strong>GPU model and memory</strong>: Tesla P100-SXM2 16MB</li> <li><strong>Exact command to reproduce</strong>: python caffe_to_tf_test.py</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Caffe convolution produce different results then tensorflow with the same parameters. This has something to do with striding - the attached test fails with striding equal to 2, and succeeds with striding equal to 1.</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.</p> <p dir="auto"><a href="https://github.com/tensorflow/tensorflow/files/1079200/x.zip">x.zip</a></p>
0
<p dir="auto">Hi All. Building python bindings gives me error:</p> <p dir="auto">`<br> root@host# bazel build -c opt --verbose_failures --config=cuda //tensorflow/tools/pip_package:build_pip_package<br> ...</p> <p dir="auto">WARNING: /root/.cache/bazel/_bazel_root/4b98d0d2e8f34611cfd0d274c46b2eaf/external/gemmlowp/BUILD:102:12: in hdrs attribute of cc_library rule @gemmlowp//:eight_bit_int_gemm: Artifact 'external/gemmlowp/profiling/profiler.h' is duplicated (through '@gemmlowp//:eight_bit_int_gemm_public_headers' and '@gemmlowp//:gemmlowp_headers').<br> ERROR: /data/github/google/tensorflow/tensorflow/tensorboard/bower/BUILD:5:1: no such package '@paper_radio_group//': Error cloning repository: Unexpected end of file from server caused by Unexpected end of file from server caused by Unexpected end of file from server and referenced by '//tensorflow/tensorboard/bower:bower'.<br> ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted.<br> INFO: Elapsed time: 1.857s<br> `<br> Is there a workaround for this problem?</p>
<p dir="auto">Hi, can anyone help me with this errors? I've tried varios Python installations an have installed Cuda 10.<br> I tried to run TensorFlow-GPU...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\Scripts\python.exe&quot; &quot;C:/Users/Christoph Richter/PycharmProjects/NNV3/MNISTTest.py&quot; Using TensorFlow backend. Traceback (most recent call last): File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 58, in &lt;module&gt; from tensorflow.python.pywrap_tensorflow_internal import * File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 28, in &lt;module&gt; _pywrap_tensorflow_internal = swig_import_helper() File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File &quot;C:\Program Files\Python35\lib\imp.py&quot;, line 242, in load_module return load_dynamic(name, filename, file) File &quot;C:\Program Files\Python35\lib\imp.py&quot;, line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden. During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;C:/Users/Christoph Richter/PycharmProjects/NNV3/MNISTTest.py&quot;, line 1, in &lt;module&gt; import keras File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\keras\__init__.py&quot;, line 3, in &lt;module&gt; from . import utils File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\keras\utils\__init__.py&quot;, line 6, in &lt;module&gt; from . import conv_utils File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\keras\utils\conv_utils.py&quot;, line 9, in &lt;module&gt; from .. import backend as K File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\keras\backend\__init__.py&quot;, line 89, in &lt;module&gt; from .tensorflow_backend import * File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\keras\backend\tensorflow_backend.py&quot;, line 5, in &lt;module&gt; import tensorflow as tf File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\__init__.py&quot;, line 24, in &lt;module&gt; from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\__init__.py&quot;, line 49, in &lt;module&gt; from tensorflow.python import pywrap_tensorflow File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 74, in &lt;module&gt; raise ImportError(msg) ImportError: Traceback (most recent call last): File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py&quot;, line 58, in &lt;module&gt; from tensorflow.python.pywrap_tensorflow_internal import * File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 28, in &lt;module&gt; _pywrap_tensorflow_internal = swig_import_helper() File &quot;C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py&quot;, line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File &quot;C:\Program Files\Python35\lib\imp.py&quot;, line 242, in load_module return load_dynamic(name, filename, file) File &quot;C:\Program Files\Python35\lib\imp.py&quot;, line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden. Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/errors for some common reasons and solutions. Include the entire stack trace above this error message when asking for help. Process finished with exit code 1"><pre class="notranslate"><code class="notranslate"> "C:\Users\Christoph Richter\PycharmProjects\NNV3\Scripts\python.exe" "C:/Users/Christoph Richter/PycharmProjects/NNV3/MNISTTest.py" Using TensorFlow backend. Traceback (most recent call last): File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in &lt;module&gt; from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in &lt;module&gt; _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\Christoph Richter\PycharmProjects\NNV3\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:\Program Files\Python35\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Program Files\Python35\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:/Users/Christoph Richter/PycharmProjects/NNV3/MNISTTest.py", line 1, in &lt;module&gt; import keras File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\keras\__init__.py", line 3, in &lt;module&gt; from . import utils File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\keras\utils\__init__.py", line 6, in &lt;module&gt; from . import conv_utils File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\keras\utils\conv_utils.py", line 9, in &lt;module&gt; from .. import backend as K File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\keras\backend\__init__.py", line 89, in &lt;module&gt; from .tensorflow_backend import * File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\keras\backend\tensorflow_backend.py", line 5, in &lt;module&gt; import tensorflow as tf File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\__init__.py", line 24, in &lt;module&gt; from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\__init__.py", line 49, in &lt;module&gt; from tensorflow.python import pywrap_tensorflow File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in &lt;module&gt; raise ImportError(msg) ImportError: Traceback (most recent call last): File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in &lt;module&gt; from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\Christoph Richter\PycharmProjects\NNV3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in &lt;module&gt; _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\Christoph Richter\PycharmProjects\NNV3\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:\Program Files\Python35\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\Program Files\Python35\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden. Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/errors for some common reasons and solutions. Include the entire stack trace above this error message when asking for help. Process finished with exit code 1 </code></pre></div>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jbar" rel="nofollow">Joern Barthel</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6440?redirect=false" rel="nofollow">SPR-6440</a></strong> and commented</p> <p dir="auto">Now that RowMapper offers parameterized types can we please abandon SimpleJdbcTemplate? It still lacks some functionality (e.g. fetch size) over JdbcTemplate so sometimes both are used.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0 RC2</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398103431" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11587" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11587/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11587">#11587</a> Deprecate SimpleJdbcTemplate in favor of JdbcTemplate (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=emeroad" rel="nofollow">kang woonduk</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7764?redirect=false" rel="nofollow">SPR-7764</a></strong> and commented</p> <p dir="auto">memory leak occurs in SpringMVC(DefaultListableBeanFactory.dependentBeanMap, DefaultListableBeanFactory.dependenciesForBeanMap)</p> <p dir="auto">error condition</p> <ol dir="auto"> <li>use SpringMVC</li> <li>use default-autowire="byType"</li> <li>Scope of Controller is prototype</li> <li>ServletHttpRequest(or HttpSession, WebRequest) setter is exist in Controller</li> </ol> <p dir="auto">Too Many dependency info(String:Proxy0$xxxxx) is created in DefaultListableBeanFactory(dependentBeanMap, dependenciesForBeanMap)</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/17393/memory_leak_ProxyString.JPG" rel="nofollow">memory_leak_ProxyString.JPG</a> (<em>269.31 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/17392/memory_leak.JPG" rel="nofollow">memory_leak.JPG</a> (<em>171.88 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/17394/MemoryLeak-sample-webproject.zip" rel="nofollow">MemoryLeak-sample-webproject.zip</a> (<em>2.92 MB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398117629" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13814" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13814/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13814">#13814</a> Scoped-proxy memory leak w/ <code class="notranslate">@Resource</code> injection (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto">1 votes, 2 watchers</p>
0
<ul dir="auto"> <li>Create some text with a folding region that includes <code class="notranslate">foobar</code></li> <li>Fold this region</li> <li>Start a find for <code class="notranslate">foobar</code></li> </ul> <p dir="auto">-&gt; the find box shows the correct number of matches, but when you want to step through them the match in the folded region isn't shown.</p> <p dir="auto">The expected behaviour is that the folding region expands to show the match.</p>
<ul dir="auto"> <li>Create some text with a folding region that includes <code class="notranslate">foobar</code></li> <li>Fold this region</li> <li>Start a find for <code class="notranslate">foobar</code></li> </ul> <p dir="auto">-&gt; the find box shows the correct number of matches, but when you want to step through them the match in the folded region isn't shown.</p> <p dir="auto">The expected behaviour is that the folding region expands to show the match.</p>
1
<h4 dir="auto">Code Sample,</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" In [4]: df = pd.DataFrame({'series': pd.Series(range(3))}) In [5]: df[&quot;name&quot;] = &quot;abc&quot; In [6]: df_copy = df.copy() In [7]: df.series.loc[2] = None In [8]: df Out[8]: series name 0 0.0 abc 1 1.0 abc 2 NaN abc In [9]: df_copy Out[9]: series name 0 0 abc 1 1 abc 2 2 abc In [10]: df[df.isnull()] = df_copy #or #df.where(-df.isnull(), df_copy, inplace=True) #basically it's doing that at the end"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">4</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">'series'</span>: <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-en">range</span>(<span class="pl-c1">3</span>))}) <span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">df</span>[<span class="pl-s">"name"</span>] <span class="pl-c1">=</span> <span class="pl-s">"abc"</span> <span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">df_copy</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">copy</span>() <span class="pl-v">In</span> [<span class="pl-c1">7</span>]: <span class="pl-s1">df</span>.<span class="pl-s1">series</span>.<span class="pl-s1">loc</span>[<span class="pl-c1">2</span>] <span class="pl-c1">=</span> <span class="pl-c1">None</span> <span class="pl-v">In</span> [<span class="pl-c1">8</span>]: <span class="pl-s1">df</span> <span class="pl-v">Out</span>[<span class="pl-c1">8</span>]: <span class="pl-s1">series</span> <span class="pl-s1">name</span> <span class="pl-c1">0</span> <span class="pl-c1">0.0</span> <span class="pl-s1">abc</span> <span class="pl-c1">1</span> <span class="pl-c1">1.0</span> <span class="pl-s1">abc</span> <span class="pl-c1">2</span> <span class="pl-v">NaN</span> <span class="pl-s1">abc</span> <span class="pl-v">In</span> [<span class="pl-c1">9</span>]: <span class="pl-s1">df_copy</span> <span class="pl-v">Out</span>[<span class="pl-c1">9</span>]: <span class="pl-s1">series</span> <span class="pl-s1">name</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-s1">abc</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-s1">abc</span> <span class="pl-c1">2</span> <span class="pl-c1">2</span> <span class="pl-s1">abc</span> <span class="pl-v">In</span> [<span class="pl-c1">10</span>]: <span class="pl-s1">df</span>[<span class="pl-s1">df</span>.<span class="pl-en">isnull</span>()] <span class="pl-c1">=</span> <span class="pl-s1">df_copy</span> <span class="pl-c">#or</span> <span class="pl-c">#df.where(-df.isnull(), df_copy, inplace=True)</span> <span class="pl-c">#basically it's doing that at the end</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Pandas throws a TypeError:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;.../test_replace.py&quot;, line 8, in &lt;module&gt; df[df.isnull()] = df_copy File &quot;.../anaconda/lib/python2.7/site-packages/pandas/core/frame.py&quot;, line 2516, in __setitem__ self._setitem_frame(key, value) File &quot;.../anaconda/lib/python2.7/site-packages/pandas/core/frame.py&quot;, line 2552, in _setitem_frame self._check_inplace_setting(value) File &quot;.../anaconda/lib/python2.7/site-packages/pandas/core/generic.py&quot;, line 3738, in _check_inplace_setting raise TypeError('Cannot do inplace boolean setting on ' TypeError: Cannot do inplace boolean setting on mixed-types with a non np.nan value"><pre class="notranslate"><span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>): <span class="pl-v">File</span> <span class="pl-s">".../test_replace.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">8</span>, <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>[<span class="pl-s1">df</span>.<span class="pl-en">isnull</span>()] <span class="pl-c1">=</span> <span class="pl-s1">df_copy</span> <span class="pl-v">File</span> <span class="pl-s">".../anaconda/lib/python2.7/site-packages/pandas/core/frame.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2516</span>, <span class="pl-s1">in</span> <span class="pl-s1">__setitem__</span> <span class="pl-s1">self</span>.<span class="pl-en">_setitem_frame</span>(<span class="pl-s1">key</span>, <span class="pl-s1">value</span>) <span class="pl-v">File</span> <span class="pl-s">".../anaconda/lib/python2.7/site-packages/pandas/core/frame.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">2552</span>, <span class="pl-s1">in</span> <span class="pl-s1">_setitem_frame</span> <span class="pl-s1">self</span>.<span class="pl-en">_check_inplace_setting</span>(<span class="pl-s1">value</span>) <span class="pl-v">File</span> <span class="pl-s">".../anaconda/lib/python2.7/site-packages/pandas/core/generic.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">3738</span>, <span class="pl-s1">in</span> <span class="pl-s1">_check_inplace_setting</span> <span class="pl-k">raise</span> <span class="pl-v">TypeError</span>(<span class="pl-s">'Cannot do inplace boolean setting on '</span> <span class="pl-v">TypeError</span>: <span class="pl-v">Cannot</span> <span class="pl-s1">do</span> <span class="pl-s1">inplace</span> <span class="pl-s1">boolean</span> <span class="pl-s1">setting</span> <span class="pl-s1">on</span> <span class="pl-s1">mixed</span><span class="pl-c1">-</span><span class="pl-s1">types</span> <span class="pl-s1">with</span> <span class="pl-s1">a</span> <span class="pl-s1">non</span> <span class="pl-s1">np</span>.<span class="pl-s1">nan</span> <span class="pl-s1">value</span></pre></div> <p dir="auto">I understand that in-place setting doesn't like to work with the mixed types, but I can't see a reason why it shouldn't work in this case and maybe check in "_check_inplace_setting()" is a bit too tight ?</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">same as with df.where(-df.isnull(), df_copy)</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [12]: df.where(-df.isnull(), df_copy) Out[12]: series name 0 0.0 abc 1 1.0 abc 2 2.0 abc "><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">12</span>]: <span class="pl-s1">df</span>.<span class="pl-en">where</span>(<span class="pl-c1">-</span><span class="pl-s1">df</span>.<span class="pl-en">isnull</span>(), <span class="pl-s1">df_copy</span>) <span class="pl-v">Out</span>[<span class="pl-c1">12</span>]: <span class="pl-s1">series</span> <span class="pl-s1">name</span> <span class="pl-c1">0</span> <span class="pl-c1">0.0</span> <span class="pl-s1">abc</span> <span class="pl-c1">1</span> <span class="pl-c1">1.0</span> <span class="pl-s1">abc</span> <span class="pl-c1">2</span> <span class="pl-c1">2.0</span> <span class="pl-s1">abc</span></pre></div>
<h4 dir="auto">Problem description</h4> <p dir="auto"><code class="notranslate">pandas.DataFrame.where</code> seems to be not replacing NaTs properly.</p> <p dir="auto">As in the example below, NaT values stay in data frame after applying <code class="notranslate">.where((pd.notnull(df)), None)</code></p> <h4 dir="auto">Code sample</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [26]: pd.__version__ Out[26]: '0.19.2' In [27]: df Out[27]: d v 0 2015-01-01 30.0 1 NaT 40.0 2 2015-01-03 NaN In [28]: pd.notnull(df) Out[28]: d v 0 True True 1 False True 2 True False In [29]: df.where((pd.notnull(df)), None) Out[29]: d v 0 2015-01-01 30 1 NaT 40 2 2015-01-03 None"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">26</span>]: <span class="pl-s1">pd</span>.<span class="pl-s1">__version__</span> <span class="pl-v">Out</span>[<span class="pl-c1">26</span>]: <span class="pl-s">'0.19.2'</span> <span class="pl-v">In</span> [<span class="pl-c1">27</span>]: <span class="pl-s1">df</span> <span class="pl-v">Out</span>[<span class="pl-c1">27</span>]: <span class="pl-s1">d</span> <span class="pl-s1">v</span> <span class="pl-c1">0</span> <span class="pl-c1">2015</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-c1">30.0</span> <span class="pl-c1">1</span> <span class="pl-v">NaT</span> <span class="pl-c1">40.0</span> <span class="pl-c1">2</span> <span class="pl-c1">2015</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">03</span> <span class="pl-v">NaN</span> <span class="pl-v">In</span> [<span class="pl-c1">28</span>]: <span class="pl-s1">pd</span>.<span class="pl-en">notnull</span>(<span class="pl-s1">df</span>) <span class="pl-v">Out</span>[<span class="pl-c1">28</span>]: <span class="pl-s1">d</span> <span class="pl-s1">v</span> <span class="pl-c1">0</span> <span class="pl-v">True</span> <span class="pl-c1">True</span> <span class="pl-c1">1</span> <span class="pl-v">False</span> <span class="pl-c1">True</span> <span class="pl-c1">2</span> <span class="pl-v">True</span> <span class="pl-c1">False</span> <span class="pl-v">In</span> [<span class="pl-c1">29</span>]: <span class="pl-s1">df</span>.<span class="pl-en">where</span>((<span class="pl-s1">pd</span>.<span class="pl-en">notnull</span>(<span class="pl-s1">df</span>)), <span class="pl-c1">None</span>) <span class="pl-v">Out</span>[<span class="pl-c1">29</span>]: <span class="pl-s1">d</span> <span class="pl-s1">v</span> <span class="pl-c1">0</span> <span class="pl-c1">2015</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">01</span> <span class="pl-c1">30</span> <span class="pl-c1">1</span> <span class="pl-v">NaT</span> <span class="pl-c1">40</span> <span class="pl-c1">2</span> <span class="pl-c1">2015</span><span class="pl-c1">-</span><span class="pl-c1">01</span><span class="pl-c1">-</span><span class="pl-c1">03</span> <span class="pl-c1">None</span></pre></div> <details> In [30]: pd.show_versions() <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.6.0.final.0<br> python-bits: 64<br> OS: Darwin<br> OS-release: 16.0.0<br> machine: x86_64<br> processor: i386<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8<br> LOCALE: en_US.UTF-8</p> <p dir="auto">pandas: 0.19.2<br> nose: None<br> pip: 9.0.1<br> setuptools: 34.3.1<br> Cython: None<br> numpy: 1.12.0<br> scipy: 0.18.1<br> statsmodels: None<br> xarray: None<br> IPython: 5.3.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.6.0<br> pytz: 2016.10<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: 2.0.0<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 0.9999999<br> httplib2: None<br> apiclient: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.5<br> boto: None<br> pandas_datareader: None</p> </details>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bczengel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bczengel">@bczengel</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chrootsu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chrootsu">@chrootsu</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stepancar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stepancar">@stepancar</a></li> </ul> </li> </ul> <p dir="auto">The following code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const filterStepsByPrograms = (educationalProgramSteps: EducationalProgramStep[], programs: EducationalProgram[]): EducationalProgramStep[] =&gt; { return filter(educationalProgramSteps, (step: EducationalProgramStep) =&gt; { return find(programs, { name: getValue(step, 'program.name') }); }); };"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-en">filterStepsByPrograms</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">educationalProgramSteps</span>: <span class="pl-smi">EducationalProgramStep</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">programs</span>: <span class="pl-smi">EducationalProgram</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>: <span class="pl-smi">EducationalProgramStep</span><span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">filter</span><span class="pl-kos">(</span><span class="pl-s1">educationalProgramSteps</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">step</span>: <span class="pl-smi">EducationalProgramStep</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s1">programs</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-en">getValue</span><span class="pl-kos">(</span><span class="pl-s1">step</span><span class="pl-kos">,</span> <span class="pl-s">'program.name'</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Generates the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Type 'number' is not assignable to type 'EducationalProgramStep'."><pre class="notranslate"><code class="notranslate">Type 'number' is not assignable to type 'EducationalProgramStep'. </code></pre></div> <p dir="auto"><strong>But this should be valid and shouldn't throw an error</strong></p> <blockquote> <p dir="auto">Using <code class="notranslate">| any</code> fixes the error</p> </blockquote> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const filterStepsByPrograms = (educationalProgramSteps: EducationalProgramStep[], programs: EducationalProgram[]): EducationalProgramStep[] =&gt; { return filter(educationalProgramSteps, (step: EducationalProgramStep | any) =&gt; { return find(programs, { name: getValue(step, 'program.name') }); }); };"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-en">filterStepsByPrograms</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">educationalProgramSteps</span>: <span class="pl-smi">EducationalProgramStep</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">programs</span>: <span class="pl-smi">EducationalProgram</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>: <span class="pl-smi">EducationalProgramStep</span><span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">filter</span><span class="pl-kos">(</span><span class="pl-s1">educationalProgramSteps</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">step</span>: <span class="pl-smi">EducationalProgramStep</span> <span class="pl-c1">|</span> <span class="pl-smi">any</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s1">programs</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-en">getValue</span><span class="pl-kos">(</span><span class="pl-s1">step</span><span class="pl-kos">,</span> <span class="pl-s">'program.name'</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Doc: <a href="https://lodash.com/docs/4.17.15#filter" rel="nofollow">https://lodash.com/docs/4.17.15#filter</a></p> <hr> <p dir="auto">index.d.ts</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Type definitions for lodash.filter 4.6 // Project: https://lodash.com // Definitions by: Brian Zengel &lt;https://github.com/bczengel&gt;, Ilya Mochalov &lt;https://github.com/chrootsu&gt;, Stepan Mikhaylyuk &lt;https://github.com/stepancar&gt; // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 // Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts import { filter } from &quot;lodash&quot;; export = filter; "><pre class="notranslate"><span class="pl-c">// Type definitions for lodash.filter 4.6</span> <span class="pl-c">// Project: https://lodash.com</span> <span class="pl-c">// Definitions by: Brian Zengel &lt;https://github.com/bczengel&gt;, Ilya Mochalov &lt;https://github.com/chrootsu&gt;, Stepan Mikhaylyuk &lt;https://github.com/stepancar&gt;</span> <span class="pl-c">// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped</span> <span class="pl-c">// TypeScript Version: 2.8</span> <span class="pl-c">// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">filter</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"lodash"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-s1">filter</span><span class="pl-kos">;</span> </pre></div> <p dir="auto">@types/lodash/common/collection.d.ts</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" interface LoDashStatic { /** * Iterates over elements of collection, returning an array of all elements predicate returns truthy for. The * predicate is invoked with three arguments: (value, index|key, collection). * * @param collection The collection to iterate over. * @param predicate The function invoked per iteration. * @return Returns the new filtered array. */ filter( collection: string | null | undefined, predicate?: StringIterator&lt;boolean&gt; ): string[]; /** * @see _.filter */ filter&lt;T, S extends T&gt;( collection: List&lt;T&gt; | null | undefined, predicate: ListIteratorTypeGuard&lt;T, S&gt; ): S[]; /** * @see _.filter */ filter&lt;T&gt;( collection: List&lt;T&gt; | null | undefined, predicate?: ListIterateeCustom&lt;T, boolean&gt; ): T[]; /** * @see _.filter */ filter&lt;T extends object, S extends T[keyof T]&gt;( collection: T | null | undefined, predicate: ObjectIteratorTypeGuard&lt;T, S&gt; ): S[]; /** * @see _.filter */ filter&lt;T extends object&gt;( collection: T | null | undefined, predicate?: ObjectIterateeCustom&lt;T, boolean&gt; ): Array&lt;T[keyof T]&gt;; }"><pre class="notranslate"> <span class="pl-k">interface</span> <span class="pl-smi">LoDashStatic</span> <span class="pl-kos">{</span> <span class="pl-c">/**</span> <span class="pl-c"> * Iterates over elements of collection, returning an array of all elements predicate returns truthy for. The</span> <span class="pl-c"> * predicate is invoked with three arguments: (value, index|key, collection).</span> <span class="pl-c"> *</span> <span class="pl-c"> * <span class="pl-k">@param</span> collection The collection to iterate over.</span> <span class="pl-c"> * <span class="pl-k">@param</span> predicate The function invoked per iteration.</span> <span class="pl-c"> * <span class="pl-k">@return</span> Returns the new filtered array.</span> <span class="pl-c"> */</span> <span class="pl-c1">filter</span><span class="pl-kos">(</span> <span class="pl-s1">collection</span>: <span class="pl-smi">string</span> <span class="pl-c1">|</span> <span class="pl-c1">null</span> <span class="pl-c1">|</span> <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-s1">predicate</span>?: <span class="pl-smi">StringIterator</span><span class="pl-kos">&lt;</span><span class="pl-smi">boolean</span><span class="pl-kos">&gt;</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-c">/**</span> <span class="pl-c"> * <span class="pl-k">@see</span> _.filter</span> <span class="pl-c"> */</span> <span class="pl-c1">filter</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">S</span> <span class="pl-k">extends</span> <span class="pl-smi">T</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span> <span class="pl-s1">collection</span>: <span class="pl-smi">List</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-c1">|</span> <span class="pl-c1">null</span> <span class="pl-c1">|</span> <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-s1">predicate</span>: <span class="pl-smi">ListIteratorTypeGuard</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">S</span><span class="pl-kos">&gt;</span> <span class="pl-kos">)</span>: <span class="pl-smi">S</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">/**</span> <span class="pl-c"> * <span class="pl-k">@see</span> _.filter</span> <span class="pl-c"> */</span> <span class="pl-c1">filter</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span> <span class="pl-s1">collection</span>: <span class="pl-smi">List</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-c1">|</span> <span class="pl-c1">null</span> <span class="pl-c1">|</span> <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-s1">predicate</span>?: <span class="pl-smi">ListIterateeCustom</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">boolean</span><span class="pl-kos">&gt;</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> <span class="pl-c">/**</span> <span class="pl-c"> * <span class="pl-k">@see</span> _.filter</span> <span class="pl-c"> */</span> <span class="pl-c1">filter</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">object</span><span class="pl-kos">,</span> <span class="pl-smi">S</span> <span class="pl-k">extends</span> <span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-k">keyof</span> <span class="pl-smi">T</span><span class="pl-kos">]</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span> <span class="pl-s1">collection</span>: <span class="pl-smi">T</span> <span class="pl-c1">|</span> <span class="pl-c1">null</span> <span class="pl-c1">|</span> <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-s1">predicate</span>: <span class="pl-smi">ObjectIteratorTypeGuard</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">S</span><span class="pl-kos">&gt;</span> <span class="pl-kos">)</span>: <span class="pl-smi">S</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">/**</span> <span class="pl-c"> * <span class="pl-k">@see</span> _.filter</span> <span class="pl-c"> */</span> <span class="pl-c1">filter</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">object</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span> <span class="pl-s1">collection</span>: <span class="pl-smi">T</span> <span class="pl-c1">|</span> <span class="pl-c1">null</span> <span class="pl-c1">|</span> <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-s1">predicate</span>?: <span class="pl-smi">ObjectIterateeCustom</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">boolean</span><span class="pl-kos">&gt;</span> <span class="pl-kos">)</span>: <span class="pl-smi">Array</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">[</span><span class="pl-k">keyof</span> <span class="pl-smi">T</span><span class="pl-kos">]</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Igorbek/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Igorbek">@Igorbek</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Igmat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Igmat">@Igmat</a> @lavoaster @Kovensky</li> </ul> </li> </ul> <p dir="auto"><a href="https://www.styled-components.com/docs/api#typescript" rel="nofollow">One of the default examples</a> of how to use styled-components in Typescript seem to be broken.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from 'react'; import styled from 'styled-components'; interface LogoProps { /* This prop is optional, since TypeScript won't know that it's passed by the wrapper */ className?: string; } class Logo extends React.Component&lt;LogoProps, {}&gt; { render() { return &lt;div className={this.props.className}&gt;Logo&lt;/div&gt;; } } const LogoStyled = styled(Logo)` font-family: 'Helvetica'; font-weight: bold; font-size: 1.8rem; `;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">styled</span> <span class="pl-k">from</span> <span class="pl-s">'styled-components'</span><span class="pl-kos">;</span> <span class="pl-s1">interface</span> <span class="pl-v">LogoProps</span> <span class="pl-kos">{</span> <span class="pl-c">/* This prop is optional, since TypeScript won't know that it's passed by the wrapper */</span> <span class="pl-s1">className</span>?<span class="pl-s1"></span>: <span class="pl-s1">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-v">Logo</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span><span class="pl-c1">&lt;</span><span class="pl-v">LogoProps</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">className</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>Logo<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-v">LogoStyled</span> <span class="pl-c1">=</span> <span class="pl-en">styled</span><span class="pl-kos">(</span><span class="pl-v">Logo</span><span class="pl-kos">)</span><span class="pl-s">`</span> <span class="pl-s"> font-family: 'Helvetica';</span> <span class="pl-s"> font-weight: bold;</span> <span class="pl-s"> font-size: 1.8rem;</span> <span class="pl-s">`</span><span class="pl-kos">;</span></pre></div> <p dir="auto">It gives the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Argument of type 'typeof Logo' is not assignable to parameter of type 'ComponentType&lt;any&gt;'. Type 'typeof Logo' is not assignable to type 'ComponentClass&lt;any, any&gt;'. Types of property 'contextType' are incompatible. Type 'React.Context&lt;any&gt; | undefined' is not assignable to type 'import(&quot;/node_modules/@types/react-dom/node_modules/@types/react/index&quot;).Context&lt;any&gt; | undefined'. Type 'React.Context&lt;any&gt;' is not assignable to type 'import(&quot;/node_modules/@types/react-dom/node_modules/@types/react/index&quot;).Context&lt;any&gt;'.ts(2345) class Logo"><pre class="notranslate"><code class="notranslate">Argument of type 'typeof Logo' is not assignable to parameter of type 'ComponentType&lt;any&gt;'. Type 'typeof Logo' is not assignable to type 'ComponentClass&lt;any, any&gt;'. Types of property 'contextType' are incompatible. Type 'React.Context&lt;any&gt; | undefined' is not assignable to type 'import("/node_modules/@types/react-dom/node_modules/@types/react/index").Context&lt;any&gt; | undefined'. Type 'React.Context&lt;any&gt;' is not assignable to type 'import("/node_modules/@types/react-dom/node_modules/@types/react/index").Context&lt;any&gt;'.ts(2345) class Logo </code></pre></div> <p dir="auto">Dependencies:</p> <ul dir="auto"> <li><code class="notranslate">@types/styled-components@4.1.4</code></li> <li><code class="notranslate">@types/react@16.7.17</code></li> </ul>
0
<p dir="auto">Challenge <a href="https://beta.freecodecamp.com/en/challenges/basic-css/use-css-selectors-to-style-elements" rel="nofollow">use-css-selectors-to-style-elements</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.<br> it keeps telling me that "your h2 element should be blue" , but as you look in the screenshot it is color blue :)</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;style&gt; h2{color:blue;} &lt;/style&gt; &lt;h2&gt;CatPhotoApp&lt;/h2&gt; &lt;main&gt; &lt;p&gt;Click here to view more &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img src=&quot;https://bit.ly/fcc-relaxing-cat&quot; alt=&quot;A cute orange cat lying on its back.&quot;&gt;&lt;/a&gt; &lt;div&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot; checked&gt; Indoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Outdoor&lt;/label&gt;&lt;br&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot; checked&gt; Loving&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Lazy&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Energetic&lt;/label&gt;&lt;br&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot; required&gt; &lt;button type=&quot;submit&quot;&gt;Submit&lt;/button&gt; &lt;/form&gt; &lt;/main&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">h2</span>{<span class="pl-c1">color</span><span class="pl-kos">:</span>blue;} <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Click here to view more <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back.</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Things cats love:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>" <span class="pl-c1">checked</span><span class="pl-kos">&gt;</span> Indoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">&gt;</span> Outdoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">br</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>" <span class="pl-c1">checked</span><span class="pl-kos">&gt;</span> Loving<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Lazy<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Energetic<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">br</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">&gt;</span>Submit<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">main</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/26141499/24843265/c405174a-1dd3-11e7-85b5-684ca0a25692.png"><img src="https://cloud.githubusercontent.com/assets/26141499/24843265/c405174a-1dd3-11e7-85b5-684ca0a25692.png" alt="bug" style="max-width: 100%;"></a></p>
<p dir="auto"><a href="http://www.freecodecamp.com/challenges/waypoint-link-to-external-pages-with-anchor-elements" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-link-to-external-pages-with-anchor-elements</a> instructs you to create a link to <a href="http://catphotoapp.com" rel="nofollow">http://catphotoapp.com</a> - which is one of those obnoxious 'sit on a domain and fill it with vaguely relevant ads' pages.</p> <p dir="auto">It would be better to use a link to a site FreeCodeCamp controls - while this has a fairly innocuous set of cat ads at the moment, it could change at any time to something even less pleasant.</p>
0
<p dir="auto">My issue is about ...</p> <p dir="auto">Sos output is incorrect for analog filter design. I found a comment in fitler_design.py stating as much, but I would expect an error or clearer documentation if this is a known limitation. Instead the code below will generate incorrect SOS coefficients. The combined SOS result in a higher order analog highpass fitler, not a bandpass.</p> <p dir="auto">For this this ticket I suggest adding a simple exception to the library code to make this obvious. After which, we can open another ticket to add the feature of correct SOS analog filter design.</p> <h4 dir="auto">Reproducing code example:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="BWsos = signal.butter(order,np.array([flow, fhigh]),btype='bandpass', analog=True, output='sos')"><pre class="notranslate"><code class="notranslate">BWsos = signal.butter(order,np.array([flow, fhigh]),btype='bandpass', analog=True, output='sos') </code></pre></div> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <p dir="auto">version 1.5.4</p>
<p dir="auto">As described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35173341" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/3717" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/3717/hovercard?comment_id=142460019&amp;comment_type=issue_comment" href="https://github.com/scipy/scipy/pull/3717#issuecomment-142460019">#3717 (comment)</a>, zpk2sos does not work for analog filters since the coefficients of each stage are different.</p> <p dir="auto"><code class="notranslate">b, a = butter(1, 1, analog=True)</code> produces b = [1], a = [1, 1] → H(s) = 1/(s+1)</p> <p dir="auto"><code class="notranslate">sos = tf2sos(b, a)</code> produces <code class="notranslate">[1, 0, 0, 1, 1, 0]</code></p> <p dir="auto">this stage is b = [1, 0, 0], a = [1, 1, 0] → H(s) = s^2/(s^2+s) = s/(s+1) which is not the same as above. For digital filters, trailing zeros don't matter, but for analog filters, they do, and <em>leading</em> zeros don't matter. The correct result should be <code class="notranslate">[0, 0, 1, 0, 1, 1]</code></p> <p dir="auto">So docstring should probably say it's not meant for analog at all for now?</p> <p dir="auto">and add analog=True to zpk2sos?</p>
1
<h2 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions &amp; Help</h2> <p dir="auto">The question about roberta.<br> I konw that Bert use the embedding of token 'cls' to do predict, but when it comes to roberta, I dont know it clearly. Can you tell me which token's embedding is used to do predict in this project? Is it '<s>' ?</s></p>
<h2 dir="auto">Information</h2> <p dir="auto">I am trying to build the documentation in <code class="notranslate">docs/</code> using <code class="notranslate">sphinx-build</code> so that I can add it to <a href="https://kapeli.com/dash" rel="nofollow">Dash</a> as one of the docsets. However, I get an assertion error with sphinx-build when I run <code class="notranslate">make html</code> in the <code class="notranslate">docs/</code> folder <em>only when tensorflow is installed</em>. The build works without tensorflow installed, but the tensorflow methods and classes are emtpy in the generated documentation - only the pytorch ones have documentation in the resulting HTML.</p> <h2 dir="auto">To reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>Create a conda environment, and install pytorch, tensorflow and transformers using the official methods.</li> <li>Run <code class="notranslate">pip install -e ".[docs]</code> in source directory, before running <code class="notranslate">make html</code> in <code class="notranslate">docs</code> folder. You will get the following error (full stacktrace given later):</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception occurred: File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/util/docfields.py&quot;, line 260, in transform assert len(field) == 2 AssertionError"><pre class="notranslate"><code class="notranslate">Exception occurred: File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/util/docfields.py", line 260, in transform assert len(field) == 2 AssertionError </code></pre></div> <p dir="auto">Full stacktrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Sphinx version: 2.4.4 # Python version: 3.6.10 (CPython) # Docutils version: 0.16 release # Jinja2 version: 2.11.1 # Last messages: # reading sources... [ 13%] glossary # # reading sources... [ 16%] index # # reading sources... [ 18%] installation # # reading sources... [ 21%] main_classes/configuration # # reading sources... [ 24%] main_classes/model # # Loaded extensions: # sphinx.ext.mathjax (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/mathjax.py # sphinxcontrib.applehelp (1.0.2) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinxcontrib/applehelp/__init__.py # sphinxcontrib.devhelp (1.0.2) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinxcontrib/devhelp/__init__.py # sphinxcontrib.htmlhelp (1.0.3) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinxcontrib/htmlhelp/__init__.py # sphinxcontrib.serializinghtml (1.1.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinxcontrib/serializinghtml/__init__.py # sphinxcontrib.qthelp (1.0.3) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinxcontrib/qthelp/__init__.py # alabaster (0.7.12) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/alabaster/__init__.py # sphinx.ext.autodoc.type_comment (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/autodoc/type_comment.py # sphinx.ext.autodoc (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py # sphinx.ext.coverage (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/coverage.py # sphinx.ext.napoleon (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/napoleon/__init__.py # recommonmark (0.6.0) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/recommonmark/__init__.py # sphinx.ext.viewcode (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/viewcode.py # sphinx_markdown_tables (&lt;module 'sphinx_markdown_tables.__version__' from '/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx_markdown_tables/__version__.py'&gt;) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx_markdown_tables/__init__.py Traceback (most recent call last): File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/cmd/build.py&quot;, line 276, in build_main app.build(args.force_all, filenames) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/application.py&quot;, line 349, in build self.builder.build_update() File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/builders/__init__.py&quot;, line 299, in build_update len(to_build)) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/builders/__init__.py&quot;, line 311, in build updated_docnames = set(self.read()) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/builders/__init__.py&quot;, line 418, in read self._read_serial(docnames) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/builders/__init__.py&quot;, line 439, in _read_serial self.read_doc(docname) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/builders/__init__.py&quot;, line 479, in read_doc doctree = read_doc(self.app, self.env, self.env.doc2path(docname)) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/io.py&quot;, line 316, in read_doc pub.publish() File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/core.py&quot;, line 218, in publish self.settings) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/io.py&quot;, line 130, in read self.parse() File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/readers/__init__.py&quot;, line 77, in parse self.parser.parse(self.input, document) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/parsers.py&quot;, line 93, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 171, in run input_source=document['source']) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 242, in run context, state, transitions) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 459, in check_line return method(match, context, next_state) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2769, in underline self.section(title, source, style, lineno - 1, messages) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 327, in section self.new_subsection(title, lineno, messages) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 395, in new_subsection node=section_node, match_titles=True) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 282, in nested_parse node=node, match_titles=match_titles) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 242, in run context, state, transitions) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 459, in check_line return method(match, context, next_state) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2769, in underline self.section(title, source, style, lineno - 1, messages) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 327, in section self.new_subsection(title, lineno, messages) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 395, in new_subsection node=section_node, match_titles=True) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 282, in nested_parse node=node, match_titles=match_titles) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 242, in run context, state, transitions) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 459, in check_line return method(match, context, next_state) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2342, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2354, in explicit_construct return method(self, expmatch) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2097, in directive directive_class, match, type_name, option_presets) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2146, in run_directive result = directive_instance.run() File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/autodoc/directive.py&quot;, line 157, in run result = parse_generated_content(self.state, params.result, documenter) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/autodoc/directive.py&quot;, line 104, in parse_generated_content state.nested_parse(content, 0, node) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 282, in nested_parse node=node, match_titles=match_titles) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 242, in run context, state, transitions) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 459, in check_line return method(match, context, next_state) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2342, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2354, in explicit_construct return method(self, expmatch) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2097, in directive directive_class, match, type_name, option_presets) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2146, in run_directive result = directive_instance.run() File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/domains/__init__.py&quot;, line 265, in run return super().run() File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/directives/__init__.py&quot;, line 195, in run self.state.nested_parse(self.content, self.content_offset, contentnode) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 282, in nested_parse node=node, match_titles=match_titles) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 242, in run context, state, transitions) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 459, in check_line return method(match, context, next_state) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2344, in explicit_markup self.explicit_list(blank_finish) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2374, in explicit_list match_titles=self.state_machine.match_titles) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 319, in nested_list_parse node=node, match_titles=match_titles) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 242, in run context, state, transitions) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py&quot;, line 459, in check_line return method(match, context, next_state) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2647, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2354, in explicit_construct return method(self, expmatch) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2097, in directive directive_class, match, type_name, option_presets) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py&quot;, line 2146, in run_directive result = directive_instance.run() File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/domains/__init__.py&quot;, line 265, in run return super().run() File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/directives/__init__.py&quot;, line 198, in run DocFieldTransformer(self).transform_all(contentnode) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/util/docfields.py&quot;, line 248, in transform_all self.transform(child) File &quot;/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/util/docfields.py&quot;, line 260, in transform assert len(field) == 2 AssertionError"><pre class="notranslate"><code class="notranslate"># Sphinx version: 2.4.4 # Python version: 3.6.10 (CPython) # Docutils version: 0.16 release # Jinja2 version: 2.11.1 # Last messages: # reading sources... [ 13%] glossary # # reading sources... [ 16%] index # # reading sources... [ 18%] installation # # reading sources... [ 21%] main_classes/configuration # # reading sources... [ 24%] main_classes/model # # Loaded extensions: # sphinx.ext.mathjax (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/mathjax.py # sphinxcontrib.applehelp (1.0.2) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinxcontrib/applehelp/__init__.py # sphinxcontrib.devhelp (1.0.2) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinxcontrib/devhelp/__init__.py # sphinxcontrib.htmlhelp (1.0.3) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinxcontrib/htmlhelp/__init__.py # sphinxcontrib.serializinghtml (1.1.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinxcontrib/serializinghtml/__init__.py # sphinxcontrib.qthelp (1.0.3) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinxcontrib/qthelp/__init__.py # alabaster (0.7.12) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/alabaster/__init__.py # sphinx.ext.autodoc.type_comment (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/autodoc/type_comment.py # sphinx.ext.autodoc (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/autodoc/__init__.py # sphinx.ext.coverage (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/coverage.py # sphinx.ext.napoleon (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/napoleon/__init__.py # recommonmark (0.6.0) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/recommonmark/__init__.py # sphinx.ext.viewcode (2.4.4) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/viewcode.py # sphinx_markdown_tables (&lt;module 'sphinx_markdown_tables.__version__' from '/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx_markdown_tables/__version__.py'&gt;) from /Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx_markdown_tables/__init__.py Traceback (most recent call last): File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/cmd/build.py", line 276, in build_main app.build(args.force_all, filenames) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/application.py", line 349, in build self.builder.build_update() File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 299, in build_update len(to_build)) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 311, in build updated_docnames = set(self.read()) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 418, in read self._read_serial(docnames) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 439, in _read_serial self.read_doc(docname) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 479, in read_doc doctree = read_doc(self.app, self.env, self.env.doc2path(docname)) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/io.py", line 316, in read_doc pub.publish() File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/core.py", line 218, in publish self.settings) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/io.py", line 130, in read self.parse() File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/readers/__init__.py", line 77, in parse self.parser.parse(self.input, document) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/parsers.py", line 93, in parse self.statemachine.run(inputlines, document, inliner=self.inliner) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 171, in run input_source=document['source']) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 242, in run context, state, transitions) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 459, in check_line return method(match, context, next_state) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2769, in underline self.section(title, source, style, lineno - 1, messages) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 327, in section self.new_subsection(title, lineno, messages) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection node=section_node, match_titles=True) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse node=node, match_titles=match_titles) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 242, in run context, state, transitions) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 459, in check_line return method(match, context, next_state) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2769, in underline self.section(title, source, style, lineno - 1, messages) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 327, in section self.new_subsection(title, lineno, messages) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection node=section_node, match_titles=True) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse node=node, match_titles=match_titles) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 242, in run context, state, transitions) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 459, in check_line return method(match, context, next_state) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2342, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2354, in explicit_construct return method(self, expmatch) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2097, in directive directive_class, match, type_name, option_presets) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2146, in run_directive result = directive_instance.run() File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/autodoc/directive.py", line 157, in run result = parse_generated_content(self.state, params.result, documenter) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/ext/autodoc/directive.py", line 104, in parse_generated_content state.nested_parse(content, 0, node) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse node=node, match_titles=match_titles) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 242, in run context, state, transitions) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 459, in check_line return method(match, context, next_state) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2342, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2354, in explicit_construct return method(self, expmatch) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2097, in directive directive_class, match, type_name, option_presets) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2146, in run_directive result = directive_instance.run() File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/domains/__init__.py", line 265, in run return super().run() File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/directives/__init__.py", line 195, in run self.state.nested_parse(self.content, self.content_offset, contentnode) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse node=node, match_titles=match_titles) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 242, in run context, state, transitions) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 459, in check_line return method(match, context, next_state) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2344, in explicit_markup self.explicit_list(blank_finish) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2374, in explicit_list match_titles=self.state_machine.match_titles) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 319, in nested_list_parse node=node, match_titles=match_titles) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 196, in run results = StateMachineWS.run(self, input_lines, input_offset) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 242, in run context, state, transitions) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/statemachine.py", line 459, in check_line return method(match, context, next_state) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2647, in explicit_markup nodelist, blank_finish = self.explicit_construct(match) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2354, in explicit_construct return method(self, expmatch) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2097, in directive directive_class, match, type_name, option_presets) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/docutils/parsers/rst/states.py", line 2146, in run_directive result = directive_instance.run() File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/domains/__init__.py", line 265, in run return super().run() File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/directives/__init__.py", line 198, in run DocFieldTransformer(self).transform_all(contentnode) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/util/docfields.py", line 248, in transform_all self.transform(child) File "/Users/venkat/opt/miniconda3/envs/tf-pt/lib/python3.6/site-packages/sphinx/util/docfields.py", line 260, in transform assert len(field) == 2 AssertionError </code></pre></div> <ol start="3" dir="auto"> <li>Uninstall tensorflow. Now when running <code class="notranslate">make html</code>, it does fininsh building, albeit with a bunch of warnings of the following form: <code class="notranslate">AttributeError: module 'transformers' has no attribute 'TFCamembertForMaskedLM'</code> -- for every <code class="notranslate">TFmethod</code>.</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto"><code class="notranslate">make html</code> should build with no errors.</p> <h2 dir="auto">Environment info</h2> <ul dir="auto"> <li><code class="notranslate">transformers</code> version: 2.6.0</li> <li>Platform: macOS 10.15.4</li> <li>Python version: 3.6.10</li> <li>PyTorch version (GPU?): 1.4.0 (No)</li> <li>Tensorflow version (GPU?): 2.1.0 (No)</li> <li>Using GPU in script?: No</li> <li>Using distributed or parallel set-up in script?: No</li> <li>sphinx version: 2.4.4</li> </ul>
0
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.2.4 (latest released)</p> <h3 dir="auto">What happened</h3> <p dir="auto">After setting up alert emails using AWS SES as instructed <a href="https://airflow.apache.org/docs/apache-airflow/stable/howto/email-config.html#send-email-using-aws-ses" rel="nofollow">here</a>, I received the following error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py&quot;, line 2103, in email_alert send_email(self.task.email, subject, html_content) File &quot;/usr/local/lib/python3.8/site-packages/airflow/utils/email.py&quot;, line 57, in send_email return backend( TypeError: send_email() got multiple values for argument 'from_email'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 2103, in email_alert send_email(self.task.email, subject, html_content) File "/usr/local/lib/python3.8/site-packages/airflow/utils/email.py", line 57, in send_email return backend( TypeError: send_email() got multiple values for argument 'from_email' </code></pre></div> <h3 dir="auto">What you expected to happen</h3> <p dir="auto">the <code class="notranslate">send_email</code> method in </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/airflow/blob/d94fa378305957358b910cfb1fe7cb14bc793804/airflow/providers/amazon/aws/utils/emailer.py#L25-L37">airflow/airflow/providers/amazon/aws/utils/emailer.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 25 to 37 in <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/d94fa378305957358b910cfb1fe7cb14bc793804">d94fa37</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="L25" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="25"></td> <td id="LC25" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">send_email</span>( </td> </tr> <tr class="border-0"> <td id="L26" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="26"></td> <td id="LC26" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">from_email</span>: <span class="pl-s1">str</span>, </td> </tr> <tr class="border-0"> <td id="L27" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="27"></td> <td id="LC27" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">to</span>: <span class="pl-v">Union</span>[<span class="pl-v">List</span>[<span class="pl-s1">str</span>], <span class="pl-s1">str</span>], </td> </tr> <tr class="border-0"> <td id="L28" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="28"></td> <td id="LC28" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">subject</span>: <span class="pl-s1">str</span>, </td> </tr> <tr class="border-0"> <td id="L29" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="29"></td> <td id="LC29" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">html_content</span>: <span class="pl-s1">str</span>, </td> </tr> <tr class="border-0"> <td id="L30" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="30"></td> <td id="LC30" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">files</span>: <span class="pl-v">Optional</span>[<span class="pl-v">List</span>] <span class="pl-c1">=</span> <span class="pl-c1">None</span>, </td> </tr> <tr class="border-0"> <td id="L31" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="31"></td> <td id="LC31" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">cc</span>: <span class="pl-v">Optional</span>[<span class="pl-v">Union</span>[<span class="pl-v">List</span>[<span class="pl-s1">str</span>], <span class="pl-s1">str</span>]] <span class="pl-c1">=</span> <span class="pl-c1">None</span>, </td> </tr> <tr class="border-0"> <td id="L32" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="32"></td> <td id="LC32" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">bcc</span>: <span class="pl-v">Optional</span>[<span class="pl-v">Union</span>[<span class="pl-v">List</span>[<span class="pl-s1">str</span>], <span class="pl-s1">str</span>]] <span class="pl-c1">=</span> <span class="pl-c1">None</span>, </td> </tr> <tr class="border-0"> <td id="L33" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="33"></td> <td id="LC33" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">mime_subtype</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s">'mixed'</span>, </td> </tr> <tr class="border-0"> <td id="L34" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="34"></td> <td id="LC34" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">mime_charset</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s">'utf-8'</span>, </td> </tr> <tr class="border-0"> <td id="L35" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="35"></td> <td id="LC35" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">conn_id</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-s">'aws_default'</span>, </td> </tr> <tr class="border-0"> <td id="L36" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="36"></td> <td id="LC36" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>, </td> </tr> <tr class="border-0"> <td id="L37" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="37"></td> <td id="LC37" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> ) <span class="pl-c1">-&gt;</span> <span class="pl-c1">None</span>: </td> </tr> </tbody></table> </div> </div> doesn't match the invocation of the <code class="notranslate">backend</code> method in <div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/apache/airflow/blob/ee9049c0566b2539a247687de05f9cffa008f871/airflow/utils/email.py#L57-L70">airflow/airflow/utils/email.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 57 to 70 in <a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/ee9049c0566b2539a247687de05f9cffa008f871">ee9049c</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="L57" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="57"></td> <td id="LC57" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-en">backend</span>( </td> </tr> <tr class="border-0"> <td id="L58" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="58"></td> <td id="LC58" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">to_comma_separated</span>, </td> </tr> <tr class="border-0"> <td id="L59" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="59"></td> <td id="LC59" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">subject</span>, </td> </tr> <tr class="border-0"> <td id="L60" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="60"></td> <td id="LC60" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">html_content</span>, </td> </tr> <tr class="border-0"> <td id="L61" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="61"></td> <td id="LC61" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">files</span><span class="pl-c1">=</span><span class="pl-s1">files</span>, </td> </tr> <tr class="border-0"> <td id="L62" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="62"></td> <td id="LC62" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">dryrun</span><span class="pl-c1">=</span><span class="pl-s1">dryrun</span>, </td> </tr> <tr class="border-0"> <td id="L63" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="63"></td> <td id="LC63" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">cc</span><span class="pl-c1">=</span><span class="pl-s1">cc</span>, </td> </tr> <tr class="border-0"> <td id="L64" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="64"></td> <td id="LC64" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">bcc</span><span class="pl-c1">=</span><span class="pl-s1">bcc</span>, </td> </tr> <tr class="border-0"> <td id="L65" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="65"></td> <td id="LC65" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">mime_subtype</span><span class="pl-c1">=</span><span class="pl-s1">mime_subtype</span>, </td> </tr> <tr class="border-0"> <td id="L66" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="66"></td> <td id="LC66" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">mime_charset</span><span class="pl-c1">=</span><span class="pl-s1">mime_charset</span>, </td> </tr> <tr class="border-0"> <td id="L67" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="67"></td> <td id="LC67" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">conn_id</span><span class="pl-c1">=</span><span class="pl-s1">backend_conn_id</span>, </td> </tr> <tr class="border-0"> <td id="L68" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="68"></td> <td id="LC68" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">from_email</span><span class="pl-c1">=</span><span class="pl-s1">from_email</span>, </td> </tr> <tr class="border-0"> <td id="L69" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="69"></td> <td id="LC69" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>, </td> </tr> <tr class="border-0"> <td id="L70" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="70"></td> <td id="LC70" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> ) </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">in the former (provider-amazon), the <code class="notranslate">from_email</code> is the first positional argument. However in the latter (main airflow), <code class="notranslate">from_email</code> is misplaced as a keyword argument.</p> <h3 dir="auto">How to reproduce</h3> <ol dir="auto"> <li>Use <code class="notranslate">Airflow 2.2.4</code> with <code class="notranslate">providers-amazon/3.0.0</code></li> <li>Observe the log from a failed DAG</li> </ol> <h3 dir="auto">Operating System</h3> <p dir="auto">Amazon Linux 2</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-amazon 3.0.0</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other Docker-based deployment</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<h3 dir="auto">Description</h3> <p dir="auto">Currently the 'minimal' version of Airflow Docker image ships with 20+ extra dependencies, which according to my understanding, are the most common used libraries. The idea of this PR to prepare another, pure Airflow image, which wouldn't have those dependencies and would only ship with core Airflow package.</p> <p dir="auto"><a href="https://github.com/apache/airflow/blob/main/Dockerfile#L37">https://github.com/apache/airflow/blob/main/Dockerfile#L37</a></p> <p dir="auto">Alternative solutions would be:</p> <ul dir="auto"> <li>ship separate Airflow images per each executor type (kubernetes, dask, celery, etc.). I like this one equally to having vanilla Airflow image</li> <li>fix the issue with dask. I don't like this idea as it's less scalable as any of packages mentioned below could yield similar issues</li> </ul> <h3 dir="auto">Use case/motivation</h3> <p dir="auto">We are using official Airflow image for Airflow on our k8s cluster, which is constantly scanned for security vulnerabilities. The fact that dask is pinned to very low version is problematic for us cause there are a lot of red flags coming from this package. We do not need dask at all as we rely on KubernetesExecutor. Some of the security scanners work on docker layer level so removing/upgrading dask doesn't solve the problem.</p> <h3 dir="auto">Related issues</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit a 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">Launch an iOS application with a light-colored launch screen storyboard and a light-colored home view. Note that a frame or two of total black is shown between the launch screen and the initial Flutter view.</p> <p dir="auto">This is my workaround for now, in the app delegate:</p> <div class="highlight highlight-source-objc notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. FlutterViewController *controller = (FlutterViewController*)self.window.rootViewController; controller.view.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; return YES; }"><pre class="notranslate">- (<span class="pl-c1">BOOL</span>)application:(UIApplication *)application didFinishLaunchingWithOptions:(<span class="pl-c1">NSDictionary</span> *)launchOptions { <span class="pl-c"><span class="pl-c">//</span> Override point for customization after application launch.</span> FlutterViewController *controller = (FlutterViewController*)self.<span class="pl-smi">window</span>.<span class="pl-smi">rootViewController</span>; controller.<span class="pl-smi">view</span>.<span class="pl-smi">backgroundColor</span> = [UIColor <span class="pl-c1">whiteColor</span>]; [<span class="pl-c1">self</span>.window <span class="pl-c1">makeKeyAndVisible</span>]; <span class="pl-k">return</span> <span class="pl-c1">YES</span>; }</pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Use this to run on iOS:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter create myapp cd myapp flutter run"><pre class="notranslate"><code class="notranslate">flutter create myapp cd myapp flutter run </code></pre></div> <p dir="auto">The app will show the (white screen) contents of LaunchScreen.storyboard, followed by a black screen, followed by the app.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/394889/22912226/c7329410-f218-11e6-8909-4108e88b6c96.gif"><img src="https://cloud.githubusercontent.com/assets/394889/22912226/c7329410-f218-11e6-8909-4108e88b6c96.gif" width="250" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">The problem is that we have a surface created but we haven't drawn pixels to it yet. We should try to show the contents of the LaunchScreen.storyboard instead.</p> <h2 dir="auto">Flutter Doctor</h2> <p dir="auto">flutter doctor<br> [✓] Flutter (on Mac OS, channel unknown)<br> • Flutter at /Users/jackson/git/flutter<br> • Framework revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/04e7446b2b5dc18e5fc8ba025d5aab612820693d/hovercard" href="https://github.com/flutter/flutter/commit/04e7446b2b5dc18e5fc8ba025d5aab612820693d"><tt>04e7446</tt></a> (3 months ago), 2016-11-07 15:48:50<br> • Engine revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/16077d474b3ed44bb4aba9a90d8722c4d6591936/hovercard" href="https://github.com/flutter/flutter/commit/16077d474b3ed44bb4aba9a90d8722c4d6591936"><tt>16077d4</tt></a><br> • Tools Dart version 1.21.0-dev.3.0</p> <p dir="auto">[✓] Android toolchain - develop for Android devices (Android SDK 23.0.3)<br> • Android SDK at /Users/jackson/Library/Android/sdk/<br> • Platform android-N, build-tools 23.0.3<br> • ANDROID_HOME = /Users/jackson/Library/Android/sdk/<br> • Java(TM) SE Runtime Environment (build 1.8.0_91-b14)</p> <p dir="auto">[✓] iOS toolchain - develop for iOS devices (Xcode 8.2.1)<br> • XCode at /Applications/Xcode.app/Contents/Developer<br> • Xcode 8.2.1, Build version 8C1002</p> <p dir="auto">[-] IntelliJ IDEA Community Edition (version 2016.3.1)<br> • Dart plugin not installed; this adds Dart specific functionality.<br> • Flutter plugin not installed; this adds Flutter specific functionality.<br> • For information about managing plugins, see<br> <a href="https://www.jetbrains.com/help/idea/2016.2/managing-plugins.html" rel="nofollow">https://www.jetbrains.com/help/idea/2016.2/managing-plugins.html</a></p> <p dir="auto">[✓] Connected devices<br> • iPhone SE • 3075EA0A-334E-4125-83FA-7DE6BA24C9ED • ios • iOS 10.2 (simulator)</p>
1
<p dir="auto">Here is the output I get before and after clearing the cache, and the diff. As you can see the difference is huge. If I run the command again, the output comes back to the initial state (the one with the fewer lines) I think it should be the same.</p> <h1 dir="auto">Before clearing the cache</h1> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Default configuration for &quot;SecurityBundle&quot; security: access_denied_url: null # Example: /foo/error403 # strategy can be: none, migrate, invalidate session_fixation_strategy: migrate hide_user_not_found: true always_authenticate_before_granting: false erase_credentials: true access_decision_manager: strategy: affirmative allow_if_all_abstain: false allow_if_equal_granted_denied: true acl: # any name configured in doctrine.dbal section connection: null cache: id: ~ prefix: sf2_acl_ provider: ~ tables: class: acl_classes entry: acl_entries object_identity: acl_object_identities object_identity_ancestors: acl_object_identity_ancestors security_identity: acl_security_identities voter: allow_if_object_identity_unavailable: true encoders: # Examples: Acme\DemoBundle\Entity\User1: sha512 Acme\DemoBundle\Entity\User2: algorithm: sha512 encode_as_base64: true iterations: 5000 # Prototype class: algorithm: ~ # Name of hashing algorithm for PBKDF2 (i.e. sha256, sha512, etc..) See hash_algos() for a list of supported algorithms. hash_algorithm: sha512 key_length: 40 ignore_case: false encode_as_base64: true iterations: 5000 cost: 13 id: ~ providers: # Required # Examples: my_memory_provider: memory: users: foo: password: foo roles: ROLE_USER bar: password: bar roles: [ROLE_USER, ROLE_ADMIN] my_entity_provider: entity: class: SecurityBundle:User property: username # Prototype name: id: ~ chain: providers: [] firewalls: # Required # Prototype name: pattern: ~ host: ~ methods: [] security: true request_matcher: ~ access_denied_url: ~ access_denied_handler: ~ entry_point: ~ provider: ~ stateless: false context: ~ logout: csrf_parameter: _csrf_token csrf_token_generator: ~ csrf_token_id: logout path: /logout target: / success_handler: ~ invalidate_session: true delete_cookies: # Prototype name: path: null domain: null handlers: [] anonymous: key: 538c9e213ae18 switch_user: provider: ~ parameter: _switch_user role: ROLE_ALLOWED_TO_SWITCH access_control: requires_channel: null # use the urldecoded format path: null # Example: ^/path to resource/ host: null ips: [] methods: [] allow_if: null roles: [] role_hierarchy: # Prototype id: []"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> Default configuration for "SecurityBundle"</span> <span class="pl-ent">security</span>: <span class="pl-ent">access_denied_url</span>: <span class="pl-s">null </span><span class="pl-c"><span class="pl-c">#</span> Example: /foo/error403</span> <span class="pl-c"><span class="pl-c">#</span> strategy can be: none, migrate, invalidate</span> <span class="pl-ent">session_fixation_strategy</span>: <span class="pl-s">migrate</span> <span class="pl-ent">hide_user_not_found</span>: <span class="pl-c1">true</span> <span class="pl-ent">always_authenticate_before_granting</span>: <span class="pl-c1">false</span> <span class="pl-ent">erase_credentials</span>: <span class="pl-c1">true</span> <span class="pl-ent">access_decision_manager</span>: <span class="pl-ent">strategy</span>: <span class="pl-s">affirmative</span> <span class="pl-ent">allow_if_all_abstain</span>: <span class="pl-c1">false</span> <span class="pl-ent">allow_if_equal_granted_denied</span>: <span class="pl-c1">true</span> <span class="pl-ent">acl</span>: <span class="pl-c"><span class="pl-c">#</span> any name configured in doctrine.dbal section</span> <span class="pl-ent">connection</span>: <span class="pl-c1">null</span> <span class="pl-ent">cache</span>: <span class="pl-ent">id</span>: <span class="pl-c1">~</span> <span class="pl-ent">prefix</span>: <span class="pl-s">sf2_acl_</span> <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">tables</span>: <span class="pl-ent">class</span>: <span class="pl-s">acl_classes</span> <span class="pl-ent">entry</span>: <span class="pl-s">acl_entries</span> <span class="pl-ent">object_identity</span>: <span class="pl-s">acl_object_identities</span> <span class="pl-ent">object_identity_ancestors</span>: <span class="pl-s">acl_object_identity_ancestors</span> <span class="pl-ent">security_identity</span>: <span class="pl-s">acl_security_identities</span> <span class="pl-ent">voter</span>: <span class="pl-ent">allow_if_object_identity_unavailable</span>: <span class="pl-c1">true</span> <span class="pl-ent">encoders</span>: <span class="pl-c"><span class="pl-c">#</span> Examples:</span> <span class="pl-ent">Acme\DemoBundle\Entity\User1</span>: <span class="pl-s">sha512</span> <span class="pl-ent">Acme\DemoBundle\Entity\User2</span>: <span class="pl-ent">algorithm</span>: <span class="pl-s">sha512</span> <span class="pl-ent">encode_as_base64</span>: <span class="pl-c1">true</span> <span class="pl-ent">iterations</span>: <span class="pl-c1">5000</span> <span class="pl-c"><span class="pl-c">#</span> Prototype</span> <span class="pl-ent">class</span>: <span class="pl-ent">algorithm</span>: <span class="pl-c1">~</span> <span class="pl-c"><span class="pl-c">#</span> Name of hashing algorithm for PBKDF2 (i.e. sha256, sha512, etc..) See hash_algos() for a list of supported algorithms.</span> <span class="pl-ent">hash_algorithm</span>: <span class="pl-s">sha512</span> <span class="pl-ent">key_length</span>: <span class="pl-c1">40</span> <span class="pl-ent">ignore_case</span>: <span class="pl-c1">false</span> <span class="pl-ent">encode_as_base64</span>: <span class="pl-c1">true</span> <span class="pl-ent">iterations</span>: <span class="pl-c1">5000</span> <span class="pl-ent">cost</span>: <span class="pl-c1">13</span> <span class="pl-ent">id</span>: <span class="pl-c1">~</span> <span class="pl-ent">providers</span>: <span class="pl-c"><span class="pl-c">#</span> Required</span> <span class="pl-c"><span class="pl-c">#</span> Examples:</span> <span class="pl-ent">my_memory_provider</span>: <span class="pl-ent">memory</span>: <span class="pl-ent">users</span>: <span class="pl-ent">foo</span>: <span class="pl-ent">password</span>: <span class="pl-s">foo</span> <span class="pl-ent">roles</span>: <span class="pl-s">ROLE_USER</span> <span class="pl-ent">bar</span>: <span class="pl-ent">password</span>: <span class="pl-s">bar</span> <span class="pl-ent">roles</span>: <span class="pl-s">[ROLE_USER, ROLE_ADMIN]</span> <span class="pl-ent">my_entity_provider</span>: <span class="pl-ent">entity</span>: <span class="pl-ent">class</span>: <span class="pl-s">SecurityBundle:User</span> <span class="pl-ent">property</span>: <span class="pl-s">username</span> <span class="pl-c"><span class="pl-c">#</span> Prototype</span> <span class="pl-ent">name</span>: <span class="pl-ent">id</span>: <span class="pl-c1">~</span> <span class="pl-ent">chain</span>: <span class="pl-ent">providers</span>: <span class="pl-s">[]</span> <span class="pl-ent">firewalls</span>: <span class="pl-c"><span class="pl-c">#</span> Required</span> <span class="pl-c"><span class="pl-c">#</span> Prototype</span> <span class="pl-ent">name</span>: <span class="pl-ent">pattern</span>: <span class="pl-c1">~</span> <span class="pl-ent">host</span>: <span class="pl-c1">~</span> <span class="pl-ent">methods</span>: <span class="pl-s">[]</span> <span class="pl-ent">security</span>: <span class="pl-c1">true</span> <span class="pl-ent">request_matcher</span>: <span class="pl-c1">~</span> <span class="pl-ent">access_denied_url</span>: <span class="pl-c1">~</span> <span class="pl-ent">access_denied_handler</span>: <span class="pl-c1">~</span> <span class="pl-ent">entry_point</span>: <span class="pl-c1">~</span> <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">stateless</span>: <span class="pl-c1">false</span> <span class="pl-ent">context</span>: <span class="pl-c1">~</span> <span class="pl-ent">logout</span>: <span class="pl-ent">csrf_parameter</span>: <span class="pl-s">_csrf_token</span> <span class="pl-ent">csrf_token_generator</span>: <span class="pl-c1">~</span> <span class="pl-ent">csrf_token_id</span>: <span class="pl-s">logout</span> <span class="pl-ent">path</span>: <span class="pl-s">/logout</span> <span class="pl-ent">target</span>: <span class="pl-s">/</span> <span class="pl-ent">success_handler</span>: <span class="pl-c1">~</span> <span class="pl-ent">invalidate_session</span>: <span class="pl-c1">true</span> <span class="pl-ent">delete_cookies</span>: <span class="pl-c"><span class="pl-c">#</span> Prototype</span> <span class="pl-ent">name</span>: <span class="pl-ent">path</span>: <span class="pl-c1">null</span> <span class="pl-ent">domain</span>: <span class="pl-c1">null</span> <span class="pl-ent">handlers</span>: <span class="pl-s">[]</span> <span class="pl-ent">anonymous</span>: <span class="pl-ent">key</span>: <span class="pl-s">538c9e213ae18</span> <span class="pl-ent">switch_user</span>: <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">parameter</span>: <span class="pl-s">_switch_user</span> <span class="pl-ent">role</span>: <span class="pl-s">ROLE_ALLOWED_TO_SWITCH</span> <span class="pl-ent">access_control</span>: <span class="pl-ent">requires_channel</span>: <span class="pl-c1">null</span> <span class="pl-c"><span class="pl-c">#</span> use the urldecoded format</span> <span class="pl-ent">path</span>: <span class="pl-s">null </span><span class="pl-c"><span class="pl-c">#</span> Example: ^/path to resource/</span> <span class="pl-ent">host</span>: <span class="pl-c1">null</span> <span class="pl-ent">ips</span>: <span class="pl-s">[]</span> <span class="pl-ent">methods</span>: <span class="pl-s">[]</span> <span class="pl-ent">allow_if</span>: <span class="pl-c1">null</span> <span class="pl-ent">roles</span>: <span class="pl-s">[]</span> <span class="pl-ent">role_hierarchy</span>: <span class="pl-c"><span class="pl-c">#</span> Prototype</span> <span class="pl-ent">id</span>: <span class="pl-s">[]</span></pre></div> <h1 dir="auto">After clearing the cache</h1> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Default configuration for &quot;SecurityBundle&quot; security: access_denied_url: null # Example: /foo/error403 # strategy can be: none, migrate, invalidate session_fixation_strategy: migrate hide_user_not_found: true always_authenticate_before_granting: false erase_credentials: true access_decision_manager: strategy: affirmative allow_if_all_abstain: false allow_if_equal_granted_denied: true acl: # any name configured in doctrine.dbal section connection: null cache: id: ~ prefix: sf2_acl_ provider: ~ tables: class: acl_classes entry: acl_entries object_identity: acl_object_identities object_identity_ancestors: acl_object_identity_ancestors security_identity: acl_security_identities voter: allow_if_object_identity_unavailable: true encoders: # Examples: Acme\DemoBundle\Entity\User1: sha512 Acme\DemoBundle\Entity\User2: algorithm: sha512 encode_as_base64: true iterations: 5000 # Prototype class: algorithm: ~ # Name of hashing algorithm for PBKDF2 (i.e. sha256, sha512, etc..) See hash_algos() for a list of supported algorithms. hash_algorithm: sha512 key_length: 40 ignore_case: false encode_as_base64: true iterations: 5000 cost: 13 id: ~ providers: # Required # Examples: my_memory_provider: memory: users: foo: password: foo roles: ROLE_USER bar: password: bar roles: [ROLE_USER, ROLE_ADMIN] my_entity_provider: entity: class: SecurityBundle:User property: username # Prototype name: id: ~ chain: providers: [] memory: users: # Prototype name: password: 538c9e35acffa roles: [] entity: class: ~ # Required property: null manager_name: null firewalls: # Required # Prototype name: pattern: ~ host: ~ methods: [] security: true request_matcher: ~ access_denied_url: ~ access_denied_handler: ~ entry_point: ~ provider: ~ stateless: false context: ~ logout: csrf_parameter: _csrf_token csrf_token_generator: ~ csrf_token_id: logout path: /logout target: / success_handler: ~ invalidate_session: true delete_cookies: # Prototype name: path: null domain: null handlers: [] anonymous: key: 538c9e35ad418 switch_user: provider: ~ parameter: _switch_user role: ROLE_ALLOWED_TO_SWITCH x509: provider: ~ user: SSL_CLIENT_S_DN_Email credentials: SSL_CLIENT_S_DN simple_preauth: provider: ~ authenticator: ~ fr3d_ldap: [] cas: provider: ~ remember_me: true success_handler: ~ failure_handler: ~ check_path: null use_forward: false require_previous_session: true # domain name of the cas application cas_server: ~ # Required # port to use when connecting to the CAS application. Defaults to 443. cas_port: 443 # path to the certification authority that issued the certificate for your authentication server. ca_certificate: ~ # Required # will be used to trigger the redirection to CAS login_path: ~ # Required always_use_default_target_path: false default_target_path: / target_path_parameter: _target_path use_referer: false failure_path: null failure_forward: false failure_path_parameter: _failure_path form_login: provider: ~ remember_me: true success_handler: ~ failure_handler: ~ check_path: /login_check use_forward: false require_previous_session: true username_parameter: _username password_parameter: _password csrf_parameter: _csrf_token intention: authenticate post_only: true always_use_default_target_path: false default_target_path: / login_path: /login target_path_parameter: _target_path use_referer: false failure_path: null failure_forward: false failure_path_parameter: _failure_path csrf_provider: ~ simple_form: provider: ~ remember_me: true success_handler: ~ failure_handler: ~ check_path: /login_check use_forward: false require_previous_session: true username_parameter: _username password_parameter: _password csrf_parameter: _csrf_token intention: authenticate post_only: true authenticator: ~ always_use_default_target_path: false default_target_path: / login_path: /login target_path_parameter: _target_path use_referer: false failure_path: null failure_forward: false failure_path_parameter: _failure_path csrf_provider: ~ http_basic: provider: ~ realm: 'Secured Area' http_digest: provider: ~ realm: 'Secured Area' key: ~ # Required remember_me: key: ~ # Required token_provider: ~ user_providers: [] name: REMEMBERME lifetime: 31536000 path: / domain: null secure: false httponly: true always_remember_me: false remember_me_parameter: _remember_me access_control: requires_channel: null # use the urldecoded format path: null # Example: ^/path to resource/ host: null ips: [] methods: [] allow_if: null roles: [] role_hierarchy: # Prototype id: [] "><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> Default configuration for "SecurityBundle"</span> <span class="pl-ent">security</span>: <span class="pl-ent">access_denied_url</span>: <span class="pl-s">null </span><span class="pl-c"><span class="pl-c">#</span> Example: /foo/error403</span> <span class="pl-c"><span class="pl-c">#</span> strategy can be: none, migrate, invalidate</span> <span class="pl-ent">session_fixation_strategy</span>: <span class="pl-s">migrate</span> <span class="pl-ent">hide_user_not_found</span>: <span class="pl-c1">true</span> <span class="pl-ent">always_authenticate_before_granting</span>: <span class="pl-c1">false</span> <span class="pl-ent">erase_credentials</span>: <span class="pl-c1">true</span> <span class="pl-ent">access_decision_manager</span>: <span class="pl-ent">strategy</span>: <span class="pl-s">affirmative</span> <span class="pl-ent">allow_if_all_abstain</span>: <span class="pl-c1">false</span> <span class="pl-ent">allow_if_equal_granted_denied</span>: <span class="pl-c1">true</span> <span class="pl-ent">acl</span>: <span class="pl-c"><span class="pl-c">#</span> any name configured in doctrine.dbal section</span> <span class="pl-ent">connection</span>: <span class="pl-c1">null</span> <span class="pl-ent">cache</span>: <span class="pl-ent">id</span>: <span class="pl-c1">~</span> <span class="pl-ent">prefix</span>: <span class="pl-s">sf2_acl_</span> <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">tables</span>: <span class="pl-ent">class</span>: <span class="pl-s">acl_classes</span> <span class="pl-ent">entry</span>: <span class="pl-s">acl_entries</span> <span class="pl-ent">object_identity</span>: <span class="pl-s">acl_object_identities</span> <span class="pl-ent">object_identity_ancestors</span>: <span class="pl-s">acl_object_identity_ancestors</span> <span class="pl-ent">security_identity</span>: <span class="pl-s">acl_security_identities</span> <span class="pl-ent">voter</span>: <span class="pl-ent">allow_if_object_identity_unavailable</span>: <span class="pl-c1">true</span> <span class="pl-ent">encoders</span>: <span class="pl-c"><span class="pl-c">#</span> Examples:</span> <span class="pl-ent">Acme\DemoBundle\Entity\User1</span>: <span class="pl-s">sha512</span> <span class="pl-ent">Acme\DemoBundle\Entity\User2</span>: <span class="pl-ent">algorithm</span>: <span class="pl-s">sha512</span> <span class="pl-ent">encode_as_base64</span>: <span class="pl-c1">true</span> <span class="pl-ent">iterations</span>: <span class="pl-c1">5000</span> <span class="pl-c"><span class="pl-c">#</span> Prototype</span> <span class="pl-ent">class</span>: <span class="pl-ent">algorithm</span>: <span class="pl-c1">~</span> <span class="pl-c"><span class="pl-c">#</span> Name of hashing algorithm for PBKDF2 (i.e. sha256, sha512, etc..) See hash_algos() for a list of supported algorithms.</span> <span class="pl-ent">hash_algorithm</span>: <span class="pl-s">sha512</span> <span class="pl-ent">key_length</span>: <span class="pl-c1">40</span> <span class="pl-ent">ignore_case</span>: <span class="pl-c1">false</span> <span class="pl-ent">encode_as_base64</span>: <span class="pl-c1">true</span> <span class="pl-ent">iterations</span>: <span class="pl-c1">5000</span> <span class="pl-ent">cost</span>: <span class="pl-c1">13</span> <span class="pl-ent">id</span>: <span class="pl-c1">~</span> <span class="pl-ent">providers</span>: <span class="pl-c"><span class="pl-c">#</span> Required</span> <span class="pl-c"><span class="pl-c">#</span> Examples:</span> <span class="pl-ent">my_memory_provider</span>: <span class="pl-ent">memory</span>: <span class="pl-ent">users</span>: <span class="pl-ent">foo</span>: <span class="pl-ent">password</span>: <span class="pl-s">foo</span> <span class="pl-ent">roles</span>: <span class="pl-s">ROLE_USER</span> <span class="pl-ent">bar</span>: <span class="pl-ent">password</span>: <span class="pl-s">bar</span> <span class="pl-ent">roles</span>: <span class="pl-s">[ROLE_USER, ROLE_ADMIN]</span> <span class="pl-ent">my_entity_provider</span>: <span class="pl-ent">entity</span>: <span class="pl-ent">class</span>: <span class="pl-s">SecurityBundle:User</span> <span class="pl-ent">property</span>: <span class="pl-s">username</span> <span class="pl-c"><span class="pl-c">#</span> Prototype</span> <span class="pl-ent">name</span>: <span class="pl-ent">id</span>: <span class="pl-c1">~</span> <span class="pl-ent">chain</span>: <span class="pl-ent">providers</span>: <span class="pl-s">[]</span> <span class="pl-ent">memory</span>: <span class="pl-ent">users</span>: <span class="pl-c"><span class="pl-c">#</span> Prototype</span> <span class="pl-ent">name</span>: <span class="pl-ent">password</span>: <span class="pl-s">538c9e35acffa</span> <span class="pl-ent">roles</span>: <span class="pl-s">[]</span> <span class="pl-ent">entity</span>: <span class="pl-ent">class</span>: ~ <span class="pl-c"><span class="pl-c">#</span> Required</span> <span class="pl-ent">property</span>: <span class="pl-c1">null</span> <span class="pl-ent">manager_name</span>: <span class="pl-c1">null</span> <span class="pl-ent">firewalls</span>: <span class="pl-c"><span class="pl-c">#</span> Required</span> <span class="pl-c"><span class="pl-c">#</span> Prototype</span> <span class="pl-ent">name</span>: <span class="pl-ent">pattern</span>: <span class="pl-c1">~</span> <span class="pl-ent">host</span>: <span class="pl-c1">~</span> <span class="pl-ent">methods</span>: <span class="pl-s">[]</span> <span class="pl-ent">security</span>: <span class="pl-c1">true</span> <span class="pl-ent">request_matcher</span>: <span class="pl-c1">~</span> <span class="pl-ent">access_denied_url</span>: <span class="pl-c1">~</span> <span class="pl-ent">access_denied_handler</span>: <span class="pl-c1">~</span> <span class="pl-ent">entry_point</span>: <span class="pl-c1">~</span> <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">stateless</span>: <span class="pl-c1">false</span> <span class="pl-ent">context</span>: <span class="pl-c1">~</span> <span class="pl-ent">logout</span>: <span class="pl-ent">csrf_parameter</span>: <span class="pl-s">_csrf_token</span> <span class="pl-ent">csrf_token_generator</span>: <span class="pl-c1">~</span> <span class="pl-ent">csrf_token_id</span>: <span class="pl-s">logout</span> <span class="pl-ent">path</span>: <span class="pl-s">/logout</span> <span class="pl-ent">target</span>: <span class="pl-s">/</span> <span class="pl-ent">success_handler</span>: <span class="pl-c1">~</span> <span class="pl-ent">invalidate_session</span>: <span class="pl-c1">true</span> <span class="pl-ent">delete_cookies</span>: <span class="pl-c"><span class="pl-c">#</span> Prototype</span> <span class="pl-ent">name</span>: <span class="pl-ent">path</span>: <span class="pl-c1">null</span> <span class="pl-ent">domain</span>: <span class="pl-c1">null</span> <span class="pl-ent">handlers</span>: <span class="pl-s">[]</span> <span class="pl-ent">anonymous</span>: <span class="pl-ent">key</span>: <span class="pl-s">538c9e35ad418</span> <span class="pl-ent">switch_user</span>: <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">parameter</span>: <span class="pl-s">_switch_user</span> <span class="pl-ent">role</span>: <span class="pl-s">ROLE_ALLOWED_TO_SWITCH</span> <span class="pl-ent">x509</span>: <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">user</span>: <span class="pl-s">SSL_CLIENT_S_DN_Email</span> <span class="pl-ent">credentials</span>: <span class="pl-s">SSL_CLIENT_S_DN</span> <span class="pl-ent">simple_preauth</span>: <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">authenticator</span>: <span class="pl-c1">~</span> <span class="pl-ent">fr3d_ldap</span>: <span class="pl-s">[]</span> <span class="pl-ent">cas</span>: <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">remember_me</span>: <span class="pl-c1">true</span> <span class="pl-ent">success_handler</span>: <span class="pl-c1">~</span> <span class="pl-ent">failure_handler</span>: <span class="pl-c1">~</span> <span class="pl-ent">check_path</span>: <span class="pl-c1">null</span> <span class="pl-ent">use_forward</span>: <span class="pl-c1">false</span> <span class="pl-ent">require_previous_session</span>: <span class="pl-c1">true</span> <span class="pl-c"><span class="pl-c">#</span> domain name of the cas application</span> <span class="pl-ent">cas_server</span>: ~ <span class="pl-c"><span class="pl-c">#</span> Required</span> <span class="pl-c"><span class="pl-c">#</span> port to use when connecting to the CAS application. Defaults to 443.</span> <span class="pl-ent">cas_port</span>: <span class="pl-c1">443</span> <span class="pl-c"><span class="pl-c">#</span> path to the certification authority that issued the certificate for your authentication server.</span> <span class="pl-ent">ca_certificate</span>: ~ <span class="pl-c"><span class="pl-c">#</span> Required</span> <span class="pl-c"><span class="pl-c">#</span> will be used to trigger the redirection to CAS</span> <span class="pl-ent">login_path</span>: ~ <span class="pl-c"><span class="pl-c">#</span> Required</span> <span class="pl-ent">always_use_default_target_path</span>: <span class="pl-c1">false</span> <span class="pl-ent">default_target_path</span>: <span class="pl-s">/</span> <span class="pl-ent">target_path_parameter</span>: <span class="pl-s">_target_path</span> <span class="pl-ent">use_referer</span>: <span class="pl-c1">false</span> <span class="pl-ent">failure_path</span>: <span class="pl-c1">null</span> <span class="pl-ent">failure_forward</span>: <span class="pl-c1">false</span> <span class="pl-ent">failure_path_parameter</span>: <span class="pl-s">_failure_path</span> <span class="pl-ent">form_login</span>: <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">remember_me</span>: <span class="pl-c1">true</span> <span class="pl-ent">success_handler</span>: <span class="pl-c1">~</span> <span class="pl-ent">failure_handler</span>: <span class="pl-c1">~</span> <span class="pl-ent">check_path</span>: <span class="pl-s">/login_check</span> <span class="pl-ent">use_forward</span>: <span class="pl-c1">false</span> <span class="pl-ent">require_previous_session</span>: <span class="pl-c1">true</span> <span class="pl-ent">username_parameter</span>: <span class="pl-s">_username</span> <span class="pl-ent">password_parameter</span>: <span class="pl-s">_password</span> <span class="pl-ent">csrf_parameter</span>: <span class="pl-s">_csrf_token</span> <span class="pl-ent">intention</span>: <span class="pl-s">authenticate</span> <span class="pl-ent">post_only</span>: <span class="pl-c1">true</span> <span class="pl-ent">always_use_default_target_path</span>: <span class="pl-c1">false</span> <span class="pl-ent">default_target_path</span>: <span class="pl-s">/</span> <span class="pl-ent">login_path</span>: <span class="pl-s">/login</span> <span class="pl-ent">target_path_parameter</span>: <span class="pl-s">_target_path</span> <span class="pl-ent">use_referer</span>: <span class="pl-c1">false</span> <span class="pl-ent">failure_path</span>: <span class="pl-c1">null</span> <span class="pl-ent">failure_forward</span>: <span class="pl-c1">false</span> <span class="pl-ent">failure_path_parameter</span>: <span class="pl-s">_failure_path</span> <span class="pl-ent">csrf_provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">simple_form</span>: <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">remember_me</span>: <span class="pl-c1">true</span> <span class="pl-ent">success_handler</span>: <span class="pl-c1">~</span> <span class="pl-ent">failure_handler</span>: <span class="pl-c1">~</span> <span class="pl-ent">check_path</span>: <span class="pl-s">/login_check</span> <span class="pl-ent">use_forward</span>: <span class="pl-c1">false</span> <span class="pl-ent">require_previous_session</span>: <span class="pl-c1">true</span> <span class="pl-ent">username_parameter</span>: <span class="pl-s">_username</span> <span class="pl-ent">password_parameter</span>: <span class="pl-s">_password</span> <span class="pl-ent">csrf_parameter</span>: <span class="pl-s">_csrf_token</span> <span class="pl-ent">intention</span>: <span class="pl-s">authenticate</span> <span class="pl-ent">post_only</span>: <span class="pl-c1">true</span> <span class="pl-ent">authenticator</span>: <span class="pl-c1">~</span> <span class="pl-ent">always_use_default_target_path</span>: <span class="pl-c1">false</span> <span class="pl-ent">default_target_path</span>: <span class="pl-s">/</span> <span class="pl-ent">login_path</span>: <span class="pl-s">/login</span> <span class="pl-ent">target_path_parameter</span>: <span class="pl-s">_target_path</span> <span class="pl-ent">use_referer</span>: <span class="pl-c1">false</span> <span class="pl-ent">failure_path</span>: <span class="pl-c1">null</span> <span class="pl-ent">failure_forward</span>: <span class="pl-c1">false</span> <span class="pl-ent">failure_path_parameter</span>: <span class="pl-s">_failure_path</span> <span class="pl-ent">csrf_provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">http_basic</span>: <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">realm</span>: <span class="pl-s"><span class="pl-pds">'</span>Secured Area<span class="pl-pds">'</span></span> <span class="pl-ent">http_digest</span>: <span class="pl-ent">provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">realm</span>: <span class="pl-s"><span class="pl-pds">'</span>Secured Area<span class="pl-pds">'</span></span> <span class="pl-ent">key</span>: ~ <span class="pl-c"><span class="pl-c">#</span> Required</span> <span class="pl-ent">remember_me</span>: <span class="pl-ent">key</span>: ~ <span class="pl-c"><span class="pl-c">#</span> Required</span> <span class="pl-ent">token_provider</span>: <span class="pl-c1">~</span> <span class="pl-ent">user_providers</span>: <span class="pl-s">[]</span> <span class="pl-ent">name</span>: <span class="pl-s">REMEMBERME</span> <span class="pl-ent">lifetime</span>: <span class="pl-c1">31536000</span> <span class="pl-ent">path</span>: <span class="pl-s">/</span> <span class="pl-ent">domain</span>: <span class="pl-c1">null</span> <span class="pl-ent">secure</span>: <span class="pl-c1">false</span> <span class="pl-ent">httponly</span>: <span class="pl-c1">true</span> <span class="pl-ent">always_remember_me</span>: <span class="pl-c1">false</span> <span class="pl-ent">remember_me_parameter</span>: <span class="pl-s">_remember_me</span> <span class="pl-ent">access_control</span>: <span class="pl-ent">requires_channel</span>: <span class="pl-c1">null</span> <span class="pl-c"><span class="pl-c">#</span> use the urldecoded format</span> <span class="pl-ent">path</span>: <span class="pl-s">null </span><span class="pl-c"><span class="pl-c">#</span> Example: ^/path to resource/</span> <span class="pl-ent">host</span>: <span class="pl-c1">null</span> <span class="pl-ent">ips</span>: <span class="pl-s">[]</span> <span class="pl-ent">methods</span>: <span class="pl-s">[]</span> <span class="pl-ent">allow_if</span>: <span class="pl-c1">null</span> <span class="pl-ent">roles</span>: <span class="pl-s">[]</span> <span class="pl-ent">role_hierarchy</span>: <span class="pl-c"><span class="pl-c">#</span> Prototype</span> <span class="pl-ent">id</span>: <span class="pl-s">[]</span> </pre></div> <h1 dir="auto">Diff</h1> <div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="72a73,83 &gt; memory: &gt; users: &gt; &gt; # Prototype &gt; name: &gt; password: 538c9e35acffa &gt; roles: [] &gt; entity: &gt; class: ~ # Required &gt; property: null &gt; manager_name: null 104c115 &lt; key: 538c9e213ae18 --- &gt; key: 538c9e35ad418 108a120,218 &gt; x509: &gt; provider: ~ &gt; user: SSL_CLIENT_S_DN_Email &gt; credentials: SSL_CLIENT_S_DN &gt; simple_preauth: &gt; provider: ~ &gt; authenticator: ~ &gt; fr3d_ldap: [] &gt; cas: &gt; provider: ~ &gt; remember_me: true &gt; success_handler: ~ &gt; failure_handler: ~ &gt; check_path: null &gt; use_forward: false &gt; require_previous_session: true &gt; &gt; # domain name of the cas application &gt; cas_server: ~ # Required &gt; &gt; # port to use when connecting to the CAS application. Defaults to 443. &gt; cas_port: 443 &gt; &gt; # path to the certification authority that issued the certificate for your authentication server. &gt; ca_certificate: ~ # Required &gt; &gt; # will be used to trigger the redirection to CAS &gt; login_path: ~ # Required &gt; always_use_default_target_path: false &gt; default_target_path: / &gt; target_path_parameter: _target_path &gt; use_referer: false &gt; failure_path: null &gt; failure_forward: false &gt; failure_path_parameter: _failure_path &gt; form_login: &gt; provider: ~ &gt; remember_me: true &gt; success_handler: ~ &gt; failure_handler: ~ &gt; check_path: /login_check &gt; use_forward: false &gt; require_previous_session: true &gt; username_parameter: _username &gt; password_parameter: _password &gt; csrf_parameter: _csrf_token &gt; intention: authenticate &gt; post_only: true &gt; always_use_default_target_path: false &gt; default_target_path: / &gt; login_path: /login &gt; target_path_parameter: _target_path &gt; use_referer: false &gt; failure_path: null &gt; failure_forward: false &gt; failure_path_parameter: _failure_path &gt; csrf_provider: ~ &gt; simple_form: &gt; provider: ~ &gt; remember_me: true &gt; success_handler: ~ &gt; failure_handler: ~ &gt; check_path: /login_check &gt; use_forward: false &gt; require_previous_session: true &gt; username_parameter: _username &gt; password_parameter: _password &gt; csrf_parameter: _csrf_token &gt; intention: authenticate &gt; post_only: true &gt; authenticator: ~ &gt; always_use_default_target_path: false &gt; default_target_path: / &gt; login_path: /login &gt; target_path_parameter: _target_path &gt; use_referer: false &gt; failure_path: null &gt; failure_forward: false &gt; failure_path_parameter: _failure_path &gt; csrf_provider: ~ &gt; http_basic: &gt; provider: ~ &gt; realm: 'Secured Area' &gt; http_digest: &gt; provider: ~ &gt; realm: 'Secured Area' &gt; key: ~ # Required &gt; remember_me: &gt; key: ~ # Required &gt; token_provider: ~ &gt; user_providers: [] &gt; name: REMEMBERME &gt; lifetime: 31536000 &gt; path: / &gt; domain: null &gt; secure: false &gt; httponly: true &gt; always_remember_me: false &gt; remember_me_parameter: _remember_me "><pre class="notranslate"><span class="pl-mdr">72a73,83</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> memory:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> users:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> </span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> # Prototype</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> name:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> password: 538c9e35acffa</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> roles: []</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> entity:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> class: ~ # Required</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> property: null</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> manager_name: null</span> <span class="pl-mdr">104c115</span> <span class="pl-md"><span class="pl-md">&lt;</span> key: 538c9e213ae18</span> <span class="pl-ms">---</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> key: 538c9e35ad418</span> <span class="pl-mdr">108a120,218</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> x509:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> provider: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> user: SSL_CLIENT_S_DN_Email</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> credentials: SSL_CLIENT_S_DN</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> simple_preauth:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> provider: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> authenticator: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> fr3d_ldap: []</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> cas:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> provider: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> remember_me: true</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> success_handler: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_handler: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> check_path: null</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> use_forward: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> require_previous_session: true</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> </span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> # domain name of the cas application</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> cas_server: ~ # Required</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> </span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> # port to use when connecting to the CAS application. Defaults to 443.</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> cas_port: 443</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> </span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> # path to the certification authority that issued the certificate for your authentication server.</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> ca_certificate: ~ # Required</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> </span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> # will be used to trigger the redirection to CAS</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> login_path: ~ # Required</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> always_use_default_target_path: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> default_target_path: /</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> target_path_parameter: _target_path</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> use_referer: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_path: null</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_forward: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_path_parameter: _failure_path</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> form_login:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> provider: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> remember_me: true</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> success_handler: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_handler: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> check_path: /login_check</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> use_forward: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> require_previous_session: true</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> username_parameter: _username</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> password_parameter: _password</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> csrf_parameter: _csrf_token</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> intention: authenticate</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> post_only: true</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> always_use_default_target_path: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> default_target_path: /</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> login_path: /login</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> target_path_parameter: _target_path</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> use_referer: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_path: null</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_forward: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_path_parameter: _failure_path</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> csrf_provider: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> simple_form:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> provider: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> remember_me: true</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> success_handler: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_handler: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> check_path: /login_check</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> use_forward: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> require_previous_session: true</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> username_parameter: _username</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> password_parameter: _password</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> csrf_parameter: _csrf_token</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> intention: authenticate</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> post_only: true</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> authenticator: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> always_use_default_target_path: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> default_target_path: /</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> login_path: /login</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> target_path_parameter: _target_path</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> use_referer: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_path: null</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_forward: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> failure_path_parameter: _failure_path</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> csrf_provider: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> http_basic:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> provider: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> realm: 'Secured Area'</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> http_digest:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> provider: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> realm: 'Secured Area'</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> key: ~ # Required</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> remember_me:</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> key: ~ # Required</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> token_provider: ~</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> user_providers: []</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> name: REMEMBERME</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> lifetime: 31536000</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> path: /</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> domain: null</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> secure: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> httponly: true</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> always_remember_me: false</span> <span class="pl-mi1"><span class="pl-mi1">&gt;</span> remember_me_parameter: _remember_me</span> </pre></div>
<p dir="auto">I found something that I don't think is a bug by itself, but doesn't really strike me as completely correct behaviour neither.</p> <p dir="auto">When I dump the security configuration on the console, I will not see any authentication mechanism configurations, like form_login, x509, http_basic etc, but after I clear the cache without warming up, these configuration settings are correctly dumped.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ php app/console config:dump-reference security firewalls: # Required # Prototype name: pattern: ~ host: ~ ....... anonymous: key: 54a5a642d6404 switch_user: provider: ~ parameter: _switch_user role: ROLE_ALLOWED_TO_SWITCH access_control: requires_channel: null # use the urldecoded format path: null # Example: ^/path to resource/ host: null $"><pre class="notranslate"><code class="notranslate">$ php app/console config:dump-reference security firewalls: # Required # Prototype name: pattern: ~ host: ~ ....... anonymous: key: 54a5a642d6404 switch_user: provider: ~ parameter: _switch_user role: ROLE_ALLOWED_TO_SWITCH access_control: requires_channel: null # use the urldecoded format path: null # Example: ^/path to resource/ host: null $ </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ php app/console clear:cache --no-warmup $ php app/console config:dump-reference security firewalls: # Required # Prototype name: pattern: ~ host: ~ ....... anonymous: key: 54a5a642d6404 switch_user: provider: ~ parameter: _switch_user role: ROLE_ALLOWED_TO_SWITCH x509: provider: ~ user: SSL_CLIENT_S_DN_Email credentials: SSL_CLIENT_S_DN simple_preauth: provider: ~ authenticator: ~ form_login: provider: ~ remember_me: true success_handler: ~ ....... access_control: requires_channel: null # use the urldecoded format path: null # Example: ^/path to resource/ host: null $"><pre class="notranslate"><code class="notranslate">$ php app/console clear:cache --no-warmup $ php app/console config:dump-reference security firewalls: # Required # Prototype name: pattern: ~ host: ~ ....... anonymous: key: 54a5a642d6404 switch_user: provider: ~ parameter: _switch_user role: ROLE_ALLOWED_TO_SWITCH x509: provider: ~ user: SSL_CLIENT_S_DN_Email credentials: SSL_CLIENT_S_DN simple_preauth: provider: ~ authenticator: ~ form_login: provider: ~ remember_me: true success_handler: ~ ....... access_control: requires_channel: null # use the urldecoded format path: null # Example: ^/path to resource/ host: null $ </code></pre></div> <p dir="auto">The reason for this is that the authentication security listeners are added through the addSecurityListenerFactory() in the <a href="https://github.com/symfony/symfony/blob/2.7/src/Symfony/Bundle/SecurityBundle/SecurityBundle.php#L39">securityBundle::build()</a> method, which only gets called when creating a new cache.</p> <p dir="auto">Once the cache has been build, the security listener factories aren't added so the <a href="https://github.com/symfony/symfony/blob/2.7/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php#L295">MainConfiguration</a> cannot find their configuration.</p> <p dir="auto">I think the configuration dump should be consistent regardless if it was cached or not. Maybe there could be a way to add the securityListenerFactories at some other place so the configurations will always show up?</p>
1
<p dir="auto">Running from numpy source directory.<br> Traceback (most recent call last):<br> File "", line 1, in <br> ImportError: No module named Cython.Compiler.Main<br> Processing numpy/random/mtrand/mtrand.pyx<br> Traceback (most recent call last):<br> File "/var/tmp/lee218/spack-stage/spack-stage-KH2wWX/numpy-1.11.2/tools/cythonize.py", line 199, in <br> main()<br> File "/var/tmp/lee218/spack-stage/spack-stage-KH2wWX/numpy-1.11.2/tools/cythonize.py", line 195, in main<br> find_process_files(root_dir)<br> File "/var/tmp/lee218/spack-stage/spack-stage-KH2wWX/numpy-1.11.2/tools/cythonize.py", line 187, in find_process_files<br> process(cur_dir, fromfile, tofile, function, hash_db)<br> File "/var/tmp/lee218/spack-stage/spack-stage-KH2wWX/numpy-1.11.2/tools/cythonize.py", line 161, in process<br> processor_function(fromfile, tofile)<br> File "/var/tmp/lee218/spack-stage/spack-stage-KH2wWX/numpy-1.11.2/tools/cythonize.py", line 81, in process_pyx<br> raise Exception('Cython failed')<br> Exception: Cython failed</p> <p dir="auto">Note: if you need reliable uninstall behavior, then install<br> with pip instead of using <code class="notranslate">setup.py install</code>:</p> <ul dir="auto"> <li><code class="notranslate">pip install .</code> (from a git repo or downloaded source<br> release)</li> <li><code class="notranslate">pip install numpy</code> (last Numpy release on PyPi)</li> </ul> <p dir="auto">Cythonizing sources<br> Traceback (most recent call last):<br> File "setup.py", line 386, in <br> setup_package()<br> File "setup.py", line 369, in setup_package<br> generate_cython()<br> File "setup.py", line 207, in generate_cython<br> raise RuntimeError("Running cythonize failed!")<br> RuntimeError: Running cythonize failed!</p>
<p dir="auto">Couldn't find it anywhere mentioned in the docs, but it seems that Cython is a build requirement of the development version.</p>
1
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Rendering an InstancedBufferGeometry with no (used) attributes does not render.</p> <p dir="auto">This happens when a shader uses only (implicit) gl_InstanceID and/or gl_VertexID,<br> and user program establishes count with 'geom.maxInstancedCount = ...'<br> (It only applies to WebGL2 as earlier shaders do not support this.)</p> <p dir="auto">The internal value geometry._maxInstanceCount is never established, so<br> var instanceCount = Math.min( geometry.instanceCount, geometry._maxInstanceCount );<br> does not set a sensible value.</p> <p dir="auto">A workaround is to set geometry._maxInstanceCount in the user's program (eg to Infinity),<br> but this is obviously not the correct solution.</p> <h2 dir="auto"></h2> <p dir="auto">With earlier versions of three.js (eg 109) a program could provide a 'dummy' attribute not actually used in the shader to establish count; but 117 is clever enough to realize this dummy is not used, and therefore does not take account of it in the count calculation.</p> <h2 dir="auto"></h2> <p dir="auto">example to follow</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"> Rel</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r117</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<p dir="auto">The ColladaLoader fails to load this model.<br> <a href="https://raw.githubusercontent.com/0ad/0ad/master/binaries/data/mods/public/art/meshes/skeletal/elephant_african_bush.dae" rel="nofollow">https://raw.githubusercontent.com/0ad/0ad/master/binaries/data/mods/public/art/meshes/skeletal/elephant_african_bush.dae</a></p> <p dir="auto">Results in this error (in Firefox):<br> too much recursion ColladaLoader.js:3377:8</p> <p dir="auto">Here is the fiddle.<br> <a href="https://jsfiddle.net/L923p7ke/" rel="nofollow">https://jsfiddle.net/L923p7ke/</a></p> <p dir="auto">I can provide more Collada files that reproduce this issue if requested <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji></p>
0
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/11042/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/11042/</a></p> <p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Update Demo should do a rolling update of a replication controller [Conformance] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:233 Expected error: &lt;*errors.errorString | 0xc8207b8f70&gt;: { s: &quot;Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.212.33 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-elz7w -o template --template={{if (exists . \&quot;status\&quot; \&quot;containerStatuses\&quot;)}}{{range .status.containerStatuses}}{{if (and (eq .name \&quot;update-demo\&quot;) (exists . \&quot;state\&quot; \&quot;running\&quot;))}}true{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-qyfyf] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] &lt;nil&gt; 0xc8207577e0 exit status 1 &lt;nil&gt; true [0xc8200b8fd0 0xc8200b8ff0 0xc8200b9010] [0xc8200b8fd0 0xc8200b8ff0 0xc8200b9010] [0xc8200b8fe8 0xc8200b9008] [0xa970a0 0xa970a0] 0xc820b56a80}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n&quot;, } Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.212.33 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-elz7w -o template --template={{if (exists . &quot;status&quot; &quot;containerStatuses&quot;)}}{{range .status.containerStatuses}}{{if (and (eq .name &quot;update-demo&quot;) (exists . &quot;state&quot; &quot;running&quot;))}}true{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-qyfyf] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. [] &lt;nil&gt; 0xc8207577e0 exit status 1 &lt;nil&gt; true [0xc8200b8fd0 0xc8200b8ff0 0xc8200b9010] [0xc8200b8fd0 0xc8200b8ff0 0xc8200b9010] [0xc8200b8fe8 0xc8200b9008] [0xa970a0 0xa970a0] 0xc820b56a80}: Command stdout: stderr: failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. error: exit status 1 not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:233 Expected error: &lt;*errors.errorString | 0xc8207b8f70&gt;: { s: "Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.212.33 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-elz7w -o template --template={{if (exists . \"status\" \"containerStatuses\")}}{{range .status.containerStatuses}}{{if (and (eq .name \"update-demo\") (exists . \"state\" \"running\"))}}true{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-qyfyf] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] &lt;nil&gt; 0xc8207577e0 exit status 1 &lt;nil&gt; true [0xc8200b8fd0 0xc8200b8ff0 0xc8200b9010] [0xc8200b8fd0 0xc8200b8ff0 0xc8200b9010] [0xc8200b8fe8 0xc8200b9008] [0xa970a0 0xa970a0] 0xc820b56a80}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n", } Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.212.33 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-elz7w -o template --template={{if (exists . "status" "containerStatuses")}}{{range .status.containerStatuses}}{{if (and (eq .name "update-demo") (exists . "state" "running"))}}true{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-qyfyf] [] &lt;nil&gt; failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. [] &lt;nil&gt; 0xc8207577e0 exit status 1 &lt;nil&gt; true [0xc8200b8fd0 0xc8200b8ff0 0xc8200b9010] [0xc8200b8fd0 0xc8200b8ff0 0xc8200b9010] [0xc8200b8fe8 0xc8200b9008] [0xa970a0 0xa970a0] 0xc820b56a80}: Command stdout: stderr: failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. error: exit status 1 not to have occurred </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157221194" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26425" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26425/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26425">#26425</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158173781" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26715" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26715/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26715">#26715</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10735/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10735/</a></p> <p dir="auto">Multiple broken tests:</p> <p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Update Demo should do a rolling update of a replication controller [Conformance] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:233 Expected error: &lt;*errors.errorString | 0xc8207c7f70&gt;: { s: &quot;Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.209.82 --kubeconfig=/workspace/.kube/config rolling-update update-demo-nautilus --update-period=1s -f - --namespace=e2e-tests-kubectl-f1wr3] [] 0xc820ae8ae0 Created update-demo-kitten\n Error from server: the server does not allow access to the requested resource (put replicationControllers update-demo-nautilus)\n [] &lt;nil&gt; 0xc820ae9100 exit status 1 &lt;nil&gt; true [0xc8200ba088 0xc8200ba540 0xc8200ba7a8] [0xc8200ba088 0xc8200ba540 0xc8200ba7a8] [0xc8200ba0a8 0xc8200ba130 0xc8200ba548] [0xa9ec00 0xa9ed60 0xa9ed60] 0xc820d6a6c0}:\nCommand stdout:\nCreated update-demo-kitten\n\nstderr:\nError from server: the server does not allow access to the requested resource (put replicationControllers update-demo-nautilus)\n\nerror:\nexit status 1\n&quot;, } Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.209.82 --kubeconfig=/workspace/.kube/config rolling-update update-demo-nautilus --update-period=1s -f - --namespace=e2e-tests-kubectl-f1wr3] [] 0xc820ae8ae0 Created update-demo-kitten Error from server: the server does not allow access to the requested resource (put replicationControllers update-demo-nautilus) [] &lt;nil&gt; 0xc820ae9100 exit status 1 &lt;nil&gt; true [0xc8200ba088 0xc8200ba540 0xc8200ba7a8] [0xc8200ba088 0xc8200ba540 0xc8200ba7a8] [0xc8200ba0a8 0xc8200ba130 0xc8200ba548] [0xa9ec00 0xa9ed60 0xa9ed60] 0xc820d6a6c0}: Command stdout: Created update-demo-kitten stderr: Error from server: the server does not allow access to the requested resource (put replicationControllers update-demo-nautilus) error: exit status 1 not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:233 Expected error: &lt;*errors.errorString | 0xc8207c7f70&gt;: { s: "Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.209.82 --kubeconfig=/workspace/.kube/config rolling-update update-demo-nautilus --update-period=1s -f - --namespace=e2e-tests-kubectl-f1wr3] [] 0xc820ae8ae0 Created update-demo-kitten\n Error from server: the server does not allow access to the requested resource (put replicationControllers update-demo-nautilus)\n [] &lt;nil&gt; 0xc820ae9100 exit status 1 &lt;nil&gt; true [0xc8200ba088 0xc8200ba540 0xc8200ba7a8] [0xc8200ba088 0xc8200ba540 0xc8200ba7a8] [0xc8200ba0a8 0xc8200ba130 0xc8200ba548] [0xa9ec00 0xa9ed60 0xa9ed60] 0xc820d6a6c0}:\nCommand stdout:\nCreated update-demo-kitten\n\nstderr:\nError from server: the server does not allow access to the requested resource (put replicationControllers update-demo-nautilus)\n\nerror:\nexit status 1\n", } Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.209.82 --kubeconfig=/workspace/.kube/config rolling-update update-demo-nautilus --update-period=1s -f - --namespace=e2e-tests-kubectl-f1wr3] [] 0xc820ae8ae0 Created update-demo-kitten Error from server: the server does not allow access to the requested resource (put replicationControllers update-demo-nautilus) [] &lt;nil&gt; 0xc820ae9100 exit status 1 &lt;nil&gt; true [0xc8200ba088 0xc8200ba540 0xc8200ba7a8] [0xc8200ba088 0xc8200ba540 0xc8200ba7a8] [0xc8200ba0a8 0xc8200ba130 0xc8200ba548] [0xa9ec00 0xa9ed60 0xa9ed60] 0xc820d6a6c0}: Command stdout: Created update-demo-kitten stderr: Error from server: the server does not allow access to the requested resource (put replicationControllers update-demo-nautilus) error: exit status 1 not to have occurred </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157221194" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26425" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26425/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26425">#26425</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158173781" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26715" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26715/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26715">#26715</a></p> <p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Simple pod should support exec through an HTTP proxy {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:279 Expected error: &lt;*errors.errorString | 0xc8202aa550&gt;: { s: &quot;Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.209.82 --kubeconfig=/workspace/.kube/config get rc,svc -l name=nginx --no-headers --namespace=e2e-tests-kubectl-4q19c] [] &lt;nil&gt; the server does not allow access to the requested resource (get services)\n [] &lt;nil&gt; 0xc82072a7c0 exit status 1 &lt;nil&gt; true [0xc8201081b8 0xc8201081f0 0xc820108308] [0xc8201081b8 0xc8201081f0 0xc820108308] [0xc8201081d0 0xc820108300] [0xa9ed60 0xa9ed60] 0xc820d062a0}:\nCommand stdout:\n\nstderr:\nthe server does not allow access to the requested resource (get services)\n\nerror:\nexit status 1\n&quot;, } Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.209.82 --kubeconfig=/workspace/.kube/config get rc,svc -l name=nginx --no-headers --namespace=e2e-tests-kubectl-4q19c] [] &lt;nil&gt; the server does not allow access to the requested resource (get services) [] &lt;nil&gt; 0xc82072a7c0 exit status 1 &lt;nil&gt; true [0xc8201081b8 0xc8201081f0 0xc820108308] [0xc8201081b8 0xc8201081f0 0xc820108308] [0xc8201081d0 0xc820108300] [0xa9ed60 0xa9ed60] 0xc820d062a0}: Command stdout: stderr: the server does not allow access to the requested resource (get services) error: exit status 1 not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:279 Expected error: &lt;*errors.errorString | 0xc8202aa550&gt;: { s: "Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.209.82 --kubeconfig=/workspace/.kube/config get rc,svc -l name=nginx --no-headers --namespace=e2e-tests-kubectl-4q19c] [] &lt;nil&gt; the server does not allow access to the requested resource (get services)\n [] &lt;nil&gt; 0xc82072a7c0 exit status 1 &lt;nil&gt; true [0xc8201081b8 0xc8201081f0 0xc820108308] [0xc8201081b8 0xc8201081f0 0xc820108308] [0xc8201081d0 0xc820108300] [0xa9ed60 0xa9ed60] 0xc820d062a0}:\nCommand stdout:\n\nstderr:\nthe server does not allow access to the requested resource (get services)\n\nerror:\nexit status 1\n", } Error running &amp;{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.209.82 --kubeconfig=/workspace/.kube/config get rc,svc -l name=nginx --no-headers --namespace=e2e-tests-kubectl-4q19c] [] &lt;nil&gt; the server does not allow access to the requested resource (get services) [] &lt;nil&gt; 0xc82072a7c0 exit status 1 &lt;nil&gt; true [0xc8201081b8 0xc8201081f0 0xc820108308] [0xc8201081b8 0xc8201081f0 0xc820108308] [0xc8201081d0 0xc820108300] [0xa9ed60 0xa9ed60] 0xc820d062a0}: Command stdout: stderr: the server does not allow access to the requested resource (get services) error: exit status 1 not to have occurred </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159529335" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27156" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27156/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27156">#27156</a></p> <p dir="auto">Failed: [k8s.io] Services should serve a basic endpoint from pods [Conformance] {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:133 Jul 7 17:24:27.653: Couldn't delete ns &quot;e2e-tests-services-w86n1&quot;: the server does not allow access to the requested resource (delete namespaces e2e-tests-services-w86n1)"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:133 Jul 7 17:24:27.653: Couldn't delete ns "e2e-tests-services-w86n1": the server does not allow access to the requested resource (delete namespaces e2e-tests-services-w86n1) </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158046707" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26678" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26678/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26678">#26678</a></p> <p dir="auto">Failed: [k8s.io] ResourceQuota should verify ResourceQuota with best effort scope. {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/resource_quota.go:481 Expected error: &lt;*errors.StatusError | 0xc820d64100&gt;: { ErrStatus: { TypeMeta: {Kind: &quot;&quot;, APIVersion: &quot;&quot;}, ListMeta: {SelfLink: &quot;&quot;, ResourceVersion: &quot;&quot;}, Status: &quot;Failure&quot;, Message: &quot;the server does not allow access to the requested resource (get resourceQuotas quota-not-besteffort)&quot;, Reason: &quot;Forbidden&quot;, Details: { Name: &quot;quota-not-besteffort&quot;, Group: &quot;&quot;, Kind: &quot;resourceQuotas&quot;, Causes: [ { Type: &quot;UnexpectedServerResponse&quot;, Message: &quot;Forbidden: \&quot;/api/v1/namespaces/e2e-tests-resourcequota-pjhoj/resourcequotas/quota-not-besteffort\&quot;&quot;, Field: &quot;&quot;, }, ], RetryAfterSeconds: 0, }, Code: 403, }, } the server does not allow access to the requested resource (get resourceQuotas quota-not-besteffort) not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/resource_quota.go:481 Expected error: &lt;*errors.StatusError | 0xc820d64100&gt;: { ErrStatus: { TypeMeta: {Kind: "", APIVersion: ""}, ListMeta: {SelfLink: "", ResourceVersion: ""}, Status: "Failure", Message: "the server does not allow access to the requested resource (get resourceQuotas quota-not-besteffort)", Reason: "Forbidden", Details: { Name: "quota-not-besteffort", Group: "", Kind: "resourceQuotas", Causes: [ { Type: "UnexpectedServerResponse", Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-resourcequota-pjhoj/resourcequotas/quota-not-besteffort\"", Field: "", }, ], RetryAfterSeconds: 0, }, Code: 403, }, } the server does not allow access to the requested resource (get resourceQuotas quota-not-besteffort) not to have occurred </code></pre></div> <p dir="auto">Failed: [k8s.io] Pods should not start app containers and fail the pod if init containers fail on a RestartNever pod {Kubernetes e2e suite}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pods.go:988 Jul 7 17:24:23.180: Error watching a pod: the server does not allow access to the requested resource (get pods)"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pods.go:988 Jul 7 17:24:23.180: Error watching a pod: the server does not allow access to the requested resource (get pods) </code></pre></div> <p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="160509622" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27465" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27465/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27465">#27465</a></p> <p dir="auto">Previous issues for this suite: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158247453" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26742" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26742/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26742">#26742</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161598746" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27839" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27839/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27839">#27839</a></p>
1
<p dir="auto">If you look at the <code class="notranslate">iter</code> branch in the <code class="notranslate">nikomatsakis/rust</code> repo, you will find that it fails in stage0. I debugged this a bit by building a vanilla compiler in another repoistory and managed to trace it as far as a failure in <code class="notranslate">make_mono_id()</code> because the call to <code class="notranslate">map2()</code> that is processing bounds and substs receives a bounds vec of length 1 and a substs vec of length 2. This seems to occur with the call to <code class="notranslate">vec::flatmap()</code> that occurs in librustsyntax processing the attributes. I tried to narrow down the test to a smaller test file but was unable to find anything that reproduced the error other than the full rustc.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/marijnh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/marijnh">@marijnh</a> if you wouldn't mind taking a look and let me know if something jumps out at you, I would appreciate it.</p>
<p dir="auto">Compiling following source, rustc dumps core with error messages.</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import iter::*; fn main() { let range = bind uint::range(0u, 1000u, _); let filt = bind iter::filter(range, {|&amp;&amp;n: uint| n % 3u != 0u &amp;&amp; n % 5u != 0u }, _); let sum = iter::foldl(filt, 0u) {|accum, &amp;&amp;n: uint| accum + n }; io::println(#fmt(&quot;%u&quot;, sum)); }"><pre class="notranslate">import iter<span class="pl-kos">::</span><span class="pl-c1">*</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> range = bind uint<span class="pl-kos">::</span><span class="pl-en">range</span><span class="pl-kos">(</span><span class="pl-c1">0</span>u<span class="pl-kos">,</span> <span class="pl-c1">1000</span>u<span class="pl-kos">,</span> _<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> filt = bind iter<span class="pl-kos">::</span><span class="pl-en">filter</span><span class="pl-kos">(</span>range<span class="pl-kos">,</span> <span class="pl-kos">{</span>|<span class="pl-c1">&amp;</span><span class="pl-c1">&amp;</span>n<span class="pl-kos">:</span> <span class="pl-smi">uint</span>| n % <span class="pl-c1">3</span>u != <span class="pl-c1">0</span>u &amp;&amp; n % <span class="pl-c1">5</span>u != <span class="pl-c1">0</span>u <span class="pl-kos">}</span><span class="pl-kos">,</span> _<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> sum = iter<span class="pl-kos">::</span><span class="pl-en">foldl</span><span class="pl-kos">(</span>filt<span class="pl-kos">,</span> <span class="pl-c1">0</span>u<span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-kos">{</span>|accum<span class="pl-kos">,</span> <span class="pl-c1">&amp;</span><span class="pl-c1">&amp;</span>n<span class="pl-kos">:</span> <span class="pl-smi">uint</span>| accum + n <span class="pl-kos">}</span><span class="pl-kos">;</span> io<span class="pl-kos">::</span><span class="pl-en">println</span><span class="pl-kos">(</span>#<span class="pl-en">fmt</span><span class="pl-kos">(</span><span class="pl-s">"%u"</span><span class="pl-kos">,</span> sum<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc foo.rs error: internal compiler error unexpected failure note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues leaked memory in rust main loop (1 objects) Assertion failed: (false), function ~memory_region, file ../src/rt/memory_region.cpp, line 172. zsh: abort (core dumped) rustc foo.rs"><pre class="notranslate"><code class="notranslate">$ rustc foo.rs error: internal compiler error unexpected failure note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues leaked memory in rust main loop (1 objects) Assertion failed: (false), function ~memory_region, file ../src/rt/memory_region.cpp, line 172. zsh: abort (core dumped) rustc foo.rs </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_LOG=rustc=0,::rt::backtrace rustc foo.rs rust: upcall fail 'explicit failure', ../src/rustc/rustc.rc:1 0x802197914 &lt;_ZN9rust_task15call_on_c_stackEPvS0_+148&gt; at /usr/local/bin/../lib/librustrt.so @&amp;N0x8021986ed &lt;upcall_fail+141&gt; at /usr/local/bin/../lib/librustrt.so �\0x8018dc7de &lt;_ZN6middle2ty16lookup_item_type17_f614ca4c755aeba7202E+846&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018dbde1 &lt;_ZN6middle5trans4base12make_mono_id17_f2ebd2e452b417a6202E+257&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018c7568 &lt;_ZN6middle5trans4base14monomorphic_fn17_77d7254b93f76bc2202E+472&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018ee718 &lt;_ZN6middle5trans4base20lval_static_fn_inner17_f1ee6671c5727412202E+488&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so ��0x80193daf7 &lt;_ZN6middle5trans4impl26trans_monomorphized_callee17_397545b5c646b954202E+999&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018d0f06 &lt;_ZN6middle5trans4impl19trans_method_callee17_6b1587f014518324202E+470&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so @@�0x8018f61c4 &lt;_ZN6middle5trans4base12trans_callee17_ed5afa7c661e67af202E+484&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801901487 &lt;_ZN6middle5trans4base10with_scope17_13d2b9fa8bfa3e3f202E+583&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x801b7e11c &lt;_ZN3lib4llvm16section_iter_res4dtor17_3815581a5148d851202E+396&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80190141c &lt;_ZN6middle5trans4base10with_scope17_13d2b9fa8bfa3e3f202E+476&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018d0c96 &lt;_ZN6middle5trans4base16trans_call_inner17_e4ab2a25f8e56a47202E+390&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so @�0x8018fdf12 &lt;_ZN6middle5trans4base10trans_call17_f759ff632d924a7a202E+258&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018d1c83 &lt;_ZN6middle5trans4base10trans_expr17_2f49fb6e59efc0cc202E+3187&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80190a00f &lt;_ZN6middle5trans4base10trans_stmt17_dda29e9b5a06725d202E+1103&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018d9fbf &lt;_ZN6middle5trans4base11trans_block17_5d538f556387313f202E+303&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80190d9ed &lt;_ZN6middle5trans4base13trans_closure17_f68d7bace7a25795202E+1197&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018e636d &lt;_ZN6middle5trans4base8trans_fn17_30737349273ebd1b202E+461&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018c8122 &lt;_ZN6middle5trans4base14monomorphic_fn17_77d7254b93f76bc2202E+3474&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so @�0x8018ee718 &lt;_ZN6middle5trans4base20lval_static_fn_inner17_f1ee6671c5727412202E+488&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so ��0x8018ee272 &lt;_ZN6middle5trans4base14lval_static_fn17_97c1e6b66444e182202E+418&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018f472d &lt;_ZN6middle5trans4base9trans_var17_7c5ea379277185b4202E+205&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018f4556 &lt;_ZN6middle5trans4base10trans_path17_c674ef35f426c629202E+198&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018f608b &lt;_ZN6middle5trans4base12trans_callee17_ed5afa7c661e67af202E+171&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801901487 &lt;_ZN6middle5trans4base10with_scope17_13d2b9fa8bfa3e3f202E+583&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8019012e7 &lt;_ZN6middle5trans4base10with_scope17_13d2b9fa8bfa3e3f202E+167&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018d0c96 &lt;_ZN6middle5trans4base16trans_call_inner17_e4ab2a25f8e56a47202E+390&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so @��0x8018fdf12 &lt;_ZN6middle5trans4base10trans_call17_f759ff632d924a7a202E+258&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018d1c83 &lt;_ZN6middle5trans4base10trans_expr17_2f49fb6e59efc0cc202E+3187&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801b7e11c &lt;_ZN3lib4llvm16section_iter_res4dtor17_3815581a5148d851202E+396&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018d103c &lt;_ZN6middle5trans4base10trans_expr17_2f49fb6e59efc0cc202E+44&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8019083ad &lt;_ZN6middle5trans4base10init_local17_17d57dd23a569e54202E+333&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x80190a1b5 &lt;_ZN6middle5trans4base10trans_stmt17_dda29e9b5a06725d202E+1525&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80190a0ab &lt;_ZN6middle5trans4base10trans_stmt17_dda29e9b5a06725d202E+1259&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018d9fbf &lt;_ZN6middle5trans4base11trans_block17_5d538f556387313f202E+303&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80190d9ed &lt;_ZN6middle5trans4base13trans_closure17_f68d7bace7a25795202E+1197&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018e636d &lt;_ZN6middle5trans4base8trans_fn17_30737349273ebd1b202E+461&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018ec8bb &lt;_ZN6middle5trans4base10trans_item17_28e452dae21c3667202E+1883&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801911e94 &lt;_ZN6middle5trans4base9trans_mod17_384418731efae2e8202E+260&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80191dc28 &lt;_ZN6middle5trans4base11trans_crate17_6616cfe44b3b9bb3202E+4600&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801b7e11c &lt;_ZN3lib4llvm16section_iter_res4dtor17_3815581a5148d851202E+396&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80191ca5c &lt;_ZN6middle5trans4base11trans_crate17_6616cfe44b3b9bb3202E+44&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x801b7e11c &lt;_ZN3lib4llvm16section_iter_res4dtor17_3815581a5148d851202E+396&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801b6182c &lt;_ZN6driver6driver12compile_upto17_40784acf6e567faf202E+44&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x403f6a &lt;_init+8218&gt; at /usr/local/bin/rustc @0�0x407818 &lt;_rust_main+1464&gt; at /usr/local/bin/rustc �0x402f1c &lt;_init+4044&gt; at /usr/local/bin/rustc @��0x406878 &lt;_init+18728&gt; at /usr/local/bin/rustc @�0x80089e675 &lt;_ZN4task11get_task_id17_42c92e624d84fbbc202E+149&gt; at /usr/local/bin/../lib/libcore-d27e4777a53c3e50-0.2.so �0x802196735 &lt;_Z18task_start_wrapperP10spawn_args+37&gt; at /usr/local/bin/../lib/librustrt.so @`�error: internal compiler error unexpected failure note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues rust: upcall fail 'explicit failure', ../src/rustc/driver/rustc.rs:187 0x802197914 &lt;_ZN9rust_task15call_on_c_stackEPvS0_+148&gt; at /usr/local/bin/../lib/librustrt.so @cM0x8021986ed &lt;upcall_fail+141&gt; at /usr/local/bin/../lib/librustrt.so �\0x406388 &lt;_init+17464&gt; at /usr/local/bin/rustc �F0x407818 &lt;_rust_main+1464&gt; at /usr/local/bin/rustc �0x405cdc &lt;_init+15756&gt; at /usr/local/bin/rustc �E0x802196735 &lt;_Z18task_start_wrapperP10spawn_args+37&gt; at /usr/local/bin/../lib/librustrt.so @�Erust: domain main @0x80443a810 root task failed leaked memory in rust main loop (1 objects) Assertion failed: (false), function ~memory_region, file ../src/rt/memory_region.cpp, line 172. zsh: abort (core dumped) RUST_LOG=rustc=0,::rt::backtrace rustc foo.rs"><pre class="notranslate"><code class="notranslate">$ RUST_LOG=rustc=0,::rt::backtrace rustc foo.rs rust: upcall fail 'explicit failure', ../src/rustc/rustc.rc:1 0x802197914 &lt;_ZN9rust_task15call_on_c_stackEPvS0_+148&gt; at /usr/local/bin/../lib/librustrt.so @&amp;N0x8021986ed &lt;upcall_fail+141&gt; at /usr/local/bin/../lib/librustrt.so �\0x8018dc7de &lt;_ZN6middle2ty16lookup_item_type17_f614ca4c755aeba7202E+846&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018dbde1 &lt;_ZN6middle5trans4base12make_mono_id17_f2ebd2e452b417a6202E+257&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018c7568 &lt;_ZN6middle5trans4base14monomorphic_fn17_77d7254b93f76bc2202E+472&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018ee718 &lt;_ZN6middle5trans4base20lval_static_fn_inner17_f1ee6671c5727412202E+488&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so ��0x80193daf7 &lt;_ZN6middle5trans4impl26trans_monomorphized_callee17_397545b5c646b954202E+999&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018d0f06 &lt;_ZN6middle5trans4impl19trans_method_callee17_6b1587f014518324202E+470&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so @@�0x8018f61c4 &lt;_ZN6middle5trans4base12trans_callee17_ed5afa7c661e67af202E+484&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801901487 &lt;_ZN6middle5trans4base10with_scope17_13d2b9fa8bfa3e3f202E+583&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x801b7e11c &lt;_ZN3lib4llvm16section_iter_res4dtor17_3815581a5148d851202E+396&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80190141c &lt;_ZN6middle5trans4base10with_scope17_13d2b9fa8bfa3e3f202E+476&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018d0c96 &lt;_ZN6middle5trans4base16trans_call_inner17_e4ab2a25f8e56a47202E+390&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so @�0x8018fdf12 &lt;_ZN6middle5trans4base10trans_call17_f759ff632d924a7a202E+258&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018d1c83 &lt;_ZN6middle5trans4base10trans_expr17_2f49fb6e59efc0cc202E+3187&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80190a00f &lt;_ZN6middle5trans4base10trans_stmt17_dda29e9b5a06725d202E+1103&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018d9fbf &lt;_ZN6middle5trans4base11trans_block17_5d538f556387313f202E+303&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80190d9ed &lt;_ZN6middle5trans4base13trans_closure17_f68d7bace7a25795202E+1197&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018e636d &lt;_ZN6middle5trans4base8trans_fn17_30737349273ebd1b202E+461&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018c8122 &lt;_ZN6middle5trans4base14monomorphic_fn17_77d7254b93f76bc2202E+3474&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so @�0x8018ee718 &lt;_ZN6middle5trans4base20lval_static_fn_inner17_f1ee6671c5727412202E+488&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so ��0x8018ee272 &lt;_ZN6middle5trans4base14lval_static_fn17_97c1e6b66444e182202E+418&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018f472d &lt;_ZN6middle5trans4base9trans_var17_7c5ea379277185b4202E+205&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018f4556 &lt;_ZN6middle5trans4base10trans_path17_c674ef35f426c629202E+198&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018f608b &lt;_ZN6middle5trans4base12trans_callee17_ed5afa7c661e67af202E+171&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801901487 &lt;_ZN6middle5trans4base10with_scope17_13d2b9fa8bfa3e3f202E+583&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8019012e7 &lt;_ZN6middle5trans4base10with_scope17_13d2b9fa8bfa3e3f202E+167&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018d0c96 &lt;_ZN6middle5trans4base16trans_call_inner17_e4ab2a25f8e56a47202E+390&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so @��0x8018fdf12 &lt;_ZN6middle5trans4base10trans_call17_f759ff632d924a7a202E+258&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8018d1c83 &lt;_ZN6middle5trans4base10trans_expr17_2f49fb6e59efc0cc202E+3187&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801b7e11c &lt;_ZN3lib4llvm16section_iter_res4dtor17_3815581a5148d851202E+396&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018d103c &lt;_ZN6middle5trans4base10trans_expr17_2f49fb6e59efc0cc202E+44&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x8019083ad &lt;_ZN6middle5trans4base10init_local17_17d57dd23a569e54202E+333&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x80190a1b5 &lt;_ZN6middle5trans4base10trans_stmt17_dda29e9b5a06725d202E+1525&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80190a0ab &lt;_ZN6middle5trans4base10trans_stmt17_dda29e9b5a06725d202E+1259&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x8018d9fbf &lt;_ZN6middle5trans4base11trans_block17_5d538f556387313f202E+303&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80190d9ed &lt;_ZN6middle5trans4base13trans_closure17_f68d7bace7a25795202E+1197&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018e636d &lt;_ZN6middle5trans4base8trans_fn17_30737349273ebd1b202E+461&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x8018ec8bb &lt;_ZN6middle5trans4base10trans_item17_28e452dae21c3667202E+1883&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801911e94 &lt;_ZN6middle5trans4base9trans_mod17_384418731efae2e8202E+260&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80191dc28 &lt;_ZN6middle5trans4base11trans_crate17_6616cfe44b3b9bb3202E+4600&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801b7e11c &lt;_ZN3lib4llvm16section_iter_res4dtor17_3815581a5148d851202E+396&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x80191ca5c &lt;_ZN6middle5trans4base11trans_crate17_6616cfe44b3b9bb3202E+44&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �\0x801b7e11c &lt;_ZN3lib4llvm16section_iter_res4dtor17_3815581a5148d851202E+396&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so �0x801b6182c &lt;_ZN6driver6driver12compile_upto17_40784acf6e567faf202E+44&gt; at /usr/local/bin/../lib/librustc-688fa7810161fd45-0.2.so 0x403f6a &lt;_init+8218&gt; at /usr/local/bin/rustc @0�0x407818 &lt;_rust_main+1464&gt; at /usr/local/bin/rustc �0x402f1c &lt;_init+4044&gt; at /usr/local/bin/rustc @��0x406878 &lt;_init+18728&gt; at /usr/local/bin/rustc @�0x80089e675 &lt;_ZN4task11get_task_id17_42c92e624d84fbbc202E+149&gt; at /usr/local/bin/../lib/libcore-d27e4777a53c3e50-0.2.so �0x802196735 &lt;_Z18task_start_wrapperP10spawn_args+37&gt; at /usr/local/bin/../lib/librustrt.so @`�error: internal compiler error unexpected failure note: The compiler hit an unexpected failure path. This is a bug. Try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues rust: upcall fail 'explicit failure', ../src/rustc/driver/rustc.rs:187 0x802197914 &lt;_ZN9rust_task15call_on_c_stackEPvS0_+148&gt; at /usr/local/bin/../lib/librustrt.so @cM0x8021986ed &lt;upcall_fail+141&gt; at /usr/local/bin/../lib/librustrt.so �\0x406388 &lt;_init+17464&gt; at /usr/local/bin/rustc �F0x407818 &lt;_rust_main+1464&gt; at /usr/local/bin/rustc �0x405cdc &lt;_init+15756&gt; at /usr/local/bin/rustc �E0x802196735 &lt;_Z18task_start_wrapperP10spawn_args+37&gt; at /usr/local/bin/../lib/librustrt.so @�Erust: domain main @0x80443a810 root task failed leaked memory in rust main loop (1 objects) Assertion failed: (false), function ~memory_region, file ../src/rt/memory_region.cpp, line 172. zsh: abort (core dumped) RUST_LOG=rustc=0,::rt::backtrace rustc foo.rs </code></pre></div>
1
<p dir="auto">Can playwright test generator be configured to look for specific HTML attribute as precedence and record it?</p> <p dir="auto">Example : If my web page has an input field with attribute myId like: </p> <p dir="auto">Can I configure test generator to look for myId attribute and generate a step as:<br> await page.FillAsync("//*[<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/myid/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/myid">@myid</a>='MyProject.Data.Username']", "My Text");</p>
<p dir="auto">Please make the list of <code class="notranslate">["data-test-id", "data-testid", ...]</code> selector building attributes configurable. Or even please add an configuration option to add custom JS/TS method that prepends your selector building code.</p> <h3 dir="auto">Reasons:</h3> <ul dir="auto"> <li>Some projects use different names like e2e-target, data-cy, data-e2e, data-qa, data-test, data-testid</li> <li>There are also companies that use extended data-test-id strategy where you have 2 tags. "data-test-id" (for example: "signup") and "data-test-id-type" (for example: "modal"). In order to fully use e2e recording using your cli it would be best to prepend your selector builder strategy with custom method that uses "data-test-id-type" too.</li> </ul>
1
<p dir="auto">UPDATE: I've solved the problem but I am now filing a bug report instead of a request for help. See below.</p> <p dir="auto"><strong>Original request for help:</strong></p> <ul dir="auto"> <li>Electron version: v0.37.5</li> <li>Operating system: Mac OS X 10.11.4</li> </ul> <p dir="auto">I'm building my first Electron app.</p> <p dir="auto">My WebView, which was working just fine, has suddenly stopped loading URLs and/or data URLs.</p> <p dir="auto">I was distracted and didn't notice what change if any I made at the time the WebView stopped working.</p> <p dir="auto">In my <code class="notranslate">index.html</code>, I'm trying each of the following, one at a time:<br> <code class="notranslate">&lt;webview src="data:text/plain,Hello, world!"&gt;&lt;/webview&gt;</code><br> <code class="notranslate">&lt;webview src="https://www.example.com/"&gt;&lt;/webview&gt;</code></p> <p dir="auto">The overall structure of my <code class="notranslate">index.html</code> is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="div display:table div display:table-row div display:table-cell sidebar content div display:table-cell div wrapper (height &amp; width set to 100%) webview"><pre class="notranslate"><code class="notranslate">div display:table div display:table-row div display:table-cell sidebar content div display:table-cell div wrapper (height &amp; width set to 100%) webview </code></pre></div> <p dir="auto">In my <code class="notranslate">index.css</code> I have:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="webview { autosize: on; min-width: 800px; // the width of the enclosing div's parent min-height: 600px; // the ehight of the enclosing div's parent background-color: blue; // just so I can visually check the webview's dimensions display: inline-block; }"><pre class="notranslate"><code class="notranslate">webview { autosize: on; min-width: 800px; // the width of the enclosing div's parent min-height: 600px; // the ehight of the enclosing div's parent background-color: blue; // just so I can visually check the webview's dimensions display: inline-block; } </code></pre></div> <p dir="auto">My <code class="notranslate">main.js</code> instantiates the browser window in the usual way:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" mainWindow = new BrowserWindow({ width: 1050, height: 622, resizable: false, }); "><pre class="notranslate"><code class="notranslate"> mainWindow = new BrowserWindow({ width: 1050, height: 622, resizable: false, }); </code></pre></div> <p dir="auto">The window and its sidebar content load and display correctly.</p> <p dir="auto">The webview displays with a blue background in the desired location and with the desired dimensions.</p> <p dir="auto">However, it contains no content -- neither the "Hello world" message nor the Example.com website.</p> <p dir="auto">When I change the webview to an iframe, the content does load and the iframe is in the correct location, though smaller than intended.</p> <p dir="auto">When I made a new copy of <code class="notranslate">electron-quick-start</code> and paste in just the webview code, it initially displays the "Hello world" message and/or the Example.com website, but when I paste in the entire HTML and CSS it stops working. And now it's stopped working full-stop.</p> <p dir="auto">I've linked to the code in full case it helps:</p> <ul dir="auto"> <li><a href="https://gist.github.com/snoblenet/23dd8aea10ee6a7e9d04685a7e22d9ae">app/html</a></li> <li><a href="https://gist.github.com/snoblenet/7c462c18d28367ca74f27667a8eed081">app/index.css</a></li> <li><a href="https://gist.github.com/snoblenet/a69e7ae17f0e8442009398987d89f93a">main.js</a></li> <li><a href="https://gist.github.com/snoblenet/9308701e22bc45bf3a669ffb2ead7c0a">package.json</a></li> </ul> <p dir="auto">What process would I follow to debug this?</p> <p dir="auto"><strong>UPDATE &amp; BUG REPORT</strong></p> <p dir="auto">I solved this by inserted random non-empty script into the of the HTML (inspired by an earlier bug report about an earlier version of Electron that required a script in for to render correctly. This appears to to be a new bug.</p> <p dir="auto">Incidentally, I also had to comment out <code class="notranslate">display: inline-block;</code> in the stylesheet for the webview to be the right height and width once it started displaying again.</p>
<p dir="auto">I have a very little demo like this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Hello World!&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;webview src=&quot;https://www.google.com/&quot; autosize=&quot;on&quot; minwidth=&quot;576&quot; minheight=&quot;432&quot;&gt;&lt;/webview&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span>Hello World!<span class="pl-kos">&lt;/</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">webview</span> <span class="pl-c1">src</span>="<span class="pl-s">https://www.google.com/</span>" <span class="pl-c1">autosize</span>="<span class="pl-s">on</span>" <span class="pl-c1">minwidth</span>="<span class="pl-s">576</span>" <span class="pl-c1">minheight</span>="<span class="pl-s">432</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">webview</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">When I run the application, I get a blank page, nothing displayed. But if I add some script to the page, the webview will render. e.g.:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Hello World!&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;script&gt;console.log(&quot;Hello World&quot;);&lt;/script&gt; &lt;webview src=&quot;http://www.baidu.com/&quot; autosize=&quot;on&quot; minwidth=&quot;576&quot; minheight=&quot;432&quot;&gt;&lt;/webview&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span>Hello World!<span class="pl-kos">&lt;/</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Hello World"</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">webview</span> <span class="pl-c1">src</span>="<span class="pl-s">http://www.baidu.com/</span>" <span class="pl-c1">autosize</span>="<span class="pl-s">on</span>" <span class="pl-c1">minwidth</span>="<span class="pl-s">576</span>" <span class="pl-c1">minheight</span>="<span class="pl-s">432</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">webview</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div>
1
<p dir="auto">iOS builds require putting dart SDK on system path. If you don't you'll get a build error.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pub: command not found"><pre class="notranslate"><code class="notranslate">pub: command not found </code></pre></div> <p dir="auto">Putting the Dart SDK on the system path isn't something that we are telling developers to do, rather they're putting it in their .bash_profile. Perhaps we should give iOS developers a way to specify where their Dart SDK lives (maybe default to where it is normally in the engine repo?)</p>
<p dir="auto">I've just tried Flutter, but I noticed that the app on Android uses almost 14MB of user data.</p> <p dir="auto"><strong>How to reproduce</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter create demo1 cd demo1 flutter build apk --release"><pre class="notranslate"><code class="notranslate">flutter create demo1 cd demo1 flutter build apk --release </code></pre></div> <p dir="auto">And install the app-release apk.<br> When you will open the app, 14MB of User Data will be used.</p> <p dir="auto"><strong>Tested on</strong></p> <p dir="auto">Nexus 5X<br> Android 8.1.0<br> Latest Flutter version (installed yesterday)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/69b0b654bce009590eec5fe76824d26a80ac9651e6c1b973d6cb702130836b60/68747470733a2f2f692e696d6775722e636f6d2f637359536138772e706e67"><img src="https://camo.githubusercontent.com/69b0b654bce009590eec5fe76824d26a80ac9651e6c1b973d6cb702130836b60/68747470733a2f2f692e696d6775722e636f6d2f637359536138772e706e67" alt="" data-canonical-src="https://i.imgur.com/csYSa8w.png" style="max-width: 100%;"></a></p>
0
<h3 dir="auto">Description</h3> <p dir="auto">While working on implementing <a href="https://github.com/apache/airflow/pull/26457" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/26457/hovercard">custom task notes</a> I wanted to test my changes with <a href="https://airflow.apache.org/docs/apache-airflow/2.3.0/concepts/dynamic-task-mapping.html#simple-mapping" rel="nofollow">Dynamic Task mapping</a>, but we don't have any example DAGs for this.<br> We should add an example DAG containing this.</p> <h3 dir="auto">Use case/motivation</h3> <p dir="auto">For showing our users how this functionality can be used and also to improve testability for new features.</p> <h3 dir="auto">Related issues</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit a 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>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.3.0 (latest released)</p> <h3 dir="auto">What happened</h3> <p dir="auto">The automatic <code class="notranslate">cloud_sql_proxy</code> download via the <code class="notranslate">CloudSqlProxyRunner</code> is not working because the environment is using the <code class="notranslate">uname -a</code> info and it is pull <code class="notranslate">x86_64</code>. The url for the <code class="notranslate">cloud_sql_proxy</code> binaries are no longer using <code class="notranslate">x86_64</code>. Instead, the binaries are now using <code class="notranslate">amd64</code> indicator.</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">The hardcoded process should be opened up to include a user defined option via an extra parameter for the CloudSQLDatabaseHook and other hooks. This would hedge for future URL updates without the need for a full blown release.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">Run in an environment that has no local copy of the <code class="notranslate">cloud_sql_proxy</code> and the <code class="notranslate">uname -a</code> gives <code class="notranslate">x86_64</code>.</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Linux</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Deployment</h3> <p dir="auto">Composer</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto">This will happen every time the <code class="notranslate">_download_sql_proxy_if_needed</code> is ran in an <code class="notranslate">x86_64</code> environment.</p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
0
<p dir="auto">While TypeScript allows me to write</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="enum Foo { } module Foo { }"><pre class="notranslate"><code class="notranslate">enum Foo { } module Foo { } </code></pre></div> <p dir="auto">it does not allow the same for <em>const</em> enums</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const enum Foo { } module Foo { }"><pre class="notranslate"><code class="notranslate">const enum Foo { } module Foo { } </code></pre></div> <p dir="auto">It will report an error about a duplicated identifier. Unsure if this is by design/spec or a bug.</p>
<p dir="auto"><strong>Problem Statement:</strong> In TypeScript 1.1, there are two basic ways to initialize complex properties with strong typing via a parameterized class constructor. Both have disadvantages. I will illustrate this with a simple example that uses Knockout, but this issue applies to any other JavaScript library that implements complex objects via initializer functions.</p> <p dir="auto"><strong>"Method 1"</strong> is to instantiate the properties outside of the constructor using a throw-away value, and then to set the desired value inside the constructor (see <code class="notranslate">RightTriangle1</code> below). This method has the advantage of being rather simple to program/maintain because TypeScript automatically infers the property's type. However, this has the potential to cause ripple effects or performance issues at runtime because the code to instantiate each property is run at least twice.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class RightTriangle1 { public height = ko.observable(0); public width = ko.observable(0); public hypotenuse = ko.computed(() =&gt; { console.log(&quot;hypotenuse 1 calculated&quot;); return Math.sqrt(this.height() * this.height() + this.width() * this.width()); }); constructor(height: number, width: number) { this.height(height); this.width(width); } } var rt1 = new RightTriangle1(3, 4); console.log(&quot;hypotenuse 1: &quot; + rt1.hypotenuse()); // 5"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">RightTriangle1</span> <span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-c1">height</span> <span class="pl-c1">=</span> <span class="pl-s1">ko</span><span class="pl-kos">.</span><span class="pl-en">observable</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">public</span> <span class="pl-c1">width</span> <span class="pl-c1">=</span> <span class="pl-s1">ko</span><span class="pl-kos">.</span><span class="pl-en">observable</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">public</span> <span class="pl-c1">hypotenuse</span> <span class="pl-c1">=</span> <span class="pl-s1">ko</span><span class="pl-kos">.</span><span class="pl-en">computed</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"hypotenuse 1 calculated"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-smi">Math</span><span class="pl-kos">.</span><span class="pl-en">sqrt</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">height</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">*</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">height</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">width</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">*</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">width</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">constructor</span><span class="pl-kos">(</span><span class="pl-s1">height</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">width</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">height</span><span class="pl-kos">(</span><span class="pl-s1">height</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">width</span><span class="pl-kos">(</span><span class="pl-s1">width</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-s1">rt1</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">RightTriangle1</span><span class="pl-kos">(</span><span class="pl-c1">3</span><span class="pl-kos">,</span> <span class="pl-c1">4</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"hypotenuse 1: "</span> <span class="pl-c1">+</span> <span class="pl-s1">rt1</span><span class="pl-kos">.</span><span class="pl-en">hypotenuse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// 5</span></pre></div> <p dir="auto"><em>Knockout happens to have an advanced feature to defer execution of a computed, but that's beside the point. Other libraries may not support such a feature and it's just one more thing for the developer to keep track of.</em></p> <p dir="auto"><strong>"Method 2"</strong> is to <em>declare</em> the properties with an explicit type outside of the constructor, and then to <em>instantiate</em> them inside the constructor (see <code class="notranslate">RightTriangle2</code> below). This method has the advantage of eliminating the runtime double-instantiation issue, but it <em>also</em> eliminates the convenience of having TypeScript infer the types.</p> <p dir="auto">Method 2 has the drawback of extra work if a type is ever changed, but much worse than that, it places the burden on the developer to figure out <em>what the type of each member should be</em>. For trivial members (string, number, etc.) or libraries you've written yourself, this is merely busy-work, however for complex types used by a JavaScript library it is sometimes difficult to determine unless the developer is quite familiar with the library's definition. Lastly, this is just the sort of syntax that would make a JavaScript developer who was new to TypeScript think, <em>"This is exactly what I was afraid of! Look at all that extra code I'm forced to write that just gets thrown away in the end!"</em></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class RightTriangle2 { public height : KnockoutObservable&lt;number&gt;; public width: KnockoutObservable&lt;number&gt;; public hypotenuse: KnockoutComputed&lt;number&gt;; constructor(height: number, width: number) { this.height = ko.observable(height); this.width = ko.observable(width); this.hypotenuse = ko.computed(() =&gt; { console.log(&quot;hypotenuse 2 calculated&quot;); return Math.sqrt(this.height() * this.height() + this.width() * this.width()); }); } } var rt2 = new RightTriangle2(6, 8); console.log(&quot;hypotenuse 2: &quot; + rt2.hypotenuse()); // 10"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">RightTriangle2</span> <span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-c1">height</span> : <span class="pl-smi">KnockoutObservable</span><span class="pl-kos">&lt;</span><span class="pl-smi">number</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">public</span> <span class="pl-c1">width</span>: <span class="pl-smi">KnockoutObservable</span><span class="pl-kos">&lt;</span><span class="pl-smi">number</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">public</span> <span class="pl-c1">hypotenuse</span>: <span class="pl-smi">KnockoutComputed</span><span class="pl-kos">&lt;</span><span class="pl-smi">number</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">height</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">width</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">height</span> <span class="pl-c1">=</span> <span class="pl-s1">ko</span><span class="pl-kos">.</span><span class="pl-en">observable</span><span class="pl-kos">(</span><span class="pl-s1">height</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">width</span> <span class="pl-c1">=</span> <span class="pl-s1">ko</span><span class="pl-kos">.</span><span class="pl-en">observable</span><span class="pl-kos">(</span><span class="pl-s1">width</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">hypotenuse</span> <span class="pl-c1">=</span> <span class="pl-s1">ko</span><span class="pl-kos">.</span><span class="pl-en">computed</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"hypotenuse 2 calculated"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-smi">Math</span><span class="pl-kos">.</span><span class="pl-en">sqrt</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">height</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">*</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">height</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">width</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">*</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">width</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">rt2</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">RightTriangle2</span><span class="pl-kos">(</span><span class="pl-c1">6</span><span class="pl-kos">,</span> <span class="pl-c1">8</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"hypotenuse 2: "</span> <span class="pl-c1">+</span> <span class="pl-s1">rt2</span><span class="pl-kos">.</span><span class="pl-en">hypotenuse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// 10</span></pre></div> <p dir="auto">In summary of the problem, "Method 1" begs performance or logic problems, and "Method 2" is too wordy.</p> <p dir="auto"><strong>Proposal: "Method 3"</strong> Fairly early on in the public life of TypeScript, the team added the ability to indicate retained fields by placing visibility modifiers on constructor parameters. This feature is awesome, but it only helps with trivial properties. I would like to propose adding a new feature to TypeScript to allow this idiom within the <em>body</em> of a constructor as well. This would permit compiling the code in the <code class="notranslate">RightTriangle3</code> example below. <em>Note the public modifiers on height, width, and hypotenuse.</em></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class RightTriangle3 { constructor(height: number, width: number) { public this.height = ko.observable(height); public this.width = ko.observable(width); public this.hypotenuse = ko.computed(() =&gt; { console.log(&quot;hypotenuse 3 calculated&quot;); return Math.sqrt(this.height() * this.height() + this.width() * this.width()); }); } } var rt3 = new RightTriangle3(9, 12); console.log(&quot;hypotenuse 3: &quot; + rt3.hypotenuse()); // 15"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">RightTriangle3</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">height</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">width</span>: <span class="pl-smi">number</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">public</span> <span class="pl-s1">this</span><span class="pl-kos">.</span><span class="pl-c1">height</span> <span class="pl-c1">=</span> <span class="pl-s1">ko</span><span class="pl-kos">.</span><span class="pl-en">observable</span><span class="pl-kos">(</span><span class="pl-s1">height</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">public</span> <span class="pl-s1">this</span><span class="pl-kos">.</span><span class="pl-c1">width</span> <span class="pl-c1">=</span> <span class="pl-s1">ko</span><span class="pl-kos">.</span><span class="pl-en">observable</span><span class="pl-kos">(</span><span class="pl-s1">width</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">public</span> <span class="pl-s1">this</span><span class="pl-kos">.</span><span class="pl-c1">hypotenuse</span> <span class="pl-c1">=</span> <span class="pl-s1">ko</span><span class="pl-kos">.</span><span class="pl-en">computed</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"hypotenuse 3 calculated"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-smi">Math</span><span class="pl-kos">.</span><span class="pl-en">sqrt</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">height</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">*</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">height</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">width</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">*</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">width</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">rt3</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">RightTriangle3</span><span class="pl-kos">(</span><span class="pl-c1">9</span><span class="pl-kos">,</span> <span class="pl-c1">12</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"hypotenuse 3: "</span> <span class="pl-c1">+</span> <span class="pl-s1">rt3</span><span class="pl-kos">.</span><span class="pl-en">hypotenuse</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// 15</span></pre></div> <p dir="auto">With this proposal:</p> <ul dir="auto"> <li>There are no breaking changes; code that compiled in TypeScript 1.0 works without any modification in this proposed future version.</li> <li>The <code class="notranslate">RightTriangle3</code> class would have the <em>identical</em> JavaScript emit as <code class="notranslate">RightTriangle2</code>.</li> <li>The <code class="notranslate">RightTriangle3</code> TypeScript compile-time type interface would <em>also be identical</em> to <code class="notranslate">RightTriangle2</code>.</li> <li>The developer is not required to separate the declaration of the property from its instantiation just to get strong typing when using a parameterized constructor.</li> <li>The developer is not required to update the type of a property if the class interface ever changes - they can just update the initializer code.</li> <li>The TypeScript code in <code class="notranslate">RightTriangle3</code> is the most succinct of the three. <code class="notranslate">RightTriangle1</code> is 12 lines long (besides being "wrong"), <code class="notranslate">RightTriangle2</code> is 13, <code class="notranslate">RightTriangle3</code> is just 10. Additional observable or computed properties in <code class="notranslate">RightTriangle1</code> and <code class="notranslate">RightTriangle2</code> add two lines of code each; with <code class="notranslate">RightTriangle3</code> only one line of code is added each.</li> <li>The TypeScript code in <code class="notranslate">RightTriangle3</code> is still very close to the emitted JavaScript (and therefore unlikely to create future incompatibility issues).</li> <li>The new syntax is also very similar to the existing TypeScript parameter property declaration shorthand.</li> <li>The pattern demonstrated in <code class="notranslate">RightTriangle3</code> enables a simple cut+paste migration path to implement a constructor (the developer would just have to paste in "this." on each line). With TypeScript 1.0, implementing a constructor is a lot more work. For example if converting <code class="notranslate">RightTriangle1</code> to <code class="notranslate">RightTriangle2</code>, the developer must determine and explicitly type out each member declaration with its type before migrating the instantiation code.</li> </ul> <p dir="auto"><strong>Specifics:</strong><br> Inside a class constructor function only, a visibility modifier (<code class="notranslate">public</code>, <code class="notranslate">private</code>, or <code class="notranslate">protected</code>) may modify a property on the instance variable <code class="notranslate">this</code>. If so, the statement is considered a declaration of that property on the class and the type is inferred according to the normal TypeScript rules. The following example class <code class="notranslate">A</code> is legal under this proposal:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A { constructor(property3: boolean) { public this.property1; //any private this.property2 : string; //string protected this.property3 = property3; //boolean } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">property3</span>: <span class="pl-smi">boolean</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">public</span> <span class="pl-s1">this</span><span class="pl-kos">.</span><span class="pl-c1">property1</span><span class="pl-kos">;</span> <span class="pl-c">//any</span> <span class="pl-s1">private</span> <span class="pl-s1">this</span><span class="pl-kos">.</span><span class="pl-c1">property2</span> : string<span class="pl-kos">;</span> <span class="pl-c">//string</span> <span class="pl-s1">protected</span> <span class="pl-s1">this</span><span class="pl-kos">.</span><span class="pl-c1">property3</span> <span class="pl-c1">=</span> <span class="pl-s1">property3</span><span class="pl-kos">;</span> <span class="pl-c">//boolean</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The above code is identical to this TypeScript 1.1 code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A { public property1; private property2: string; constructor(protected property3: boolean) { } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-c1">property1</span><span class="pl-kos">;</span> <span class="pl-k">private</span> <span class="pl-c1">property2</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">protected</span> <span class="pl-s1">property3</span>: <span class="pl-smi">boolean</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Use of a visibility modifier is otherwise not permitted within the body of a constructor. For example, class <code class="notranslate">B</code> below would be a syntax error because <code class="notranslate">property1</code> is not qualified as a property of <code class="notranslate">this</code>. This condition should cause a new emit-preventing type error along the lines of <code class="notranslate">Visibility modifiers within a constructor may only modify properties of "this".</code></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class B { constructor(val: string) { public property1 = val; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">val</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-s1">property1</span> <span class="pl-c1">=</span> <span class="pl-s1">val</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Use of a visibility modifier is similarly not permitted within a normal function member. For example, class <code class="notranslate">C</code> below would be a syntax error, because in this proposal class properties can only be declared in this manner within the constructor. This condition should cause a new emit-preventing type error along the lines of <code class="notranslate">Visibility modifier declarations are only legal within the parameter list and body of a class constructor.</code></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class C { doSomething() { public this.property1: string = &quot;test&quot;; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span> <span class="pl-en">doSomething</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">public</span> <span class="pl-s1">this</span><span class="pl-kos">.</span><span class="pl-c1">property1</span>: string <span class="pl-c1">=</span> <span class="pl-s">"test"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Use of the <code class="notranslate">static</code> modifier is similarly not permitted within a normal function member or the constructor. For example, class <code class="notranslate">D</code> below would be a syntax error because under this proposal, <code class="notranslate">static</code> class properties can only be declared using the existing TypeScript 1.0 syntax (within the body of the class). This condition should cause a new emit-preventing type error along the lines of <code class="notranslate">Shorthand visibility declarations may not be used on static properties.</code></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class D { constructor(val: boolean) { public static property1: string = &quot;test&quot;; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">D</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">val</span>: <span class="pl-smi">boolean</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-s1">static</span> property1: <span class="pl-s1">string</span> <span class="pl-c1">=</span> <span class="pl-s">"test"</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>What happens if a declaration occurs inside of a branch?</strong><br> For the purpose of the TypeScript type system, any branching, looping, etc. inside the constructor should be ignored. Furthermore, the JavaScript should be emitted exactly as if the public, private, or protected modifier were not present. Under this proposal, TypeScript should consider class <code class="notranslate">E</code> below to be valid. At compile time, TypeScript will consider class <code class="notranslate">E</code> to have a property called <code class="notranslate">description</code> of type <code class="notranslate">string</code> (even though at runtime the initialization code would never execute).</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class E { constructor() { if (1 === 0) { public this.description = &quot;&quot;; } } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">E</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">1</span> <span class="pl-c1">===</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">public</span> <span class="pl-c1">this</span><span class="pl-kos">.</span><span class="pl-c1">description</span> <span class="pl-c1">=</span> <span class="pl-s">""</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>What happens if there is a duplicate declaration and the types match?</strong><br> This should not prevent the emit. The second and successive duplicates should raise <code class="notranslate">error TS2300: Duplicate identifier 'PROPERTY_NAME_HERE'.</code> just like how existing duplicate declarations work.</p> <p dir="auto"><strong>What happens if there is a duplicate, but one is a subtype of the other, or even if the types do not match?</strong><br> The same type resolution logic should be applied if the duplicates occurred as simple type declarations in the class body (outside the constructor). The second and successive duplicates should raise <code class="notranslate">error TS2300: Duplicate identifier 'PROPERTY_NAME_HERE'.</code>. This should not prevent the emit. This may incidentally result in downstream <code class="notranslate">error TS2339: Property 'PROPERTY_NAME_HERE' does not exist on type 'THE_PROPERTY_TYPE'.</code> wherever sub-properties of the property are used (just like in TypeScript 1.0).</p> <p dir="auto"><strong>In all other scenarios</strong> (such as with inheritance chains, subtypes, supertypes, assignability relationships, and generics), the same behavior as a class written like <code class="notranslate">RightTriangle2</code> in TypeScript 1.0 should be used when evaluating what should happen with a class written like <code class="notranslate">RightTriangle3</code> using the new shorthand syntax.</p> <p dir="auto">I believe that this syntax fits in nicely with both the goals and non-goals of TypeScript and I hope that you'll consider it or something similar. Thanks for reading this.</p>
0
<h3 dir="auto">Version</h3> <p dir="auto">2.5.17</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codesandbox.io/s/zzq75rm38x" rel="nofollow">https://codesandbox.io/s/zzq75rm38x</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Create a component, A, which makes use of <code class="notranslate">$listeners</code> in the template somehow.<br> Create a component, B, that includes component A, so that an instance of B is parent of an instance of A.<br> Attach an event listener to A in B.<br> Update state in component B somehow.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">Component B should update, and component A should be unaffected.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Component A is updated. It is rendered again, and the update lifecycle hooks are triggered.</p>
<p dir="auto">I'm new with Vuejs and probably my issue is a dummy one, but I've not still realized how to fix it.</p> <p dir="auto"><strong>Situation</strong>: I have a collection of objects which I've sorted with lodash:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ computed: { sortedAlerts: function() { return _.orderBy(this.filteredAlerts, 'createdAtUtc', 'desc'); } } }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">computed</span>: <span class="pl-kos">{</span> <span class="pl-en">sortedAlerts</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">_</span><span class="pl-kos">.</span><span class="pl-en">orderBy</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">filteredAlerts</span><span class="pl-kos">,</span> <span class="pl-s">'createdAtUtc'</span><span class="pl-kos">,</span> <span class="pl-s">'desc'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">And iterating with <code class="notranslate">v-for="alert in sortedAlerts"</code>.</p> <p dir="auto">I also display one of the object property with the usage of Vuejs component:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="components: { 'alert-title': { props: ['model'], computed: { indicatorTitle: function() { return this.alert.indicator.title.toLowerCase(); }, conditionTitle: function() { return this.alert.condition.title.toLowerCase(); } }, template:'&lt;span&gt;&lt;i&gt;{{indicatorTitle}}&lt;/i&gt; is {{conditionTitle}} {{alert.amount}}&lt;/span&gt;', data: function() { return { alert: this.model } } } }"><pre class="notranslate">components: <span class="pl-kos">{</span> <span class="pl-s">'alert-title'</span>: <span class="pl-kos">{</span> <span class="pl-c1">props</span>: <span class="pl-kos">[</span><span class="pl-s">'model'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">computed</span>: <span class="pl-kos">{</span> <span class="pl-en">indicatorTitle</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">alert</span><span class="pl-kos">.</span><span class="pl-c1">indicator</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">.</span><span class="pl-en">toLowerCase</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">conditionTitle</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">alert</span><span class="pl-kos">.</span><span class="pl-c1">condition</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">.</span><span class="pl-en">toLowerCase</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>:<span class="pl-s">'&lt;span&gt;&lt;i&gt;{{indicatorTitle}}&lt;/i&gt; is {{conditionTitle}} {{alert.amount}}&lt;/span&gt;'</span><span class="pl-kos">,</span> <span class="pl-en">data</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">alert</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">model</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">like this <code class="notranslate">&lt;span is="alert-title" v-bind:model="alert"&gt;&lt;/span&gt;</code>.</p> <p dir="auto">Finally, when I add new objects into this array (which going to be the first elements in ordered array), the <code class="notranslate">alert-title</code> component do not display newly added object in a proper way (but continue to display the <strong>previous one</strong>, which now is actualty the second and duplicate).</p> <p dir="auto">Page refresh is fixing this situation, but I'm pretty sure that the code have an issue.</p> <p dir="auto">I know it's not too clear but I hope someone could figure out what's wrong with it.</p> <p dir="auto">Let me know if an example should also be provided.</p> <p dir="auto">Thank you.</p>
0
<p dir="auto">In looking at the <a href="https://circleci.com/gh/numpy/numpy/5751?utm_campaign=vcs-integration-link&amp;utm_medium=referral&amp;utm_source=github-build-link" rel="nofollow">warnings while generating documentation</a>, there are dozens of "/home/circleci/repo/venv/lib/python3.6/site-packages/numpy/core/_internal.py:docstring of numpy.core._internal._ctypes.shape:1: <strong>WARNING: duplicate object description of</strong> numpy.core._internal._ctypes.shape, other instance in /home/circleci/repo/doc/source/reference/generated/numpy.core.defchararray.chararray.ctypes.rst, <strong>use :noindex: for one of them</strong></p> <p dir="auto">I think this is caused by <code class="notranslate">chararray</code> being a subclass of <code class="notranslate">ndarray</code>, as similar warnings are generated for <code class="notranslate">MaskedArray</code>. I tried:</p> <ul dir="auto"> <li>adding <code class="notranslate">autodoc_inherit_docstrings = False</code> to the <code class="notranslate">conf.py</code></li> <li>messing with the <code class="notranslate">autosummary</code> <a href="https://github.com/numpy/numpy/tree/v1.16.0/doc/source/_templates/autosummary">templates</a></li> </ul> <p dir="auto">Any ideas how to turn those warnings off?</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/235" rel="nofollow">http://projects.scipy.org/numpy/ticket/235</a> on 2006-08-07 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/baxissimo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/baxissimo">@baxissimo</a>, assigned to unknown.</em></p> <p dir="auto">Here's essentially what these different methods do:</p> <p dir="auto">vstack(tup):<br> concatenate( map(atleast_2d,tup), axis=0 )</p> <p dir="auto">hstack(tup):<br> concatenate( map(atleast_1d,tup),axis=1 )</p> <p dir="auto">column_stack(tup):<br> arrays = map( transpose,map(atleast_2d,tup) )<br> concatenate(arrays,1)</p> <p dir="auto">(note that column_stack transposes <em>everything</em> not just 1-d inputs,<br> so it doesn't do quite what I would expect, i.e. only transposing<br> 1-d inputs)</p> <p dir="auto">The above 3 are pretty much exactly the code used by numpy. That's<br> all there is to those 3 functions.<br> For r_ and c_ I'm summarizing, but effectively they do something like:</p> <p dir="auto">r_[args]:<br> concatenate( map(atleast_1d,args),axis=0 )</p> <p dir="auto">c_[args]:<br> concatenate( map(atleast_1d,args),axis=1 )</p> <p dir="auto">c_ behaves almost exactly like hstack -- with the addition of range<br> literals being allowed.</p> <p dir="auto">r_ is most like vstack, but a little different since it effectively<br> uses atleast_1d, instead of atleast_2d. So you have</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; numpy.vstack((1,2,3,4)) array([[1], [2], [3], [4]])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; numpy.vstack((1,2,3,4)) array([[1], [2], [3], [4]]) </code></pre></div> <p dir="auto">but</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; numpy.r_[1,2,3,4] array([1, 2, 3, 4])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; numpy.r_[1,2,3,4] array([1, 2, 3, 4]) </code></pre></div> <p dir="auto">However for cases like that with just 0-d or 1-d inputs, c_ behaves<br> identically to r_, so if you wanted to get a 1-d output you could have<br> just used c_.</p> <p dir="auto">I think the right thing to do would be to make r_ behave more like vstack. That would make things more consistent, and make for less for the user to remember.</p> <p dir="auto">After making that change, to make things even more consistent, it<br> might make sense to rename r_ and c_ to v_ and h_ instead. Then it's<br> easy to remember 'v_' is like 'vstack', 'h_' is like hstack.</p> <p dir="auto">Furthermore, I propose that column_stack should only transpose its 1d<br> inputs. "Stack colums" defnitely doesn't imply to me that something<br> that already has columns will be transposed. Currently it is<br> documented to only work on 1d inputs, so hopefully that's a change<br> that wouldn't affect too many people. The function in<br> numpy/lib/shape_base.py could be replaced with this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def column_stack(tup): def transpose_1d(array): if array.ndim&lt;2: return _nx.transpose(atleast_2d(array)) else: return array arrays = map(transpose_1d,map(atleast_1d,tup)) return _nx.concatenate(arrays,1)"><pre class="notranslate"><code class="notranslate">def column_stack(tup): def transpose_1d(array): if array.ndim&lt;2: return _nx.transpose(atleast_2d(array)) else: return array arrays = map(transpose_1d,map(atleast_1d,tup)) return _nx.concatenate(arrays,1) </code></pre></div> <p dir="auto">If r_, and c_ get renamed to v_, h_, then c_ could be re-introduced<br> with behavior similar to column_stack.</p> <p dir="auto">SUMMARY:</p> <ul dir="auto"> <li>make r_ behave like "vstack plus range literals"</li> <li>make column_stack only transpose its 1d inputs.</li> <li>rename r_,c_ to v_,h_ (or something else) to make their connection with vstack and hstack clearer. Maybe vs_ and hs_ would be better?</li> <li>make a new vertsion of 'c_' that acts like column_stack so that there's a nice parallel v_&lt;=&gt;vstack, h_&lt;=&gt;hstack, c_&lt;=&gt;column_stack</li> </ul>
0
<p dir="auto">When validation class is active (i.e. <code class="notranslate">has-error</code>), the form with <code class="notranslate">input-group-btn</code> looks like doesn´t render the red border correctly:</p> <p dir="auto"><a href="http://plnkr.co/edit/PbbJhCjNwG3w0gD8mv8s?p=preview" rel="nofollow">http://plnkr.co/edit/PbbJhCjNwG3w0gD8mv8s?p=preview</a></p>
<p dir="auto">Buttons in an input-group do not get their border colour changed when there is a parent element with has-error .</p> <p dir="auto">Example:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;has-error&quot; style=&quot;margin: 2em; width: 300px;&quot;&gt; &lt;div class=&quot;input-group&quot;&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; value=&quot;zzz&quot;&gt; &lt;span class=&quot;input-group-btn&quot;&gt; &lt;button type=&quot;button&quot; class=&quot;btn btn-default&quot;&gt;Search&lt;/button&gt; &lt;/span&gt; &lt;/div&gt; &lt;p class=&quot;help-block&quot;&gt;No results found for the provided criteria&lt;/p&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">has-error</span>" <span class="pl-c1">style</span>="<span class="pl-s">margin: 2em; width: 300px;</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">input-group</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">class</span>="<span class="pl-s">form-control</span>" <span class="pl-c1">value</span>="<span class="pl-s">zzz</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">input-group-btn</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">button</span>" <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default</span>"<span class="pl-kos">&gt;</span>Search<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span> <span class="pl-c1">class</span>="<span class="pl-s">help-block</span>"<span class="pl-kos">&gt;</span>No results found for the provided criteria<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">See the attached picture to see how it renders.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e86760a33b93ff9cbb8dc29e42bccd581dc0ea54531ef26fbe50cf60b1086fdc/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343135323634322f313634393037352f39326463316438382d353964652d313165332d383965372d6432643439643465326138632e706e67"><img src="https://camo.githubusercontent.com/e86760a33b93ff9cbb8dc29e42bccd581dc0ea54531ef26fbe50cf60b1086fdc/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343135323634322f313634393037352f39326463316438382d353964652d313165332d383965372d6432643439643465326138632e706e67" alt="screen shot 2013-11-30 at 16 40 26" data-canonical-src="https://f.cloud.github.com/assets/4152642/1649075/92dc1d88-59de-11e3-89e7-d2d49d4e2a8c.png" style="max-width: 100%;"></a></p> <p dir="auto">I would expect something more like the screen shot below.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e8d71de135a11f71771e00714b2db57af8fe84b0366da54b2e1dc23e7e5e5f6e/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343135323634322f313634393037372f62313431643538382d353964652d313165332d386531352d3336646663646362373235662e706e67"><img src="https://camo.githubusercontent.com/e8d71de135a11f71771e00714b2db57af8fe84b0366da54b2e1dc23e7e5e5f6e/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343135323634322f313634393037372f62313431643538382d353964652d313165332d386531352d3336646663646362373235662e706e67" alt="screen shot 2013-11-30 at 16 38 42" data-canonical-src="https://f.cloud.github.com/assets/4152642/1649077/b141d588-59de-11e3-8e15-36dfcdcb725f.png" style="max-width: 100%;"></a></p>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto">I'm trying to deploy a React SPA within a docker container, served through a python Flask app.</p> <p dir="auto">I'm starting here by asking people on Babel, because I think it might be something to do with the way I've set up babel, but I guess it could just as easily be an issue with Parcel or something else.</p> <p dir="auto"><strong>Current Behavior</strong><br> When using <code class="notranslate">parcel build</code> to bundle an app, I get the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="🚨 Cannot find module '@babel/highlight' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:609:15) at Function.Module._load (internal/modules/cjs/loader.js:535:25) at Module.require (internal/modules/cjs/loader.js:663:17) at require (/node_modules/v8-compile-cache/v8-compile-cache.js:159:20) at _highlight (/node_modules/@babel/code-frame/lib/index.js:10:40) at codeFrameColumns (/node_modules/@babel/code-frame/lib/index.js:98:21) at JSAsset.generateErrorMessage (/node_modules/parcel-bundler/src/assets/JSAsset.js:277:23) at Bundler.throwDepError (/node_modules/parcel-bundler/src/Bundler.js:521:19) error Command failed with exit code 1."><pre class="notranslate"><code class="notranslate">🚨 Cannot find module '@babel/highlight' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:609:15) at Function.Module._load (internal/modules/cjs/loader.js:535:25) at Module.require (internal/modules/cjs/loader.js:663:17) at require (/node_modules/v8-compile-cache/v8-compile-cache.js:159:20) at _highlight (/node_modules/@babel/code-frame/lib/index.js:10:40) at codeFrameColumns (/node_modules/@babel/code-frame/lib/index.js:98:21) at JSAsset.generateErrorMessage (/node_modules/parcel-bundler/src/assets/JSAsset.js:277:23) at Bundler.throwDepError (/node_modules/parcel-bundler/src/Bundler.js:521:19) error Command failed with exit code 1. </code></pre></div> <p dir="auto"><strong>Input Code</strong><br> The relevant parts of my dockerfile are as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM python:3.6.8 RUN apt-get update RUN apt-get install -y apt-transport-https apt-utils RUN alias node=nodejs \ &amp;&amp; curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ &amp;&amp; echo &quot;deb https://dl.yarnpkg.com/debian/ stable main&quot; | tee \ /etc/apt/sources.list.d/yarn.list \ &amp;&amp; curl -sL https://deb.nodesource.com/setup_11.x | bash - \ &amp;&amp; apt-get update \ &amp;&amp; apt-get install -y nodejs yarn RUN yarn global add parcel-bundler COPY requirements.txt / RUN pip install -r requirements.txt COPY .babelrc / COPY package.json / COPY yarn.lock / COPY test/ /test/ COPY app/ /app/ COPY client/ /client/ RUN yarn install &amp;&amp; yarn list | grep @babel &amp;&amp; yarn run parcel build client/*.html EXPOSE 5000:5000 CMD [&quot;python&quot;, &quot;-um&quot;, &quot;app.main&quot;]"><pre lang="docker" class="notranslate"><code class="notranslate">FROM python:3.6.8 RUN apt-get update RUN apt-get install -y apt-transport-https apt-utils RUN alias node=nodejs \ &amp;&amp; curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ &amp;&amp; echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee \ /etc/apt/sources.list.d/yarn.list \ &amp;&amp; curl -sL https://deb.nodesource.com/setup_11.x | bash - \ &amp;&amp; apt-get update \ &amp;&amp; apt-get install -y nodejs yarn RUN yarn global add parcel-bundler COPY requirements.txt / RUN pip install -r requirements.txt COPY .babelrc / COPY package.json / COPY yarn.lock / COPY test/ /test/ COPY app/ /app/ COPY client/ /client/ RUN yarn install &amp;&amp; yarn list | grep @babel &amp;&amp; yarn run parcel build client/*.html EXPOSE 5000:5000 CMD ["python", "-um", "app.main"] </code></pre></div> <p dir="auto"><strong>Expected behavior/code</strong><br> A clear and concise description of what you expected to happen (or code).</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;app&quot;, &quot;version&quot;: &quot;1.0.0&quot;, &quot;main&quot;: &quot;client/index.js&quot;, &quot;dependencies&quot;: { &quot;adal-angular&quot;: &quot;^1.0.17&quot;, &quot;axios&quot;: &quot;^0.18.0&quot;, &quot;azure-storage&quot;: &quot;^2.10.2&quot;, &quot;bloomer&quot;: &quot;^0.6.5&quot;, &quot;eslint-config-google&quot;: &quot;^0.11.0&quot;, &quot;global&quot;: &quot;^4.3.2&quot;, &quot;lodash&quot;: &quot;^4.17.11&quot;, &quot;node&quot;: &quot;^11.6.0&quot;, &quot;node-sass&quot;: &quot;^4.10.0&quot;, &quot;parcel-bundler&quot;: &quot;^1.10.3&quot;, &quot;prop-types&quot;: &quot;^15.6.2&quot;, &quot;react&quot;: &quot;^16.0.0&quot;, &quot;react-dom&quot;: &quot;^16.0.0&quot;, &quot;react-table&quot;: &quot;^6.8.6&quot;, &quot;reactjs-popup&quot;: &quot;^1.3.2&quot;, &quot;request&quot;: &quot;^2.34&quot;, &quot;request-promise-native&quot;: &quot;^1.0.5&quot;, &quot;uuid&quot;: &quot;^3.3.2&quot; }, &quot;devDependencies&quot;: { &quot;@babel/highlight&quot;: &quot;^7.0.0&quot;, &quot;babel-code-frame&quot;: &quot;^6.26.0&quot;, &quot;babel-core&quot;: &quot;^6.26.3&quot;, &quot;babel-eslint&quot;: &quot;^10.0.1&quot;, &quot;babel-preset-env&quot;: &quot;^1.7.0&quot;, &quot;babel-preset-react&quot;: &quot;^6.24.1&quot;, &quot;bulma&quot;: &quot;^0.7.2&quot;, &quot;eslint&quot;: &quot;^5.12.0&quot;, &quot;eslint-config-prettier&quot;: &quot;^3.3.0&quot;, &quot;eslint-plugin-prettier&quot;: &quot;^3.0.1&quot;, &quot;eslint-plugin-react&quot;: &quot;^7.12.3&quot;, &quot;prettier&quot;: &quot;^1.15.3&quot;, &quot;sass&quot;: &quot;^1.15.3&quot; }, &quot;scripts&quot;: { &quot;start&quot;: &quot;parcel client/*.html -p 3000&quot;, &quot;build&quot;: &quot;parcel build client/*.html&quot; } } "><pre class="notranslate">{ <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>app<span class="pl-pds">"</span></span>, <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"main"</span>: <span class="pl-s"><span class="pl-pds">"</span>client/index.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"adal-angular"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.0.17<span class="pl-pds">"</span></span>, <span class="pl-ent">"axios"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.18.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"azure-storage"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.10.2<span class="pl-pds">"</span></span>, <span class="pl-ent">"bloomer"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.6.5<span class="pl-pds">"</span></span>, <span class="pl-ent">"eslint-config-google"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.11.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"global"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.3.2<span class="pl-pds">"</span></span>, <span class="pl-ent">"lodash"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.17.11<span class="pl-pds">"</span></span>, <span class="pl-ent">"node"</span>: <span class="pl-s"><span class="pl-pds">"</span>^11.6.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"node-sass"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.10.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"parcel-bundler"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.10.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"prop-types"</span>: <span class="pl-s"><span class="pl-pds">"</span>^15.6.2<span class="pl-pds">"</span></span>, <span class="pl-ent">"react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^16.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"react-dom"</span>: <span class="pl-s"><span class="pl-pds">"</span>^16.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"react-table"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.8.6<span class="pl-pds">"</span></span>, <span class="pl-ent">"reactjs-popup"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.3.2<span class="pl-pds">"</span></span>, <span class="pl-ent">"request"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.34<span class="pl-pds">"</span></span>, <span class="pl-ent">"request-promise-native"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.0.5<span class="pl-pds">"</span></span>, <span class="pl-ent">"uuid"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.3.2<span class="pl-pds">"</span></span> }, <span class="pl-ent">"devDependencies"</span>: { <span class="pl-ent">"@babel/highlight"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-code-frame"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.26.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-core"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.26.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-eslint"</span>: <span class="pl-s"><span class="pl-pds">"</span>^10.0.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-preset-env"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.7.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-preset-react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.24.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"bulma"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.7.2<span class="pl-pds">"</span></span>, <span class="pl-ent">"eslint"</span>: <span class="pl-s"><span class="pl-pds">"</span>^5.12.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"eslint-config-prettier"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"eslint-plugin-prettier"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.0.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"eslint-plugin-react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.12.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"prettier"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.15.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"sass"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.15.3<span class="pl-pds">"</span></span> }, <span class="pl-ent">"scripts"</span>: { <span class="pl-ent">"start"</span>: <span class="pl-s"><span class="pl-pds">"</span>parcel client/*.html -p 3000<span class="pl-pds">"</span></span>, <span class="pl-ent">"build"</span>: <span class="pl-s"><span class="pl-pds">"</span>parcel build client/*.html<span class="pl-pds">"</span></span> } } </pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s):</li> <li>Node/npm version: Node 11.9 (same issue on node 10.11)/Yarn 1.13</li> <li>OS: Running in a docker container in Ubuntu</li> <li>Monorepo: [e.g. yes/no/Lerna]</li> <li>How you are using Babel: [e.g. <code class="notranslate">cli</code>, <code class="notranslate">register</code>, <code class="notranslate">loader</code>]</li> </ul>
<blockquote> <p dir="auto">Issue originally made by Dave Thompson (dave.w.thompson)</p> </blockquote> <h3 dir="auto">Bug information</h3> <ul dir="auto"> <li><strong>Babel version:</strong> 6.13.0</li> <li><strong>Node version:</strong> 6.2.1</li> <li><strong>npm version:</strong> 3.9.3</li> </ul> <h3 dir="auto">Options</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install --save babel-core babel-loader babel-preset-es2015 babel-preset-es2016 babel-preset-react"><pre class="notranslate"><code class="notranslate">npm install --save babel-core babel-loader babel-preset-es2015 babel-preset-es2016 babel-preset-react </code></pre></div> <h3 dir="auto">Input code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(no code)"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-s1">no</span> <span class="pl-s1">code</span><span class="pl-kos">)</span></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">npm ERR! Windows_NT 6.1.7601<br> npm ERR! argv "C:\Dev\Apps\nodejs32\node.exe" "C:\Dev\Apps\nodejs32\node_modules\npm\bin\npm-cli.js" "install" "--save" "babel-core" "babel-loader" "babel-preset-es2015" "babel-preset-es2016" "babel-preset-react"<br> npm ERR! node v6.2.1<br> npm ERR! npm v3.9.3</p> <p dir="auto">npm ERR! No compatible version found: babel-traverse@^6.13.0<br> npm ERR! Valid install targets:<br> npm ERR! 6.12.0, 6.11.4, 6.10.4, 6.9.0, 6.8.0, 6.7.6, 6.7.5, 6.7.4, 6.7.3, 6.7.2, 6.7.0, 6.6.5, 6.6.4, 6.6.3, 6.6.2, 6.6.0, 6.5.0, 6.5.0-1, 6.4.5, 6.3.26, 6.3.25, 6.3.24, 6.3.21, 6.3.19, 6.3.17, 6.3.16, 6.3.15, 6.3.14, 6.3.13, 6.3.2, 6.2.4, 6.2.0, 6.1.20, 6.1.18, 6.1.17, 6.1.4, 6.1.2, 6.0.20, 6.0.19, 6.0.18, 6.0.17, 6.0.16, 6.0.14, 6.0.2<br> npm ERR!<br> npm ERR!<br> npm ERR! If you need help, you may report this error at:<br> npm ERR! <a href="https://github.com/npm/npm/issues">https://github.com/npm/npm/issues</a></p> <p dir="auto">npm ERR! Please include the following file with any support request:<br> npm ERR! [redacted]\npm-debug.log</p>
0
<p dir="auto">I'm ignoring some tests in <code class="notranslate">extra::time</code> because they fail randomly</p> <p dir="auto">(At time bug was filed, the library was called <code class="notranslate">std::time</code>, but <code class="notranslate">std</code> has been renamed to <code class="notranslate">extra</code>.)</p>
<p dir="auto">When running <code class="notranslate">make check</code> on my Mac, three tests in <code class="notranslate">time::tests</code> (<code class="notranslate">test_at</code>, <code class="notranslate">test_ctime</code>, and <code class="notranslate">test_strftime</code>) sometimes fail. Usually if I just run <code class="notranslate">make check</code> again, the tests pass.</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.145 Windows Terminal version (if applicable): Not sure where to find, it's compiled from the master branch with the commit 2da5b0b"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.145 Windows Terminal version (if applicable): Not sure where to find, it's compiled from the master branch with the commit 2da5b0b </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Copy texts with different line endings into wsl opened in windows terminal</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Line endings should be converted to the correct ones for the given environment (LF for Linux subsystem, CRLF for cmd/powershell)</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Different based on what line endings the copied text contains.</p> <p dir="auto">Here are images of all possible scenarios pasted into WSL in Terminal: <a href="https://imgur.com/a/HYFrznJ" rel="nofollow">https://imgur.com/a/HYFrznJ</a></p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.116 Windows Terminal version (if applicable): 71e19cd + changing toolset to v142 and SDK version"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.116 Windows Terminal version (if applicable): 71e19cd + changing toolset to v142 and SDK version </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Clone, build, package, install and launch <em>Windows Terminal (DevBuild)</em>.</li> <li>Execute <code class="notranslate">docker run --rm -it mcr.microsoft.com/windows/nanoserver:1903</code></li> <li>Select multiple lines and right click.</li> <li>Paste in any text editor. I used VSCode.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">I expected to see the same thing I saw in the terminal - specifically multiple lines.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">One line with lots of space.</p> <h1 dir="auto">Notes</h1> <p dir="auto">This is different from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="296768813" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/65" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/65/hovercard" href="https://github.com/microsoft/terminal/issues/65">#65</a> since it was about conhost and I'm talking about the new terminal, and I didn't have Shift pressed.</p>
1
<p dir="auto">Broken on both release-0.3 and 0.4-dev:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; [1 1; 1 1] .* [1, 1] 2x2 Array{Int64,2}: 1 1 1 1 julia&gt; sparse([1 1; 1 1]) .* [1, 1] ERROR: DimensionMismatch(&quot;&quot;) in .* at sparse/sparsematrix.jl:568 in .* at sparse/sparsematrix.jl:669 julia&gt; [1, 1] .* [1 1; 1 1] 2x2 Array{Int64,2}: 1 1 1 1 julia&gt; [1, 1] .* sparse([1 1; 1 1]) ERROR: DimensionMismatch(&quot;&quot;) in .* at sparse/sparsematrix.jl:568 in .* at sparse/sparsematrix.jl:670"><pre class="notranslate">julia<span class="pl-k">&gt;</span> [<span class="pl-c1">1</span> <span class="pl-c1">1</span>; <span class="pl-c1">1</span> <span class="pl-c1">1</span>] <span class="pl-k">.*</span> [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>] <span class="pl-c1">2</span>x2 Array{Int64,<span class="pl-c1">2</span>}<span class="pl-k">:</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">sparse</span>([<span class="pl-c1">1</span> <span class="pl-c1">1</span>; <span class="pl-c1">1</span> <span class="pl-c1">1</span>]) <span class="pl-k">.*</span> [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>] ERROR<span class="pl-k">:</span> <span class="pl-c1">DimensionMismatch</span>(<span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>) <span class="pl-k">in</span> <span class="pl-k">.*</span> at sparse<span class="pl-k">/</span>sparsematrix<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">568</span> <span class="pl-k">in</span> <span class="pl-k">.*</span> at sparse<span class="pl-k">/</span>sparsematrix<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">669</span> julia<span class="pl-k">&gt;</span> [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>] <span class="pl-k">.*</span> [<span class="pl-c1">1</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>x2 Array{Int64,<span class="pl-c1">2</span>}<span class="pl-k">:</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> julia<span class="pl-k">&gt;</span> [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>] <span class="pl-k">.*</span> <span class="pl-c1">sparse</span>([<span class="pl-c1">1</span> <span class="pl-c1">1</span>; <span class="pl-c1">1</span> <span class="pl-c1">1</span>]) ERROR<span class="pl-k">:</span> <span class="pl-c1">DimensionMismatch</span>(<span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>) <span class="pl-k">in</span> <span class="pl-k">.*</span> at sparse<span class="pl-k">/</span>sparsematrix<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">568</span> <span class="pl-k">in</span> <span class="pl-k">.*</span> at sparse<span class="pl-k">/</span>sparsematrix<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">670</span></pre></div> <p dir="auto">I'm pretty sure this worked as of v0.2.</p>
<p dir="auto">I'm fiddling with sparse matrices and have found a few quirks :-)</p> <p dir="auto">What I pretend to do is use LU factorization in sparse matrices (for now in real matrices, but I hope to get it done also in sparse complex matrices)</p> <p dir="auto">First, in the manual, in the Linear Algebra section (<a href="http://docs.julialang.org/en/release-0.3/stdlib/linalg/" rel="nofollow">http://docs.julialang.org/en/release-0.3/stdlib/linalg/</a>) there is the relation between the L and U factors (in the case of F=lufact(A) operation they are named/extracted as F[:L] and F[:U] ) and a line and column permutation of the factorized sparse matrix A that reads as<br> <code class="notranslate"><br> F[:L] * F[:U] == Rs .* A[F[:p], F[:q]]<br> </code><br> It seems to me (according to the explanation in that section) that it should read as<br> <code class="notranslate"><br> F[:L] * F[:U] == F[:Rs] .* A[F[:p], F[:q]]<br> </code><br> because Rs doesn't exist per se (it has to be extracted from the object F, and so is F[:Rs]).</p> <p dir="auto">Aside that typo, additionally the RHS of that expression when evaluated gives an error due to a mismatch in dimensions. Indeed there is not a perfect equivalence/behavior of the .* operator (this doesn't happen with the .+ operator, for example) in real and in complex matrices, as the session below clearly shows. I end that session with an example of the failure, by applying lufact() and exemplifying the error.</p> <p dir="auto">I checked the code around "sparse/sparsematrix.jl:531" where the error is triggered and there is a check of conformant dimensions for matrix dot product .* (and of other operators)</p> <pre class="notranslate"> ............. if size(A,1) != size(B,1) || size(A,2) != size(B,2) throw(DimensionMismatch("")) # line 531 of the source code end ............... </pre> <p dir="auto">(where A and B are the operands) which means that the .* operator only accepts operands with the same dimensions. I think that it is what triggers the error.</p> <p dir="auto">But then this configures a different behavior for .* in sparse and non sparse matrix representations.</p> <p dir="auto">Below is a session with julia 0.3.0 running in windows 7 in AMD 8-core Piledriver processor where the above cases are visible, with added comments. I experimented in julia 0.2.1 in Linux-Ubuntu (over Virtualbox) and the behavior of .* is the same as in windows 7; however, in 0.2.1 lufact() is not implemented for sparses, so I could not check it.</p> <pre class="notranslate"># H and v are a matrix and a vector, Hs and vs the corresponding sparse objects. julia&gt; H=[1 0; 2 -1.0] 2x2 Array{Float64,2}: 1.0 0.0 2.0 -1.0 julia&gt; v=[2,3.0] 2-element Array{Float64,1}: 2.0 3.0 julia&gt; Hs=sparse(H) 2x2 sparse matrix with 3 Float64 entries: [1, 1] = 1.0 [2, 1] = 2.0 [2, 2] = -1.0 julia&gt; vs=sparse(v) 2x1 sparse matrix with 2 Float64 entries: [1, 1] = 2.0 [2, 1] = 3.0 julia&gt; v .* H 2x2 Array{Float64,2}: 2.0 0.0 6.0 -3.0 julia&gt; v .* Hs ERROR: DimensionMismatch("") in .* at sparse/sparsematrix.jl:531 julia&gt; vs .* H ERROR: DimensionMismatch("") in .* at sparse/sparsematrix.jl:531 julia&gt; vs .* Hs ERROR: DimensionMismatch("") in .* at sparse/sparsematrix.jl:531 # product * is OK julia&gt; H * Hs 2x2 Array{Float64,2}: 1.0 0.0 0.0 1.0 julia&gt; Hs * H 2x2 Array{Float64,2}: 1.0 0.0 0.0 1.0 # does difference in sizes of v and vs explain something? julia&gt; size(H) (2,2) julia&gt; size(Hs) (2,2) julia&gt; size(v) (2,) julia&gt; size(vs) (2,1) ## the .+ operator is OK with mismatch in operand dimensions (sparse or not) julia&gt; v .+ H 2x2 Array{Float64,2}: 3.0 2.0 5.0 2.0 julia&gt; v .+ Hs 2x2 Array{Float64,2}: 3.0 2.0 5.0 2.0 julia&gt; vs .+ H 2x2 Array{Float64,2}: 3.0 2.0 5.0 2.0 julia&gt; vs .+ Hs 2x2 Array{Float64,2}: 3.0 2.0 5.0 2.0 # for conformant sparse operands is OK julia&gt; Hs .* Hs 2x2 sparse matrix with 3 Float64 entries: [1, 1] = 1.0 [2, 1] = 4.0 [2, 2] = 1.0 # now we lufact(Hs) and show the problem with F[:Rs] .* A[F[:p], F[:q]] julia&gt; S=lufact(Hs) UMFPACK LU Factorization of a 2-by-2 sparse matrix Ptr{Void} @0x0000000020c65560 julia&gt; S[:L] 2x2 sparse matrix with 2 Float64 entries: [1, 1] = 1.0 [2, 2] = 1.0 julia&gt; S[:U] 2x2 sparse matrix with 3 Float64 entries: [1, 1] = -0.333333 [1, 2] = 0.666667 [2, 2] = 1.0 julia&gt; S[:p] 2-element Array{Int64,1}: 2 1 julia&gt; S[:q] 2-element Array{Int64,1}: 2 1 julia&gt; S[:Rs] 2-element Array{Float64,1}: 1.0 0.333333 julia&gt; Hsperm=Hs[S[:p],S[:q]] 2x2 sparse matrix with 3 Float64 entries: [1, 1] = -1.0 [1, 2] = 2.0 [2, 2] = 1.0 julia&gt; S[:Rs] .* Hsperm ERROR: DimensionMismatch("") in .* at sparse/sparsematrix.jl:531 </pre>
1
<p dir="auto">For linting files.</p> <p dir="auto">Probably should be implemented similar to how we've done <code class="notranslate">--fmt</code> ... that is get eslint into deno_std, and then load from URL in core.</p>
<p dir="auto">Right now for npm specifiers, we sort the npm package requirements by name only and then resolve them. This is ok for specifiers with different names, but not when they match. Instead we should probably resolve npm specifiers with the same name by module depth. This would allow npm specifiers with the same name closer to the user to have higher precedence than those at a lower tree depth in remote modules for example.</p> <p dir="auto">I will open a PR for this after landing the peer dependency support because resolution has undergone a lot of changes.</p>
0
<p dir="auto">Jonathan recently created the code and layout for the new certificates.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> going through the "claim your ____ certificate" challenges grants camper the appropriate certificate</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> certificates have proper verbiage and all 9 have a different color that corresponds to one of the colors in our <a href="https://www.freecodecamp.com/design-style-guide/" rel="nofollow">design style guide</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 3 old certificates and 6 new certificates all show up on profile if claimed</li> </ul>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-unshift" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-manipulate-arrays-with-unshift</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> <p dir="auto">The shift value on the "ourArray" sample is removing the last value of the array (["cat"]) instead of the first value ("Stimpson"). Not an actual bug, but can confuse someone.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5242285/9348150/b6476a06-4600-11e5-8d27-9b10c8d2846c.png"><img src="https://cloud.githubusercontent.com/assets/5242285/9348150/b6476a06-4600-11e5-8d27-9b10c8d2846c.png" alt="image" style="max-width: 100%;"></a></p>
0
<p dir="auto">Hi,</p> <p dir="auto">ClientIP affinity seems to have some issue on Container Engine. Once you scale down a replicas set linked to a service with session affinity and GCE external load balancer, sticky session doesn't work anymore.<br> I tried to create a new cluster to be sure it wasn't any configuration related issue.</p> <p dir="auto">Steps to reproduce :</p> <ul dir="auto"> <li>Create a container cluster</li> <li>Add a replica set (with a pod running http service that show a random id defined on launch) and a service with sessionAffinity set to "ClientIP" and type "LoadBalancer"</li> <li>scale replicaset to 0. Scale it back to 5.</li> <li>Try to go on the url exposed on computer. Try the same thing on your phone on another network (for example your mobile data).<br> The id on the phone change each time your reload the computer page.</li> </ul> <p dir="auto">Did i miss something ?</p> <p dir="auto">Thanks for your help.</p>
<p dir="auto">It seems like the sessionAffinity stops working if the rc is deleted and created again after the service was created. (Cluster with two machines on GCE)</p> <p dir="auto">Steps to reproduce:</p> <ul dir="auto"> <li> <ol dir="auto"> <li>Used following files:</li> </ol> </li> </ul> <p dir="auto">ServerName.yaml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apiVersion: v1 kind: ReplicationController metadata: name: servername labels: name: servername spec: replicas: 10 selector: name: servername template: metadata: labels: name: servername spec: containers: - name: app image: fibheap/printhostname imagePullPolicy: &quot;Always&quot; ports: - containerPort: 80"><pre class="notranslate"><code class="notranslate">apiVersion: v1 kind: ReplicationController metadata: name: servername labels: name: servername spec: replicas: 10 selector: name: servername template: metadata: labels: name: servername spec: containers: - name: app image: fibheap/printhostname imagePullPolicy: "Always" ports: - containerPort: 80 </code></pre></div> <p dir="auto">ServerNameSv.yaml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apiVersion: v1 kind: Service metadata: name: servername labels: name: servername spec: ports: # the port that this service should serve on - port: 80 targetPort: 80 selector: name: servername type: LoadBalancer sessionAffinity: ClientIP"><pre class="notranslate"><code class="notranslate">apiVersion: v1 kind: Service metadata: name: servername labels: name: servername spec: ports: # the port that this service should serve on - port: 80 targetPort: 80 selector: name: servername type: LoadBalancer sessionAffinity: ClientIP </code></pre></div> <p dir="auto">Dockerfile</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM google/nodejs WORKDIR /app ADD ./main.js /app/main.js EXPOSE 80 CMD [&quot;node&quot;, &quot;--harmony&quot;, &quot;./main.js&quot;]"><pre class="notranslate"><code class="notranslate">FROM google/nodejs WORKDIR /app ADD ./main.js /app/main.js EXPOSE 80 CMD ["node", "--harmony", "./main.js"] </code></pre></div> <p dir="auto">main.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Load the http module to create an http server. var http = require('http'); var os = require('os'); // Configure our HTTP server to respond with Hello World to all requests. var server = http.createServer(function (req, res) { res.writeHead(200, {&quot;Content-Type&quot;: &quot;text/plain&quot;}); var ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress || req.socket.remoteAddress || req.connection.socket.remoteAddress; res.end(&quot;CIP:&quot; + ip + &quot; Remote Server:&quot; + os.hostname()); }); // Listen on port 8000, IP defaults to 127.0.0.1 server.listen(80); // Put a friendly message on the terminal console.log(&quot;Server running at http://127.0.0.1:80/&quot;);"><pre class="notranslate"><code class="notranslate">// Load the http module to create an http server. var http = require('http'); var os = require('os'); // Configure our HTTP server to respond with Hello World to all requests. var server = http.createServer(function (req, res) { res.writeHead(200, {"Content-Type": "text/plain"}); var ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress || req.socket.remoteAddress || req.connection.socket.remoteAddress; res.end("CIP:" + ip + " Remote Server:" + os.hostname()); }); // Listen on port 8000, IP defaults to 127.0.0.1 server.listen(80); // Put a friendly message on the terminal console.log("Server running at http://127.0.0.1:80/"); </code></pre></div> <hr> <ul dir="auto"> <li> <ol start="2" dir="auto"> <li>create rc and service (describe service to get IP and assure ClientIP is set)</li> </ol> </li> <li> <ol start="3" dir="auto"> <li>curl multiple times from loadbalancer ip -&gt; pod name should stay the same</li> </ol> </li> <li> <ol start="4" dir="auto"> <li>delete rc and create again</li> </ol> </li> <li> <ol start="5" dir="auto"> <li>curl again multiple time -&gt; pod name changes</li> </ol> </li> </ul> <p dir="auto">This is in particularly a show stoping bug for us as we cannot recreate the service without loosing the external IP. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="90811174" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/10323" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/10323/hovercard" href="https://github.com/kubernetes/kubernetes/issues/10323">#10323</a></p> <p dir="auto">Please let me know if that helps for reproducing. Please feel free to use docker repository fibheap/printhostname directly</p>
1
<p dir="auto">use slot but Has been an error</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!--touchRipple--&gt; &lt;div @mousedown=&quot;handleMouseDown&quot; @mouseup=&quot;end()&quot; @mouseleave=&quot;end()&quot; @touchstart=&quot;handleTouchStart&quot; @touchend=&quot;end()&quot; @touchcancel=&quot;end()&quot;&gt; &lt;div :style=&quot;style&quot;&gt; &lt;circle-ripple :key=&quot;ripple.key&quot; v-for=&quot;ripple in ripples&quot;&gt;&lt;/circle-ripple&gt; &lt;/div&gt; &lt;slot&gt;&lt;/slot&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-c">&lt;!--touchRipple--&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">@mousedown</span>="<span class="pl-s">handleMouseDown</span>" <span class="pl-c1">@mouseup</span>="<span class="pl-s">end()</span>" <span class="pl-c1">@mouseleave</span>="<span class="pl-s">end()</span>" <span class="pl-c1">@touchstart</span>="<span class="pl-s">handleTouchStart</span>" <span class="pl-c1">@touchend</span>="<span class="pl-s">end()</span>" <span class="pl-c1">@touchcancel</span>="<span class="pl-s">end()</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">:style</span>="<span class="pl-s">style</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">circle-ripple</span> <span class="pl-c1">:key</span>="<span class="pl-s">ripple.key</span>" <span class="pl-c1">v-for</span>="<span class="pl-s">ripple in ripples</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">circle-ripple</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">slot</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">slot</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;touch-ripple&gt; &lt;icon :value=&quot;icon&quot; :class=&quot;[iconClass]&quot;&gt;&lt;/icon&gt; &lt;/touch-ripple&gt;"><pre class="notranslate"> <span class="pl-kos">&lt;</span><span class="pl-ent">touch-ripple</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">icon</span> <span class="pl-c1">:value</span>="<span class="pl-s">icon</span>" <span class="pl-c1">:class</span>="<span class="pl-s">[iconClass]</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">icon</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">touch-ripple</span><span class="pl-kos">&gt;</span></pre></div>
<h3 dir="auto">Version</h3> <p dir="auto">2.6.11</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://stackblitz.com/edit/vuejs-template-issue" rel="nofollow">https://stackblitz.com/edit/vuejs-template-issue</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Using the minimal reproduction link:</p> <ol dir="auto"> <li>Visit the minimal reproduction link</li> <li>Inspect the document under both "Template Content" headers. <ul dir="auto"> <li>Notice that under the first header the template tags are being stripped.</li> <li>Notice that under the second header the template tags are being preserved.</li> </ul> </li> </ol> <p dir="auto">To re-create this in a sandbox of your own, you can perform the following:</p> <ol dir="auto"> <li>Create a block level element with the v-pre directive and place template tags a children. <ul dir="auto"> <li>Observe the template tags being removed.</li> </ul> </li> <li>Add any VueJS compiled element as a sibling to the block level element with v-pre. <ul dir="auto"> <li>Observe the template tags are being preserved.</li> </ul> </li> </ol> <h3 dir="auto">What is expected?</h3> <p dir="auto">In both cases the presence of v-pre should instruct Vue not to remove the template tags.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">v-pre is only preserving the template tags when a VueJS compiled element is sibling to the element with the v-pre tag.</p> <hr> <p dir="auto">I am working on integrating Web Components into VueJS applications and would like to leverage the power of the Shadow DOM.</p>
0
<p dir="auto">I tried to upgrade my cluster through hack/dev-build-and-push.sh, and failed due to endless error messages:</p> <p dir="auto">hack/../cluster/../cluster/../cluster/gce/../../cluster/common.sh: line 283: KUBE_TAR_URL: unbound variable<br> Failure trying to curl release .sha1<br> hack/../cluster/../cluster/../cluster/gce/../../cluster/common.sh: line 283: KUBE_TAR_URL: unbound variable<br> Failure trying to curl release .sha1<br> hack/../cluster/../cluster/../cluster/gce/../../cluster/common.sh: line 283: KUBE_TAR_URL: unbound variable<br> Failure trying to curl release .sha1</p> <p dir="auto">...</p>
<p dir="auto">I suspect we're going through an if/else clause where KUBE_TAR_URL isn't defined, and not defaulting it, though the function header seems to indicate it should be set in the callee.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/local/google/home/beeps/goproj/src/k8s.io/kubernetes/hack/e2e-internal/../../cluster/../cluster/../cluster/gce/../../cluster/common.sh: line 283: KUBE_TAR_URL: unbound variable"><pre class="notranslate"><code class="notranslate">/usr/local/google/home/beeps/goproj/src/k8s.io/kubernetes/hack/e2e-internal/../../cluster/../cluster/../cluster/gce/../../cluster/common.sh: line 283: KUBE_TAR_URL: unbound variable </code></pre></div> <p dir="auto">@ihmccreery</p>
1
<p dir="auto">I also run into this error:</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="655082252" data-permission-text="Title is private" data-url="https://github.com/sfu-db/dataprep/issues/231" data-hovercard-type="issue" data-hovercard-url="/sfu-db/dataprep/issues/231/hovercard" href="https://github.com/sfu-db/dataprep/issues/231">sfu-db/dataprep#231</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/miniconda3/lib/python3.6/site-packages/pandas/core/common.py&quot;, line 164, in cast_scalar_indexer if lib.is_float(val) and val.is_integer(): AttributeError: 'numpy.float32' object has no attribute 'is_integer'"><pre class="notranslate"><code class="notranslate">/miniconda3/lib/python3.6/site-packages/pandas/core/common.py", line 164, in cast_scalar_indexer if lib.is_float(val) and val.is_integer(): AttributeError: 'numpy.float32' object has no attribute 'is_integer' </code></pre></div> <p dir="auto">with dtype=numpy.double, the code runs fine; shouldn't <code class="notranslate">is_integer</code> be defined for all float types?</p> <p dir="auto">version:<br> numpy 1.17.2<br> pandas 1.1.3</p> <p dir="auto">Linux 4.15.0-101-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1174455" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/102" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/102/hovercard" href="https://github.com/numpy/numpy/pull/102">#102</a>-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux</p>
<p dir="auto">When assigning arrays inside structured arrays without a left sided <code class="notranslate">[:]</code>, only the first element gets actually assigned. This is shown in the following code snippet, where a structured array is initialized with zeros, and then filled by assignment of an array, and the assignment of a structured array. The assignment of the array only assigns the first value, where the assignment of the structured array assigns all values:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [2]: np.__version__ Out[2]: '1.7.0' In [3]: struct_dt = np.dtype([ ...: ('elem', 'i4', 5), ...: ]) In [4]: dt = np.dtype([ ...: ('field', 'i4', 10), ...: ('struct', struct_dt) ...: ]) In [5]: x = np.zeros(1, dt) In [6]: x[0]['field'] = np.ones(10, dtype='i4') In [7]: x[0]['struct'] = np.ones(1, dtype=struct_dt) In [8]: x Out[8]: array([([1, 0, 0, 0, 0, 0, 0, 0, 0, 0], ([1, 1, 1, 1, 1],))], dtype=[('field', '&lt;i4', (10,)), ('struct', [('elem', '&lt;i4', (5,))])])"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">np</span>.<span class="pl-s1">__version__</span> <span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: <span class="pl-s">'1.7.0'</span> <span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">struct_dt</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">dtype</span>([ ...: (<span class="pl-s">'elem'</span>, <span class="pl-s">'i4'</span>, <span class="pl-c1">5</span>), ...: ]) <span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">dt</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">dtype</span>([ ...: (<span class="pl-s">'field'</span>, <span class="pl-s">'i4'</span>, <span class="pl-c1">10</span>), ...: (<span class="pl-s">'struct'</span>, <span class="pl-s1">struct_dt</span>) ...: ]) <span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-c1">1</span>, <span class="pl-s1">dt</span>) <span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">x</span>[<span class="pl-c1">0</span>][<span class="pl-s">'field'</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>(<span class="pl-c1">10</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'i4'</span>) <span class="pl-v">In</span> [<span class="pl-c1">7</span>]: <span class="pl-s1">x</span>[<span class="pl-c1">0</span>][<span class="pl-s">'struct'</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>(<span class="pl-c1">1</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">struct_dt</span>) <span class="pl-v">In</span> [<span class="pl-c1">8</span>]: <span class="pl-s1">x</span> <span class="pl-v">Out</span>[<span class="pl-c1">8</span>]: <span class="pl-en">array</span>([([<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>], ([<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>],))], <span class="pl-s1">dtype</span><span class="pl-c1">=</span>[(<span class="pl-s">'field'</span>, <span class="pl-s">'&lt;i4'</span>, (<span class="pl-c1">10</span>,)), (<span class="pl-s">'struct'</span>, [(<span class="pl-s">'elem'</span>, <span class="pl-s">'&lt;i4'</span>, (<span class="pl-c1">5</span>,))])])</pre></div> <p dir="auto">The expected result is that all elements of <code class="notranslate">x[0]['field']</code> are 1.</p> <p dir="auto">However, <code class="notranslate">x[0]['field']</code> "recognizes" some part of the assigned array, as it will complain about broadcasting problems for wrong sizes:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [9]: x[0]['field'] = np.ones(9, dtype='i4') --------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-9-80d7cbce6711&gt; in &lt;module&gt;() ----&gt; 1 x[0]['field'] = np.ones(9, dtype='i4') ValueError: could not broadcast input array from shape (9) into shape (9,10)"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">9</span>]: <span class="pl-s1">x</span>[<span class="pl-c1">0</span>][<span class="pl-s">'field'</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>(<span class="pl-c1">9</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'i4'</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">ValueError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">9</span><span class="pl-c1">-</span><span class="pl-c1">80</span><span class="pl-s1">d7cbce6711</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>() <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">x</span>[<span class="pl-c1">0</span>][<span class="pl-s">'field'</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>(<span class="pl-c1">9</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'i4'</span>) <span class="pl-v">ValueError</span>: <span class="pl-s1">could</span> <span class="pl-c1">not</span> <span class="pl-s1">broadcast</span> <span class="pl-s1">input</span> <span class="pl-s1">array</span> <span class="pl-k">from</span> <span class="pl-en">shape</span> (<span class="pl-c1">9</span>) <span class="pl-s1">into</span> <span class="pl-en">shape</span> (<span class="pl-c1">9</span>,<span class="pl-c1">10</span>)</pre></div> <p dir="auto">As mentioned in the beginning, adding <code class="notranslate">[:]</code> on the left side (In [6]) will correctly set all elements to 1. If the shown assignment is not allowed, I would have expected that an exception gets raised?</p>
0
<p dir="auto">Here's an example folder structure (as silly as it may be)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pages/ - subpage/ - index.js - subpage.js"><pre class="notranslate"><code class="notranslate">pages/ - subpage/ - index.js - subpage.js </code></pre></div> <p dir="auto">If I have a <code class="notranslate">&lt;Link/&gt;</code> point to <code class="notranslate">/subpage/</code> the client will render the component from <code class="notranslate">subpage.js</code>, but when I refresh the page, I get the <code class="notranslate">subpage/index.js</code> file rendered.</p> <p dir="auto">At first I noticed this was an issue with the server routing not working well if the path ends with a <code class="notranslate">/</code>, but then I realized that there are cases in which you may want an <code class="notranslate">index.js</code> in a folder, so it's not necessarily problematic that you get a <code class="notranslate">404</code> when you don't have the <code class="notranslate">index.js</code>.</p> <p dir="auto">However, when there's a naming collision between a file and a folder, the client and the server behave differently and I think there should be a discussion around this situation, because I can't say there's a clear solution at this point.</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I'm facing a really werid error in express that I have no idea what the reason is. I'm using <code class="notranslate">compression</code> package with a custom server</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const express = require('express') const next = require('next') const compression = require('compression') const port = parseInt(process.env.PORT, 10) || 3000 const dev = process.env.NODE_ENV !== 'production' const app = next({ dev }) const handle = app.getRequestHandler() app.prepare() .then(() =&gt; { const server = express() server.use(compression()) server.get('*', (req, res) =&gt; { return handle(req, res) }) server.listen(port, (err) =&gt; { if (err) throw err console.log(`&gt; Ready on http://localhost:${port}`) }) }) This should work with no problem."><pre class="notranslate"><code class="notranslate">const express = require('express') const next = require('next') const compression = require('compression') const port = parseInt(process.env.PORT, 10) || 3000 const dev = process.env.NODE_ENV !== 'production' const app = next({ dev }) const handle = app.getRequestHandler() app.prepare() .then(() =&gt; { const server = express() server.use(compression()) server.get('*', (req, res) =&gt; { return handle(req, res) }) server.listen(port, (err) =&gt; { if (err) throw err console.log(`&gt; Ready on http://localhost:${port}`) }) }) This should work with no problem. </code></pre></div> <h2 dir="auto">Current Behavior</h2> <p dir="auto">It works with no errors until I open dev tools (only in chrome)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ Error: Can't set headers after they are sent. at SendStream.headersAlreadySent (~/work/app/next.js/examples/custom-server-express/node_modules/send/index.js:390:13) at SendStream.send (~/work/app/next.js/examples/custom-server-express/node_modules/send/index.js:618:10) at onstat (~/work/app/next.js/examples/custom-server-express/node_modules/send/index.js:730:10) at FSReqWrap.oncomplete (fs.js:167:5) expose: false, statusCode: 500, status: 500 }"><pre class="notranslate"><code class="notranslate">{ Error: Can't set headers after they are sent. at SendStream.headersAlreadySent (~/work/app/next.js/examples/custom-server-express/node_modules/send/index.js:390:13) at SendStream.send (~/work/app/next.js/examples/custom-server-express/node_modules/send/index.js:618:10) at onstat (~/work/app/next.js/examples/custom-server-express/node_modules/send/index.js:730:10) at FSReqWrap.oncomplete (fs.js:167:5) expose: false, statusCode: 500, status: 500 } </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Clone the repo and use the <code class="notranslate">custom-server-express</code> folder</li> <li>Add <code class="notranslate">compression</code> package and use it as a middleware</li> <li>open chrome at localhost:3000</li> <li>run the server (there's no error in the log, even refresh)</li> <li>open Chrome dev (even with no extensions) and refresh</li> <li>see the error (no error using Firefox).</li> </ol> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>4 or 5 both</td> </tr> <tr> <td>node</td> <td>9.2.0</td> </tr> <tr> <td>OS</td> <td>OSX 10.13.3</td> </tr> <tr> <td>browser</td> <td>Chrome 64.0.3282.140</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<h3 dir="auto">Describe the bug</h3> <p dir="auto">sklearn.inspection.PartialDependenceDisplay fails with nulls in the dimension of the partial dependence</p> <h3 dir="auto">Steps/Code to Reproduce</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#This is a slimmed down version of the example in the sklear documentation #https://scikit-learn.org/stable/auto_examples/inspection/plot_partial_dependence.html #I only need to change one line from sklearn.datasets import fetch_openml from sklearn.compose import ColumnTransformer from sklearn.preprocessing import OrdinalEncoder from time import time from sklearn.pipeline import make_pipeline from sklearn.ensemble import HistGradientBoostingRegressor import numpy as np bikes = fetch_openml(&quot;Bike_Sharing_Demand&quot;, version=2, as_frame=True, parser=&quot;pandas&quot;) # Make an explicit copy to avoid &quot;SettingWithCopyWarning&quot; from pandas X, y = bikes.data.copy(), bikes.target #####LOOK HERE####### #This line is changed to put the value to null X[&quot;weather&quot;].replace(to_replace=&quot;heavy_rain&quot;, value=np.nan, inplace=True) mask_training = X[&quot;year&quot;] == 0.0 X = X.drop(columns=[&quot;year&quot;]) X_train, y_train = X[mask_training], y[mask_training] X_test, y_test = X[~mask_training], y[~mask_training] numerical_features = [&quot;temp&quot;,&quot;feel_temp&quot;,&quot;humidity&quot;,&quot;windspeed&quot;, ] categorical_features = X_train.columns.drop(numerical_features) hgbdt_preprocessor = ColumnTransformer( transformers=[ (&quot;cat&quot;, OrdinalEncoder(handle_unknown='use_encoded_value', unknown_value=np.nan), categorical_features), (&quot;num&quot;, &quot;passthrough&quot;, numerical_features), ], sparse_threshold=1, verbose_feature_names_out=False ).set_output(transform=&quot;pandas&quot;) hgbdt_model = make_pipeline( hgbdt_preprocessor, HistGradientBoostingRegressor( categorical_features=categorical_features, random_state=0 ), ) hgbdt_model.fit(X_train, y_train) import matplotlib.pyplot as plt from sklearn.inspection import PartialDependenceDisplay features_info = { # features of interest &quot;features&quot;: [&quot;temp&quot;, &quot;humidity&quot;, &quot;windspeed&quot;, &quot;season&quot;, &quot;weather&quot;, &quot;hour&quot;], # information regarding categorical features &quot;categorical_features&quot;: categorical_features, } common_params = { &quot;subsample&quot;: 50, &quot;n_jobs&quot;: 2, &quot;grid_resolution&quot;: 20, &quot;random_state&quot;: 0, } print(&quot;Computing partial dependence plots...&quot;) tic = time() _, ax = plt.subplots(ncols=3, nrows=2, figsize=(9, 8), constrained_layout=True) display = PartialDependenceDisplay.from_estimator( hgbdt_model, X_train, **features_info, ax=ax, **common_params, )"><pre class="notranslate"><span class="pl-c">#This is a slimmed down version of the example in the sklear documentation</span> <span class="pl-c">#https://scikit-learn.org/stable/auto_examples/inspection/plot_partial_dependence.html</span> <span class="pl-c">#I only need to change one line </span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span> <span class="pl-k">import</span> <span class="pl-s1">fetch_openml</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">compose</span> <span class="pl-k">import</span> <span class="pl-v">ColumnTransformer</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">preprocessing</span> <span class="pl-k">import</span> <span class="pl-v">OrdinalEncoder</span> <span class="pl-k">from</span> <span class="pl-s1">time</span> <span class="pl-k">import</span> <span class="pl-s1">time</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">pipeline</span> <span class="pl-k">import</span> <span class="pl-s1">make_pipeline</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">ensemble</span> <span class="pl-k">import</span> <span class="pl-v">HistGradientBoostingRegressor</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">bikes</span> <span class="pl-c1">=</span> <span class="pl-en">fetch_openml</span>(<span class="pl-s">"Bike_Sharing_Demand"</span>, <span class="pl-s1">version</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">as_frame</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">parser</span><span class="pl-c1">=</span><span class="pl-s">"pandas"</span>) <span class="pl-c"># Make an explicit copy to avoid "SettingWithCopyWarning" from pandas</span> <span class="pl-v">X</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">bikes</span>.<span class="pl-s1">data</span>.<span class="pl-en">copy</span>(), <span class="pl-s1">bikes</span>.<span class="pl-s1">target</span> <span class="pl-c">#####LOOK HERE#######</span> <span class="pl-c">#This line is changed to put the value to null</span> <span class="pl-v">X</span>[<span class="pl-s">"weather"</span>].<span class="pl-en">replace</span>(<span class="pl-s1">to_replace</span><span class="pl-c1">=</span><span class="pl-s">"heavy_rain"</span>, <span class="pl-s1">value</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">mask_training</span> <span class="pl-c1">=</span> <span class="pl-v">X</span>[<span class="pl-s">"year"</span>] <span class="pl-c1">==</span> <span class="pl-c1">0.0</span> <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-v">X</span>.<span class="pl-en">drop</span>(<span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">"year"</span>]) <span class="pl-v">X_train</span>, <span class="pl-s1">y_train</span> <span class="pl-c1">=</span> <span class="pl-v">X</span>[<span class="pl-s1">mask_training</span>], <span class="pl-s1">y</span>[<span class="pl-s1">mask_training</span>] <span class="pl-v">X_test</span>, <span class="pl-s1">y_test</span> <span class="pl-c1">=</span> <span class="pl-v">X</span>[<span class="pl-c1">~</span><span class="pl-s1">mask_training</span>], <span class="pl-s1">y</span>[<span class="pl-c1">~</span><span class="pl-s1">mask_training</span>] <span class="pl-s1">numerical_features</span> <span class="pl-c1">=</span> [<span class="pl-s">"temp"</span>,<span class="pl-s">"feel_temp"</span>,<span class="pl-s">"humidity"</span>,<span class="pl-s">"windspeed"</span>, ] <span class="pl-s1">categorical_features</span> <span class="pl-c1">=</span> <span class="pl-v">X_train</span>.<span class="pl-s1">columns</span>.<span class="pl-en">drop</span>(<span class="pl-s1">numerical_features</span>) <span class="pl-s1">hgbdt_preprocessor</span> <span class="pl-c1">=</span> <span class="pl-v">ColumnTransformer</span>( <span class="pl-s1">transformers</span><span class="pl-c1">=</span>[ (<span class="pl-s">"cat"</span>, <span class="pl-v">OrdinalEncoder</span>(<span class="pl-s1">handle_unknown</span><span class="pl-c1">=</span><span class="pl-s">'use_encoded_value'</span>, <span class="pl-s1">unknown_value</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">nan</span>), <span class="pl-s1">categorical_features</span>), (<span class="pl-s">"num"</span>, <span class="pl-s">"passthrough"</span>, <span class="pl-s1">numerical_features</span>), ], <span class="pl-s1">sparse_threshold</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">verbose_feature_names_out</span><span class="pl-c1">=</span><span class="pl-c1">False</span> ).<span class="pl-en">set_output</span>(<span class="pl-s1">transform</span><span class="pl-c1">=</span><span class="pl-s">"pandas"</span>) <span class="pl-s1">hgbdt_model</span> <span class="pl-c1">=</span> <span class="pl-en">make_pipeline</span>( <span class="pl-s1">hgbdt_preprocessor</span>, <span class="pl-v">HistGradientBoostingRegressor</span>( <span class="pl-s1">categorical_features</span><span class="pl-c1">=</span><span class="pl-s1">categorical_features</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">0</span> ), ) <span class="pl-s1">hgbdt_model</span>.<span class="pl-en">fit</span>(<span class="pl-v">X_train</span>, <span class="pl-s1">y_train</span>) <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">inspection</span> <span class="pl-k">import</span> <span class="pl-v">PartialDependenceDisplay</span> <span class="pl-s1">features_info</span> <span class="pl-c1">=</span> { <span class="pl-c"># features of interest</span> <span class="pl-s">"features"</span>: [<span class="pl-s">"temp"</span>, <span class="pl-s">"humidity"</span>, <span class="pl-s">"windspeed"</span>, <span class="pl-s">"season"</span>, <span class="pl-s">"weather"</span>, <span class="pl-s">"hour"</span>], <span class="pl-c"># information regarding categorical features</span> <span class="pl-s">"categorical_features"</span>: <span class="pl-s1">categorical_features</span>, } <span class="pl-s1">common_params</span> <span class="pl-c1">=</span> { <span class="pl-s">"subsample"</span>: <span class="pl-c1">50</span>, <span class="pl-s">"n_jobs"</span>: <span class="pl-c1">2</span>, <span class="pl-s">"grid_resolution"</span>: <span class="pl-c1">20</span>, <span class="pl-s">"random_state"</span>: <span class="pl-c1">0</span>, } <span class="pl-en">print</span>(<span class="pl-s">"Computing partial dependence plots..."</span>) <span class="pl-s1">tic</span> <span class="pl-c1">=</span> <span class="pl-en">time</span>() <span class="pl-s1">_</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">ncols</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">nrows</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">9</span>, <span class="pl-c1">8</span>), <span class="pl-s1">constrained_layout</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">display</span> <span class="pl-c1">=</span> <span class="pl-v">PartialDependenceDisplay</span>.<span class="pl-en">from_estimator</span>( <span class="pl-s1">hgbdt_model</span>, <span class="pl-v">X_train</span>, <span class="pl-c1">**</span><span class="pl-s1">features_info</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>, <span class="pl-c1">**</span><span class="pl-s1">common_params</span>, )</pre></div> <h3 dir="auto">Expected Results</h3> <p dir="auto">I would find three possibilities acceptable</p> <ol dir="auto"> <li> <p dir="auto">Error with a message saying that "NULLs are not allowed". The actual error is not clear what the issue is and it took a while for me to debug it.</p> </li> <li> <p dir="auto">Apply the pd.dropna() function on only the relevant feature while looping. My current work around is to do this in sklearn.inspection.partial_dependence. It cannot be done in this function when you are getting the PDP across many feature because it would distort the results.</p> </li> <li> <p dir="auto">Add a bin or something where the PDP value for the null is given. This seems simpler for categoricals.</p> </li> </ol> <h3 dir="auto">Actual Results</h3> <div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/spyder_kernels/py3compat.py&quot;, line 356, in compat_exec exec(code, globals, locals) File &quot;/Users/ Part_dep.py&quot;, line 73, in &lt;module&gt; display = PartialDependenceDisplay.from_estimator( File &quot;/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/sklearn/inspection/_plot/partial_dependence.py&quot;, line 655, in from_estimator [ File &quot;/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/sklearn/inspection/_plot/partial_dependence.py&quot;, line 656, in &lt;listcomp&gt; len(_unique(_safe_indexing(X, idx, axis=1))) File &quot;/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/sklearn/utils/_encode.py&quot;, line 45, in _unique return _unique_np( File &quot;/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/sklearn/utils/_encode.py&quot;, line 53, in _unique_np uniques = np.unique( File &quot;&lt;__array_function__ internals&gt;&quot;, line 180, in unique File &quot;/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/numpy/lib/arraysetops.py&quot;, line 274, in unique ret = _unique1d(ar, return_index, return_inverse, return_counts, File &quot;/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/numpy/lib/arraysetops.py&quot;, line 336, in _unique1d ar.sort() TypeError: '&lt;' not supported between instances of 'float' and 'str'"><pre class="notranslate">Traceback (most recent call last): File <span class="pl-s">"/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/spyder_kernels/py3compat.py"</span>, line <span class="pl-c1">356</span>, in <span class="pl-en">compat_exec</span> <span class="pl-c1">exec</span>(code, <span class="pl-c1">globals</span>, <span class="pl-c1">locals</span>) File <span class="pl-s">"/Users/ Part_dep.py"</span>, line <span class="pl-c1">73</span>, in <span class="pl-en">&lt;module&gt;</span> display <span class="pl-k">=</span> PartialDependenceDisplay.from_estimator( File <span class="pl-s">"/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/sklearn/inspection/_plot/partial_dependence.py"</span>, line <span class="pl-c1">655</span>, in <span class="pl-en">from_estimator</span> [ File <span class="pl-s">"/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/sklearn/inspection/_plot/partial_dependence.py"</span>, line <span class="pl-c1">656</span>, in <span class="pl-en">&lt;listcomp&gt;</span> <span class="pl-c1">len</span>(_unique(_safe_indexing(X, idx, <span class="pl-v">axis</span><span class="pl-k">=</span><span class="pl-c1">1</span>))) File <span class="pl-s">"/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/sklearn/utils/_encode.py"</span>, line <span class="pl-c1">45</span>, in <span class="pl-en">_unique</span> <span class="pl-k">return</span> _unique_np( File <span class="pl-s">"/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/sklearn/utils/_encode.py"</span>, line <span class="pl-c1">53</span>, in <span class="pl-en">_unique_np</span> uniques <span class="pl-k">=</span> np.unique( File <span class="pl-s">"&lt;__array_function__ internals&gt;"</span>, line <span class="pl-c1">180</span>, in <span class="pl-en">unique</span> File <span class="pl-s">"/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/numpy/lib/arraysetops.py"</span>, line <span class="pl-c1">274</span>, in <span class="pl-en">unique</span> ret <span class="pl-k">=</span> _unique1d(ar, return_index, return_inverse, return_counts, File <span class="pl-s">"/opt/anaconda3/envs/sklearn12/lib/python3.10/site-packages/numpy/lib/arraysetops.py"</span>, line <span class="pl-c1">336</span>, in <span class="pl-en">_unique1d</span> ar.sort() <span class="pl-en">TypeError</span>: <span class="pl-s">'&lt;' not supported between instances of 'float' and 'str'</span></pre></div> <h3 dir="auto">Versions</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="System: python: 3.10.8 (main, Nov 4 2022, 08:45:18) [Clang 12.0.0 ] executable: /opt/anaconda3/envs/sklearn12/bin/python machine: macOS-10.16-x86_64-i386-64bit Python dependencies: sklearn: 1.2.0 pip: 22.3.1 setuptools: 65.6.3 numpy: 1.23.5 scipy: 1.9.3 Cython: None pandas: 1.5.3 matplotlib: 3.6.2 joblib: 1.1.1 threadpoolctl: 2.2.0 Built with OpenMP: True threadpoolctl info: filepath: /opt/anaconda3/envs/sklearn12/lib/libmkl_rt.1.dylib prefix: libmkl_rt user_api: blas internal_api: mkl version: 2021.4-Product num_threads: 10 threading_layer: intel filepath: /opt/anaconda3/envs/sklearn12/lib/libomp.dylib prefix: libomp user_api: openmp internal_api: openmp version: None num_threads: 10"><pre class="notranslate">System: python: 3.10.8 (main, Nov 4 2022, 08:45:18) [Clang 12.0.0 ] executable: /opt/anaconda3/envs/sklearn12/bin/python machine: macOS-10.16-x86_64-i386-64bit Python dependencies: sklearn: 1.2.0 pip: 22.3.1 setuptools: 65.6.3 numpy: 1.23.5 scipy: 1.9.3 Cython: None pandas: 1.5.3 matplotlib: 3.6.2 joblib: 1.1.1 threadpoolctl: 2.2.0 Built with OpenMP: True threadpoolctl info: filepath: /opt/anaconda3/envs/sklearn12/lib/libmkl_rt.1.dylib prefix: libmkl_rt user_api: blas internal_api: mkl version: 2021.4-Product num_threads: 10 threading_layer: intel filepath: /opt/anaconda3/envs/sklearn12/lib/libomp.dylib prefix: libomp user_api: openmp internal_api: openmp version: None num_threads: 10</pre></div>
<h3 dir="auto">Describe the bug</h3> <p dir="auto">Since version 1.2, the partial dependence plot can deal with categorical features - fantastic! We encountered a small but annoying issue when there are missing values in the categoricals:</p> <ul dir="auto"> <li>Missing values in numeric features are handled, but not shown (okay)</li> <li>Missing values in categoricals raise an error</li> </ul> <h3 dir="auto">Steps/Code to Reproduce</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Make data from sklearn import datasets import pandas as pd iris, Species = datasets.load_iris(return_X_y=True) iris = pd.DataFrame( iris, columns=[&quot;sepal_length&quot;, &quot;sepal_width&quot;, &quot;petal_length&quot;, &quot;petal_width&quot;] ) iris[&quot;species&quot;] = pd.Series(Species).map({0: &quot;A&quot;, 1: &quot;B&quot;, 2: &quot;C&quot;}) iris.head() # Add some missing values import numpy as np iris.loc[0:5, &quot;sepal_width&quot;] = np.nan iris.loc[0:5, &quot;species&quot;] = np.nan # Make model from sklearn.impute import SimpleImputer from sklearn.preprocessing import OneHotEncoder from sklearn.linear_model import LinearRegression from sklearn.compose import ColumnTransformer from sklearn.pipeline import make_pipeline species_encoder = make_pipeline( SimpleImputer(strategy=&quot;constant&quot;, fill_value=&quot;A&quot;), OneHotEncoder(drop=[&quot;A&quot;], sparse_output=False) ) preprocessor = ColumnTransformer( transformers=[ (&quot;species_encoder&quot;, species_encoder, [&quot;species&quot;]), (&quot;other&quot;, SimpleImputer(), [&quot;sepal_width&quot;, &quot;petal_width&quot;, &quot;petal_length&quot;]) ], verbose_feature_names_out=False ).set_output(transform=&quot;pandas&quot;) model = make_pipeline(preprocessor, LinearRegression()) model.fit(iris, iris.sepal_length) # Inspect from sklearn.inspection import PartialDependenceDisplay _ = PartialDependenceDisplay.from_estimator( model, iris, features=[&quot;sepal_width&quot;, &quot;species&quot;], categorical_features=[&quot;species&quot;] )"><pre class="notranslate"><span class="pl-c"># Make data</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span> <span class="pl-k">import</span> <span class="pl-s1">datasets</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">iris</span>, <span class="pl-v">Species</span> <span class="pl-c1">=</span> <span class="pl-s1">datasets</span>.<span class="pl-en">load_iris</span>(<span class="pl-s1">return_X_y</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">iris</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>( <span class="pl-s1">iris</span>, <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">"sepal_length"</span>, <span class="pl-s">"sepal_width"</span>, <span class="pl-s">"petal_length"</span>, <span class="pl-s">"petal_width"</span>] ) <span class="pl-s1">iris</span>[<span class="pl-s">"species"</span>] <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-v">Species</span>).<span class="pl-en">map</span>({<span class="pl-c1">0</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-s">"C"</span>}) <span class="pl-s1">iris</span>.<span class="pl-en">head</span>() <span class="pl-c"># Add some missing values</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">iris</span>.<span class="pl-s1">loc</span>[<span class="pl-c1">0</span>:<span class="pl-c1">5</span>, <span class="pl-s">"sepal_width"</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">nan</span> <span class="pl-s1">iris</span>.<span class="pl-s1">loc</span>[<span class="pl-c1">0</span>:<span class="pl-c1">5</span>, <span class="pl-s">"species"</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">nan</span> <span class="pl-c"># Make model</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">impute</span> <span class="pl-k">import</span> <span class="pl-v">SimpleImputer</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">preprocessing</span> <span class="pl-k">import</span> <span class="pl-v">OneHotEncoder</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">linear_model</span> <span class="pl-k">import</span> <span class="pl-v">LinearRegression</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">compose</span> <span class="pl-k">import</span> <span class="pl-v">ColumnTransformer</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">pipeline</span> <span class="pl-k">import</span> <span class="pl-s1">make_pipeline</span> <span class="pl-s1">species_encoder</span> <span class="pl-c1">=</span> <span class="pl-en">make_pipeline</span>( <span class="pl-v">SimpleImputer</span>(<span class="pl-s1">strategy</span><span class="pl-c1">=</span><span class="pl-s">"constant"</span>, <span class="pl-s1">fill_value</span><span class="pl-c1">=</span><span class="pl-s">"A"</span>), <span class="pl-v">OneHotEncoder</span>(<span class="pl-s1">drop</span><span class="pl-c1">=</span>[<span class="pl-s">"A"</span>], <span class="pl-s1">sparse_output</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) ) <span class="pl-s1">preprocessor</span> <span class="pl-c1">=</span> <span class="pl-v">ColumnTransformer</span>( <span class="pl-s1">transformers</span><span class="pl-c1">=</span>[ (<span class="pl-s">"species_encoder"</span>, <span class="pl-s1">species_encoder</span>, [<span class="pl-s">"species"</span>]), (<span class="pl-s">"other"</span>, <span class="pl-v">SimpleImputer</span>(), [<span class="pl-s">"sepal_width"</span>, <span class="pl-s">"petal_width"</span>, <span class="pl-s">"petal_length"</span>]) ], <span class="pl-s1">verbose_feature_names_out</span><span class="pl-c1">=</span><span class="pl-c1">False</span> ).<span class="pl-en">set_output</span>(<span class="pl-s1">transform</span><span class="pl-c1">=</span><span class="pl-s">"pandas"</span>) <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-en">make_pipeline</span>(<span class="pl-s1">preprocessor</span>, <span class="pl-v">LinearRegression</span>()) <span class="pl-s1">model</span>.<span class="pl-en">fit</span>(<span class="pl-s1">iris</span>, <span class="pl-s1">iris</span>.<span class="pl-s1">sepal_length</span>) <span class="pl-c"># Inspect</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">inspection</span> <span class="pl-k">import</span> <span class="pl-v">PartialDependenceDisplay</span> <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-v">PartialDependenceDisplay</span>.<span class="pl-en">from_estimator</span>( <span class="pl-s1">model</span>, <span class="pl-s1">iris</span>, <span class="pl-s1">features</span><span class="pl-c1">=</span>[<span class="pl-s">"sepal_width"</span>, <span class="pl-s">"species"</span>], <span class="pl-s1">categorical_features</span><span class="pl-c1">=</span>[<span class="pl-s">"species"</span>] )</pre></div> <ul dir="auto"> <li>A missing value in the numeric feature seems no problem (even if the nan level is not shown in the plot)</li> <li>The code works when not adding missing values</li> </ul> <h3 dir="auto">Expected Results</h3> <p dir="auto">Either a plot without nan level or a plot with separate nan level (might be an option in some fix)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16206095/212533978-a32a3d9e-ea16-4c14-b3cc-2c2abc0998e3.png"><img src="https://user-images.githubusercontent.com/16206095/212533978-a32a3d9e-ea16-4c14-b3cc-2c2abc0998e3.png" alt="output" style="max-width: 100%;"></a></p> <h3 dir="auto">Actual Results</h3> <div class="highlight highlight-text-python-traceback notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="TypeError Traceback (most recent call last) Cell In [73], line 3 1 from sklearn.inspection import PartialDependenceDisplay ----&gt; 3 _ = PartialDependenceDisplay.from_estimator( 4 model, 5 iris, 6 features=[&quot;sepal_width&quot;, &quot;species&quot;], 7 categorical_features=[&quot;species&quot;] 8 ) File c:\Users\Michael\anaconda3\envs\ml_lecture\lib\site-packages\sklearn\inspection\_plot\partial_dependence.py:705, in PartialDependenceDisplay.from_estimator(cls, estimator, X, features, categorical_features, feature_names, target, response_method, n_cols, grid_resolution, percentiles, method, n_jobs, verbose, line_kw, ice_lines_kw, pd_line_kw, contour_kw, ax, kind, centered, subsample, random_state) 699 raise ValueError( 700 f&quot;When a floating-point, subsample={subsample} should be in &quot; 701 &quot;the (0, 1) range.&quot; 702 ) 704 # compute predictions and/or averaged predictions --&gt; 705 pd_results = Parallel(n_jobs=n_jobs, verbose=verbose)( 706 delayed(partial_dependence)( 707 estimator, 708 X, 709 fxs, 710 feature_names=feature_names, 711 categorical_features=categorical_features, 712 response_method=response_method, ... --&gt; 336 ar.sort() 337 aux = ar 338 mask = np.empty(aux.shape, dtype=np.bool_) TypeError: '&lt;' not supported between instances of 'str' and 'float'"><pre class="notranslate">TypeError Traceback (most recent call last) Cell In [73], line 3 <span class="pl-c1">1</span> <span class="pl-k">from</span> sklearn.inspection <span class="pl-k">import</span> PartialDependenceDisplay ----&gt; 3 _ = PartialDependenceDisplay.from_estimator( <span class="pl-c1">4</span> model, <span class="pl-c1">5</span> iris, <span class="pl-c1">6</span> features<span class="pl-k">=</span>[<span class="pl-s"><span class="pl-pds">"</span>sepal_width<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>species<span class="pl-pds">"</span></span>], <span class="pl-c1">7</span> categorical_features<span class="pl-k">=</span>[<span class="pl-s"><span class="pl-pds">"</span>species<span class="pl-pds">"</span></span>] <span class="pl-c1">8</span> ) File c:\Users\Michael\anaconda3\envs\ml_lecture\lib\site-packages\sklearn\inspection\_plot\partial_dependence.py:705, in PartialDependenceDisplay.from_estimator(cls, estimator, X, features, categorical_features, feature_names, target, response_method, n_cols, grid_resolution, percentiles, method, n_jobs, verbose, line_kw, ice_lines_kw, pd_line_kw, contour_kw, ax, kind, centered, subsample, random_state) <span class="pl-c1">699</span> <span class="pl-k">raise</span> <span class="pl-c1">ValueError</span>( <span class="pl-c1">700</span> <span class="pl-s">f</span><span class="pl-pds">"</span><span class="pl-s">When a floating-point, subsample=</span><span class="pl-c1">{</span>subsample<span class="pl-c1">}</span><span class="pl-s"> should be in </span><span class="pl-pds">"</span> <span class="pl-c1">701</span> <span class="pl-s"><span class="pl-pds">"</span>the (0, 1) range.<span class="pl-pds">"</span></span> <span class="pl-c1">702</span> ) <span class="pl-c1">704</span> <span class="pl-c"><span class="pl-c">#</span> compute predictions and/or averaged predictions</span> --&gt; 705 pd_results = Parallel(n_jobs=n_jobs, verbose=verbose)( <span class="pl-c1">706</span> delayed(partial_dependence)( <span class="pl-c1">707</span> estimator, <span class="pl-c1">708</span> X, <span class="pl-c1">709</span> fxs, <span class="pl-c1">710</span> feature_names<span class="pl-k">=</span>feature_names, <span class="pl-c1">711</span> categorical_features<span class="pl-k">=</span>categorical_features, <span class="pl-c1">712</span> response_method<span class="pl-k">=</span>response_method, ... --&gt; 336 ar.sort() <span class="pl-c1">337</span> aux <span class="pl-k">=</span> ar <span class="pl-c1">338</span> mask <span class="pl-k">=</span> np.empty(aux.shape, <span class="pl-v">dtype</span><span class="pl-k">=</span>np.bool_) <span class="pl-en">TypeError</span>: <span class="pl-s">'&lt;' not supported between instances of 'str' and 'float'</span></pre></div> <h3 dir="auto">Versions</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sklearn: 1.2.0"><pre class="notranslate">sklearn: 1.2.0</pre></div>
1
<p dir="auto">Hello,</p> <p dir="auto">Following <a href="https://reactjs.org/docs/how-to-contribute.html#sending-a-pull-request" rel="nofollow">your documentation</a></p> <p dir="auto">I made a fresh install and the test are failing even before doing any modification to the repository</p> <p dir="auto">React version:</p> <p dir="auto">The one on master branch<br> commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/facebook/react/commit/a731a51696239a69a6cd89cdd34f23ce2fc39099/hovercard" href="https://github.com/facebook/react/commit/a731a51696239a69a6cd89cdd34f23ce2fc39099"><tt>a731a51</tt></a><br> Ubuntu LTS<br> Node v14.16.1</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>git clone <a href="https://github.com/facebook/react.git">https://github.com/facebook/react.git</a></li> <li>yarn install</li> <li>yarn test</li> </ol> <p dir="auto">Link to code example:<br> I did not do anything yet and I received 3 errors :</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5208910/119251901-abd49600-bbdb-11eb-98f1-d390db8bbead.png"><img src="https://user-images.githubusercontent.com/5208910/119251901-abd49600-bbdb-11eb-98f1-d390db8bbead.png" alt="Screenshot from 2021-05-22 23-05-59" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5208910/119251902-ad9e5980-bbdb-11eb-98d8-623867eb80bf.png"><img src="https://user-images.githubusercontent.com/5208910/119251902-ad9e5980-bbdb-11eb-98d8-623867eb80bf.png" alt="Screenshot from 2021-05-22 23-06-17" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5208910/119251903-ae36f000-bbdb-11eb-9b5f-b60453f4530b.png"><img src="https://user-images.githubusercontent.com/5208910/119251903-ae36f000-bbdb-11eb-9b5f-b60453f4530b.png" alt="Screenshot from 2021-05-22 23-06-21" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5208910/119251904-aecf8680-bbdb-11eb-9918-e848ffe22728.png"><img src="https://user-images.githubusercontent.com/5208910/119251904-aecf8680-bbdb-11eb-9918-e848ffe22728.png" alt="Screenshot from 2021-05-22 23-06-24" style="max-width: 100%;"></a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto">The tests are failing</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">The tests should pass after a fresh install</p>
<h3 dir="auto">Which website or app were you using when the bug happened?</h3> <p dir="auto">Please provide a link to the URL of the website (if it is public), a CodeSandbox (<a href="https://codesandbox.io/s/new" rel="nofollow">https://codesandbox.io/s/new</a>) example that reproduces the bug, or a project on GitHub that we can checkout and run locally.</p> <h3 dir="auto">What were you doing on the website or app when the bug happened?</h3> <p dir="auto">If possible, please describe how to reproduce this bug on the website or app mentioned above:</p> <ol dir="auto"> <li> </li> <li> </li> <li> </li> </ol> <h3 dir="auto">Generated information</h3> <p dir="auto">DevTools version: 4.13.1-93782cfed2</p> <p dir="auto">Call stack:<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21390:41<br> at bridge_Bridge.emit (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19607:22)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19767:12<br> at listener (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37788:39)</p> <p dir="auto">Component stack:<br> (none)</p> <p dir="auto">GitHub URL search query:<br> <a href="https://api.github.com/search/issues?q=Cannot%20add%20node%20%20because%20a%20node%20with%20that%20id%20is%20already%20in%20the%20Store.%20in%3Atitle%20is%3Aissue%20is%3Aopen%20is%3Apublic%20label%3A%22Component%3A%20Developer%20Tools%22%20repo%3Afacebook%2Freact">https://api.github.com/search/issues?q=Cannot%20add%20node%20%20because%20a%20node%20with%20that%20id%20is%20already%20in%20the%20Store.%20in%3Atitle%20is%3Aissue%20is%3Aopen%20is%3Apublic%20label%3A%22Component%3A%20Developer%20Tools%22%20repo%3Afacebook%2Freact</a></p>
0
<p dir="auto"><strong>Feature summary</strong></p> <p dir="auto">I often feel the need to execute the code right after I see the example or tutorials. Having the examples hosted on google colab would certainly help in quickly running the code as well as it will allow beginners to run the code right on the browser if they have no prior experience with python notebook or command-line tools.</p>
<h1 dir="auto">Problem</h1> <p dir="auto">Matplotlib supports give or take around 60 unique chart types, but there's no distinct listing of these charts. The closest is a listing of all methods on Axes (<a href="https://matplotlib.org/api/axes_api.html?highlight=axes#basic" rel="nofollow">https://matplotlib.org/api/axes_api.html?highlight=axes#basic</a>) which intermixes other functionality. It's even harder to find the distinct chart types in the <a href="https://matplotlib.org/gallery/index.html" rel="nofollow">gallery</a>, where there are roughly 600? examples.</p> <h1 dir="auto">Proposal</h1> <p dir="auto">A new stand-alone sphinx gallery page where each plot type gets a minimal example of the form:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="data = np.array([list of concrete values]) fig, ax = plt.subplots() ax.plotting_method(data)"><pre class="notranslate"><span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s1">list</span> <span class="pl-s1">of</span> <span class="pl-s1">concrete</span> <span class="pl-s1">values</span>]) <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>() <span class="pl-s1">ax</span>.<span class="pl-en">plotting_method</span>(<span class="pl-s1">data</span>)</pre></div> <p dir="auto">no generated data, no tweaking of the parameters in the plot, just an out of the box this is what this plotting method does. intention is to manage issue via <a href="https://github.com/matplotlib/matplotlib/projects/10">https://github.com/matplotlib/matplotlib/projects/10</a> by</p> <ol dir="auto"> <li>creating notes for each plot type</li> <li>replacing with PRs as folks tackle them.</li> </ol> <h2 dir="auto">Optional</h2> <p dir="auto">Create a placeholder folder in the docs for PRs to target these examples so they're not waiting on the new gallery page.</p>
0
<h4 dir="auto">Manipulating Complex Objects</h4> <p dir="auto"><a href="https://www.freecodecamp.com/challenges/manipulating-complex-objects#" rel="nofollow">https://www.freecodecamp.com/challenges/manipulating-complex-objects#</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">The link to json.org is broken.</p> <p dir="auto"><a href="https://json.org/" rel="nofollow">https://json.org/</a> does not work.<br> Should be <a href="http://www.json.org/" rel="nofollow">http://www.json.org/</a>.</p>
<h4 dir="auto">Challenge Name</h4> <p dir="auto"><a href="https://www.freecodecamp.com/challenges/manipulating-complex-objects" rel="nofollow">https://www.freecodecamp.com/challenges/manipulating-complex-objects</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">When you click on the link labeled "JavaScript Object Notation", you get a ERR_SSL_PROTOCOL_ERROR.<br> In the source code, we have: "href='//json.org/'"<br> By default, the browser replaces "//" by "https://", but the Json.org page doesn't support SSL.<br> I advise to use "<a href="http://www.json.org/" rel="nofollow">http://www.json.org/</a>" instead.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Chrome (latest), but also reproduced with my Safari</li> <li>Operating System: Mac OS X</li> <li>Mobile, Desktop, or Tablet: Desktop</li> </ul> <h4 dir="auto">Your Code</h4> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <h4 dir="auto">Screenshot</h4>
1
<p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">Our team has used Three.JS to create a Virtual Tour content type that allows content authors to create interactions which enables the user to navigate around a scene, click on interactions and change to different scenes.</p> <p dir="auto">We've recently updated our this content type to work with labels which are 2d objects. However after testing in Safari we started to notice that lines would be drawn all over the scene from our labels. These lines go away when you hover over a label again however they keep on coming back and look quite distracting for a user.</p> <p dir="auto"><strong>Potential fix</strong></p> <p dir="auto">I found that by using whole numbers, rather than decimal numbers, for the pixel position of the buttons (which the labels that cause the issue are a child of). This would be done by adding <code class="notranslate">Math.round</code> <a href="https://github.com/mrdoob/three.js/blob/a543c8170cdaa32b635be97bec59fe2db76cdc78/examples/js/renderers/CSS2DRenderer.js#L96">twice on this line</a>. I've made the change on <a href="https://github.com/h5p/h5p-three-js/blob/release/three.min.js#L1398">our fork </a>of the Three.JS library and it has has issue has been gone since.</p> <p dir="auto">I was wondering if anyone had noticed any issue like this and if this fix is valid? Or if it's instead caused by another change we made somewhere.</p> <p dir="auto"><em><strong>Code</strong></em></p> <p dir="auto"><a href="https://github.com/h5p/h5p-three-image/tree/release">https://github.com/h5p/h5p-three-image/tree/release</a><br> <a href="https://github.com/h5p/h5p-three-js">https://github.com/h5p/h5p-three-js</a><br> <a href="https://github.com/h5p/h5p-three-sixty/tree/release">https://github.com/h5p/h5p-three-sixty/tree/release</a></p> <p dir="auto"><em><strong>Demo</strong></em></p> <p dir="auto"><a href="https://staging.h5p.org/node/622030" rel="nofollow">https://staging.h5p.org/node/622030</a></p> <p dir="auto"><strong>Screenshot and video</strong></p> <p dir="auto"><a href="https://www.screencast.com/t/1J7ZjSWc" rel="nofollow">https://www.screencast.com/t/1J7ZjSWc</a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1676635/110128427-0f160f80-7dc7-11eb-8e9e-52f975c53bfe.png"><img src="https://user-images.githubusercontent.com/1676635/110128427-0f160f80-7dc7-11eb-8e9e-52f975c53bfe.png" alt="Screenshot 2021-03-05 at 14 06 20" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Platform:</strong></p> <ul dir="auto"> <li>Device: [Desktop]</li> <li>OS: [MacOS]</li> <li>Browser: [Safari]</li> <li>Three.js version: [Not sure, but was updated Feb 2019]</li> </ul>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">When combining a webgl renderer with a cssrenderer (by punching holes through the webgl renderer to show the css renderer below, there is sometimes a missmatch between the renderers. It looks as if the cssRenderer has a slight offset compared to the webglrenderer. Interestingly enough, this happens on iPhoneX, but not iPhoneSE or iPad Mini4 and also not on android and desktop. Not sure about newer iPhones. The problem is especially present when looking at the css area at a very shallow angle.</p> <p dir="auto">The problem is not bound to the css object present (also tried it with a simple <a target="_blank" rel="noopener noreferrer" href=""><img style="max-width: 100%;"></a>).<br> There should be no white area around the youtube video:<br> <a href="https://youtu.be/SV2P5B5U1jg" rel="nofollow">Video</a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4518980/87684517-a1a76700-c782-11ea-8165-27c0bfe022f2.jpeg"><img src="https://user-images.githubusercontent.com/4518980/87684517-a1a76700-c782-11ea-8165-27c0bfe022f2.jpeg" alt="Screenshot 1" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4518980/87684522-a2d89400-c782-11ea-9446-15e20f08e0e7.jpeg"><img src="https://user-images.githubusercontent.com/4518980/87684522-a2d89400-c782-11ea-9446-15e20f08e0e7.jpeg" alt="Screenshot 3" style="max-width: 100%;"></a></p> <ul dir="auto"> <li><a href="https://codepen.io/JohannesDeml/pen/NWxdXEM" rel="nofollow">codepen</a> (latest release branch)</li> </ul> <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> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r118</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Safari</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"> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iPhone SE</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iPhone 8</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> iPhone X</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> iPhone 11 Pro</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> MacBook Pro with external High DPI Display</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> iMac</li> </ul>
1
<p dir="auto">I am facing similar issue but for GRU. I am using tensorflow 1.1.0 and I tried dumping the model in different ways:<br> a) saver = tf.train.Saver(tf.global_variables())<br> model_exporter = exporter.Exporter(saver)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" # Restore variables from training checkpoint # TODO: This restores the most recent checkpoint, but if we use validation to counterract # over-fitting, we may want to restore an earlier checkpoint. checkpoint = tf.train.get_checkpoint_state(FLAGS.checkpoint_dir) checkpoint_path = checkpoint.model_checkpoint_path saver.restore(session, checkpoint_path) log_info('Restored checkpoint at training epoch %d' % (int(checkpoint_path.split('-')[-1]) + 1)) # Initialise the model exporter and export the model model_exporter.init(session.graph.as_graph_def(), named_graph_signatures = { 'inputs': exporter.generic_signature( { 'input': input_tensor, 'input_lengths': seq_length}), 'outputs': exporter.generic_signature( { 'outputs': decoded})}) if FLAGS.remove_export: actual_export_dir = os.path.join(FLAGS.export_dir, '%08d' % FLAGS.export_version) if os.path.isdir(actual_export_dir): log_info('Removing old export') shutil.rmtree(actual_FLAGS.export_dir) try: # Export serving model model_exporter.export(FLAGS.export_dir, tf.constant(FLAGS.export_version), session) # Export graph input_graph_name = 'input_graph.pb' tf.train.write_graph(session.graph, FLAGS.export_dir, input_graph_name, as_text=False) # Freeze graph input_graph_path = os.path.join(FLAGS.export_dir, input_graph_name) input_saver_def_path = '' input_binary = True output_node_names = 'output_node' restore_op_name = 'save/restore_all' filename_tensor_name = 'save/Const:0' output_graph_path = os.path.join(FLAGS.export_dir, 'output_graph.pb') clear_devices = False freeze_graph.freeze_graph(input_graph_path, input_saver_def_path, input_binary, checkpoint_path, output_node_names, restore_op_name, filename_tensor_name, output_graph_path, clear_devices, '')"><pre class="notranslate"><code class="notranslate"> # Restore variables from training checkpoint # TODO: This restores the most recent checkpoint, but if we use validation to counterract # over-fitting, we may want to restore an earlier checkpoint. checkpoint = tf.train.get_checkpoint_state(FLAGS.checkpoint_dir) checkpoint_path = checkpoint.model_checkpoint_path saver.restore(session, checkpoint_path) log_info('Restored checkpoint at training epoch %d' % (int(checkpoint_path.split('-')[-1]) + 1)) # Initialise the model exporter and export the model model_exporter.init(session.graph.as_graph_def(), named_graph_signatures = { 'inputs': exporter.generic_signature( { 'input': input_tensor, 'input_lengths': seq_length}), 'outputs': exporter.generic_signature( { 'outputs': decoded})}) if FLAGS.remove_export: actual_export_dir = os.path.join(FLAGS.export_dir, '%08d' % FLAGS.export_version) if os.path.isdir(actual_export_dir): log_info('Removing old export') shutil.rmtree(actual_FLAGS.export_dir) try: # Export serving model model_exporter.export(FLAGS.export_dir, tf.constant(FLAGS.export_version), session) # Export graph input_graph_name = 'input_graph.pb' tf.train.write_graph(session.graph, FLAGS.export_dir, input_graph_name, as_text=False) # Freeze graph input_graph_path = os.path.join(FLAGS.export_dir, input_graph_name) input_saver_def_path = '' input_binary = True output_node_names = 'output_node' restore_op_name = 'save/restore_all' filename_tensor_name = 'save/Const:0' output_graph_path = os.path.join(FLAGS.export_dir, 'output_graph.pb') clear_devices = False freeze_graph.freeze_graph(input_graph_path, input_saver_def_path, input_binary, checkpoint_path, output_node_names, restore_op_name, filename_tensor_name, output_graph_path, clear_devices, '') </code></pre></div> <p dir="auto">b) output_graph_def = graph_util.convert_variables_to_constants(session, session.graph.as_graph_def(), ['output_node'])<br> with gfile.FastGFile('./data/ldc93s1/output_graph2.pb', 'wb') as f:<br> f.write(output_graph_def.SerializeToString())</p> <p dir="auto">but for both the dump I get the following error: -<br> 'rnn/while/multi_rnn_cell/cell_0/gru_cell/gates/r/cond/rnn/while/multi_rnn_cell/cell_0/gru_cell/gates/r/strided_slice/_assign/RefEnter': Input tensor 'rnn/multi_rnn_cell/cell_0/gru_cell/gates/r/pop_mean:0' <strong>Cannot convert a tensor of type float32 to an input of type float32_ref</strong></p> <p dir="auto">Any solution so far?<br> I followed the similar bug but that is specifically related to Batch norm <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169195660" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/3628" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/3628/hovercard" href="https://github.com/tensorflow/tensorflow/issues/3628">#3628</a> . And what is the reason behind this??</p>
<p dir="auto">Please go to Stack Overflow for help and support:</p> <p dir="auto"><a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">https://stackoverflow.com/questions/tagged/tensorflow</a></p> <p dir="auto">If you open a GitHub issue, here is our policy:</p> <ol dir="auto"> <li>It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).</li> <li>The form below must be filled out.</li> <li>It shouldn't be a TensorBoard issue. Those go <a href="https://github.com/tensorflow/tensorboard/issues">here</a>.</li> </ol> <p dir="auto"><strong>Here's why we have that policy</strong>: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.</p> <hr> <h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: yes</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:</li> <li><strong>TensorFlow installed from (source or binary)</strong>:</li> <li><strong>TensorFlow version (use command below)</strong>:</li> <li><strong>Python version</strong>:</li> <li><strong>Bazel version (if compiling from source)</strong>:</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:</li> <li><strong>CUDA/cuDNN version</strong>:</li> <li><strong>GPU model and memory</strong>:</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <p dir="auto">You can collect some of this information using our environment capture script:</p> <p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p> <p dir="auto">You can obtain the TensorFlow version with</p> <p dir="auto">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Reporting issues raise in this stackoverflow question:<br> <a href="https://stackoverflow.com/questions/50758110/warm-start-with-distribute-mirroredstrategy-and-tf-estimator" rel="nofollow">https://stackoverflow.com/questions/50758110/warm-start-with-distribute-mirroredstrategy-and-tf-estimator</a>:</p> <ol dir="auto"> <li>tf.train.init_from_checkpoint doesn't work well with MirroredStrategy</li> <li>tf.estimator.WarmStartSettings with Estimator doesn't work with MirroredStrategy</li> </ol> <h3 dir="auto">Source code / logs</h3> <p dir="auto">See code snippets and error messages in this stack overflow page:<br> <a href="https://stackoverflow.com/questions/50758110/warm-start-with-distribute-mirroredstrategy-and-tf-estimator" rel="nofollow">https://stackoverflow.com/questions/50758110/warm-start-with-distribute-mirroredstrategy-and-tf-estimator</a></p> <p dir="auto">The root cause is that we haven't modified these 2 paths for restoring from checkpoints to work with mirrored variables. So we need to do 2 things:</p> <ol dir="auto"> <li>Use the appropriate method to restore mirrored variables in these codepaths - either via distribution.update or by using Saver (see Allen's suggestion below).</li> <li>if the restoring is happening in tower context(for e.g. when init_from_checkpoint is called in model_fn), then we may need to first enter cross tower context before restoring.</li> </ol> <p dir="auto">Suggestion for addressing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115886302" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1">#1</a> from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/allenlavoie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/allenlavoie">@allenlavoie</a> :<br> Do the same <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/training/saver.py#L531">SaveableObject extraction as Saver</a> in warm_start, then just call SaveableObject.restore() with the Tensor instead of using .assign. This will work for MirroredVariables and whatever else is checkpointable (and means that to work with both, new objects only need to do the checkpointable thing). Potentially we could just call <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/training/saver.py#L573">SaveableObjectsForOp</a> for everything including variables.</p>
0
<p dir="auto">i have a nvidia 1070 gpu/8G memory, i have a pytorch model for inference, and i directly run it the gpu memory cost as follow<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6283983/48594685-92a85a00-e98c-11e8-8270-e53264439789.png"><img src="https://user-images.githubusercontent.com/6283983/48594685-92a85a00-e98c-11e8-8270-e53264439789.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">then i first load the model and then use follow code to do jit trace, and use jit module run the gpu memory cost as follow<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6283983/48594713-bb305400-e98c-11e8-8031-cac04988b4a2.png"><img src="https://user-images.githubusercontent.com/6283983/48594713-bb305400-e98c-11e8-8031-cac04988b4a2.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6283983/48594734-d3a06e80-e98c-11e8-8208-2ce3d6e9afd2.png"><img src="https://user-images.githubusercontent.com/6283983/48594734-d3a06e80-e98c-11e8-8208-2ce3d6e9afd2.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>### when i use pytorch c++ api to load the saved jit trace model.pt error as follow, does c++ need more gpu memory?</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6283983/48594777-05193a00-e98d-11e8-866d-1adf6273aed2.png"><img src="https://user-images.githubusercontent.com/6283983/48594777-05193a00-e98d-11e8-866d-1adf6273aed2.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">when i gdb the c++ example and step by step to the forward() cause fault, and gpu memory as follow<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6283983/48594961-d354a300-e98d-11e8-90f4-b99d8df1651d.png"><img src="https://user-images.githubusercontent.com/6283983/48594961-d354a300-e98d-11e8-90f4-b99d8df1651d.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Issue description</h2> <p dir="auto">I got an error when trying to build pytorch from source. It looks like the error is related to nccl. The system info and complete log is provided below.</p> <h2 dir="auto">System Info</h2> <p dir="auto">Collecting environment information...<br> PyTorch version: N/A<br> Is debug build: N/A<br> CUDA used to build PyTorch: N/A</p> <p dir="auto">OS: Red Hat Enterprise Linux Server release 6.9 (Santiago)<br> GCC version: (GCC) 6.4.0<br> CMake version: version 3.12.2</p> <p dir="auto">Python version: 3.7<br> Is CUDA available: N/A<br> CUDA runtime version: 9.2.148<br> GPU models and configuration:<br> GPU 0: Tesla V100-PCIE-16GB<br> GPU 1: Tesla V100-PCIE-16GB</p> <p dir="auto">Nvidia driver version: 396.51<br> cuDNN version: Could not collect</p> <p dir="auto">Versions of relevant libraries:<br> [pip] numpy==1.16.2<br> [conda] blas 1.0 mkl<br> [conda] magma-cuda92 2.4.0 1 pytorch<br> [conda] mkl 2019.1 144<br> [conda] mkl-include 2019.1 144<br> [conda] mkl_fft 1.0.10 py37ha843d7b_0<br> [conda] mkl_random 1.0.2 py37hd81dba3_0</p> <h2 dir="auto">Log</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Building wheel torch-1.1.0a0+3b5ddaf -- Building version 1.1.0a0+3b5ddaf ['cmake', '/worka/work/derick/github/pytorch', '-DBUILDING_WITH_TORCH_LIBS=ON', '-DBUILD_BINARY=False', '-DBUILD_CAFFE2_OPS=True', '-DBUILD_PYTHON=True', '-DBUILD_SHARED_LIBS=ON', '-DBUILD_TEST=True', '-DBUILD_TORCH=ON', '-DCAFFE2_STATIC_LINK_CUDA=False', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_CXX_FLAGS= ', '-DCMAKE_C_FLAGS= ', '-DCMAKE_EXE_LINKER_FLAGS=', '-DCMAKE_INSTALL_PREFIX=/worka/work/derick/github/pytorch/torch', '-DCMAKE_PREFIX_PATH=/home/derick/.conda/envs/pytorch1/lib/python3.7/site-packages', '-DCMAKE_SHARED_LINKER_FLAGS=', '-DINSTALL_TEST=True', '-DNCCL_EXTERNAL=True', '-DNUMPY_INCLUDE_DIR=/home/derick/.conda/envs/pytorch1/lib/python3.7/site-packages/numpy/core/include', '-DONNX_ML=False', '-DONNX_NAMESPACE=onnx_torch', '-DPYTHON_EXECUTABLE=/home/derick/.conda/envs/pytorch1/bin/python', '-DPYTHON_INCLUDE_DIR=/home/derick/.conda/envs/pytorch1/include/python3.7m', '-DPYTHON_LIBRARY=/home/derick/.conda/envs/pytorch1/lib/libpython3.7m.so.1.0', '-DTHD_SO_VERSION=1', '-DTORCH_BUILD_VERSION=1.1.0a0+3b5ddaf', '-DUSE_CUDA=True', '-DUSE_DISTRIBUTED=True', '-DUSE_FBGEMM=True', '-DUSE_FFMPEG=False', '-DUSE_LEVELDB=False', '-DUSE_LMDB=False', '-DUSE_MKLDNN=True', '-DUSE_NCCL=True', '-DUSE_NNPACK=True', '-DUSE_NUMPY=True', '-DUSE_OPENCV=False', '-DUSE_QNNPACK=True', '-DUSE_ROCM=False', '-DUSE_SYSTEM_EIGEN_INSTALL=OFF', '-DUSE_SYSTEM_NCCL=False', '-DUSE_TENSORRT=False', '-DMKLDNN_ENABLE_CONCURRENT_EXEC=ON'] -- The CXX compiler identification is GNU 6.4.0 -- The C compiler identification is GNU 6.4.0 -- Check for working CXX compiler: /usr/local/compilers/gcc/6.4.0/bin/c++ -- Check for working CXX compiler: /usr/local/compilers/gcc/6.4.0/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler: /usr/local/compilers/gcc/6.4.0/bin/gcc -- Check for working C compiler: /usr/local/compilers/gcc/6.4.0/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Not forcing any particular BLAS to be found -- Performing Test COMPILER_WORKS -- Performing Test COMPILER_WORKS - Success -- Performing Test SUPPORT_GLIBCXX_USE_C99 -- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success -- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED -- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success -- std::exception_ptr is supported. -- Performing Test CAFFE2_IS_NUMA_AVAILABLE -- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Success -- NUMA is available -- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING -- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed -- Turning off deprecation warning due to glog. -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Failed -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Failed -- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY -- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_SUPPORTS_RDYNAMIC -- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success -- Building using own protobuf under third_party per request. -- Use custom protobuf build. -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Caffe2 protobuf include directory: $&lt;BUILD_INTERFACE:/worka/work/derick/github/pytorch/third_party/protobuf/src&gt;$&lt;INSTALL_INTERFACE:include&gt; -- Trying to find preferred BLAS backend of choice: MKL -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void* -- Check size of void* - done -- Looking for cblas_sgemm -- Looking for cblas_sgemm - found -- MKL libraries: /home/derick/.conda/envs/pytorch1/lib/libmkl_intel_lp64.so;/home/derick/.conda/envs/pytorch1/lib/libmkl_gnu_thread.so;/home/derick/.conda/envs/pytorch1/lib/libmkl_core.so;-fopenmp;/usr/lib64/libpthread.so;/usr/lib64/libm.so;/usr/lib64/libdl.so -- MKL include directory: /home/derick/.conda/envs/pytorch1/include -- MKL OpenMP type: GNU -- MKL OpenMP library: -fopenmp -- The ASM compiler identification is GNU -- Found assembler: /usr/local/compilers/gcc/6.4.0/bin/gcc -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Brace yourself, we are building NNPACK -- Found PythonInterp: /home/derick/.conda/envs/pytorch1/bin/python (found version &quot;3.7.2&quot;) -- Failed to find LLVM FileCheck -- Found Git: /usr/bin/git (found version &quot;1.7.1&quot;) -- git Version: v1.4.0-505be96a -- Version: 1.4.0 -- Performing Test HAVE_CXX_FLAG_STD_CXX11 -- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success -- Performing Test HAVE_CXX_FLAG_WALL -- Performing Test HAVE_CXX_FLAG_WALL - Success -- Performing Test HAVE_CXX_FLAG_WEXTRA -- Performing Test HAVE_CXX_FLAG_WEXTRA - Success -- Performing Test HAVE_CXX_FLAG_WSHADOW -- Performing Test HAVE_CXX_FLAG_WSHADOW - Success -- Performing Test HAVE_CXX_FLAG_WERROR -- Performing Test HAVE_CXX_FLAG_WERROR - Success -- Performing Test HAVE_CXX_FLAG_PEDANTIC -- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed -- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL -- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success -- Performing Test HAVE_CXX_FLAG_WD654 -- Performing Test HAVE_CXX_FLAG_WD654 - Failed -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed -- Performing Test HAVE_CXX_FLAG_COVERAGE -- Performing Test HAVE_CXX_FLAG_COVERAGE - Success -- Performing Test HAVE_STD_REGEX -- Performing Test HAVE_STD_REGEX -- Performing Test HAVE_STD_REGEX -- success -- Performing Test HAVE_GNU_POSIX_REGEX -- Performing Test HAVE_GNU_POSIX_REGEX -- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile -- Performing Test HAVE_POSIX_REGEX -- Performing Test HAVE_POSIX_REGEX -- Performing Test HAVE_POSIX_REGEX -- success -- Performing Test HAVE_STEADY_CLOCK -- Performing Test HAVE_STEADY_CLOCK -- Performing Test HAVE_STEADY_CLOCK -- success CMake Warning at cmake/Dependencies.cmake:362 (message): A compiler with AVX512 support is required for FBGEMM. Not compiling with FBGEMM. Turn this warning off by USE_FBGEMM=OFF. Call Stack (most recent call first): CMakeLists.txt:229 (include) -- Found Numa: /usr/include -- Found Numa (include: /usr/include, library: /usr/lib64/libnuma.so) -- Using third party subdirectory Eigen. Python 3.7.2 -- Found PythonInterp: /home/derick/.conda/envs/pytorch1/bin/python (found suitable version &quot;3.7.2&quot;, minimum required is &quot;2.7&quot;) -- Found PythonLibs: /home/derick/.conda/envs/pytorch1/lib/libpython3.7m.so.1.0 (found suitable version &quot;3.7.2&quot;, minimum required is &quot;2.7&quot;) -- Could NOT find pybind11 (missing: pybind11_DIR) -- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR) -- Using third_party/pybind11. -- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS) -- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) CMake Warning at cmake/Dependencies.cmake:670 (message): Not compiling with MPI. Suppress this warning with -DUSE_MPI=OFF Call Stack (most recent call first): CMakeLists.txt:229 (include) -- Adding OpenMP CXX_FLAGS: -fopenmp -- Will link against OpenMP libraries: /usr/local/compilers/gcc/6.4.0/lib64/libgomp.so;/usr/lib64/libpthread.so -- Found CUDA: /usr/local/packages/cuda/9.2 (found version &quot;9.2&quot;) -- Caffe2: CUDA detected: 9.2 -- Caffe2: CUDA nvcc is: /usr/local/packages/cuda/9.2/bin/nvcc -- Caffe2: CUDA toolkit directory: /usr/local/packages/cuda/9.2 -- Caffe2: Header version is: 9.2 -- Could NOT find CUDNN (missing: CUDNN_INCLUDE_DIR CUDNN_LIBRARY) CMake Warning at cmake/public/cuda.cmake:110 (message): Caffe2: Cannot find cuDNN library. Turning the option off Call Stack (most recent call first): cmake/Dependencies.cmake:735 (include) CMakeLists.txt:229 (include) -- Autodetected CUDA architecture(s): 7.0;7.0 -- Added CUDA NVCC flags for: -gencode;arch=compute_70,code=sm_70 -- Could NOT find CUB (missing: CUB_INCLUDE_DIR) -- Found CUDA: /usr/local/packages/cuda/9.2 (found suitable version &quot;9.2&quot;, minimum required is &quot;7.0&quot;) -- CUDA detected: 9.2 CMake Warning at cmake/Dependencies.cmake:994 (message): Metal is only used in ios builds. Call Stack (most recent call first): CMakeLists.txt:229 (include) -- -- ******** Summary ******** -- CMake version : 3.12.2 -- CMake command : /home/derick/.conda/envs/pytorch1/bin/cmake -- System : Linux -- C++ compiler : /usr/local/compilers/gcc/6.4.0/bin/c++ -- C++ compiler version : 6.4.0 -- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -Wnon-virtual-dtor -- Build type : Release -- Compile definitions : TH_BLAS_MKL -- CMAKE_PREFIX_PATH : /home/derick/.conda/envs/pytorch1/lib/python3.7/site-packages -- CMAKE_INSTALL_PREFIX : /worka/work/derick/github/pytorch/torch -- CMAKE_MODULE_PATH : /worka/work/derick/github/pytorch/cmake/Modules;/worka/work/derick/github/pytorch/cmake/public/../Modules_CUDA_fix -- -- ONNX version : 1.4.1 -- ONNX NAMESPACE : onnx_torch -- ONNX_BUILD_TESTS : OFF -- ONNX_BUILD_BENCHMARKS : OFF -- ONNX_USE_LITE_PROTO : OFF -- ONNXIFI_DUMMY_BACKEND : OFF -- ONNXIFI_ENABLE_EXT : OFF -- -- Protobuf compiler : -- Protobuf includes : -- Protobuf libraries : -- BUILD_ONNX_PYTHON : OFF -- -- ******** Summary ******** -- CMake version : 3.12.2 -- CMake command : /home/derick/.conda/envs/pytorch1/bin/cmake -- System : Linux -- C++ compiler : /usr/local/compilers/gcc/6.4.0/bin/c++ -- C++ compiler version : 6.4.0 -- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -Wnon-virtual-dtor -- Build type : Release -- Compile definitions : TH_BLAS_MKL -- CMAKE_PREFIX_PATH : /home/derick/.conda/envs/pytorch1/lib/python3.7/site-packages -- CMAKE_INSTALL_PREFIX : /worka/work/derick/github/pytorch/torch -- CMAKE_MODULE_PATH : /worka/work/derick/github/pytorch/cmake/Modules;/worka/work/derick/github/pytorch/cmake/public/../Modules_CUDA_fix -- -- ONNX version : 1.4.1 -- ONNX NAMESPACE : onnx_torch -- ONNX_BUILD_TESTS : OFF -- ONNX_BUILD_BENCHMARKS : OFF -- ONNX_USE_LITE_PROTO : OFF -- ONNXIFI_DUMMY_BACKEND : OFF -- -- Protobuf compiler : -- Protobuf includes : -- Protobuf libraries : -- BUILD_ONNX_PYTHON : OFF -- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor -- Removing -DNDEBUG from compile flags -- Checking prototype magma_get_sgeqrf_nb for MAGMA_V2 - True -- Compiling with MAGMA support -- MAGMA INCLUDE DIRECTORIES: /home/derick/.conda/envs/pytorch1/include -- MAGMA LIBRARIES: /home/derick/.conda/envs/pytorch1/lib/libmagma.a -- MAGMA V2 check: 1 -- Could not find hardware support for NEON on this machine. -- No OMAP3 processor on this machine. -- No OMAP4 processor on this machine. -- Looking for cpuid.h -- Looking for cpuid.h - found -- Performing Test HAVE_GCC_GET_CPUID -- Performing Test HAVE_GCC_GET_CPUID - Success -- Performing Test NO_GCC_EBX_FPIC_BUG -- Performing Test NO_GCC_EBX_FPIC_BUG - Success -- Performing Test C_HAS_AVX_1 -- Performing Test C_HAS_AVX_1 - Failed -- Performing Test C_HAS_AVX_2 -- Performing Test C_HAS_AVX_2 - Success -- Performing Test C_HAS_AVX2_1 -- Performing Test C_HAS_AVX2_1 - Failed -- Performing Test C_HAS_AVX2_2 -- Performing Test C_HAS_AVX2_2 - Failed -- Performing Test C_HAS_AVX2_3 -- Performing Test C_HAS_AVX2_3 - Failed -- Performing Test CXX_HAS_AVX_1 -- Performing Test CXX_HAS_AVX_1 - Failed -- Performing Test CXX_HAS_AVX_2 -- Performing Test CXX_HAS_AVX_2 - Success -- Performing Test CXX_HAS_AVX2_1 -- Performing Test CXX_HAS_AVX2_1 - Failed -- Performing Test CXX_HAS_AVX2_2 -- Performing Test CXX_HAS_AVX2_2 - Failed -- Performing Test CXX_HAS_AVX2_3 -- Performing Test CXX_HAS_AVX2_3 - Failed -- AVX compiler support found -- Performing Test HAS_C11_ATOMICS -- Performing Test HAS_C11_ATOMICS - Failed -- Performing Test HAS_MSC_ATOMICS -- Performing Test HAS_MSC_ATOMICS - Failed -- Performing Test HAS_GCC_ATOMICS -- Performing Test HAS_GCC_ATOMICS - Success -- Atomics: using GCC intrinsics -- Performing Test BLAS_F2C_DOUBLE_WORKS -- Performing Test BLAS_F2C_DOUBLE_WORKS - Failed -- Performing Test BLAS_F2C_FLOAT_WORKS -- Performing Test BLAS_F2C_FLOAT_WORKS - Success -- Performing Test BLAS_USE_CBLAS_DOT -- Performing Test BLAS_USE_CBLAS_DOT - Success -- Found a library with BLAS API (mkl). -- Found a library with LAPACK API (mkl). -- CuDNN not found. Compiling without CuDNN support disabling ROCM because NOT USE_ROCM is set -- MIOpen not found. Compiling without MIOpen support -- Found OpenMP_C: -fopenmp (found version &quot;4.5&quot;) -- Found OpenMP_CXX: -fopenmp (found version &quot;4.5&quot;) -- Found OpenMP: TRUE (found version &quot;4.5&quot;) -- OpenMP lib: provided by compiler -- Found Doxygen: /usr/bin/doxygen (found version &quot;1.6.1&quot;) found components: doxygen missing components: dot -- VTune profiling environment is unset -- Found MKL-DNN: TRUE -- Looking for clock_gettime in rt -- Looking for clock_gettime in rt - found -- Looking for mmap -- Looking for mmap - found -- Looking for shm_open -- Looking for shm_open - found -- Looking for shm_unlink -- Looking for shm_unlink - found -- Looking for malloc_usable_size -- Looking for malloc_usable_size - found -- Performing Test C_HAS_THREAD -- Performing Test C_HAS_THREAD - Success -- GCC 6.4.0: Adding gcc and gcc_s libs to link line -- NUMA paths: -- /usr/include -- /usr/lib64/libnuma.so -- Check size of long double -- Check size of long double - done -- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE -- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE - Success -- Performing Test COMPILER_SUPPORTS_FLOAT128 -- Performing Test COMPILER_SUPPORTS_FLOAT128 - Success -- Performing Test COMPILER_SUPPORTS_SSE2 -- Performing Test COMPILER_SUPPORTS_SSE2 - Success -- Performing Test COMPILER_SUPPORTS_SSE4 -- Performing Test COMPILER_SUPPORTS_SSE4 - Success -- Performing Test COMPILER_SUPPORTS_AVX -- Performing Test COMPILER_SUPPORTS_AVX - Success -- Performing Test COMPILER_SUPPORTS_FMA4 -- Performing Test COMPILER_SUPPORTS_FMA4 - Success -- Performing Test COMPILER_SUPPORTS_AVX2 -- Performing Test COMPILER_SUPPORTS_AVX2 - Failed -- Performing Test COMPILER_SUPPORTS_SVE -- Performing Test COMPILER_SUPPORTS_SVE - Failed -- Performing Test COMPILER_SUPPORTS_AVX512F -- Performing Test COMPILER_SUPPORTS_AVX512F - Failed -- Performing Test COMPILER_SUPPORTS_OPENMP -- Performing Test COMPILER_SUPPORTS_OPENMP - Success -- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES -- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES - Success -- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH -- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH - Success -- Configuring build for SLEEF-v3.2 Target system: Linux-2.6.32-696.23.1.el6.x86_64 Target processor: x86_64 Host system: Linux-2.6.32-696.23.1.el6.x86_64 Host processor: x86_64 Detected C compiler: GNU @ /usr/local/compilers/gcc/6.4.0/bin/gcc -- Using option `-Wall -Wno-unused -Wno-attributes -Wno-unused-result -Wno-psabi -ffp-contract=off -fno-math-errno -fno-trapping-math` to compile libsleef -- Building shared libs : OFF -- MPFR : LIB_MPFR-NOTFOUND -- GMP : /usr/lib64/libgmp.so -- RUNNING_ON_TRAVIS : 0 -- COMPILER_SUPPORTS_OPENMP : 1 -- pytorch is compiling with OpenMP. OpenMP CXX_FLAGS: -fopenmp. OpenMP libraries: /usr/local/compilers/gcc/6.4.0/lib64/libgomp.so;/usr/lib64/libpthread.so. -- /usr/local/compilers/gcc/6.4.0/bin/c++ /worka/work/derick/github/pytorch/torch/abi-check.cpp -o /worka/work/derick/github/pytorch/build/abi-check -- Determined _GLIBCXX_USE_CXX11_ABI=1 -- Performing Test HAS_THREAD_LOCAL -- Performing Test HAS_THREAD_LOCAL - Success -- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS) -- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) -- Found CUDA: /usr/local/packages/cuda/9.2 (found suitable version &quot;9.2&quot;, minimum required is &quot;7.5&quot;) -- Building the gloo backend with TCP support only -- Found CUDA: /usr/local/packages/cuda/9.2 (found version &quot;9.2&quot;) -- Building C10D with CUDA support -- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS) -- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) -- Not able to find MPI, will compile c10d without MPI support -- Include NCCL operators -- Including IDEEP operators -- Excluding image processing operators due to no opencv -- Excluding video processing operators due to no opencv -- MPI operators skipped due to no MPI support -- Include Observer library -- Caffe2 is compiling with OpenMP. OpenMP CXX_FLAGS: -fopenmp. OpenMP libraries: /usr/local/compilers/gcc/6.4.0/lib64/libgomp.so;/usr/lib64/libpthread.so. -- Using lib/python3.7/site-packages as python relative installation path CMake Warning at CMakeLists.txt:426 (message): Generated cmake files are only fully tested if one builds with system glog, gflags, and protobuf. Other settings may generate files that are not well tested. -- -- ******** Summary ******** -- General: -- CMake version : 3.12.2 -- CMake command : /home/derick/.conda/envs/pytorch1/bin/cmake -- System : Linux -- C++ compiler : /usr/local/compilers/gcc/6.4.0/bin/c++ -- C++ compiler id : GNU -- C++ compiler version : 6.4.0 -- BLAS : MKL -- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wno-unused-but-set-variable -Wno-maybe-uninitialized -- Build type : Release -- Compile definitions : TH_BLAS_MKL;ONNX_NAMESPACE=onnx_torch;MAGMA_V2;USE_GCC_ATOMICS=1;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1 -- CMAKE_PREFIX_PATH : /home/derick/.conda/envs/pytorch1/lib/python3.7/site-packages -- CMAKE_INSTALL_PREFIX : /worka/work/derick/github/pytorch/torch -- -- TORCH_VERSION : 1.1.0 -- CAFFE2_VERSION : 1.1.0 -- BUILD_ATEN_MOBILE : OFF -- BUILD_ATEN_ONLY : OFF -- BUILD_BINARY : False -- BUILD_CUSTOM_PROTOBUF : ON -- Link local protobuf : ON -- BUILD_DOCS : OFF -- BUILD_PYTHON : True -- Python version : 3.7.2 -- Python executable : /home/derick/.conda/envs/pytorch1/bin/python -- Pythonlibs version : 3.7.2 -- Python library : /home/derick/.conda/envs/pytorch1/lib/libpython3.7m.so.1.0 -- Python includes : /home/derick/.conda/envs/pytorch1/include/python3.7m -- Python site-packages: lib/python3.7/site-packages -- BUILD_CAFFE2_OPS : True -- BUILD_SHARED_LIBS : ON -- BUILD_TEST : True -- USE_ASAN : OFF -- USE_CUDA : True -- CUDA static link : False -- USE_CUDNN : OFF -- CUDA version : 9.2 -- CUDA root directory : /usr/local/packages/cuda/9.2 -- CUDA library : /usr/local/packages/cuda/9.2/lib64/stubs/libcuda.so -- cudart library : /usr/local/packages/cuda/9.2/lib64/libcudart.so -- cublas library : /usr/local/packages/cuda/9.2/lib64/libcublas.so -- cufft library : /usr/local/packages/cuda/9.2/lib64/libcufft.so -- curand library : /usr/local/packages/cuda/9.2/lib64/libcurand.so -- nvrtc : /usr/local/packages/cuda/9.2/lib64/libnvrtc.so -- CUDA include path : /usr/local/packages/cuda/9.2/include -- NVCC executable : /usr/local/packages/cuda/9.2/bin/nvcc -- CUDA host compiler : /usr/local/compilers/gcc/6.4.0/bin/gcc -- USE_TENSORRT : OFF -- USE_ROCM : False -- USE_EIGEN_FOR_BLAS : -- USE_FBGEMM : OFF -- USE_FFMPEG : False -- USE_GFLAGS : OFF -- USE_GLOG : OFF -- USE_LEVELDB : False -- USE_LITE_PROTO : OFF -- USE_LMDB : False -- USE_METAL : OFF -- USE_MKL : ON -- USE_MKLDNN : ON -- USE_NCCL : True -- USE_SYSTEM_NCCL : False -- USE_NNPACK : True -- USE_NUMPY : ON -- USE_OBSERVERS : ON -- USE_OPENCL : OFF -- USE_OPENCV : False -- USE_OPENMP : ON -- USE_PROF : OFF -- USE_QNNPACK : True -- USE_REDIS : OFF -- USE_ROCKSDB : OFF -- USE_ZMQ : OFF -- USE_DISTRIBUTED : True -- USE_MPI : OFF -- USE_GLOO : ON -- USE_GLOO_IBVERBS : OFF -- Public Dependencies : Threads::Threads;caffe2::mkl;caffe2::mkldnn -- Private Dependencies : qnnpack;nnpack;cpuinfo;/usr/lib64/libnuma.so;fp16;gloo;aten_op_header_gen;foxi_loader;rt;gcc_s;gcc;dl -- Configuring done CMake Warning at caffe2/CMakeLists.txt:214 (add_library): Cannot generate a safe runtime search path for target caffe2 because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. CMake Warning at torch/CMakeLists.txt:260 (add_library): Cannot generate a safe runtime search path for target torch because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. CMake Warning at torch/CMakeLists.txt:718 (add_library): Cannot generate a safe runtime search path for target torch_python because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. CMake Warning at test/cpp/jit/CMakeLists.txt:3 (add_executable): Cannot generate a safe runtime search path for target test_jit because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. CMake Warning at test/cpp/api/CMakeLists.txt:30 (add_executable): Cannot generate a safe runtime search path for target test_api because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. CMake Warning at cmake/Modules_CUDA_fix/upstream/FindCUDA.cmake:1839 (add_library): Cannot generate a safe linker search path for target caffe2_detectron_ops_gpu because files in some directories may conflict with libraries in implicit directories: link library [libgomp.so] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. Call Stack (most recent call first): modules/detectron/CMakeLists.txt:13 (CUDA_ADD_LIBRARY) CMake Warning at cmake/Modules_CUDA_fix/upstream/FindCUDA.cmake:1839 (add_library): Cannot generate a safe runtime search path for target caffe2_detectron_ops_gpu because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. Call Stack (most recent call first): modules/detectron/CMakeLists.txt:13 (CUDA_ADD_LIBRARY) -- Generating done CMake Warning: Manually-specified variables were not used by the project: THD_SO_VERSION -- Build files have been written to: /worka/work/derick/github/pytorch/build Scanning dependencies of target nccl_external Scanning dependencies of target benchmark Scanning dependencies of target libprotobuf-lite Scanning dependencies of target gtest Scanning dependencies of target pthreadpool Scanning dependencies of target gloo Scanning dependencies of target ATEN_CPU_FILES_GEN_TARGET Scanning dependencies of target ATEN_CUDA_FILES_GEN_TARGET Scanning dependencies of target mkdisp Scanning dependencies of target mkmasked_gnuabi Scanning dependencies of target mkrename_gnuabi Scanning dependencies of target thnvrtc Scanning dependencies of target clog Scanning dependencies of target common Scanning dependencies of target libprotobuf Scanning dependencies of target arraymap Scanning dependencies of target python_copy_files Scanning dependencies of target foxi_loader Scanning dependencies of target mkldnn Scanning dependencies of target c10 Scanning dependencies of target onnxifi_loader Scanning dependencies of target onnxifi_dummy [ 0%] Creating directories for 'nccl_external' Scanning dependencies of target mkrename Scanning dependencies of target foxi_dummy Scanning dependencies of target mkalias [ 0%] Building C object sleef/src/libm/CMakeFiles/mkrename.dir/mkrename.c.o [ 0%] Building C object confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/threadpool-pthreads.c.o [ 0%] Building C object confu-deps/clog/CMakeFiles/clog.dir/src/clog.c.o [ 0%] Building C object sleef/src/libm/CMakeFiles/mkmasked_gnuabi.dir/mkmasked_gnuabi.c.o [ 0%] Generating ../aten/src/ATen/CPUBoolType.cpp, ../aten/src/ATen/CPUBoolType.h, ../aten/src/ATen/CPUByteType.cpp, ../aten/src/ATen/CPUByteType.h, ../aten/src/ATen/CPUCharType.cpp, ../aten/src/ATen/CPUCharType.h, ../aten/src/ATen/CPUDoubleType.cpp, ../aten/src/ATen/CPUDoubleType.h, ../aten/src/ATen/CPUFloatType.cpp, ../aten/src/ATen/CPUFloatType.h, ../aten/src/ATen/CPUGenerator.h, ../aten/src/ATen/CPUHalfType.cpp, ../aten/src/ATen/CPUHalfType.h, ../aten/src/ATen/CPUIntType.cpp, ../aten/src/ATen/CPUIntType.h, ../aten/src/ATen/CPULongType.cpp, ../aten/src/ATen/CPULongType.h, ../aten/src/ATen/CPUShortType.cpp, ../aten/src/ATen/CPUShortType.h, ../aten/src/ATen/Declarations.yaml, ../aten/src/ATen/ExtensionBackendRegistration.h, ../aten/src/ATen/Functions.h, ../aten/src/ATen/LegacyTHCPUBoolDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUBoolDispatcher.h, ../aten/src/ATen/LegacyTHCPUByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUByteDispatcher.h, ../aten/src/ATen/LegacyTHCPUCharDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUCharDispatcher.h, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.h, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.h, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.h, ../aten/src/ATen/LegacyTHCPUIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUIntDispatcher.h, ../aten/src/ATen/LegacyTHCPULongDispatcher.cpp, ../aten/src/ATen/LegacyTHCPULongDispatcher.h, ../aten/src/ATen/LegacyTHCPUShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUShortDispatcher.h, ../aten/src/ATen/LegacyTHDispatcher.cpp, ../aten/src/ATen/LegacyTHDispatcher.h, ../aten/src/ATen/LegacyTHFunctions.h, ../aten/src/ATen/MSNPUBoolType.cpp, ../aten/src/ATen/MSNPUBoolType.h, ../aten/src/ATen/MSNPUByteType.cpp, ../aten/src/ATen/MSNPUByteType.h, ../aten/src/ATen/MSNPUCharType.cpp, ../aten/src/ATen/MSNPUCharType.h, ../aten/src/ATen/MSNPUDoubleType.cpp, ../aten/src/ATen/MSNPUDoubleType.h, ../aten/src/ATen/MSNPUFloatType.cpp, ../aten/src/ATen/MSNPUFloatType.h, ../aten/src/ATen/MSNPUHalfType.cpp, ../aten/src/ATen/MSNPUHalfType.h, ../aten/src/ATen/MSNPUIntType.cpp, ../aten/src/ATen/MSNPUIntType.h, ../aten/src/ATen/MSNPULongType.cpp, ../aten/src/ATen/MSNPULongType.h, ../aten/src/ATen/MSNPUShortType.cpp, ../aten/src/ATen/MSNPUShortType.h, ../aten/src/ATen/MSNPUType.cpp, ../aten/src/ATen/MSNPUType.h, ../aten/src/ATen/NativeFunctions.h, ../aten/src/ATen/RegisterCPU.cpp, ../aten/src/ATen/RegisterCPU.h, ../aten/src/ATen/SparseCPUBoolType.cpp, ../aten/src/ATen/SparseCPUBoolType.h, ../aten/src/ATen/SparseCPUByteType.cpp, ../aten/src/ATen/SparseCPUByteType.h, ../aten/src/ATen/SparseCPUCharType.cpp, ../aten/src/ATen/SparseCPUCharType.h, ../aten/src/ATen/SparseCPUDoubleType.cpp, ../aten/src/ATen/SparseCPUDoubleType.h, ../aten/src/ATen/SparseCPUFloatType.cpp, ../aten/src/ATen/SparseCPUFloatType.h, ../aten/src/ATen/SparseCPUIntType.cpp, ../aten/src/ATen/SparseCPUIntType.h, ../aten/src/ATen/SparseCPULongType.cpp, ../aten/src/ATen/SparseCPULongType.h, ../aten/src/ATen/SparseCPUShortType.cpp, ../aten/src/ATen/SparseCPUShortType.h, ../aten/src/ATen/TypeDefault.cpp, ../aten/src/ATen/TypeDefault.h, ../aten/src/ATen/TypeExtendedInterface.h, ../aten/src/ATen/XLABoolType.cpp, ../aten/src/ATen/XLABoolType.h, ../aten/src/ATen/XLAByteType.cpp, ../aten/src/ATen/XLAByteType.h, ../aten/src/ATen/XLACharType.cpp, ../aten/src/ATen/XLACharType.h, ../aten/src/ATen/XLADoubleType.cpp, ../aten/src/ATen/XLADoubleType.h, ../aten/src/ATen/XLAFloatType.cpp, ../aten/src/ATen/XLAFloatType.h, ../aten/src/ATen/XLAHalfType.cpp, ../aten/src/ATen/XLAHalfType.h, ../aten/src/ATen/XLAIntType.cpp, ../aten/src/ATen/XLAIntType.h, ../aten/src/ATen/XLALongType.cpp, ../aten/src/ATen/XLALongType.h, ../aten/src/ATen/XLAShortType.cpp, ../aten/src/ATen/XLAShortType.h, ../aten/src/ATen/XLAType.cpp, ../aten/src/ATen/XLAType.h, ../aten/src/ATen/CUDABoolType.cpp, ../aten/src/ATen/CUDABoolType.h, ../aten/src/ATen/CUDAByteType.cpp, ../aten/src/ATen/CUDAByteType.h, ../aten/src/ATen/CUDACharType.cpp, ../aten/src/ATen/CUDACharType.h, ../aten/src/ATen/CUDADoubleType.cpp, ../aten/src/ATen/CUDADoubleType.h, ../aten/src/ATen/CUDAFloatType.cpp, ../aten/src/ATen/CUDAFloatType.h, ../aten/src/ATen/CUDAGenerator.h, ../aten/src/ATen/CUDAHalfType.cpp, ../aten/src/ATen/CUDAHalfType.h, ../aten/src/ATen/CUDAIntType.cpp, ../aten/src/ATen/CUDAIntType.h, ../aten/src/ATen/CUDALongType.cpp, ../aten/src/ATen/CUDALongType.h, ../aten/src/ATen/CUDAShortType.cpp, ../aten/src/ATen/CUDAShortType.h, ../aten/src/ATen/LegacyTHCUDABoolDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDABoolDispatcher.h, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.h, ../aten/src/ATen/LegacyTHCUDACharDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDACharDispatcher.h, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.h, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.h, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.h, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.h, ../aten/src/ATen/LegacyTHCUDALongDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDALongDispatcher.h, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.h, ../aten/src/ATen/RegisterCUDA.cpp, ../aten/src/ATen/RegisterCUDA.h, ../aten/src/ATen/SparseCUDABoolType.cpp, ../aten/src/ATen/SparseCUDABoolType.h, ../aten/src/ATen/SparseCUDAByteType.cpp, ../aten/src/ATen/SparseCUDAByteType.h, ../aten/src/ATen/SparseCUDACharType.cpp, ../aten/src/ATen/SparseCUDACharType.h, ../aten/src/ATen/SparseCUDADoubleType.cpp, ../aten/src/ATen/SparseCUDADoubleType.h, ../aten/src/ATen/SparseCUDAFloatType.cpp, ../aten/src/ATen/SparseCUDAFloatType.h, ../aten/src/ATen/SparseCUDAIntType.cpp, ../aten/src/ATen/SparseCUDAIntType.h, ../aten/src/ATen/SparseCUDALongType.cpp, ../aten/src/ATen/SparseCUDALongType.h, ../aten/src/ATen/SparseCUDAShortType.cpp, ../aten/src/ATen/SparseCUDAShortType.h [ 0%] Building C object sleef/src/common/CMakeFiles/arraymap.dir/arraymap.c.o [ 0%] No download step for 'nccl_external' [ 0%] Generating ../aten/src/ATen/CPUBoolType.cpp, ../aten/src/ATen/CPUBoolType.h, ../aten/src/ATen/CPUByteType.cpp, ../aten/src/ATen/CPUByteType.h, ../aten/src/ATen/CPUCharType.cpp, ../aten/src/ATen/CPUCharType.h, ../aten/src/ATen/CPUDoubleType.cpp, ../aten/src/ATen/CPUDoubleType.h, ../aten/src/ATen/CPUFloatType.cpp, ../aten/src/ATen/CPUFloatType.h, ../aten/src/ATen/CPUGenerator.h, ../aten/src/ATen/CPUHalfType.cpp, ../aten/src/ATen/CPUHalfType.h, ../aten/src/ATen/CPUIntType.cpp, ../aten/src/ATen/CPUIntType.h, ../aten/src/ATen/CPULongType.cpp, ../aten/src/ATen/CPULongType.h, ../aten/src/ATen/CPUShortType.cpp, ../aten/src/ATen/CPUShortType.h, ../aten/src/ATen/Declarations.yaml, ../aten/src/ATen/ExtensionBackendRegistration.h, ../aten/src/ATen/Functions.h, ../aten/src/ATen/LegacyTHCPUBoolDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUBoolDispatcher.h, ../aten/src/ATen/LegacyTHCPUByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUByteDispatcher.h, ../aten/src/ATen/LegacyTHCPUCharDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUCharDispatcher.h, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.h, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.h, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.h, ../aten/src/ATen/LegacyTHCPUIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUIntDispatcher.h, ../aten/src/ATen/LegacyTHCPULongDispatcher.cpp, ../aten/src/ATen/LegacyTHCPULongDispatcher.h, ../aten/src/ATen/LegacyTHCPUShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUShortDispatcher.h, ../aten/src/ATen/LegacyTHDispatcher.cpp, ../aten/src/ATen/LegacyTHDispatcher.h, ../aten/src/ATen/LegacyTHFunctions.h, ../aten/src/ATen/MSNPUBoolType.cpp, ../aten/src/ATen/MSNPUBoolType.h, ../aten/src/ATen/MSNPUByteType.cpp, ../aten/src/ATen/MSNPUByteType.h, ../aten/src/ATen/MSNPUCharType.cpp, ../aten/src/ATen/MSNPUCharType.h, ../aten/src/ATen/MSNPUDoubleType.cpp, ../aten/src/ATen/MSNPUDoubleType.h, ../aten/src/ATen/MSNPUFloatType.cpp, ../aten/src/ATen/MSNPUFloatType.h, ../aten/src/ATen/MSNPUHalfType.cpp, ../aten/src/ATen/MSNPUHalfType.h, ../aten/src/ATen/MSNPUIntType.cpp, ../aten/src/ATen/MSNPUIntType.h, ../aten/src/ATen/MSNPULongType.cpp, ../aten/src/ATen/MSNPULongType.h, ../aten/src/ATen/MSNPUShortType.cpp, ../aten/src/ATen/MSNPUShortType.h, ../aten/src/ATen/MSNPUType.cpp, ../aten/src/ATen/MSNPUType.h, ../aten/src/ATen/NativeFunctions.h, ../aten/src/ATen/RegisterCPU.cpp, ../aten/src/ATen/RegisterCPU.h, ../aten/src/ATen/SparseCPUBoolType.cpp, ../aten/src/ATen/SparseCPUBoolType.h, ../aten/src/ATen/SparseCPUByteType.cpp, ../aten/src/ATen/SparseCPUByteType.h, ../aten/src/ATen/SparseCPUCharType.cpp, ../aten/src/ATen/SparseCPUCharType.h, ../aten/src/ATen/SparseCPUDoubleType.cpp, ../aten/src/ATen/SparseCPUDoubleType.h, ../aten/src/ATen/SparseCPUFloatType.cpp, ../aten/src/ATen/SparseCPUFloatType.h, ../aten/src/ATen/SparseCPUIntType.cpp, ../aten/src/ATen/SparseCPUIntType.h, ../aten/src/ATen/SparseCPULongType.cpp, ../aten/src/ATen/SparseCPULongType.h, ../aten/src/ATen/SparseCPUShortType.cpp, ../aten/src/ATen/SparseCPUShortType.h, ../aten/src/ATen/TypeDefault.cpp, ../aten/src/ATen/TypeDefault.h, ../aten/src/ATen/TypeExtendedInterface.h, ../aten/src/ATen/XLABoolType.cpp, ../aten/src/ATen/XLABoolType.h, ../aten/src/ATen/XLAByteType.cpp, ../aten/src/ATen/XLAByteType.h, ../aten/src/ATen/XLACharType.cpp, ../aten/src/ATen/XLACharType.h, ../aten/src/ATen/XLADoubleType.cpp, ../aten/src/ATen/XLADoubleType.h, ../aten/src/ATen/XLAFloatType.cpp, ../aten/src/ATen/XLAFloatType.h, ../aten/src/ATen/XLAHalfType.cpp, ../aten/src/ATen/XLAHalfType.h, ../aten/src/ATen/XLAIntType.cpp, ../aten/src/ATen/XLAIntType.h, ../aten/src/ATen/XLALongType.cpp, ../aten/src/ATen/XLALongType.h, ../aten/src/ATen/XLAShortType.cpp, ../aten/src/ATen/XLAShortType.h, ../aten/src/ATen/XLAType.cpp, ../aten/src/ATen/XLAType.h, ../aten/src/ATen/CUDABoolType.cpp, ../aten/src/ATen/CUDABoolType.h, ../aten/src/ATen/CUDAByteType.cpp, ../aten/src/ATen/CUDAByteType.h, ../aten/src/ATen/CUDACharType.cpp, ../aten/src/ATen/CUDACharType.h, ../aten/src/ATen/CUDADoubleType.cpp, ../aten/src/ATen/CUDADoubleType.h, ../aten/src/ATen/CUDAFloatType.cpp, ../aten/src/ATen/CUDAFloatType.h, ../aten/src/ATen/CUDAGenerator.h, ../aten/src/ATen/CUDAHalfType.cpp, ../aten/src/ATen/CUDAHalfType.h, ../aten/src/ATen/CUDAIntType.cpp, ../aten/src/ATen/CUDAIntType.h, ../aten/src/ATen/CUDALongType.cpp, ../aten/src/ATen/CUDALongType.h, ../aten/src/ATen/CUDAShortType.cpp, ../aten/src/ATen/CUDAShortType.h, ../aten/src/ATen/LegacyTHCUDABoolDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDABoolDispatcher.h, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.h, ../aten/src/ATen/LegacyTHCUDACharDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDACharDispatcher.h, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.h, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.h, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.h, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.h, ../aten/src/ATen/LegacyTHCUDALongDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDALongDispatcher.h, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.h, ../aten/src/ATen/RegisterCUDA.cpp, ../aten/src/ATen/RegisterCUDA.h, ../aten/src/ATen/SparseCUDABoolType.cpp, ../aten/src/ATen/SparseCUDABoolType.h, ../aten/src/ATen/SparseCUDAByteType.cpp, ../aten/src/ATen/SparseCUDAByteType.h, ../aten/src/ATen/SparseCUDACharType.cpp, ../aten/src/ATen/SparseCUDACharType.h, ../aten/src/ATen/SparseCUDADoubleType.cpp, ../aten/src/ATen/SparseCUDADoubleType.h, ../aten/src/ATen/SparseCUDAFloatType.cpp, ../aten/src/ATen/SparseCUDAFloatType.h, ../aten/src/ATen/SparseCUDAIntType.cpp, ../aten/src/ATen/SparseCUDAIntType.h, ../aten/src/ATen/SparseCUDALongType.cpp, ../aten/src/ATen/SparseCUDALongType.h, ../aten/src/ATen/SparseCUDAShortType.cpp, ../aten/src/ATen/SparseCUDAShortType.h [ 0%] Building C object sleef/src/libm/CMakeFiles/mkrename_gnuabi.dir/mkrename_gnuabi.c.o [ 0%] Building C object sleef/src/libm/CMakeFiles/mkalias.dir/mkalias.c.o [ 0%] Building C object sleef/src/libm/CMakeFiles/mkdisp.dir/mkdisp.c.o [ 0%] Generating __init__.py [ 0%] Building C object third_party/onnx/CMakeFiles/onnxifi_dummy.dir/onnx/onnxifi_dummy.c.o [ 0%] Generating contrib/__init__.py [ 0%] Building C object third_party/foxi/CMakeFiles/foxi_dummy.dir/foxi/onnxifi_dummy.c.o [ 0%] Building C object third_party/foxi/CMakeFiles/foxi_loader.dir/foxi/onnxifi_loader.c.o [ 0%] Generating contrib/aten/aten_test.py [ 0%] Generating contrib/aten/__init__.py [ 0%] Building CXX object caffe2/torch/CMakeFiles/thnvrtc.dir/csrc/jit/fuser/cuda/thnvrtc.cpp.o [ 0%] Generating contrib/aten/docs/__init__.py [ 0%] Building C object third_party/onnx/CMakeFiles/onnxifi_loader.dir/onnx/onnxifi_loader.c.o [ 0%] Generating contrib/aten/gen_op.py [ 0%] Generating contrib/aten/docs/sample.py [ 0%] Generating contrib/gloo/__init__.py [ 0%] Generating contrib/gloo/gloo_test.py [ 0%] Building C object sleef/src/common/CMakeFiles/common.dir/common.c.o [ 0%] Generating contrib/nccl/__init__.py [ 0%] Generating contrib/nccl/nccl_ops_test.py [ 0%] Generating contrib/nnpack/__init__.py [ 1%] Generating contrib/playground/AnyExpOnTerm.py [ 1%] Generating contrib/nnpack/nnpack_ops_test.py [ 1%] No patch step for 'nccl_external' [ 1%] No update step for 'nccl_external' [ 1%] Generating contrib/playground/AnyExp.py [ 1%] Generating contrib/playground/ModuleRegister.py [ 1%] Generating contrib/playground/__init__.py [ 1%] Generating contrib/playground/checkpoint.py [ 1%] Generating contrib/playground/compute_loss.py [ 2%] Generating contrib/playground/compute_topk_accuracy.py [ 2%] Generating contrib/playground/meter.py [ 2%] Generating contrib/playground/module_map.py [ 2%] Generating contrib/playground/output_generator.py [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark.cc.o [ 2%] Building CXX object third_party/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/colorprint.cc.o [ 2%] Generating contrib/playground/resnetdemo/IN1k_resnet.py [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/commandlineflags.cc.o [ 2%] Generating contrib/playground/resnetdemo/IN1k_resnet_no_test_model.py [ 2%] Generating contrib/playground/resnetdemo/__init__.py [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/complexity.cc.o [ 2%] Generating contrib/playground/resnetdemo/caffe2_resnet50_default_forward.py [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/counter.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/console_reporter.cc.o [ 2%] No configure step for 'nccl_external' [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/csv_reporter.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/json_reporter.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/reporter.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/sleep.cc.o [ 3%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/statistics.cc.o [ 3%] Generating contrib/playground/resnetdemo/caffe2_resnet50_default_param_update.py [ 3%] Linking C static library ../../lib/libclog.a [ 3%] Performing build step for 'nccl_external' [ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/arena.cc.o make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. [ 3%] Generating contrib/playground/resnetdemo/explicit_resnet_forward.py [ 3%] Generating contrib/playground/resnetdemo/explicit_resnet_param_update.py [ 3%] Built target clog [ 3%] Linking C static library ../../lib/libfoxi_loader.a [ 3%] Linking C static library ../../lib/libonnxifi_loader.a [ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/arena.cc.o [ 3%] Generating contrib/playground/resnetdemo/gfs_IN1k.py [ 3%] Generating contrib/playground/resnetdemo/override_no_test_model_no_checkpoint.py [ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/algorithm.cc.o /worka/work/derick/github/pytorch/third_party/onnx/onnx/onnxifi_dummy.c: In function ‘onnxGetExtensionFunctionAddress’: /worka/work/derick/github/pytorch/third_party/onnx/onnx/onnxifi_dummy.c:173:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *function = &amp;onnxGetExtensionFunctionAddress; ^ /worka/work/derick/github/pytorch/third_party/onnx/onnx/onnxifi_dummy.c:176:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *function = &amp;onnxSetIOAndRunGraph; ^ /worka/work/derick/github/pytorch/third_party/foxi/foxi/onnxifi_dummy.c: In function ‘onnxGetExtensionFunctionAddress’: /worka/work/derick/github/pytorch/third_party/foxi/foxi/onnxifi_dummy.c:173:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *function = &amp;onnxGetExtensionFunctionAddress; ^ /worka/work/derick/github/pytorch/third_party/foxi/foxi/onnxifi_dummy.c:176:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *function = &amp;onnxSetIOAndRunGraph; ^ Generating nccl.h.in &gt; /worka/work/derick/github/pytorch/build/nccl/include/nccl.h Compiling init.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/init.o [ 3%] Generating contrib/playground/resnetdemo/rendezvous_filestore.py [ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allgather.cc.o [ 3%] Linking C static library ../../lib/libpthreadpool.a [ 3%] Linking C shared library ../../lib/libonnxifi_dummy.so [ 3%] Linking C shared library ../../lib/libfoxi_dummy.so [ 3%] Linking C executable ../../bin/mkrename_gnuabi [ 4%] Linking C executable ../../bin/mkalias [ 4%] Linking C executable ../../bin/mkrename [ 4%] Linking C executable ../../bin/mkdisp [ 4%] Built target foxi_loader [ 4%] Linking C executable ../../bin/mkmasked_gnuabi [ 4%] Generating contrib/prof/__init__.py [ 4%] Built target onnxifi_loader [ 4%] Generating contrib/prof/cuda_profile_ops_test.py Scanning dependencies of target cpuinfo Scanning dependencies of target cpuinfo_internals [ 4%] Generating contrib/script/__init__.py [ 4%] Built target pthreadpool [ 4%] Built target common [ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/arenastring.cc.o Scanning dependencies of target onnxifi_wrapper [ 4%] Built target arraymap [ 4%] Generating contrib/script/examples/__init__.py [ 4%] Built target mkrename_gnuabi [ 4%] Built target onnxifi_dummy [ 4%] Built target foxi_dummy [ 4%] Building CXX object c10/CMakeFiles/c10.dir/core/Allocator.cpp.o [ 4%] Built target mkalias [ 4%] Built target mkrename [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/init.c.o [ 4%] Built target mkdisp [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/init.c.o [ 4%] Built target mkmasked_gnuabi Scanning dependencies of target foxi_wrapper [ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_table_driven_lite.cc.o [ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/extension_set.cc.o [ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/extension_set.cc.o [ 4%] Generating contrib/tensorboard/tensorboard_exporter.py [ 4%] Generating contrib/tensorboard/tensorboard.py [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o [ 4%] Generating contrib/tensorboard/__init__.py [ 4%] Building C object third_party/onnx/CMakeFiles/onnxifi_wrapper.dir/onnx/onnxifi_wrapper.c.o [ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/arenastring.cc.o [ 4%] Building C object third_party/foxi/CMakeFiles/foxi_wrapper.dir/foxi/onnxifi_wrapper.c.o [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/init.c.o [ 4%] Generating contrib/tensorboard/tensorboard_exporter_test.py Scanning dependencies of target nnpack_reference_layers [ 4%] Generating contrib/tensorboard/tensorboard_test.py [ 4%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-output.c.o [ 4%] Generating contrib/warpctc/__init__.py [ 4%] Generating contrib/warpctc/ctc_ops_test.py [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/api.c.o [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/init.c.o [ 4%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-input-gradient.c.o [ 4%] Generating core/__init__.py [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/info.c.o [ 4%] Generating core/nomnigraph/__init__.py [ 4%] Building CXX object c10/CMakeFiles/c10.dir/core/CPUAllocator.cpp.o [ 4%] Generating core/nomnigraph/op_gen.py [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/vendor.c.o [ 4%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-kernel.c.o [ 4%] Generating distributed/__init__.py [ 4%] Linking C shared module ../../lib/libonnxifi.so [ 4%] Generating distributed/file_store_handler_op_test.py [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/info.c.o [ 4%] Linking C shared module ../../lib/libfoxi.so [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/vendor.c.o [ 5%] Generating distributed/redis_store_handler_op_test.py [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/uarch.c.o [ 5%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/fully-connected-output.c.o [ 5%] Generating distributed/store_ops_test_util.py [ 5%] Generating experiments/__init__.py [ 5%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/max-pooling-output.c.o [ 5%] Built target onnxifi_wrapper [ 5%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/softmax-output.c.o [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/uarch.c.o [ 5%] Generating experiments/python/SparseTransformer.py [ 5%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/relu-output.c.o [ 5%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/relu-input-gradient.c.o [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/name.c.o [ 5%] Built target foxi_wrapper [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/name.c.o [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/topology.c.o [ 5%] Generating experiments/python/__init__.py [ 5%] Generating experiments/python/convnet_benchmarks.py [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/isa.c.o [ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allreduce.cc.o Scanning dependencies of target renamedsp256.h_generated [ 5%] Generating experiments/python/device_reduce_sum_bench.py [ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_table_driven_lite.cc.o Scanning dependencies of target dispavx.c_generated [ 5%] Generating renamedsp256.h [ 5%] Linking CXX shared library ../../lib/libthnvrtc.so [ 5%] Linking C static library ../../lib/libnnpack_reference_layers.a [ 5%] Built target renamedsp256.h_generated [ 5%] Generating experiments/python/funhash_op_test.py [ 5%] Generating dispavx.c [ 5%] Generating experiments/python/net_construct_bench.py [ 5%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/batch_normalization.cpp.o Scanning dependencies of target headers Scanning dependencies of target dispsse.c_generated [ 5%] Built target dispavx.c_generated [ 5%] Generating experiments/python/sparse_funhash_op_test.py [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/topology.c.o [ 5%] Generating experiments/python/sparse_reshape_op_test.py [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/init.c.o [ 5%] Built target nnpack_reference_layers [ 5%] Generating ../../../include/sleef.h [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/descriptor.c.o [ 5%] Generating dispsse.c Scanning dependencies of target renamedsp128.h_generated [ 5%] Generating experiments/python/tt_contraction_op_test.py [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/deterministic.c.o [ 5%] Built target thnvrtc [ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_util.cc.o Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ Scanning dependencies of target renameFMA4.h_generated Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ sse2 [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/linux/init.c.o [ 5%] Generating renamedsp128.h Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ sse4 [ 5%] Built target dispsse.c_generated [ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_util.cc.o [ 5%] Generating experiments/python/tt_pad_op_test.py Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct\ {\ __m128i\ x,\ y;\ } __AVX__ [ 5%] Generating include/renamefma4.h [ 5%] Generating include/renamefma4.h Generating renamefma4.h: mkrename 4 8 fma4 Generating renamefma4.h: mkrename 4 8 fma4 Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct\ {\ __m128i\ x,\ y;\ } __AVX__ avx [ 5%] Built target renamedsp128.h_generated Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct\ {\ __m128i\ x,\ y;\ } __AVX__ fma4 [ 5%] Building CXX object c10/CMakeFiles/c10.dir/core/CopyBytes.cpp.o [ 5%] Generating perfkernels/__init__.py [ 5%] Building CXX object c10/CMakeFiles/c10.dir/core/DefaultDtype.cpp.o [ 5%] Built target renameFMA4.h_generated [ 5%] Generating include/renameavx.h [ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/implicit_weak_message.cc.o Generating renameavx.h: mkrename 4 8 avx [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/isa.c.o Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i __m256i __AVX__ avx2 [ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allreduce_local.cc.o [ 5%] Building CXX object c10/CMakeFiles/c10.dir/core/Device.cpp.o Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ avx2128 ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 5%] Generating perfkernels/hp_emblookup_codegen.py [ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/barrier.cc.o [ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/coded_stream.cc.o [ 6%] Generating include/renamesse4.h Generating sleef.h: mkrename 8 16 __m512d __m512 __m256i __m512i __AVX512F__ Generating renamesse4.h: mkrename 2 4 sse4 [ 6%] Generating include/renamesse2.h [ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/implicit_weak_message.cc.o Generating sleef.h: mkrename 8 16 __m512d __m512 __m256i __m512i __AVX512F__ avx512f Generating renamesse2.h: mkrename 2 4 sse2 [ 6%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/broadcast.cc.o [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/DeviceType.cpp.o [ 6%] Generating proto/__init__.py [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/Scalar.cpp.o Scanning dependencies of target renameAVX.h_generated [ 6%] Built target headers [ 6%] Generating python/__init__.py [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/Storage.cpp.o [ 6%] Built target renameAVX.h_generated [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/init.c.o [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/Stream.cpp.o [ 6%] Generating python/_import_c_extension.py [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/linux/cpuinfo.c.o [ 6%] Generating python/allcompare_test.py [ 6%] Generating python/attention.py [ 6%] Generating python/benchmark_generator.py [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/smallfile.c.o [ 6%] Generating python/binarysize.py [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/multiline.c.o [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/descriptor.c.o [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/deterministic.c.o [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/linux/init.c.o [ 6%] Generating python/brew.py [ 6%] Generating python/brew_test.py [ 6%] Generating python/build.py [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/current.c.o [ 6%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/context.cc.o [ 6%] Generating python/cached_reader.py [ 6%] Generating python/caffe_translator.py [ 6%] Generating python/caffe_translator_test.py [ 6%] Generating python/checkpoint.py [ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/coded_stream.cc.o [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorImpl.cpp.o [ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream.cc.o [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/linux/cpuinfo.c.o [ 7%] Generating python/checkpoint_test.py [ 7%] Generating python/cnn.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/cpulist.c.o [ 7%] Generating python/compatibility.py [ 7%] Generating python/context.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/smallfile.c.o [ 7%] Generating python/context_test.py [ 7%] Generating python/control.py [ 7%] Generating python/control_ops_grad.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/processors.c.o [ 7%] Generating python/control_ops_grad_test.py [ 7%] Generating python/control_ops_util.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/multiline.c.o [ 7%] Generating python/control_test.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/current.c.o [ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o [ 7%] Generating python/convert.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/cpulist.c.o [ 7%] Generating python/convert_test.py [ 8%] Linking C static library ../../lib/libcpuinfo.a [ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution.cpp.o [ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution_relu.cpp.o [ 8%] Generating python/convnet_benchmarks.py [ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/deconvolution.cpp.o [ 8%] Generating python/convnet_benchmarks_test.py [ 8%] Generating python/core.py [ 8%] Built target cpuinfo [ 8%] Generating python/core_gradients_test.py Scanning dependencies of target renameSSE4.h_generated [ 8%] Generating python/core_test.py [ 8%] Built target renameSSE4.h_generated [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/message_lite.cc.o include/net.h:33:21: warning: ‘ncclResult_t ncclNetCloseListen(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseListen(void* listenComm) { NCCLCHECK(ncclNet-&gt;closeListen(listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~~ include/net.h:32:21: warning: ‘ncclResult_t ncclNetCloseRecv(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseRecv(void* recvComm) { NCCLCHECK(ncclNet-&gt;closeRecv(recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:31:21: warning: ‘ncclResult_t ncclNetCloseSend(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseSend(void* sendComm) { NCCLCHECK(ncclNet-&gt;closeSend(sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:30:21: warning: ‘ncclResult_t ncclNetTest(void*, int*, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetTest(void* request, int* done, int* size) { NCCLCHECK(ncclNet-&gt;test(request, done, size)); return ncclSuccess; } ^~~~~~~~~~~ include/net.h:29:21: warning: ‘ncclResult_t ncclNetFlush(void*, void*, int)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetFlush(void* recvComm, void* data, int size) { NCCLCHECK(ncclNet-&gt;flush(recvComm, data, size)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:28:21: warning: ‘ncclResult_t ncclNetIrecv(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIrecv(void* recvComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;irecv(recvComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:27:21: warning: ‘ncclResult_t ncclNetIsend(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIsend(void* sendComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;isend(sendComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:26:21: warning: ‘ncclResult_t ncclNetAccept(void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetAccept(void* listenComm, void** recvComm) { NCCLCHECK(ncclNet-&gt;accept(listenComm, recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:25:21: warning: ‘ncclResult_t ncclNetConnect(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetConnect(int dev, void* handle, void** sendComm) { NCCLCHECK(ncclNet-&gt;connect(dev, handle, sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:24:21: warning: ‘ncclResult_t ncclNetListen(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetListen(int dev, void* handle, void** listenComm) { NCCLCHECK(ncclNet-&gt;listen(dev, handle, listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:23:21: warning: ‘ncclResult_t ncclNetPtrSupport(int, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetPtrSupport(int dev, int* supportedTypes) { NCCLCHECK(ncclNet-&gt;ptrSupport(dev, supportedTypes)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~ include/net.h:22:21: warning: ‘ncclResult_t ncclNetDevices(int*, int**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetDevices(int* ndev, int** scores) { NCCLCHECK(ncclNet-&gt;devices(ndev, scores)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/common_coll.h:136:21: warning: ‘ncclResult_t saveKernel(int, const void*, void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm_t, cudaStream_t, size_t, int)’ defined but not used [-Wunused-function] static ncclResult_t saveKernel(int coll, const void* sendbuff, void* recvbuff, size_t count, ^~~~~~~~~~ include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ [ 8%] Generating python/crf.py [ 8%] Generating python/crf_predict.py [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/repeated_field.cc.o [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/bytestream.cc.o [ 8%] Generating python/crf_viterbi_test.py [ 8%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/processors.c.o [ 8%] Generating python/data_parallel_model.py [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream.cc.o [ 8%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o [ 8%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o [ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/eltwise.cpp.o [ 8%] Generating python/data_parallel_model_test.py [ 8%] Generating python/data_workers.py [ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/engine.cpp.o [ 8%] Generating python/data_workers_test.py [ 8%] Generating python/dataio.py [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/message_lite.cc.o [ 8%] Generating python/dataio_test.py [ 8%] Generating python/dataset.py [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/repeated_field.cc.o [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/bytestream.cc.o [ 8%] Linking C static library ../../lib/libcpuinfo_internals.a [ 8%] Generating python/db_file_reader.py [ 8%] Generating python/db_test.py [ 9%] Generating python/device_checker.py [ 9%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/gather.cc.o [ 9%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o [ 9%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorOptions.cpp.o [ 10%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorTypeId.cpp.o [ 10%] Built target cpuinfo_internals [ 10%] Generating python/docs/__init__.py [ 10%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorTypeIdRegistration.cpp.o [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/common.cc.o [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/int128.cc.o [ 10%] Generating python/docs/formatter.py [ 10%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/inner_product.cpp.o [ 10%] Generating python/docs/generator.py [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/common.cc.o [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/io_win32.cc.o [ 10%] Generating python/docs/parser.py [ 10%] Generating python/docs/github.py [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/status.cc.o [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/statusor.cc.o [ 10%] Generating python/dyndep.py [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/stringpiece.cc.o [ 10%] Generating python/embedding_generation_benchmark.py Scanning dependencies of target renameSSE2.h_generated [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/stringprintf.cc.o [ 10%] Generating python/examples/__init__.py [ 10%] Built target renameSSE2.h_generated [ 10%] Generating python/examples/char_rnn.py [ 10%] Generating python/examples/lmdb_create_example.py [ 10%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/lrn.cpp.o [ 10%] Generating python/examples/resnet50_trainer.py [ 10%] Generating python/experiment_util.py [ 10%] Generating python/extension_loader.py /tmp/ccHmQJjb.s: Assembler messages: /tmp/ccHmQJjb.s:306: Error: no such instruction: `vmovdqa64 .LC0(%rip),%zmm2' /tmp/ccHmQJjb.s:310: Error: no such instruction: `vmovdqa64 (%r9),%zmm0' /tmp/ccHmQJjb.s:314: Error: no such instruction: `vextracti32x8 $0x1,%zmm0,%ymm1' /tmp/ccHmQJjb.s:315: Error: bad register name `%zmm0' /tmp/ccHmQJjb.s:316: Error: bad register name `%zmm1' /tmp/ccHmQJjb.s:317: Error: no such instruction: `vpmullq %zmm0,%zmm1,%zmm0' /tmp/ccHmQJjb.s:318: Error: no such instruction: `vpmullq %zmm0,%zmm2,%zmm2' /tmp/ccHmQJjb.s:320: Error: no such instruction: `vpxord %zmm3,%zmm3,%zmm3' /tmp/ccHmQJjb.s:321: Error: no such instruction: `vmovdqa64 .LC3(%rip),%zmm0' /tmp/ccHmQJjb.s:322: Error: no such instruction: `vshufi64x2 $78,%zmm3,%zmm2,%zmm1' /tmp/ccHmQJjb.s:323: Error: no such instruction: `vpmullq %zmm2,%zmm1,%zmm1' /tmp/ccHmQJjb.s:324: Error: no such instruction: `vpermi2q %zmm3,%zmm1,%zmm0' /tmp/ccHmQJjb.s:325: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm1' /tmp/ccHmQJjb.s:326: Error: no such instruction: `vmovdqa64 .LC4(%rip),%zmm0' /tmp/ccHmQJjb.s:327: Error: no such instruction: `vpermi2q %zmm3,%zmm1,%zmm0' /tmp/ccHmQJjb.s:328: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm0' make[2]: *** [third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/int128.cc.o [ 10%] Generating python/functional.py [ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/structurally_valid.cc.o [ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/io_win32.cc.o [ 11%] Generating python/functional_test.py [ 11%] Generating python/fused_8bit_rowwise_conversion_ops_test.py [ 11%] Generating python/gradient_check_test.py [ 11%] Generating python/gradient_checker.py [ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/reduce.cc.o [ 11%] Generating python/gru_cell.py Scanning dependencies of target qnnpack [ 11%] Generating src/x86_64-fma/2d-fourier-8x8.py.o [ 11%] Generating python/helpers/__init__.py [ 11%] Building CXX object c10/CMakeFiles/c10.dir/core/UndefinedTensorImpl.cpp.o [ 11%] Building CXX object c10/CMakeFiles/c10.dir/core/impl/DeviceGuardImplInterface.cpp.o [ 11%] Building CXX object c10/CMakeFiles/c10.dir/core/thread_pool.cpp.o [ 11%] Generating python/helpers/algebra.py [ 11%] Generating python/helpers/arg_scope.py [ 12%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/init.c.o [ 12%] Generating python/helpers/array_helpers.py [ 12%] Building CXX object c10/CMakeFiles/c10.dir/util/Array.cpp.o [ 12%] Building CXX object c10/CMakeFiles/c10.dir/util/Backtrace.cpp.o [ 12%] Generating python/helpers/control_ops.py /tmp/ccNz8CVo.s: Assembler messages: /tmp/ccNz8CVo.s:185: Error: bad register name `%zmm1' /tmp/ccNz8CVo.s:198: Error: bad register name `%zmm1' make[2]: *** [third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/eltwise.cpp.o] Error 1 [ 12%] Generating python/helpers/conv.py [ 12%] Generating python/helpers/db_input.py [ 12%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/strutil.cc.o [ 12%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/time.cc.o [ 12%] Generating python/helpers/dropout.py [ 12%] Generating python/helpers/elementwise_linear.py [ 12%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/add.c.o [ 13%] Generating python/helpers/nonlinearity.py [ 13%] Generating python/helpers/fc.py [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/status.cc.o [ 13%] Generating python/helpers/pooling.py [ 13%] Generating python/helpers/tools.py [ 13%] Generating python/helpers/normalization.py [ 13%] Generating python/helpers/train.py Scanning dependencies of target dispavx_obj Scanning dependencies of target dispsse_obj Scanning dependencies of target sleeffma4 [ 13%] Generating python/hip_test_util.py [ 13%] Building C object sleef/src/libm/CMakeFiles/dispsse_obj.dir/dispsse.c.o [ 13%] Building C object sleef/src/libm/CMakeFiles/dispavx_obj.dir/dispavx.c.o [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/statusor.cc.o [ 13%] Generating python/hsm_util.py [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/stringpiece.cc.o [ 13%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/scatter.cc.o [ 13%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/average-pooling.c.o [ 13%] Generating python/hypothesis_test.py [ 13%] Generating python/hypothesis_test_util.py [ 13%] Building C object sleef/src/libm/CMakeFiles/sleeffma4.dir/sleefsimdsp.c.o Scanning dependencies of target sleefavx Scanning dependencies of target sleefsse4 [ 13%] Building CXX object c10/CMakeFiles/c10.dir/util/C++17.cpp.o [ 13%] Generating python/ideep/LRN_op_test.py [ 13%] Linking CXX static library ../../../lib/libbenchmark.a Scanning dependencies of target sleefsse2 [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefavx.dir/sleefsimdsp.c.o [ 13%] Generating python/ideep/__init__.py [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefavx.dir/sleefsimddp.c.o [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefsse4.dir/sleefsimdsp.c.o [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefsse2.dir/sleefsimdsp.c.o /tmp/ccA4B3HZ.s: Assembler messages: /tmp/ccA4B3HZ.s:231: Error: no such instruction: `vmovdqa64 .LC0(%rip),%zmm0' /tmp/ccA4B3HZ.s:235: Error: no such instruction: `vmovdqa64 (%r11),%zmm1' /tmp/ccA4B3HZ.s:239: Error: no such instruction: `vextracti32x8 $0x1,%zmm1,%ymm2' /tmp/ccA4B3HZ.s:240: Error: bad register name `%zmm1' /tmp/ccA4B3HZ.s:241: Error: bad register name `%zmm2' /tmp/ccA4B3HZ.s:242: Error: no such instruction: `vpmullq %zmm1,%zmm2,%zmm1' /tmp/ccA4B3HZ.s:243: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm0' /tmp/ccA4B3HZ.s:245: Error: no such instruction: `vpxord %zmm2,%zmm2,%zmm2' /tmp/ccA4B3HZ.s:246: Error: no such instruction: `vshufi64x2 $78,%zmm2,%zmm0,%zmm1' /tmp/ccA4B3HZ.s:247: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm1' /tmp/ccA4B3HZ.s:248: Error: no such instruction: `vmovdqa64 .LC3(%rip),%zmm0' /tmp/ccA4B3HZ.s:249: Error: no such instruction: `vpermi2q %zmm2,%zmm1,%zmm0' /tmp/ccA4B3HZ.s:250: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm0' /tmp/ccA4B3HZ.s:251: Error: no such instruction: `vmovdqa64 .LC4(%rip),%zmm1' /tmp/ccA4B3HZ.s:252: Error: no such instruction: `vpermi2q %zmm2,%zmm0,%zmm1' /tmp/ccA4B3HZ.s:253: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm0' [ 13%] Generating python/ideep/adam_op_test.py make[2]: *** [third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/inner_product.cpp.o] Error 1 [ 13%] Built target benchmark [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefsse4.dir/sleefsimddp.c.o [ 13%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/channel-shuffle.c.o [ 13%] Generating python/ideep/blobs_queue_db_test.py [ 13%] Generating python/ideep/channel_shuffle_op_test.py [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefsse2.dir/sleefsimddp.c.o [ 13%] Generating python/ideep/concat_split_op_test.py [ 13%] Generating python/ideep/conv_op_test.py [ 13%] Generating python/ideep/conv_transpose_test.py [ 13%] Generating python/ideep/convfusion_op_test.py [ 13%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/clamp.c.o [ 13%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/convolution.c.o [ 13%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/deconvolution.c.o [ 13%] Generating python/ideep/copy_op_test.py [ 13%] Generating python/ideep/dropout_op_test.py [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wire_format_lite.cc.o make[1]: *** [third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 13%] Generating python/ideep/elementwise_sum_op_test.py [ 13%] Building C object sleef/src/libm/CMakeFiles/sleeffma4.dir/sleefsimddp.c.o [ 13%] Generating python/ideep/expanddims_squeeze_op_test.py [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/stringprintf.cc.o [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/structurally_valid.cc.o [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/strutil.cc.o [ 13%] Generating python/ideep/fc_op_test.py [ 13%] Linking CXX static library ../../../lib/libgtest.a [ 13%] Generating python/ideep/leaky_relu_op_test.py [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/time.cc.o [ 13%] Generating python/ideep/moment_sgd_op_test.py [ 13%] Built target gtest [ 13%] Generating python/ideep/operator_fallback_op_test.py [ 13%] Generating python/ideep/pool_op_test.py [ 14%] Generating python/ideep/relu_op_test.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/fully-connected.c.o [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/wire_format_lite.cc.o [ 14%] Generating python/ideep/reshape_op_test.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/global-average-pooling.c.o [ 14%] Generating python/ideep/shape_op_test.py [ 14%] Generating python/ideep/sigmoid_op_test.py [ 14%] Generating python/ideep/softmax_op_test.py Compiling ring.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/ring.o [ 14%] Generating python/ideep/spatial_bn_op_test.py [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.cc.o [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/leaky-relu.c.o [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/Exception.cpp.o [ 14%] Generating python/ideep/test_ideep_net.py [ 14%] Generating python/ideep/transform_ideep_net.py [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/Half.cpp.o [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.pb.cc.o [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/LeftRight.cpp.o [ 14%] Generating python/ideep/weightedsum_op_test.py [ 14%] Generating python/ideep_test_util.py [ 14%] Built target dispsse_obj [ 14%] Generating python/layer_model_helper.py [ 14%] Generating python/layer_model_instantiator.py [ 14%] Built target dispavx_obj [ 14%] Generating python/layer_parameter_sharing_test.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/max-pooling.c.o [ 14%] Generating python/layer_test_util.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/sigmoid.c.o [ 14%] Generating python/layers/__init__.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/softargmax.c.o [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/api.pb.cc.o [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/operator-delete.c.o [ 14%] Generating python/layers/adaptive_weight.py [ 14%] Generating python/layers/add_bias.py [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/Logging.cpp.o [ 14%] Generating python/layers/arc_cosine_feature_map.py [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/compiler/importer.cc.o [ 14%] Generating python/layers/batch_distill_lr_loss.py [ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/types.cc.o [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/compiler/parser.cc.o [ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/common/linux.cc.o [ 14%] Generating python/layers/batch_lr_loss.py [ 14%] Generating python/layers/batch_mse_loss.py [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/Metaprogramming.cpp.o [ 14%] Generating python/layers/batch_normalization.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/indirection.c.o [ 14%] Generating python/layers/batch_sigmoid_cross_entropy_loss.py [ 14%] Generating python/layers/batch_softmax_loss.py [ 14%] Generating python/layers/blob_weighted_sum.py [ 14%] Generating python/layers/bucket_weighted.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/operator-run.c.o [ 14%] Built target sleefsse4 [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8lut32norm/scalar.c.o [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/Optional.cpp.o [ 14%] Built target ATEN_CPU_FILES_GEN_TARGET [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.pb.cc.o [ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/common/logging.cc.o [ 14%] Built target sleefavx [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.cc.o [ 14%] Generating python/layers/build_index.py [ 14%] Built target ATEN_CUDA_FILES_GEN_TARGET [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/SmallVector.cpp.o [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor_database.cc.o [ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/context.cc.o [ 14%] Generating python/layers/concat.py [ 14%] Generating python/layers/constant_weight.py [ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/file_store.cc.o [ 14%] Built target sleeffma4 [ 14%] Built target sleefsse2 [ 15%] Generating python/layers/dropout.py [ 15%] Generating python/layers/conv.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/duration.pb.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/dynamic_message.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/empty.pb.cc.o [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8lut/scalar.c.o [ 15%] Generating python/layers/fc.py [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/sgemm/6x8-psimd.c.o [ 15%] Generating python/layers/fc_without_bias.py [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8avgpool/mp8x9p8q-sse2.c.o [ 15%] Generating python/layers/feature_sparse_to_dense.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/extension_set_heavy.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/field_mask.pb.cc.o [ 15%] Generating python/layers/functional.py [ 15%] Generating python/layers/gather_record.py [ 15%] Generating python/layers/homotopy_weight.py ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/StringUtil.cpp.o [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8avgpool/up8x9-sse2.c.o [ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/Type.cpp.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_reflection.cc.o [ 15%] Generating python/layers/label_smooth.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_table_driven.cc.o [ 15%] Generating python/layers/last_n_window_collector.py [ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeList.cpp.o [ 15%] Generating python/layers/layer_normalization.py [ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeTraits.cpp.o [ 15%] Generating python/layers/layers.py [ 15%] Generating python/layers/margin_rank_loss.py [ 15%] Linking CXX static library ../../../lib/libprotobuf-lite.a [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8avgpool/up8xm-sse2.c.o [ 15%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/hash_store.cc.o [ 15%] Generating python/layers/merge_id_lists.py [ 15%] Generating src/x86_64-fma/2d-fourier-16x16.py.o [ 15%] Generating python/layers/pairwise_similarity.py [ 15%] Built target libprotobuf-lite [ 15%] Generating python/layers/position_weighted.py [ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/UniqueVoidPtr.cpp.o [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8conv/4x4c2-sse2.c.o [ 15%] Generating python/layers/random_fourier_features.py [ 15%] Generating python/layers/reservoir_sampling.py [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8dwconv/mp8x25-sse2.c.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/gzip_stream.cc.o [ 15%] Generating python/layers/sampling_train.py [ 15%] Generating python/layers/sampling_trainable_mixin.py [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8dwconv/up8x9-sse2.c.o [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gavgpool/mp8x7p7q-sse2.c.o [ 15%] Generating python/layers/select_record_by_context.py [ 15%] Generating python/layers/semi_random_features.py [ 15%] Generating python/layers/sparse_feature_hash.py [ 15%] Generating python/layers/sparse_lookup.py [ 15%] Generating python/layers/split.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/printer.cc.o [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gavgpool/up8x7-sse2.c.o [ 15%] Generating python/layers/tags.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/strtod.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/tokenizer.cc.o [ 15%] Generating python/layers/uniform_sampling.py [ 15%] Generating python/layers_test.py [ 15%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/prefix_store.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl.cc.o [ 15%] Generating python/lengths_reducer_fused_8bit_rowwise_ops_test.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/map_field.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/message.cc.o [ 16%] Generating python/lengths_reducer_rowwise_8bit_ops_test.py [ 16%] Generating python/lstm_benchmark.py [ 16%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gavgpool/up8xm-sse2.c.o [ 16%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_gflags.cpp.o [ 16%] Generating python/memonger.py [ 16%] Generating python/memonger_test.py [ 16%] Generating python/mint/__init__.py [ 16%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gemm/2x4c8-sse2.c.o [ 16%] Generating python/mint/app.py [ 16%] Generating python/mkl/__init__.py [ 16%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/reflection_ops.cc.o include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ [ 17%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gemm/4x4c2-sse2.c.o [ 17%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/service.cc.o [ 17%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/store.cc.o [ 17%] Generating python/mkl/mkl_LRN_op_test.py [ 17%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/address.cc.o [ 17%] Generating python/mkl/mkl_LRN_speed_test.py [ 17%] Generating python/mkl/mkl_concat_op_test.py [ 17%] Generating python/mkl/mkl_conv_op_test.py [ 17%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/buffer.cc.o [ 17%] Generating python/mkl/mkl_copy_op_test.py [ 17%] Generating python/mkl/mkl_elementwise_add_op_test.py [ 17%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/context.cc.o [ 17%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8vadd/sse2.c.o [ 17%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/device.cc.o [ 17%] Generating python/mkl/mkl_elementwise_sum_op_test.py [ 17%] Generating python/mkl/mkl_fc_op_test.py [ 17%] Generating python/mkl/mkl_fc_speed_test.py [ 17%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_no_gflags.cpp.o [ 17%] Building CXX object c10/CMakeFiles/c10.dir/util/intrusive_ptr.cpp.o [ 17%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/source_context.pb.cc.o [ 17%] Generating python/mkl/mkl_fill_op_test.py [ 17%] Building CXX object c10/CMakeFiles/c10.dir/util/numa.cpp.o [ 17%] Generating python/mkl/mkl_pool_op_test.py [ 17%] Building CXX object c10/CMakeFiles/c10.dir/util/thread_name.cpp.o [ 17%] Building CXX object c10/CMakeFiles/c10.dir/util/typeid.cpp.o [ 17%] Generating python/mkl/mkl_pool_speed_test.py [ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/struct.pb.cc.o [ 18%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/pair.cc.o [ 18%] Generating python/mkl/mkl_relu_op_test.py [ 18%] Generating python/mkl/mkl_sbn_op_test.py [ 18%] Generating python/mkl/mkl_sbn_speed_test.py [ 18%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8clamp/sse2.c.o [ 18%] Generating python/mkl/mkl_sigmoid_op_test.py [ 18%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/unbound_buffer.cc.o [ 18%] Generating python/mkl/mkl_speed_test.py [ 18%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/address.cc.o [ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/mathlimits.cc.o [ 18%] Generating python/mkl/mkl_squeeze_op_test.py [ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/substitute.cc.o [ 18%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8maxpool/16x9p8q-sse2.c.o [ 18%] Generating python/mkl/rewrite_graph.py [ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/text_format.cc.o [ 18%] Generating python/mkl/rewrite_graph_test.py [ 18%] Generating python/mkl_test_util.py [ 18%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/buffer.cc.o [ 18%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/context.cc.o [ 18%] Generating python/model_device_test.py [ 19%] Generating python/model_helper.py [ 19%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/device.cc.o [ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/timestamp.pb.cc.o [ 19%] Generating python/model_helper_test.py [ 19%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8maxpool/sub16-sse2.c.o [ 19%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8rmax/sse2.c.o [ 19%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/x2-sse2.c.o [ 19%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/x3-sse2.c.o [ 19%] Generating python/modeling/__init__.py [ 19%] Generating python/modeling/compute_histogram_for_blobs.py [ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/type.pb.cc.o [ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/unknown_field_set.cc.o [ 19%] Generating python/modeling/compute_histogram_for_blobs_test.py [ 19%] Generating python/modeling/compute_norm_for_blobs.py [ 20%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/pair.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/delimited_message_util.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/field_comparator.cc.o [ 20%] Generating python/modeling/compute_norm_for_blobs_test.py [ 20%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/x4-sse2.c.o [ 20%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/unbound_buffer.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/field_mask_util.cc.o [ 20%] Generating python/modeling/compute_statistics_for_blobs.py [ 20%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/xm-sse2.c.o [ 20%] Generating python/modeling/compute_statistics_for_blobs_test.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/datapiece.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/default_value_objectwriter.cc.o [ 20%] Generating python/modeling/get_entry_from_blobs.py [ 20%] Generating python/modeling/get_entry_from_blobs_test.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/error_listener.cc.o [ 20%] Generating python/modeling/gradient_clipping.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/field_mask_utility.cc.o [ 20%] Generating python/modeling/gradient_clipping_test.py [ 20%] Generating python/modeling/initializers.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_escaping.cc.o [ 20%] Linking C static library ../../lib/libqnnpack.a [ 20%] Generating python/modeling/initializers_test.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_objectwriter.cc.o [ 20%] Generating python/modeling/net_modifier.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_stream_parser.cc.o [ 20%] Generating python/modeling/parameter_info.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/object_writer.cc.o [ 20%] Built target qnnpack [ 20%] Generating python/modeling/parameter_sharing.py [ 20%] Generating python/modeling/parameter_sharing_test.py [ 20%] Generating python/models/__init__.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/proto_writer.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/protostream_objectsource.cc.o [ 20%] Generating python/models/__sym_init__.py Compiling bootstrap.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/bootstrap.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/protostream_objectwriter.cc.o [ 20%] Generating python/models/download.py [ 20%] Generating python/models/resnet.py [ 20%] Generating python/models/resnet_test.py [ 20%] Generating python/models/seq2seq/__init__.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/type_info.cc.o [ 20%] Generating python/models/seq2seq/beam_search.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/type_info_test_helper.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/utility.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/json_util.cc.o [ 20%] Generating python/models/seq2seq/seq2seq_beam_search_test.py [ 20%] Generating python/models/seq2seq/seq2seq_model_helper.py [ 20%] Generating python/models/seq2seq/seq2seq_model_helper_test.py [ 21%] Generating python/models/seq2seq/seq2seq_util.py [ 21%] Generating python/models/seq2seq/train.py [ 21%] Generating python/models/seq2seq/translate.py [ 21%] Generating python/modifier_context.py [ 21%] Generating python/muji.py [ 21%] Generating python/muji_test.py [ 21%] Generating python/net_builder.py [ 21%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/message_differencer.cc.o [ 21%] Generating python/net_builder_test.py [ 21%] Generating python/net_drawer.py [ 21%] Generating python/net_printer.py [ 21%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/time_util.cc.o [ 21%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/type_resolver_util.cc.o [ 22%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wire_format.cc.o [ 22%] Generating python/net_printer_test.py [ 22%] Generating python/nomnigraph_test.py [ 22%] Generating python/nomnigraph.py [ 22%] Linking CXX shared library ../lib/libc10.so [ 22%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wrappers.pb.cc.o [ 22%] Generating python/nomnigraph_transformations.py [ 22%] Generating python/nomnigraph_transformations_test.py [ 22%] Generating python/normalizer_context.py [ 22%] Generating python/normalizer.py [ 22%] Generating python/normalizer_test.py [ 22%] Generating python/numa_benchmark.py [ 22%] Generating python/numa_test.py [ 22%] Generating python/observer_test.py [ 22%] Generating python/onnx/backend.py [ 22%] Generating python/onnx/backend_cpp_rep.py [ 22%] Generating python/onnx/__init__.py [ 22%] Generating python/onnx/backend_rep.py [ 22%] Generating python/onnx/bin/__init__.py [ 22%] Generating python/onnx/bin/conversion.py [ 22%] Generating python/onnx/error.py [ 22%] Generating python/onnx/frontend.py [ 22%] Generating python/onnx/onnxifi.py [ 22%] Generating python/onnx/test_onnxifi.py [ 23%] Generating python/onnx/tests/__init__.py [ 23%] Generating python/onnx/helper.py [ 23%] Generating python/onnx/tests/c2_ref_test.py [ 23%] Generating python/onnx/tests/conversion_test.py [ 23%] Generating python/onnx/tests/helper_test.py [ 23%] Generating python/onnx/tests/ssa_test.py [ 23%] Generating python/onnx/tests/onnx_backend_test.py [ 23%] Generating python/onnx/workspace.py [ 23%] Generating python/onnx/tests/test_utils.py [ 23%] Generating python/operator_test/__init__.py [ 23%] Generating python/operator_test/activation_ops_test.py [ 23%] Generating python/operator_test/adagrad_test.py [ 23%] Generating python/operator_test/adagrad_test_helper.py [ 23%] Generating python/operator_test/adadelta_test.py [ 23%] Generating python/operator_test/adam_test.py [ 23%] Generating python/operator_test/adjust_batch_op_test.py [ 23%] Generating python/operator_test/affine_channel_op_test.py ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 23%] Generating python/operator_test/arg_ops_test.py [ 23%] Generating python/operator_test/assert_test.py [ 23%] Generating python/operator_test/apmeter_test.py [ 23%] Generating python/operator_test/atomic_ops_test.py [ 23%] Built target c10 [ 23%] Generating python/operator_test/basic_rnn_test.py [ 23%] Generating python/operator_test/batch_box_cox_test.py [ 23%] Generating python/operator_test/batch_bucketize_op_test.py [ 23%] Generating python/operator_test/batch_sparse_to_dense_op_test.py [ 23%] Generating python/operator_test/bbox_transform_test.py [ 23%] Generating python/operator_test/batch_moments_op_test.py [ 24%] Generating python/operator_test/bisect_percentile_op_test.py [ 24%] Generating python/operator_test/boolean_mask_test.py [ 24%] Generating python/operator_test/blobs_queue_db_test.py [ 24%] Generating python/operator_test/boolean_unmask_test.py [ 24%] Generating python/operator_test/box_with_nms_limit_op_test.py [ 24%] Generating python/operator_test/cast_op_test.py [ 24%] Generating python/operator_test/ceil_op_test.py [ 24%] Generating python/operator_test/channel_backprop_stats_op_test.py [ 24%] Generating python/operator_test/channel_shuffle_test.py [ 24%] Generating python/operator_test/channel_stats_op_test.py [ 24%] Generating python/operator_test/clip_tensor_op_test.py [ 24%] Generating python/operator_test/checkpoint_test.py [ 24%] Generating python/operator_test/clip_op_test.py [ 24%] Generating python/operator_test/collect_and_distribute_fpn_rpn_proposals_op_test.py [ 24%] Generating python/operator_test/concat_split_op_test.py [ 24%] Generating python/operator_test/conditional_test.py [ 24%] Generating python/operator_test/conftest.py [ 24%] Generating python/operator_test/conv_test.py [ 24%] Generating python/operator_test/conv_transpose_test.py [ 24%] Generating python/operator_test/copy_ops_test.py [ 24%] Generating python/operator_test/cosine_embedding_criterion_op_test.py [ 24%] Generating python/operator_test/counter_ops_test.py [ 24%] Generating python/operator_test/crf_test.py [ 24%] Generating python/operator_test/cross_entropy_ops_test.py [ 24%] Generating python/operator_test/ctc_beam_search_decoder_op_test.py [ 24%] Generating python/operator_test/ctc_greedy_decoder_op_test.py [ 24%] Generating python/operator_test/cudnn_recurrent_test.py [ 24%] Generating python/operator_test/data_couple_op_test.py [ 24%] Generating python/operator_test/dataset_ops_test.py [ 25%] Generating python/operator_test/depthwise_3x3_conv_test.py [ 25%] Generating python/operator_test/dense_vector_to_id_list_op_test.py [ 25%] Generating python/operator_test/distance_op_test.py [ 25%] Generating python/operator_test/detectron_keypoints.py [ 25%] Generating python/operator_test/deform_conv_test.py [ 25%] Generating python/operator_test/dropout_op_test.py [ 25%] Generating python/operator_test/duplicate_operands_test.py [ 25%] Generating python/operator_test/elementwise_linear_op_test.py [ 25%] Generating python/operator_test/elementwise_logical_ops_test.py [ 25%] Generating python/operator_test/elementwise_op_broadcast_test.py [ 25%] Generating python/operator_test/elementwise_ops_test.py [ 25%] Generating python/operator_test/emptysample_ops_test.py [ 25%] Generating python/operator_test/enforce_finite_op_test.py [ 25%] Generating python/operator_test/ensure_clipped_test.py [ 25%] Generating python/operator_test/ensure_cpu_output_op_test.py [ 25%] Generating python/operator_test/erf_op_test.py [ 25%] Generating python/operator_test/expand_op_test.py [ 25%] Generating python/operator_test/fc_operator_test.py [ 25%] Generating python/operator_test/feature_maps_ops_test.py [ 25%] Generating python/operator_test/find_op_test.py [ 25%] Generating python/operator_test/flatten_op_test.py [ 25%] Generating python/operator_test/filler_ops_test.py [ 25%] Generating python/operator_test/flexible_top_k_test.py [ 25%] Generating python/operator_test/floor_op_test.py [ 25%] Generating python/operator_test/gather_ops_test.py [ 25%] Generating python/operator_test/gather_ranges_op_test.py [ 25%] Generating python/operator_test/given_tensor_byte_string_to_uint8_fill_op_test.py [ 25%] Generating python/operator_test/given_tensor_fill_op_test.py [ 25%] Generating python/operator_test/glu_op_test.py [ 25%] Generating python/operator_test/group_norm_op_test.py [ 26%] Generating python/operator_test/gru_test.py [ 26%] Generating python/operator_test/group_conv_test.py [ 26%] Generating python/operator_test/heatmap_max_keypoint_op_test.py [ 26%] Generating python/operator_test/hsm_test.py [ 26%] Generating python/operator_test/hyperbolic_ops_test.py [ 26%] Generating python/operator_test/im2col_col2im_test.py [ 26%] Generating python/operator_test/image_input_op_test.py [ 26%] Generating python/operator_test/index_hash_ops_test.py [ 26%] Generating python/operator_test/index_ops_test.py [ 26%] Generating python/operator_test/instance_norm_test.py [ 26%] Generating python/operator_test/integral_image_ops_test.py [ 26%] Generating python/operator_test/key_split_ops_test.py [ 26%] Generating python/operator_test/jsd_ops_test.py [ 26%] Generating python/operator_test/lars_test.py [ 26%] Generating python/operator_test/layer_norm_op_test.py [ 26%] Generating python/operator_test/leaky_relu_test.py [ 26%] Generating python/operator_test/learning_rate_adaption_op_test.py [ 26%] Generating python/operator_test/learning_rate_op_test.py [ 26%] Generating python/operator_test/lengths_pad_op_test.py [ 26%] Generating python/operator_test/length_split_op_test.py [ 26%] Generating python/operator_test/lengths_tile_op_test.py [ 26%] Generating python/operator_test/lengths_top_k_ops_test.py [ 26%] Generating python/operator_test/listwise_l2r_operator_test.py [ 26%] Generating python/operator_test/locally_connected_op_test.py [ 26%] Generating python/operator_test/load_save_test.py [ 26%] Generating python/operator_test/loss_ops_test.py [ 26%] Generating python/operator_test/lpnorm_op_test.py [ 27%] Generating python/operator_test/map_ops_test.py [ 27%] Generating python/operator_test/margin_ranking_criterion_op_test.py [ 27%] Generating python/operator_test/math_ops_test.py [ 27%] Generating python/operator_test/mean_op_test.py [ 27%] Generating python/operator_test/matmul_op_test.py [ 27%] Generating python/operator_test/merge_id_lists_op_test.py [ 27%] Generating python/operator_test/mkl_conv_op_test.py [ 27%] Generating python/operator_test/mkl_packed_fc_op_test.py [ 27%] Generating python/operator_test/mkl_speed_test.py [ 27%] Generating python/operator_test/mod_op_test.py [ 27%] Generating python/operator_test/moments_op_test.py [ 27%] Generating python/operator_test/momentum_sgd_test.py [ 27%] Generating python/operator_test/negate_gradient_op_test.py [ 27%] Generating python/operator_test/ngram_ops_test.py [ 27%] Generating python/operator_test/normalize_op_test.py [ 27%] Generating python/operator_test/mpi_test.py [ 27%] Generating python/operator_test/numpy_tile_op_test.py [ 27%] Generating python/operator_test/one_hot_ops_test.py [ 27%] Generating python/operator_test/onnx_while_test.py [ 27%] Generating python/operator_test/order_switch_test.py [ 27%] Generating python/operator_test/pack_ops_test.py [ 27%] Generating python/operator_test/pack_rnn_sequence_op_test.py [ 27%] Generating python/operator_test/pad_test.py [ 27%] Generating python/operator_test/partition_ops_test.py [ 27%] Generating python/operator_test/percentile_op_test.py [ 27%] Generating python/operator_test/pooling_test.py [ 27%] Generating python/operator_test/piecewise_linear_transform_test.py [ 27%] Generating python/operator_test/prepend_dim_test.py [ 27%] Generating python/operator_test/python_op_test.py [ 28%] Generating python/operator_test/rand_quantization_op_speed_test.py [ 28%] Generating python/operator_test/rank_loss_operator_test.py [ 28%] Generating python/operator_test/rand_quantization_op_test.py [ 28%] Generating python/operator_test/rebatching_queue_test.py [ 28%] Generating python/operator_test/record_queue_test.py [ 28%] Generating python/operator_test/recurrent_net_executor_test.py [ 28%] Generating python/operator_test/reduce_ops_test.py [ 28%] Generating python/operator_test/resize_op_test.py [ 28%] Generating python/operator_test/reduction_ops_test.py [ 28%] Generating python/operator_test/recurrent_network_test.py [ 28%] Generating python/operator_test/reshape_ops_test.py [ 28%] Generating python/operator_test/rnn_cell_test.py [ 28%] Generating python/operator_test/rmac_regions_op_test.py [ 28%] Generating python/operator_test/segment_ops_test.py [ 28%] Generating python/operator_test/sparse_gradient_checker_test.py [ 28%] Generating python/operator_test/selu_op_test.py [ 28%] Generating python/operator_test/shape_inference_test.py [ 28%] Generating python/operator_test/softplus_op_test.py [ 28%] Generating python/operator_test/sinusoid_position_encoding_op_test.py [ 28%] Generating python/operator_test/roi_align_rotated_op_test.py [ 28%] Generating python/operator_test/softmax_ops_test.py [ 28%] Generating python/operator_test/sequence_ops_test.py [ 28%] Generating python/operator_test/sparse_lengths_sum_benchmark.py [ 28%] Generating python/operator_test/sparse_normalize_test.py [ 28%] Generating python/operator_test/sparse_ops_test.py [ 28%] Generating python/operator_test/sparse_to_dense_mask_op_test.py [ 28%] Generating python/operator_test/spatial_bn_op_test.py [ 28%] Generating python/operator_test/specialized_segment_ops_test.py [ 28%] Generating python/operator_test/square_root_divide_op_test.py [ 28%] Generating python/operator_test/transpose_op_test.py [ 28%] Generating python/operator_test/stats_put_ops_test.py [ 28%] Generating python/operator_test/thresholded_relu_op_test.py [ 28%] Generating python/operator_test/string_ops_test.py [ 28%] Generating python/operator_test/top_k_test.py [ 29%] Generating python/operator_test/torch_integration_test.py [ 29%] Generating python/operator_test/text_file_reader_test.py [ 29%] Generating python/operator_test/tile_op_test.py [ 29%] Generating python/operator_test/stats_ops_test.py [ 29%] Generating python/operator_test/trigonometric_op_test.py [ 29%] Generating python/operator_test/unique_ops_test.py [ 29%] Generating python/operator_test/unique_uniform_fill_op_test.py [ 29%] Generating python/operator_test/upsample_op_test.py [ 29%] Generating python/operator_test/utility_ops_test.py [ 29%] Generating python/operator_test/video_input_op_test.py [ 29%] Generating python/operator_test/weighted_multi_sample_test.py [ 29%] Generating python/operator_test/weighted_sum_test.py [ 29%] Generating python/operator_test/wngrad_test.py [ 29%] Generating python/operator_test/weighted_sample_test.py [ 29%] Generating python/optimizer_context.py [ 29%] Generating python/optimizer.py [ 29%] Generating python/optimizer_test.py [ 29%] Generating python/optimizer_test_util.py [ 29%] Generating python/parallel_workers_test.py [ 29%] Generating python/parallel_workers.py [ 29%] Generating python/parallelize_bmuf_distributed_test.py [ 29%] Generating python/pipeline.py [ 29%] Generating python/pipeline_test.py [ 29%] Generating python/predictor/__init__.py [ 30%] Generating python/predictor/predictor_exporter.py include/net.h:33:21: warning: ‘ncclResult_t ncclNetCloseListen(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseListen(void* listenComm) { NCCLCHECK(ncclNet-&gt;closeListen(listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~~ include/net.h:32:21: warning: ‘ncclResult_t ncclNetCloseRecv(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseRecv(void* recvComm) { NCCLCHECK(ncclNet-&gt;closeRecv(recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:31:21: warning: ‘ncclResult_t ncclNetCloseSend(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseSend(void* sendComm) { NCCLCHECK(ncclNet-&gt;closeSend(sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ [ 30%] Generating python/predictor/mobile_exporter.py include/net.h:30:21: warning: ‘ncclResult_t ncclNetTest(void*, int*, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetTest(void* request, int* done, int* size) { NCCLCHECK(ncclNet-&gt;test(request, done, size)); return ncclSuccess; } ^~~~~~~~~~~ include/net.h:29:21: warning: ‘ncclResult_t ncclNetFlush(void*, void*, int)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetFlush(void* recvComm, void* data, int size) { NCCLCHECK(ncclNet-&gt;flush(recvComm, data, size)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:28:21: warning: ‘ncclResult_t ncclNetIrecv(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIrecv(void* recvComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;irecv(recvComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:27:21: warning: ‘ncclResult_t ncclNetIsend(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIsend(void* sendComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;isend(sendComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:26:21: warning: ‘ncclResult_t ncclNetAccept(void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetAccept(void* listenComm, void** recvComm) { NCCLCHECK(ncclNet-&gt;accept(listenComm, recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:25:21: warning: ‘ncclResult_t ncclNetConnect(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetConnect(int dev, void* handle, void** sendComm) { NCCLCHECK(ncclNet-&gt;connect(dev, handle, sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:24:21: warning: ‘ncclResult_t ncclNetListen(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetListen(int dev, void* handle, void** listenComm) { NCCLCHECK(ncclNet-&gt;listen(dev, handle, listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:23:21: warning: ‘ncclResult_t ncclNetPtrSupport(int, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetPtrSupport(int dev, int* supportedTypes) { NCCLCHECK(ncclNet-&gt;ptrSupport(dev, supportedTypes)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~ include/net.h:22:21: warning: ‘ncclResult_t ncclNetDevices(int*, int**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetDevices(int* ndev, int** scores) { NCCLCHECK(ncclNet-&gt;devices(ndev, scores)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:21:20: warning: ‘const char* ncclNetName()’ defined but not used [-Wunused-function] static const char* ncclNetName() { return ncclNet-&gt;name; } ^~~~~~~~~~~ [ 30%] Generating python/predictor/mobile_exporter_test.py [ 30%] Generating python/predictor/predictor_py_utils.py [ 30%] Generating python/predictor/predictor_test.py [ 30%] Generating python/predictor/serde.py [ 30%] Generating python/predictor/predictor_exporter_test.py [ 30%] Generating python/predictor_constants.py [ 30%] Generating python/python_op_test.py [ 30%] Generating python/queue_util.py [ 30%] Generating python/recurrent.py [ 30%] Generating python/record_queue.py [ 30%] Generating python/regularizer_context.py [ 30%] Generating python/regularizer.py [ 30%] Generating python/regularizer_test.py [ 30%] Generating python/rnn/lstm_comparison.py [ 30%] Generating python/rnn_cell.py [ 30%] Generating python/rnn/__init__.py [ 30%] Generating python/schema_test.py [ 30%] Generating python/schema.py [ 30%] Generating python/rnn/rnn_cell_test_util.py [ 30%] Generating python/scope.py [ 30%] Generating python/scope_test.py [ 30%] Generating python/serialized_test/__init__.py [ 30%] Generating python/serialized_test/coverage.py [ 30%] Generating python/serialized_test/serialized_test_util.py [ 30%] Generating python/session.py [ 30%] Generating python/sparse_to_dense_mask_test.py [ 30%] Generating python/session_test.py [ 31%] Generating python/sparse_to_dense_test.py [ 31%] Generating python/task.py [ 31%] Generating python/task_test.py [ 31%] Generating python/test/__init__.py [ 31%] Generating python/test/do_op_test.py [ 31%] Generating python/test/blob_deallocation_test.py [ 31%] Generating python/test/executor_test.py [ 31%] Generating python/test/executor_test_util.py [ 31%] Generating python/test_util.py [ 31%] Generating python/text_file_reader.py [ 31%] Generating python/test/inference_lstm_op_test.py [ 31%] Generating python/timeout_guard.py [ 31%] Generating python/toy_regression_test.py [ 31%] Generating python/transformations_test.py [ 31%] Generating python/transformations.py [ 31%] Generating python/trt/__init__.py [ 31%] Generating python/trt/test_trt.py [ 31%] Generating python/trt/transform.py [ 31%] Generating python/tt_core.py [ 31%] Generating python/tt_core_test.py [ 31%] Generating python/utils.py [ 31%] Generating python/utils_test.py [ 31%] Generating python/visualize.py [ 31%] Generating python/workspace_test.py [ 31%] Generating python/workspace.py [ 31%] Generating quantization/__init__.py [ 31%] Generating quantization/server/__init__.py [ 31%] Generating quantization/server/batch_matmul_dnnlowp_op_test.py [ 31%] Generating quantization/server/batch_permutation_dnnlowp_op_test.py [ 31%] Generating quantization/server/conv_depthwise_dnnlowp_op_test.py [ 32%] Generating quantization/server/concat_dnnlowp_op_test.py [ 32%] Generating quantization/server/conv_dnnlowp_acc16_op_test.py [ 32%] Generating quantization/server/channel_shuffle_dnnlowp_op_test.py [ 32%] Generating quantization/server/conv_groupwise_dnnlowp_acc16_op_test.py [ 32%] Generating quantization/server/conv_dnnlowp_op_test.py [ 32%] Generating quantization/server/conv_groupwise_dnnlowp_op_test.py [ 32%] Generating quantization/server/dequantize_dnnlowp_op_test.py [ 32%] Generating quantization/server/dnnlowp_test_utils.py [ 32%] Generating quantization/server/elementwise_add_dnnlowp_op_test.py [ 32%] Generating quantization/server/elementwise_linear_dnnlowp_op_test.py [ 32%] Generating quantization/server/elementwise_mul_dnnlowp_op_test.py [ 32%] Generating quantization/server/elementwise_sum_dnnlowp_op_test.py [ 32%] Generating quantization/server/fully_connected_dnnlowp_acc16_op_test.py [ 32%] Generating quantization/server/fully_connected_dnnlowp_op_test.py [ 32%] Generating quantization/server/fully_connected_fp16_test.py [ 32%] Generating quantization/server/group_norm_dnnlowp_op_test.py [ 32%] Generating quantization/server/gather_dnnlowp_op_test.py [ 32%] Generating quantization/server/fully_connected_rowwise_dnnlowp_op_test.py [ 32%] Generating quantization/server/lstm_unit_dnnlowp_op_test.py [ 32%] Generating quantization/server/observer_test.py [ 32%] Generating quantization/server/quantize_dnnlowp_op_test.py [ 32%] Generating quantization/server/pool_dnnlowp_op_test.py [ 32%] Generating quantization/server/relu_dnnlowp_op_test.py [ 32%] Generating quantization/server/sigmoid_dnnlowp_op_test.py [ 32%] Generating quantization/server/resize_nearest_dnnlowp_op_test.py [ 32%] Generating quantization/server/spatial_batch_norm_dnnlowp_op_test.py [ 32%] Generating quantization/server/utils.py [ 32%] Generating quantization/server/tanh_dnnlowp_op_test.py [ 32%] Built target python_copy_files Compiling transport.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Linking CXX static library ../../../lib/libgloo.a [ 32%] Built target gloo include/common_coll.h:136:21: warning: ‘ncclResult_t saveKernel(int, const void*, void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm_t, cudaStream_t, size_t, int)’ defined but not used [-Wunused-function] static ncclResult_t saveKernel(int coll, const void* sendbuff, void* recvbuff, size_t count, ^~~~~~~~~~ include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling misc/group.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/group.o [ 32%] Linking CXX static library ../../../lib/libprotobuf.a [ 32%] Built target libprotobuf ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling misc/nvmlwrap.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/nvmlwrap.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Generating src/x86_64-fma/2d-winograd-8x8-3x3.py.o Compiling misc/ibvwrap.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/ibvwrap.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Generating src/x86_64-fma/blas/s8gemm.py.o Compiling misc/rings.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/rings.o [ 32%] Generating src/x86_64-fma/blas/c8gemm.py.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Generating src/x86_64-fma/blas/s4c6gemm.py.o include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ include/net.h:33:21: warning: ‘ncclResult_t ncclNetCloseListen(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseListen(void* listenComm) { NCCLCHECK(ncclNet-&gt;closeListen(listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~~ include/net.h:32:21: warning: ‘ncclResult_t ncclNetCloseRecv(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseRecv(void* recvComm) { NCCLCHECK(ncclNet-&gt;closeRecv(recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:31:21: warning: ‘ncclResult_t ncclNetCloseSend(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseSend(void* sendComm) { NCCLCHECK(ncclNet-&gt;closeSend(sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:30:21: warning: ‘ncclResult_t ncclNetTest(void*, int*, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetTest(void* request, int* done, int* size) { NCCLCHECK(ncclNet-&gt;test(request, done, size)); return ncclSuccess; } ^~~~~~~~~~~ include/net.h:29:21: warning: ‘ncclResult_t ncclNetFlush(void*, void*, int)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetFlush(void* recvComm, void* data, int size) { NCCLCHECK(ncclNet-&gt;flush(recvComm, data, size)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:28:21: warning: ‘ncclResult_t ncclNetIrecv(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIrecv(void* recvComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;irecv(recvComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:27:21: warning: ‘ncclResult_t ncclNetIsend(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIsend(void* sendComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;isend(sendComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:26:21: warning: ‘ncclResult_t ncclNetAccept(void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetAccept(void* listenComm, void** recvComm) { NCCLCHECK(ncclNet-&gt;accept(listenComm, recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:25:21: warning: ‘ncclResult_t ncclNetConnect(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetConnect(int dev, void* handle, void** sendComm) { NCCLCHECK(ncclNet-&gt;connect(dev, handle, sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:24:21: warning: ‘ncclResult_t ncclNetListen(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetListen(int dev, void* handle, void** listenComm) { NCCLCHECK(ncclNet-&gt;listen(dev, handle, listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:23:21: warning: ‘ncclResult_t ncclNetPtrSupport(int, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetPtrSupport(int dev, int* supportedTypes) { NCCLCHECK(ncclNet-&gt;ptrSupport(dev, supportedTypes)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~ include/net.h:22:21: warning: ‘ncclResult_t ncclNetDevices(int*, int**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetDevices(int* ndev, int** scores) { NCCLCHECK(ncclNet-&gt;devices(ndev, scores)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:21:20: warning: ‘const char* ncclNetName()’ defined but not used [-Wunused-function] static const char* ncclNetName() { return ncclNet-&gt;name; } ^~~~~~~~~~~ [ 32%] Generating src/x86_64-fma/blas/conv1x1.py.o Compiling misc/utils.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/utils.o [ 32%] Generating src/x86_64-fma/blas/sgemm.py.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Generating src/x86_64-fma/max-pooling.py.o [ 32%] Generating src/x86_64-fma/relu.py.o Compiling misc/enqueue.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/enqueue.o [ 32%] Generating src/x86_64-fma/softmax.py.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Generating src/x86_64-fma/blas/sdotxf.py.o include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ include/common_coll.h:136:21: warning: ‘ncclResult_t saveKernel(int, const void*, void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm_t, cudaStream_t, size_t, int)’ defined but not used [-Wunused-function] static ncclResult_t saveKernel(int coll, const void* sendbuff, void* recvbuff, size_t count, ^~~~~~~~~~ [ 32%] Generating src/x86_64-fma/blas/shdotxf.py.o Compiling transport/p2p.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport/p2p.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/nvlink.h:116:12: warning: ‘int getNumNvlinks(const char*)’ defined but not used [-Wunused-function] static int getNumNvlinks(const char* busId) { ^~~~~~~~~~~~~ include/nvlink.h:49:21: warning: ‘ncclResult_t getMaxNvlinks(int*)’ defined but not used [-Wunused-function] static ncclResult_t getMaxNvlinks(int* maxLinks) { ^~~~~~~~~~~~~ include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ include/topo.h:46:21: warning: ‘ncclResult_t getSockPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getSockPath(char* ifName, char** path) { ^~~~~~~~~~~ include/topo.h:35:21: warning: ‘ncclResult_t getMlxPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getMlxPath(char* ibName, char** path) { ^~~~~~~~~~ Compiling transport/shm.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport/shm.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Scanning dependencies of target nnpack [ 32%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/init.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-inference.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/softmax-output.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/relu-output.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/pooling-output.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/fully-connected-output.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/fully-connected-inference.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-kernel-gradient.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/relu-input-gradient.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-output.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-input-gradient.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/x86_64-fma/softmax.c.o include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ [ 33%] Linking C static library ../../lib/libnnpack.a [ 33%] Built target nnpack Compiling transport/net.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport/net.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/nvlink.h:60:12: warning: ‘int getNvlinkGpu(const char*, const char*)’ defined but not used [-Wunused-function] static int getNvlinkGpu(const char* busId1, const char* busId2) { ^~~~~~~~~~~~ include/nvlink.h:49:21: warning: ‘ncclResult_t getMaxNvlinks(int*)’ defined but not used [-Wunused-function] static ncclResult_t getMaxNvlinks(int* maxLinks) { ^~~~~~~~~~~~~ include/topo.h:66:12: warning: ‘int pciDistance(char*, char*)’ defined but not used [-Wunused-function] static int pciDistance(char* path1, char* path2) { ^~~~~~~~~~~ include/topo.h:46:21: warning: ‘ncclResult_t getSockPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getSockPath(char* ifName, char** path) { ^~~~~~~~~~~ include/topo.h:35:21: warning: ‘ncclResult_t getMlxPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getMlxPath(char* ibName, char** path) { ^~~~~~~~~~ include/topo.h:15:21: warning: ‘ncclResult_t getCudaPath(int, char**)’ defined but not used [-Wunused-function] static ncclResult_t getCudaPath(int cudaDev, char** path) { ^~~~~~~~~~~ include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ Compiling transport/net_socket.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport/net_socket.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/topo.h:35:21: warning: ‘ncclResult_t getMlxPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getMlxPath(char* ibName, char** path) { ^~~~~~~~~~ include/net.h:33:21: warning: ‘ncclResult_t ncclNetCloseListen(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseListen(void* listenComm) { NCCLCHECK(ncclNet-&gt;closeListen(listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~~ include/net.h:32:21: warning: ‘ncclResult_t ncclNetCloseRecv(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseRecv(void* recvComm) { NCCLCHECK(ncclNet-&gt;closeRecv(recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:31:21: warning: ‘ncclResult_t ncclNetCloseSend(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseSend(void* sendComm) { NCCLCHECK(ncclNet-&gt;closeSend(sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:30:21: warning: ‘ncclResult_t ncclNetTest(void*, int*, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetTest(void* request, int* done, int* size) { NCCLCHECK(ncclNet-&gt;test(request, done, size)); return ncclSuccess; } ^~~~~~~~~~~ include/net.h:29:21: warning: ‘ncclResult_t ncclNetFlush(void*, void*, int)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetFlush(void* recvComm, void* data, int size) { NCCLCHECK(ncclNet-&gt;flush(recvComm, data, size)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:28:21: warning: ‘ncclResult_t ncclNetIrecv(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIrecv(void* recvComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;irecv(recvComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:27:21: warning: ‘ncclResult_t ncclNetIsend(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIsend(void* sendComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;isend(sendComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:26:21: warning: ‘ncclResult_t ncclNetAccept(void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetAccept(void* listenComm, void** recvComm) { NCCLCHECK(ncclNet-&gt;accept(listenComm, recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:25:21: warning: ‘ncclResult_t ncclNetConnect(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetConnect(int dev, void* handle, void** sendComm) { NCCLCHECK(ncclNet-&gt;connect(dev, handle, sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:24:21: warning: ‘ncclResult_t ncclNetListen(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetListen(int dev, void* handle, void** listenComm) { NCCLCHECK(ncclNet-&gt;listen(dev, handle, listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:23:21: warning: ‘ncclResult_t ncclNetPtrSupport(int, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetPtrSupport(int dev, int* supportedTypes) { NCCLCHECK(ncclNet-&gt;ptrSupport(dev, supportedTypes)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~ include/net.h:22:21: warning: ‘ncclResult_t ncclNetDevices(int*, int**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetDevices(int* ndev, int** scores) { NCCLCHECK(ncclNet-&gt;devices(ndev, scores)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:21:20: warning: ‘const char* ncclNetName()’ defined but not used [-Wunused-function] static const char* ncclNetName() { return ncclNet-&gt;name; } ^~~~~~~~~~~ Compiling transport/net_ib.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport/net_ib.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ include/topo.h:46:21: warning: ‘ncclResult_t getSockPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getSockPath(char* ifName, char** path) { ^~~~~~~~~~~ include/net.h:33:21: warning: ‘ncclResult_t ncclNetCloseListen(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseListen(void* listenComm) { NCCLCHECK(ncclNet-&gt;closeListen(listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~~ include/net.h:32:21: warning: ‘ncclResult_t ncclNetCloseRecv(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseRecv(void* recvComm) { NCCLCHECK(ncclNet-&gt;closeRecv(recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:31:21: warning: ‘ncclResult_t ncclNetCloseSend(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseSend(void* sendComm) { NCCLCHECK(ncclNet-&gt;closeSend(sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:30:21: warning: ‘ncclResult_t ncclNetTest(void*, int*, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetTest(void* request, int* done, int* size) { NCCLCHECK(ncclNet-&gt;test(request, done, size)); return ncclSuccess; } ^~~~~~~~~~~ include/net.h:29:21: warning: ‘ncclResult_t ncclNetFlush(void*, void*, int)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetFlush(void* recvComm, void* data, int size) { NCCLCHECK(ncclNet-&gt;flush(recvComm, data, size)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:28:21: warning: ‘ncclResult_t ncclNetIrecv(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIrecv(void* recvComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;irecv(recvComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:27:21: warning: ‘ncclResult_t ncclNetIsend(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIsend(void* sendComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;isend(sendComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:26:21: warning: ‘ncclResult_t ncclNetAccept(void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetAccept(void* listenComm, void** recvComm) { NCCLCHECK(ncclNet-&gt;accept(listenComm, recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:25:21: warning: ‘ncclResult_t ncclNetConnect(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetConnect(int dev, void* handle, void** sendComm) { NCCLCHECK(ncclNet-&gt;connect(dev, handle, sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:24:21: warning: ‘ncclResult_t ncclNetListen(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetListen(int dev, void* handle, void** listenComm) { NCCLCHECK(ncclNet-&gt;listen(dev, handle, listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:23:21: warning: ‘ncclResult_t ncclNetPtrSupport(int, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetPtrSupport(int dev, int* supportedTypes) { NCCLCHECK(ncclNet-&gt;ptrSupport(dev, supportedTypes)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~ include/net.h:22:21: warning: ‘ncclResult_t ncclNetDevices(int*, int**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetDevices(int* ndev, int** scores) { NCCLCHECK(ncclNet-&gt;devices(ndev, scores)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:21:20: warning: ‘const char* ncclNetName()’ defined but not used [-Wunused-function] static const char* ncclNetName() { return ncclNet-&gt;name; } ^~~~~~~~~~~ Compiling collectives/all_reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/all_reduce.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling collectives/all_gather.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/all_gather.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling collectives/broadcast.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/broadcast.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling collectives/reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/reduce.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling collectives/reduce_scatter.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/reduce_scatter.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling all_reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_reduce_sum.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling broadcast.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/broadcast_sum.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_sum.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_gather.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_gather_sum.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce_scatter.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_reduce_prod.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling broadcast.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/broadcast_prod.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_prod.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_gather.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_gather_prod.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce_scatter.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_reduce_min.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling broadcast.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/broadcast_min.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_min.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_gather.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_gather_min.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce_scatter.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_reduce_max.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling broadcast.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/broadcast_max.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_max.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_gather.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_gather_max.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce_scatter.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_scatter_max.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling functions.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/functions.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Archiving objects &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/colldevice.a Linking libnccl.so.2.3.7 &gt; /worka/work/derick/github/pytorch/build/nccl/lib/libnccl.so.2.3.7 Archiving libnccl_static.a &gt; /worka/work/derick/github/pytorch/build/nccl/lib/libnccl_static.a /worka/work/derick/github/pytorch/third_party/nccl/nccl/src [ 33%] No install step for 'nccl_external' [ 33%] Completed 'nccl_external' [ 33%] Built target nccl_external make: *** [all] Error 2 Traceback (most recent call last): File &quot;setup.py&quot;, line 710, in &lt;module&gt; build_deps() File &quot;setup.py&quot;, line 282, in build_deps build_dir='build') File &quot;/worka/work/derick/github/pytorch/tools/build_pytorch_libs.py&quot;, line 259, in build_caffe2 check_call(['make', '-j', str(max_jobs), 'install'], cwd=build_dir, env=my_env) File &quot;/home/derick/.conda/envs/pytorch1/lib/python3.7/subprocess.py&quot;, line 347, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['make', '-j', '36', 'install']' returned non-zero exit status 2."><pre class="notranslate"><code class="notranslate">Building wheel torch-1.1.0a0+3b5ddaf -- Building version 1.1.0a0+3b5ddaf ['cmake', '/worka/work/derick/github/pytorch', '-DBUILDING_WITH_TORCH_LIBS=ON', '-DBUILD_BINARY=False', '-DBUILD_CAFFE2_OPS=True', '-DBUILD_PYTHON=True', '-DBUILD_SHARED_LIBS=ON', '-DBUILD_TEST=True', '-DBUILD_TORCH=ON', '-DCAFFE2_STATIC_LINK_CUDA=False', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_CXX_FLAGS= ', '-DCMAKE_C_FLAGS= ', '-DCMAKE_EXE_LINKER_FLAGS=', '-DCMAKE_INSTALL_PREFIX=/worka/work/derick/github/pytorch/torch', '-DCMAKE_PREFIX_PATH=/home/derick/.conda/envs/pytorch1/lib/python3.7/site-packages', '-DCMAKE_SHARED_LINKER_FLAGS=', '-DINSTALL_TEST=True', '-DNCCL_EXTERNAL=True', '-DNUMPY_INCLUDE_DIR=/home/derick/.conda/envs/pytorch1/lib/python3.7/site-packages/numpy/core/include', '-DONNX_ML=False', '-DONNX_NAMESPACE=onnx_torch', '-DPYTHON_EXECUTABLE=/home/derick/.conda/envs/pytorch1/bin/python', '-DPYTHON_INCLUDE_DIR=/home/derick/.conda/envs/pytorch1/include/python3.7m', '-DPYTHON_LIBRARY=/home/derick/.conda/envs/pytorch1/lib/libpython3.7m.so.1.0', '-DTHD_SO_VERSION=1', '-DTORCH_BUILD_VERSION=1.1.0a0+3b5ddaf', '-DUSE_CUDA=True', '-DUSE_DISTRIBUTED=True', '-DUSE_FBGEMM=True', '-DUSE_FFMPEG=False', '-DUSE_LEVELDB=False', '-DUSE_LMDB=False', '-DUSE_MKLDNN=True', '-DUSE_NCCL=True', '-DUSE_NNPACK=True', '-DUSE_NUMPY=True', '-DUSE_OPENCV=False', '-DUSE_QNNPACK=True', '-DUSE_ROCM=False', '-DUSE_SYSTEM_EIGEN_INSTALL=OFF', '-DUSE_SYSTEM_NCCL=False', '-DUSE_TENSORRT=False', '-DMKLDNN_ENABLE_CONCURRENT_EXEC=ON'] -- The CXX compiler identification is GNU 6.4.0 -- The C compiler identification is GNU 6.4.0 -- Check for working CXX compiler: /usr/local/compilers/gcc/6.4.0/bin/c++ -- Check for working CXX compiler: /usr/local/compilers/gcc/6.4.0/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler: /usr/local/compilers/gcc/6.4.0/bin/gcc -- Check for working C compiler: /usr/local/compilers/gcc/6.4.0/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Not forcing any particular BLAS to be found -- Performing Test COMPILER_WORKS -- Performing Test COMPILER_WORKS - Success -- Performing Test SUPPORT_GLIBCXX_USE_C99 -- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success -- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED -- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success -- std::exception_ptr is supported. -- Performing Test CAFFE2_IS_NUMA_AVAILABLE -- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Success -- NUMA is available -- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING -- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed -- Turning off deprecation warning due to glog. -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Failed -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS -- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Failed -- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY -- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_SUPPORTS_RDYNAMIC -- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success -- Building using own protobuf under third_party per request. -- Use custom protobuf build. -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Caffe2 protobuf include directory: $&lt;BUILD_INTERFACE:/worka/work/derick/github/pytorch/third_party/protobuf/src&gt;$&lt;INSTALL_INTERFACE:include&gt; -- Trying to find preferred BLAS backend of choice: MKL -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of void* -- Check size of void* - done -- Looking for cblas_sgemm -- Looking for cblas_sgemm - found -- MKL libraries: /home/derick/.conda/envs/pytorch1/lib/libmkl_intel_lp64.so;/home/derick/.conda/envs/pytorch1/lib/libmkl_gnu_thread.so;/home/derick/.conda/envs/pytorch1/lib/libmkl_core.so;-fopenmp;/usr/lib64/libpthread.so;/usr/lib64/libm.so;/usr/lib64/libdl.so -- MKL include directory: /home/derick/.conda/envs/pytorch1/include -- MKL OpenMP type: GNU -- MKL OpenMP library: -fopenmp -- The ASM compiler identification is GNU -- Found assembler: /usr/local/compilers/gcc/6.4.0/bin/gcc -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Brace yourself, we are building NNPACK -- Found PythonInterp: /home/derick/.conda/envs/pytorch1/bin/python (found version "3.7.2") -- Failed to find LLVM FileCheck -- Found Git: /usr/bin/git (found version "1.7.1") -- git Version: v1.4.0-505be96a -- Version: 1.4.0 -- Performing Test HAVE_CXX_FLAG_STD_CXX11 -- Performing Test HAVE_CXX_FLAG_STD_CXX11 - Success -- Performing Test HAVE_CXX_FLAG_WALL -- Performing Test HAVE_CXX_FLAG_WALL - Success -- Performing Test HAVE_CXX_FLAG_WEXTRA -- Performing Test HAVE_CXX_FLAG_WEXTRA - Success -- Performing Test HAVE_CXX_FLAG_WSHADOW -- Performing Test HAVE_CXX_FLAG_WSHADOW - Success -- Performing Test HAVE_CXX_FLAG_WERROR -- Performing Test HAVE_CXX_FLAG_WERROR - Success -- Performing Test HAVE_CXX_FLAG_PEDANTIC -- Performing Test HAVE_CXX_FLAG_PEDANTIC - Success -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS -- Performing Test HAVE_CXX_FLAG_PEDANTIC_ERRORS - Success -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 -- Performing Test HAVE_CXX_FLAG_WSHORTEN_64_TO_32 - Failed -- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL -- Performing Test HAVE_CXX_FLAG_WFLOAT_EQUAL - Success -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING -- Performing Test HAVE_CXX_FLAG_FSTRICT_ALIASING - Success -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS -- Performing Test HAVE_CXX_FLAG_WNO_DEPRECATED_DECLARATIONS - Success -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING -- Performing Test HAVE_CXX_FLAG_WSTRICT_ALIASING - Success -- Performing Test HAVE_CXX_FLAG_WD654 -- Performing Test HAVE_CXX_FLAG_WD654 - Failed -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY -- Performing Test HAVE_CXX_FLAG_WTHREAD_SAFETY - Failed -- Performing Test HAVE_CXX_FLAG_COVERAGE -- Performing Test HAVE_CXX_FLAG_COVERAGE - Success -- Performing Test HAVE_STD_REGEX -- Performing Test HAVE_STD_REGEX -- Performing Test HAVE_STD_REGEX -- success -- Performing Test HAVE_GNU_POSIX_REGEX -- Performing Test HAVE_GNU_POSIX_REGEX -- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile -- Performing Test HAVE_POSIX_REGEX -- Performing Test HAVE_POSIX_REGEX -- Performing Test HAVE_POSIX_REGEX -- success -- Performing Test HAVE_STEADY_CLOCK -- Performing Test HAVE_STEADY_CLOCK -- Performing Test HAVE_STEADY_CLOCK -- success CMake Warning at cmake/Dependencies.cmake:362 (message): A compiler with AVX512 support is required for FBGEMM. Not compiling with FBGEMM. Turn this warning off by USE_FBGEMM=OFF. Call Stack (most recent call first): CMakeLists.txt:229 (include) -- Found Numa: /usr/include -- Found Numa (include: /usr/include, library: /usr/lib64/libnuma.so) -- Using third party subdirectory Eigen. Python 3.7.2 -- Found PythonInterp: /home/derick/.conda/envs/pytorch1/bin/python (found suitable version "3.7.2", minimum required is "2.7") -- Found PythonLibs: /home/derick/.conda/envs/pytorch1/lib/libpython3.7m.so.1.0 (found suitable version "3.7.2", minimum required is "2.7") -- Could NOT find pybind11 (missing: pybind11_DIR) -- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR) -- Using third_party/pybind11. -- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS) -- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) CMake Warning at cmake/Dependencies.cmake:670 (message): Not compiling with MPI. Suppress this warning with -DUSE_MPI=OFF Call Stack (most recent call first): CMakeLists.txt:229 (include) -- Adding OpenMP CXX_FLAGS: -fopenmp -- Will link against OpenMP libraries: /usr/local/compilers/gcc/6.4.0/lib64/libgomp.so;/usr/lib64/libpthread.so -- Found CUDA: /usr/local/packages/cuda/9.2 (found version "9.2") -- Caffe2: CUDA detected: 9.2 -- Caffe2: CUDA nvcc is: /usr/local/packages/cuda/9.2/bin/nvcc -- Caffe2: CUDA toolkit directory: /usr/local/packages/cuda/9.2 -- Caffe2: Header version is: 9.2 -- Could NOT find CUDNN (missing: CUDNN_INCLUDE_DIR CUDNN_LIBRARY) CMake Warning at cmake/public/cuda.cmake:110 (message): Caffe2: Cannot find cuDNN library. Turning the option off Call Stack (most recent call first): cmake/Dependencies.cmake:735 (include) CMakeLists.txt:229 (include) -- Autodetected CUDA architecture(s): 7.0;7.0 -- Added CUDA NVCC flags for: -gencode;arch=compute_70,code=sm_70 -- Could NOT find CUB (missing: CUB_INCLUDE_DIR) -- Found CUDA: /usr/local/packages/cuda/9.2 (found suitable version "9.2", minimum required is "7.0") -- CUDA detected: 9.2 CMake Warning at cmake/Dependencies.cmake:994 (message): Metal is only used in ios builds. Call Stack (most recent call first): CMakeLists.txt:229 (include) -- -- ******** Summary ******** -- CMake version : 3.12.2 -- CMake command : /home/derick/.conda/envs/pytorch1/bin/cmake -- System : Linux -- C++ compiler : /usr/local/compilers/gcc/6.4.0/bin/c++ -- C++ compiler version : 6.4.0 -- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -Wnon-virtual-dtor -- Build type : Release -- Compile definitions : TH_BLAS_MKL -- CMAKE_PREFIX_PATH : /home/derick/.conda/envs/pytorch1/lib/python3.7/site-packages -- CMAKE_INSTALL_PREFIX : /worka/work/derick/github/pytorch/torch -- CMAKE_MODULE_PATH : /worka/work/derick/github/pytorch/cmake/Modules;/worka/work/derick/github/pytorch/cmake/public/../Modules_CUDA_fix -- -- ONNX version : 1.4.1 -- ONNX NAMESPACE : onnx_torch -- ONNX_BUILD_TESTS : OFF -- ONNX_BUILD_BENCHMARKS : OFF -- ONNX_USE_LITE_PROTO : OFF -- ONNXIFI_DUMMY_BACKEND : OFF -- ONNXIFI_ENABLE_EXT : OFF -- -- Protobuf compiler : -- Protobuf includes : -- Protobuf libraries : -- BUILD_ONNX_PYTHON : OFF -- -- ******** Summary ******** -- CMake version : 3.12.2 -- CMake command : /home/derick/.conda/envs/pytorch1/bin/cmake -- System : Linux -- C++ compiler : /usr/local/compilers/gcc/6.4.0/bin/c++ -- C++ compiler version : 6.4.0 -- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -Wnon-virtual-dtor -- Build type : Release -- Compile definitions : TH_BLAS_MKL -- CMAKE_PREFIX_PATH : /home/derick/.conda/envs/pytorch1/lib/python3.7/site-packages -- CMAKE_INSTALL_PREFIX : /worka/work/derick/github/pytorch/torch -- CMAKE_MODULE_PATH : /worka/work/derick/github/pytorch/cmake/Modules;/worka/work/derick/github/pytorch/cmake/public/../Modules_CUDA_fix -- -- ONNX version : 1.4.1 -- ONNX NAMESPACE : onnx_torch -- ONNX_BUILD_TESTS : OFF -- ONNX_BUILD_BENCHMARKS : OFF -- ONNX_USE_LITE_PROTO : OFF -- ONNXIFI_DUMMY_BACKEND : OFF -- -- Protobuf compiler : -- Protobuf includes : -- Protobuf libraries : -- BUILD_ONNX_PYTHON : OFF -- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor -- Removing -DNDEBUG from compile flags -- Checking prototype magma_get_sgeqrf_nb for MAGMA_V2 - True -- Compiling with MAGMA support -- MAGMA INCLUDE DIRECTORIES: /home/derick/.conda/envs/pytorch1/include -- MAGMA LIBRARIES: /home/derick/.conda/envs/pytorch1/lib/libmagma.a -- MAGMA V2 check: 1 -- Could not find hardware support for NEON on this machine. -- No OMAP3 processor on this machine. -- No OMAP4 processor on this machine. -- Looking for cpuid.h -- Looking for cpuid.h - found -- Performing Test HAVE_GCC_GET_CPUID -- Performing Test HAVE_GCC_GET_CPUID - Success -- Performing Test NO_GCC_EBX_FPIC_BUG -- Performing Test NO_GCC_EBX_FPIC_BUG - Success -- Performing Test C_HAS_AVX_1 -- Performing Test C_HAS_AVX_1 - Failed -- Performing Test C_HAS_AVX_2 -- Performing Test C_HAS_AVX_2 - Success -- Performing Test C_HAS_AVX2_1 -- Performing Test C_HAS_AVX2_1 - Failed -- Performing Test C_HAS_AVX2_2 -- Performing Test C_HAS_AVX2_2 - Failed -- Performing Test C_HAS_AVX2_3 -- Performing Test C_HAS_AVX2_3 - Failed -- Performing Test CXX_HAS_AVX_1 -- Performing Test CXX_HAS_AVX_1 - Failed -- Performing Test CXX_HAS_AVX_2 -- Performing Test CXX_HAS_AVX_2 - Success -- Performing Test CXX_HAS_AVX2_1 -- Performing Test CXX_HAS_AVX2_1 - Failed -- Performing Test CXX_HAS_AVX2_2 -- Performing Test CXX_HAS_AVX2_2 - Failed -- Performing Test CXX_HAS_AVX2_3 -- Performing Test CXX_HAS_AVX2_3 - Failed -- AVX compiler support found -- Performing Test HAS_C11_ATOMICS -- Performing Test HAS_C11_ATOMICS - Failed -- Performing Test HAS_MSC_ATOMICS -- Performing Test HAS_MSC_ATOMICS - Failed -- Performing Test HAS_GCC_ATOMICS -- Performing Test HAS_GCC_ATOMICS - Success -- Atomics: using GCC intrinsics -- Performing Test BLAS_F2C_DOUBLE_WORKS -- Performing Test BLAS_F2C_DOUBLE_WORKS - Failed -- Performing Test BLAS_F2C_FLOAT_WORKS -- Performing Test BLAS_F2C_FLOAT_WORKS - Success -- Performing Test BLAS_USE_CBLAS_DOT -- Performing Test BLAS_USE_CBLAS_DOT - Success -- Found a library with BLAS API (mkl). -- Found a library with LAPACK API (mkl). -- CuDNN not found. Compiling without CuDNN support disabling ROCM because NOT USE_ROCM is set -- MIOpen not found. Compiling without MIOpen support -- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5") -- OpenMP lib: provided by compiler -- Found Doxygen: /usr/bin/doxygen (found version "1.6.1") found components: doxygen missing components: dot -- VTune profiling environment is unset -- Found MKL-DNN: TRUE -- Looking for clock_gettime in rt -- Looking for clock_gettime in rt - found -- Looking for mmap -- Looking for mmap - found -- Looking for shm_open -- Looking for shm_open - found -- Looking for shm_unlink -- Looking for shm_unlink - found -- Looking for malloc_usable_size -- Looking for malloc_usable_size - found -- Performing Test C_HAS_THREAD -- Performing Test C_HAS_THREAD - Success -- GCC 6.4.0: Adding gcc and gcc_s libs to link line -- NUMA paths: -- /usr/include -- /usr/lib64/libnuma.so -- Check size of long double -- Check size of long double - done -- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE -- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE - Success -- Performing Test COMPILER_SUPPORTS_FLOAT128 -- Performing Test COMPILER_SUPPORTS_FLOAT128 - Success -- Performing Test COMPILER_SUPPORTS_SSE2 -- Performing Test COMPILER_SUPPORTS_SSE2 - Success -- Performing Test COMPILER_SUPPORTS_SSE4 -- Performing Test COMPILER_SUPPORTS_SSE4 - Success -- Performing Test COMPILER_SUPPORTS_AVX -- Performing Test COMPILER_SUPPORTS_AVX - Success -- Performing Test COMPILER_SUPPORTS_FMA4 -- Performing Test COMPILER_SUPPORTS_FMA4 - Success -- Performing Test COMPILER_SUPPORTS_AVX2 -- Performing Test COMPILER_SUPPORTS_AVX2 - Failed -- Performing Test COMPILER_SUPPORTS_SVE -- Performing Test COMPILER_SUPPORTS_SVE - Failed -- Performing Test COMPILER_SUPPORTS_AVX512F -- Performing Test COMPILER_SUPPORTS_AVX512F - Failed -- Performing Test COMPILER_SUPPORTS_OPENMP -- Performing Test COMPILER_SUPPORTS_OPENMP - Success -- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES -- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES - Success -- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH -- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH - Success -- Configuring build for SLEEF-v3.2 Target system: Linux-2.6.32-696.23.1.el6.x86_64 Target processor: x86_64 Host system: Linux-2.6.32-696.23.1.el6.x86_64 Host processor: x86_64 Detected C compiler: GNU @ /usr/local/compilers/gcc/6.4.0/bin/gcc -- Using option `-Wall -Wno-unused -Wno-attributes -Wno-unused-result -Wno-psabi -ffp-contract=off -fno-math-errno -fno-trapping-math` to compile libsleef -- Building shared libs : OFF -- MPFR : LIB_MPFR-NOTFOUND -- GMP : /usr/lib64/libgmp.so -- RUNNING_ON_TRAVIS : 0 -- COMPILER_SUPPORTS_OPENMP : 1 -- pytorch is compiling with OpenMP. OpenMP CXX_FLAGS: -fopenmp. OpenMP libraries: /usr/local/compilers/gcc/6.4.0/lib64/libgomp.so;/usr/lib64/libpthread.so. -- /usr/local/compilers/gcc/6.4.0/bin/c++ /worka/work/derick/github/pytorch/torch/abi-check.cpp -o /worka/work/derick/github/pytorch/build/abi-check -- Determined _GLIBCXX_USE_CXX11_ABI=1 -- Performing Test HAS_THREAD_LOCAL -- Performing Test HAS_THREAD_LOCAL - Success -- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS) -- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) -- Found CUDA: /usr/local/packages/cuda/9.2 (found suitable version "9.2", minimum required is "7.5") -- Building the gloo backend with TCP support only -- Found CUDA: /usr/local/packages/cuda/9.2 (found version "9.2") -- Building C10D with CUDA support -- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS) -- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) -- Not able to find MPI, will compile c10d without MPI support -- Include NCCL operators -- Including IDEEP operators -- Excluding image processing operators due to no opencv -- Excluding video processing operators due to no opencv -- MPI operators skipped due to no MPI support -- Include Observer library -- Caffe2 is compiling with OpenMP. OpenMP CXX_FLAGS: -fopenmp. OpenMP libraries: /usr/local/compilers/gcc/6.4.0/lib64/libgomp.so;/usr/lib64/libpthread.so. -- Using lib/python3.7/site-packages as python relative installation path CMake Warning at CMakeLists.txt:426 (message): Generated cmake files are only fully tested if one builds with system glog, gflags, and protobuf. Other settings may generate files that are not well tested. -- -- ******** Summary ******** -- General: -- CMake version : 3.12.2 -- CMake command : /home/derick/.conda/envs/pytorch1/bin/cmake -- System : Linux -- C++ compiler : /usr/local/compilers/gcc/6.4.0/bin/c++ -- C++ compiler id : GNU -- C++ compiler version : 6.4.0 -- BLAS : MKL -- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -Wno-unused-but-set-variable -Wno-maybe-uninitialized -- Build type : Release -- Compile definitions : TH_BLAS_MKL;ONNX_NAMESPACE=onnx_torch;MAGMA_V2;USE_GCC_ATOMICS=1;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1 -- CMAKE_PREFIX_PATH : /home/derick/.conda/envs/pytorch1/lib/python3.7/site-packages -- CMAKE_INSTALL_PREFIX : /worka/work/derick/github/pytorch/torch -- -- TORCH_VERSION : 1.1.0 -- CAFFE2_VERSION : 1.1.0 -- BUILD_ATEN_MOBILE : OFF -- BUILD_ATEN_ONLY : OFF -- BUILD_BINARY : False -- BUILD_CUSTOM_PROTOBUF : ON -- Link local protobuf : ON -- BUILD_DOCS : OFF -- BUILD_PYTHON : True -- Python version : 3.7.2 -- Python executable : /home/derick/.conda/envs/pytorch1/bin/python -- Pythonlibs version : 3.7.2 -- Python library : /home/derick/.conda/envs/pytorch1/lib/libpython3.7m.so.1.0 -- Python includes : /home/derick/.conda/envs/pytorch1/include/python3.7m -- Python site-packages: lib/python3.7/site-packages -- BUILD_CAFFE2_OPS : True -- BUILD_SHARED_LIBS : ON -- BUILD_TEST : True -- USE_ASAN : OFF -- USE_CUDA : True -- CUDA static link : False -- USE_CUDNN : OFF -- CUDA version : 9.2 -- CUDA root directory : /usr/local/packages/cuda/9.2 -- CUDA library : /usr/local/packages/cuda/9.2/lib64/stubs/libcuda.so -- cudart library : /usr/local/packages/cuda/9.2/lib64/libcudart.so -- cublas library : /usr/local/packages/cuda/9.2/lib64/libcublas.so -- cufft library : /usr/local/packages/cuda/9.2/lib64/libcufft.so -- curand library : /usr/local/packages/cuda/9.2/lib64/libcurand.so -- nvrtc : /usr/local/packages/cuda/9.2/lib64/libnvrtc.so -- CUDA include path : /usr/local/packages/cuda/9.2/include -- NVCC executable : /usr/local/packages/cuda/9.2/bin/nvcc -- CUDA host compiler : /usr/local/compilers/gcc/6.4.0/bin/gcc -- USE_TENSORRT : OFF -- USE_ROCM : False -- USE_EIGEN_FOR_BLAS : -- USE_FBGEMM : OFF -- USE_FFMPEG : False -- USE_GFLAGS : OFF -- USE_GLOG : OFF -- USE_LEVELDB : False -- USE_LITE_PROTO : OFF -- USE_LMDB : False -- USE_METAL : OFF -- USE_MKL : ON -- USE_MKLDNN : ON -- USE_NCCL : True -- USE_SYSTEM_NCCL : False -- USE_NNPACK : True -- USE_NUMPY : ON -- USE_OBSERVERS : ON -- USE_OPENCL : OFF -- USE_OPENCV : False -- USE_OPENMP : ON -- USE_PROF : OFF -- USE_QNNPACK : True -- USE_REDIS : OFF -- USE_ROCKSDB : OFF -- USE_ZMQ : OFF -- USE_DISTRIBUTED : True -- USE_MPI : OFF -- USE_GLOO : ON -- USE_GLOO_IBVERBS : OFF -- Public Dependencies : Threads::Threads;caffe2::mkl;caffe2::mkldnn -- Private Dependencies : qnnpack;nnpack;cpuinfo;/usr/lib64/libnuma.so;fp16;gloo;aten_op_header_gen;foxi_loader;rt;gcc_s;gcc;dl -- Configuring done CMake Warning at caffe2/CMakeLists.txt:214 (add_library): Cannot generate a safe runtime search path for target caffe2 because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. CMake Warning at torch/CMakeLists.txt:260 (add_library): Cannot generate a safe runtime search path for target torch because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. CMake Warning at torch/CMakeLists.txt:718 (add_library): Cannot generate a safe runtime search path for target torch_python because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. CMake Warning at test/cpp/jit/CMakeLists.txt:3 (add_executable): Cannot generate a safe runtime search path for target test_jit because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. CMake Warning at test/cpp/api/CMakeLists.txt:30 (add_executable): Cannot generate a safe runtime search path for target test_api because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. CMake Warning at cmake/Modules_CUDA_fix/upstream/FindCUDA.cmake:1839 (add_library): Cannot generate a safe linker search path for target caffe2_detectron_ops_gpu because files in some directories may conflict with libraries in implicit directories: link library [libgomp.so] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. Call Stack (most recent call first): modules/detectron/CMakeLists.txt:13 (CUDA_ADD_LIBRARY) CMake Warning at cmake/Modules_CUDA_fix/upstream/FindCUDA.cmake:1839 (add_library): Cannot generate a safe runtime search path for target caffe2_detectron_ops_gpu because files in some directories may conflict with libraries in implicit directories: runtime library [libgomp.so.1] in /usr/local/compilers/gcc/6.4.0/lib64 may be hidden by files in: /home/derick/.conda/envs/pytorch1/lib Some of these libraries may not be found correctly. Call Stack (most recent call first): modules/detectron/CMakeLists.txt:13 (CUDA_ADD_LIBRARY) -- Generating done CMake Warning: Manually-specified variables were not used by the project: THD_SO_VERSION -- Build files have been written to: /worka/work/derick/github/pytorch/build Scanning dependencies of target nccl_external Scanning dependencies of target benchmark Scanning dependencies of target libprotobuf-lite Scanning dependencies of target gtest Scanning dependencies of target pthreadpool Scanning dependencies of target gloo Scanning dependencies of target ATEN_CPU_FILES_GEN_TARGET Scanning dependencies of target ATEN_CUDA_FILES_GEN_TARGET Scanning dependencies of target mkdisp Scanning dependencies of target mkmasked_gnuabi Scanning dependencies of target mkrename_gnuabi Scanning dependencies of target thnvrtc Scanning dependencies of target clog Scanning dependencies of target common Scanning dependencies of target libprotobuf Scanning dependencies of target arraymap Scanning dependencies of target python_copy_files Scanning dependencies of target foxi_loader Scanning dependencies of target mkldnn Scanning dependencies of target c10 Scanning dependencies of target onnxifi_loader Scanning dependencies of target onnxifi_dummy [ 0%] Creating directories for 'nccl_external' Scanning dependencies of target mkrename Scanning dependencies of target foxi_dummy Scanning dependencies of target mkalias [ 0%] Building C object sleef/src/libm/CMakeFiles/mkrename.dir/mkrename.c.o [ 0%] Building C object confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/threadpool-pthreads.c.o [ 0%] Building C object confu-deps/clog/CMakeFiles/clog.dir/src/clog.c.o [ 0%] Building C object sleef/src/libm/CMakeFiles/mkmasked_gnuabi.dir/mkmasked_gnuabi.c.o [ 0%] Generating ../aten/src/ATen/CPUBoolType.cpp, ../aten/src/ATen/CPUBoolType.h, ../aten/src/ATen/CPUByteType.cpp, ../aten/src/ATen/CPUByteType.h, ../aten/src/ATen/CPUCharType.cpp, ../aten/src/ATen/CPUCharType.h, ../aten/src/ATen/CPUDoubleType.cpp, ../aten/src/ATen/CPUDoubleType.h, ../aten/src/ATen/CPUFloatType.cpp, ../aten/src/ATen/CPUFloatType.h, ../aten/src/ATen/CPUGenerator.h, ../aten/src/ATen/CPUHalfType.cpp, ../aten/src/ATen/CPUHalfType.h, ../aten/src/ATen/CPUIntType.cpp, ../aten/src/ATen/CPUIntType.h, ../aten/src/ATen/CPULongType.cpp, ../aten/src/ATen/CPULongType.h, ../aten/src/ATen/CPUShortType.cpp, ../aten/src/ATen/CPUShortType.h, ../aten/src/ATen/Declarations.yaml, ../aten/src/ATen/ExtensionBackendRegistration.h, ../aten/src/ATen/Functions.h, ../aten/src/ATen/LegacyTHCPUBoolDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUBoolDispatcher.h, ../aten/src/ATen/LegacyTHCPUByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUByteDispatcher.h, ../aten/src/ATen/LegacyTHCPUCharDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUCharDispatcher.h, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.h, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.h, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.h, ../aten/src/ATen/LegacyTHCPUIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUIntDispatcher.h, ../aten/src/ATen/LegacyTHCPULongDispatcher.cpp, ../aten/src/ATen/LegacyTHCPULongDispatcher.h, ../aten/src/ATen/LegacyTHCPUShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUShortDispatcher.h, ../aten/src/ATen/LegacyTHDispatcher.cpp, ../aten/src/ATen/LegacyTHDispatcher.h, ../aten/src/ATen/LegacyTHFunctions.h, ../aten/src/ATen/MSNPUBoolType.cpp, ../aten/src/ATen/MSNPUBoolType.h, ../aten/src/ATen/MSNPUByteType.cpp, ../aten/src/ATen/MSNPUByteType.h, ../aten/src/ATen/MSNPUCharType.cpp, ../aten/src/ATen/MSNPUCharType.h, ../aten/src/ATen/MSNPUDoubleType.cpp, ../aten/src/ATen/MSNPUDoubleType.h, ../aten/src/ATen/MSNPUFloatType.cpp, ../aten/src/ATen/MSNPUFloatType.h, ../aten/src/ATen/MSNPUHalfType.cpp, ../aten/src/ATen/MSNPUHalfType.h, ../aten/src/ATen/MSNPUIntType.cpp, ../aten/src/ATen/MSNPUIntType.h, ../aten/src/ATen/MSNPULongType.cpp, ../aten/src/ATen/MSNPULongType.h, ../aten/src/ATen/MSNPUShortType.cpp, ../aten/src/ATen/MSNPUShortType.h, ../aten/src/ATen/MSNPUType.cpp, ../aten/src/ATen/MSNPUType.h, ../aten/src/ATen/NativeFunctions.h, ../aten/src/ATen/RegisterCPU.cpp, ../aten/src/ATen/RegisterCPU.h, ../aten/src/ATen/SparseCPUBoolType.cpp, ../aten/src/ATen/SparseCPUBoolType.h, ../aten/src/ATen/SparseCPUByteType.cpp, ../aten/src/ATen/SparseCPUByteType.h, ../aten/src/ATen/SparseCPUCharType.cpp, ../aten/src/ATen/SparseCPUCharType.h, ../aten/src/ATen/SparseCPUDoubleType.cpp, ../aten/src/ATen/SparseCPUDoubleType.h, ../aten/src/ATen/SparseCPUFloatType.cpp, ../aten/src/ATen/SparseCPUFloatType.h, ../aten/src/ATen/SparseCPUIntType.cpp, ../aten/src/ATen/SparseCPUIntType.h, ../aten/src/ATen/SparseCPULongType.cpp, ../aten/src/ATen/SparseCPULongType.h, ../aten/src/ATen/SparseCPUShortType.cpp, ../aten/src/ATen/SparseCPUShortType.h, ../aten/src/ATen/TypeDefault.cpp, ../aten/src/ATen/TypeDefault.h, ../aten/src/ATen/TypeExtendedInterface.h, ../aten/src/ATen/XLABoolType.cpp, ../aten/src/ATen/XLABoolType.h, ../aten/src/ATen/XLAByteType.cpp, ../aten/src/ATen/XLAByteType.h, ../aten/src/ATen/XLACharType.cpp, ../aten/src/ATen/XLACharType.h, ../aten/src/ATen/XLADoubleType.cpp, ../aten/src/ATen/XLADoubleType.h, ../aten/src/ATen/XLAFloatType.cpp, ../aten/src/ATen/XLAFloatType.h, ../aten/src/ATen/XLAHalfType.cpp, ../aten/src/ATen/XLAHalfType.h, ../aten/src/ATen/XLAIntType.cpp, ../aten/src/ATen/XLAIntType.h, ../aten/src/ATen/XLALongType.cpp, ../aten/src/ATen/XLALongType.h, ../aten/src/ATen/XLAShortType.cpp, ../aten/src/ATen/XLAShortType.h, ../aten/src/ATen/XLAType.cpp, ../aten/src/ATen/XLAType.h, ../aten/src/ATen/CUDABoolType.cpp, ../aten/src/ATen/CUDABoolType.h, ../aten/src/ATen/CUDAByteType.cpp, ../aten/src/ATen/CUDAByteType.h, ../aten/src/ATen/CUDACharType.cpp, ../aten/src/ATen/CUDACharType.h, ../aten/src/ATen/CUDADoubleType.cpp, ../aten/src/ATen/CUDADoubleType.h, ../aten/src/ATen/CUDAFloatType.cpp, ../aten/src/ATen/CUDAFloatType.h, ../aten/src/ATen/CUDAGenerator.h, ../aten/src/ATen/CUDAHalfType.cpp, ../aten/src/ATen/CUDAHalfType.h, ../aten/src/ATen/CUDAIntType.cpp, ../aten/src/ATen/CUDAIntType.h, ../aten/src/ATen/CUDALongType.cpp, ../aten/src/ATen/CUDALongType.h, ../aten/src/ATen/CUDAShortType.cpp, ../aten/src/ATen/CUDAShortType.h, ../aten/src/ATen/LegacyTHCUDABoolDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDABoolDispatcher.h, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.h, ../aten/src/ATen/LegacyTHCUDACharDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDACharDispatcher.h, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.h, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.h, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.h, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.h, ../aten/src/ATen/LegacyTHCUDALongDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDALongDispatcher.h, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.h, ../aten/src/ATen/RegisterCUDA.cpp, ../aten/src/ATen/RegisterCUDA.h, ../aten/src/ATen/SparseCUDABoolType.cpp, ../aten/src/ATen/SparseCUDABoolType.h, ../aten/src/ATen/SparseCUDAByteType.cpp, ../aten/src/ATen/SparseCUDAByteType.h, ../aten/src/ATen/SparseCUDACharType.cpp, ../aten/src/ATen/SparseCUDACharType.h, ../aten/src/ATen/SparseCUDADoubleType.cpp, ../aten/src/ATen/SparseCUDADoubleType.h, ../aten/src/ATen/SparseCUDAFloatType.cpp, ../aten/src/ATen/SparseCUDAFloatType.h, ../aten/src/ATen/SparseCUDAIntType.cpp, ../aten/src/ATen/SparseCUDAIntType.h, ../aten/src/ATen/SparseCUDALongType.cpp, ../aten/src/ATen/SparseCUDALongType.h, ../aten/src/ATen/SparseCUDAShortType.cpp, ../aten/src/ATen/SparseCUDAShortType.h [ 0%] Building C object sleef/src/common/CMakeFiles/arraymap.dir/arraymap.c.o [ 0%] No download step for 'nccl_external' [ 0%] Generating ../aten/src/ATen/CPUBoolType.cpp, ../aten/src/ATen/CPUBoolType.h, ../aten/src/ATen/CPUByteType.cpp, ../aten/src/ATen/CPUByteType.h, ../aten/src/ATen/CPUCharType.cpp, ../aten/src/ATen/CPUCharType.h, ../aten/src/ATen/CPUDoubleType.cpp, ../aten/src/ATen/CPUDoubleType.h, ../aten/src/ATen/CPUFloatType.cpp, ../aten/src/ATen/CPUFloatType.h, ../aten/src/ATen/CPUGenerator.h, ../aten/src/ATen/CPUHalfType.cpp, ../aten/src/ATen/CPUHalfType.h, ../aten/src/ATen/CPUIntType.cpp, ../aten/src/ATen/CPUIntType.h, ../aten/src/ATen/CPULongType.cpp, ../aten/src/ATen/CPULongType.h, ../aten/src/ATen/CPUShortType.cpp, ../aten/src/ATen/CPUShortType.h, ../aten/src/ATen/Declarations.yaml, ../aten/src/ATen/ExtensionBackendRegistration.h, ../aten/src/ATen/Functions.h, ../aten/src/ATen/LegacyTHCPUBoolDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUBoolDispatcher.h, ../aten/src/ATen/LegacyTHCPUByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUByteDispatcher.h, ../aten/src/ATen/LegacyTHCPUCharDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUCharDispatcher.h, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUDoubleDispatcher.h, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUFloatDispatcher.h, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUHalfDispatcher.h, ../aten/src/ATen/LegacyTHCPUIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUIntDispatcher.h, ../aten/src/ATen/LegacyTHCPULongDispatcher.cpp, ../aten/src/ATen/LegacyTHCPULongDispatcher.h, ../aten/src/ATen/LegacyTHCPUShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCPUShortDispatcher.h, ../aten/src/ATen/LegacyTHDispatcher.cpp, ../aten/src/ATen/LegacyTHDispatcher.h, ../aten/src/ATen/LegacyTHFunctions.h, ../aten/src/ATen/MSNPUBoolType.cpp, ../aten/src/ATen/MSNPUBoolType.h, ../aten/src/ATen/MSNPUByteType.cpp, ../aten/src/ATen/MSNPUByteType.h, ../aten/src/ATen/MSNPUCharType.cpp, ../aten/src/ATen/MSNPUCharType.h, ../aten/src/ATen/MSNPUDoubleType.cpp, ../aten/src/ATen/MSNPUDoubleType.h, ../aten/src/ATen/MSNPUFloatType.cpp, ../aten/src/ATen/MSNPUFloatType.h, ../aten/src/ATen/MSNPUHalfType.cpp, ../aten/src/ATen/MSNPUHalfType.h, ../aten/src/ATen/MSNPUIntType.cpp, ../aten/src/ATen/MSNPUIntType.h, ../aten/src/ATen/MSNPULongType.cpp, ../aten/src/ATen/MSNPULongType.h, ../aten/src/ATen/MSNPUShortType.cpp, ../aten/src/ATen/MSNPUShortType.h, ../aten/src/ATen/MSNPUType.cpp, ../aten/src/ATen/MSNPUType.h, ../aten/src/ATen/NativeFunctions.h, ../aten/src/ATen/RegisterCPU.cpp, ../aten/src/ATen/RegisterCPU.h, ../aten/src/ATen/SparseCPUBoolType.cpp, ../aten/src/ATen/SparseCPUBoolType.h, ../aten/src/ATen/SparseCPUByteType.cpp, ../aten/src/ATen/SparseCPUByteType.h, ../aten/src/ATen/SparseCPUCharType.cpp, ../aten/src/ATen/SparseCPUCharType.h, ../aten/src/ATen/SparseCPUDoubleType.cpp, ../aten/src/ATen/SparseCPUDoubleType.h, ../aten/src/ATen/SparseCPUFloatType.cpp, ../aten/src/ATen/SparseCPUFloatType.h, ../aten/src/ATen/SparseCPUIntType.cpp, ../aten/src/ATen/SparseCPUIntType.h, ../aten/src/ATen/SparseCPULongType.cpp, ../aten/src/ATen/SparseCPULongType.h, ../aten/src/ATen/SparseCPUShortType.cpp, ../aten/src/ATen/SparseCPUShortType.h, ../aten/src/ATen/TypeDefault.cpp, ../aten/src/ATen/TypeDefault.h, ../aten/src/ATen/TypeExtendedInterface.h, ../aten/src/ATen/XLABoolType.cpp, ../aten/src/ATen/XLABoolType.h, ../aten/src/ATen/XLAByteType.cpp, ../aten/src/ATen/XLAByteType.h, ../aten/src/ATen/XLACharType.cpp, ../aten/src/ATen/XLACharType.h, ../aten/src/ATen/XLADoubleType.cpp, ../aten/src/ATen/XLADoubleType.h, ../aten/src/ATen/XLAFloatType.cpp, ../aten/src/ATen/XLAFloatType.h, ../aten/src/ATen/XLAHalfType.cpp, ../aten/src/ATen/XLAHalfType.h, ../aten/src/ATen/XLAIntType.cpp, ../aten/src/ATen/XLAIntType.h, ../aten/src/ATen/XLALongType.cpp, ../aten/src/ATen/XLALongType.h, ../aten/src/ATen/XLAShortType.cpp, ../aten/src/ATen/XLAShortType.h, ../aten/src/ATen/XLAType.cpp, ../aten/src/ATen/XLAType.h, ../aten/src/ATen/CUDABoolType.cpp, ../aten/src/ATen/CUDABoolType.h, ../aten/src/ATen/CUDAByteType.cpp, ../aten/src/ATen/CUDAByteType.h, ../aten/src/ATen/CUDACharType.cpp, ../aten/src/ATen/CUDACharType.h, ../aten/src/ATen/CUDADoubleType.cpp, ../aten/src/ATen/CUDADoubleType.h, ../aten/src/ATen/CUDAFloatType.cpp, ../aten/src/ATen/CUDAFloatType.h, ../aten/src/ATen/CUDAGenerator.h, ../aten/src/ATen/CUDAHalfType.cpp, ../aten/src/ATen/CUDAHalfType.h, ../aten/src/ATen/CUDAIntType.cpp, ../aten/src/ATen/CUDAIntType.h, ../aten/src/ATen/CUDALongType.cpp, ../aten/src/ATen/CUDALongType.h, ../aten/src/ATen/CUDAShortType.cpp, ../aten/src/ATen/CUDAShortType.h, ../aten/src/ATen/LegacyTHCUDABoolDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDABoolDispatcher.h, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAByteDispatcher.h, ../aten/src/ATen/LegacyTHCUDACharDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDACharDispatcher.h, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDADoubleDispatcher.h, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAFloatDispatcher.h, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAHalfDispatcher.h, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAIntDispatcher.h, ../aten/src/ATen/LegacyTHCUDALongDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDALongDispatcher.h, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.cpp, ../aten/src/ATen/LegacyTHCUDAShortDispatcher.h, ../aten/src/ATen/RegisterCUDA.cpp, ../aten/src/ATen/RegisterCUDA.h, ../aten/src/ATen/SparseCUDABoolType.cpp, ../aten/src/ATen/SparseCUDABoolType.h, ../aten/src/ATen/SparseCUDAByteType.cpp, ../aten/src/ATen/SparseCUDAByteType.h, ../aten/src/ATen/SparseCUDACharType.cpp, ../aten/src/ATen/SparseCUDACharType.h, ../aten/src/ATen/SparseCUDADoubleType.cpp, ../aten/src/ATen/SparseCUDADoubleType.h, ../aten/src/ATen/SparseCUDAFloatType.cpp, ../aten/src/ATen/SparseCUDAFloatType.h, ../aten/src/ATen/SparseCUDAIntType.cpp, ../aten/src/ATen/SparseCUDAIntType.h, ../aten/src/ATen/SparseCUDALongType.cpp, ../aten/src/ATen/SparseCUDALongType.h, ../aten/src/ATen/SparseCUDAShortType.cpp, ../aten/src/ATen/SparseCUDAShortType.h [ 0%] Building C object sleef/src/libm/CMakeFiles/mkrename_gnuabi.dir/mkrename_gnuabi.c.o [ 0%] Building C object sleef/src/libm/CMakeFiles/mkalias.dir/mkalias.c.o [ 0%] Building C object sleef/src/libm/CMakeFiles/mkdisp.dir/mkdisp.c.o [ 0%] Generating __init__.py [ 0%] Building C object third_party/onnx/CMakeFiles/onnxifi_dummy.dir/onnx/onnxifi_dummy.c.o [ 0%] Generating contrib/__init__.py [ 0%] Building C object third_party/foxi/CMakeFiles/foxi_dummy.dir/foxi/onnxifi_dummy.c.o [ 0%] Building C object third_party/foxi/CMakeFiles/foxi_loader.dir/foxi/onnxifi_loader.c.o [ 0%] Generating contrib/aten/aten_test.py [ 0%] Generating contrib/aten/__init__.py [ 0%] Building CXX object caffe2/torch/CMakeFiles/thnvrtc.dir/csrc/jit/fuser/cuda/thnvrtc.cpp.o [ 0%] Generating contrib/aten/docs/__init__.py [ 0%] Building C object third_party/onnx/CMakeFiles/onnxifi_loader.dir/onnx/onnxifi_loader.c.o [ 0%] Generating contrib/aten/gen_op.py [ 0%] Generating contrib/aten/docs/sample.py [ 0%] Generating contrib/gloo/__init__.py [ 0%] Generating contrib/gloo/gloo_test.py [ 0%] Building C object sleef/src/common/CMakeFiles/common.dir/common.c.o [ 0%] Generating contrib/nccl/__init__.py [ 0%] Generating contrib/nccl/nccl_ops_test.py [ 0%] Generating contrib/nnpack/__init__.py [ 1%] Generating contrib/playground/AnyExpOnTerm.py [ 1%] Generating contrib/nnpack/nnpack_ops_test.py [ 1%] No patch step for 'nccl_external' [ 1%] No update step for 'nccl_external' [ 1%] Generating contrib/playground/AnyExp.py [ 1%] Generating contrib/playground/ModuleRegister.py [ 1%] Generating contrib/playground/__init__.py [ 1%] Generating contrib/playground/checkpoint.py [ 1%] Generating contrib/playground/compute_loss.py [ 2%] Generating contrib/playground/compute_topk_accuracy.py [ 2%] Generating contrib/playground/meter.py [ 2%] Generating contrib/playground/module_map.py [ 2%] Generating contrib/playground/output_generator.py [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark.cc.o [ 2%] Building CXX object third_party/googletest/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/benchmark_register.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/colorprint.cc.o [ 2%] Generating contrib/playground/resnetdemo/IN1k_resnet.py [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/commandlineflags.cc.o [ 2%] Generating contrib/playground/resnetdemo/IN1k_resnet_no_test_model.py [ 2%] Generating contrib/playground/resnetdemo/__init__.py [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/complexity.cc.o [ 2%] Generating contrib/playground/resnetdemo/caffe2_resnet50_default_forward.py [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/counter.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/console_reporter.cc.o [ 2%] No configure step for 'nccl_external' [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/csv_reporter.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/json_reporter.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/reporter.cc.o [ 2%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/sleep.cc.o [ 3%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/statistics.cc.o [ 3%] Generating contrib/playground/resnetdemo/caffe2_resnet50_default_param_update.py [ 3%] Linking C static library ../../lib/libclog.a [ 3%] Performing build step for 'nccl_external' [ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/arena.cc.o make[3]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. [ 3%] Generating contrib/playground/resnetdemo/explicit_resnet_forward.py [ 3%] Generating contrib/playground/resnetdemo/explicit_resnet_param_update.py [ 3%] Built target clog [ 3%] Linking C static library ../../lib/libfoxi_loader.a [ 3%] Linking C static library ../../lib/libonnxifi_loader.a [ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/arena.cc.o [ 3%] Generating contrib/playground/resnetdemo/gfs_IN1k.py [ 3%] Generating contrib/playground/resnetdemo/override_no_test_model_no_checkpoint.py [ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/algorithm.cc.o /worka/work/derick/github/pytorch/third_party/onnx/onnx/onnxifi_dummy.c: In function ‘onnxGetExtensionFunctionAddress’: /worka/work/derick/github/pytorch/third_party/onnx/onnx/onnxifi_dummy.c:173:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *function = &amp;onnxGetExtensionFunctionAddress; ^ /worka/work/derick/github/pytorch/third_party/onnx/onnx/onnxifi_dummy.c:176:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *function = &amp;onnxSetIOAndRunGraph; ^ /worka/work/derick/github/pytorch/third_party/foxi/foxi/onnxifi_dummy.c: In function ‘onnxGetExtensionFunctionAddress’: /worka/work/derick/github/pytorch/third_party/foxi/foxi/onnxifi_dummy.c:173:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *function = &amp;onnxGetExtensionFunctionAddress; ^ /worka/work/derick/github/pytorch/third_party/foxi/foxi/onnxifi_dummy.c:176:21: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *function = &amp;onnxSetIOAndRunGraph; ^ Generating nccl.h.in &gt; /worka/work/derick/github/pytorch/build/nccl/include/nccl.h Compiling init.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/init.o [ 3%] Generating contrib/playground/resnetdemo/rendezvous_filestore.py [ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allgather.cc.o [ 3%] Linking C static library ../../lib/libpthreadpool.a [ 3%] Linking C shared library ../../lib/libonnxifi_dummy.so [ 3%] Linking C shared library ../../lib/libfoxi_dummy.so [ 3%] Linking C executable ../../bin/mkrename_gnuabi [ 4%] Linking C executable ../../bin/mkalias [ 4%] Linking C executable ../../bin/mkrename [ 4%] Linking C executable ../../bin/mkdisp [ 4%] Built target foxi_loader [ 4%] Linking C executable ../../bin/mkmasked_gnuabi [ 4%] Generating contrib/prof/__init__.py [ 4%] Built target onnxifi_loader [ 4%] Generating contrib/prof/cuda_profile_ops_test.py Scanning dependencies of target cpuinfo Scanning dependencies of target cpuinfo_internals [ 4%] Generating contrib/script/__init__.py [ 4%] Built target pthreadpool [ 4%] Built target common [ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/arenastring.cc.o Scanning dependencies of target onnxifi_wrapper [ 4%] Built target arraymap [ 4%] Generating contrib/script/examples/__init__.py [ 4%] Built target mkrename_gnuabi [ 4%] Built target onnxifi_dummy [ 4%] Built target foxi_dummy [ 4%] Building CXX object c10/CMakeFiles/c10.dir/core/Allocator.cpp.o [ 4%] Built target mkalias [ 4%] Built target mkrename [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/init.c.o [ 4%] Built target mkdisp [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/init.c.o [ 4%] Built target mkmasked_gnuabi Scanning dependencies of target foxi_wrapper [ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_table_driven_lite.cc.o [ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/extension_set.cc.o [ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/extension_set.cc.o [ 4%] Generating contrib/tensorboard/tensorboard_exporter.py [ 4%] Generating contrib/tensorboard/tensorboard.py [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o [ 4%] Generating contrib/tensorboard/__init__.py [ 4%] Building C object third_party/onnx/CMakeFiles/onnxifi_wrapper.dir/onnx/onnxifi_wrapper.c.o [ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/arenastring.cc.o [ 4%] Building C object third_party/foxi/CMakeFiles/foxi_wrapper.dir/foxi/onnxifi_wrapper.c.o [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/init.c.o [ 4%] Generating contrib/tensorboard/tensorboard_exporter_test.py Scanning dependencies of target nnpack_reference_layers [ 4%] Generating contrib/tensorboard/tensorboard_test.py [ 4%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-output.c.o [ 4%] Generating contrib/warpctc/__init__.py [ 4%] Generating contrib/warpctc/ctc_ops_test.py [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/api.c.o [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/init.c.o [ 4%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-input-gradient.c.o [ 4%] Generating core/__init__.py [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/info.c.o [ 4%] Generating core/nomnigraph/__init__.py [ 4%] Building CXX object c10/CMakeFiles/c10.dir/core/CPUAllocator.cpp.o [ 4%] Generating core/nomnigraph/op_gen.py [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/vendor.c.o [ 4%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-kernel.c.o [ 4%] Generating distributed/__init__.py [ 4%] Linking C shared module ../../lib/libonnxifi.so [ 4%] Generating distributed/file_store_handler_op_test.py [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/info.c.o [ 4%] Linking C shared module ../../lib/libfoxi.so [ 4%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/vendor.c.o [ 5%] Generating distributed/redis_store_handler_op_test.py [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/uarch.c.o [ 5%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/fully-connected-output.c.o [ 5%] Generating distributed/store_ops_test_util.py [ 5%] Generating experiments/__init__.py [ 5%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/max-pooling-output.c.o [ 5%] Built target onnxifi_wrapper [ 5%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/softmax-output.c.o [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/uarch.c.o [ 5%] Generating experiments/python/SparseTransformer.py [ 5%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/relu-output.c.o [ 5%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/relu-input-gradient.c.o [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/name.c.o [ 5%] Built target foxi_wrapper [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/name.c.o [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/topology.c.o [ 5%] Generating experiments/python/__init__.py [ 5%] Generating experiments/python/convnet_benchmarks.py [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/isa.c.o [ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allreduce.cc.o Scanning dependencies of target renamedsp256.h_generated [ 5%] Generating experiments/python/device_reduce_sum_bench.py [ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_table_driven_lite.cc.o Scanning dependencies of target dispavx.c_generated [ 5%] Generating renamedsp256.h [ 5%] Linking CXX shared library ../../lib/libthnvrtc.so [ 5%] Linking C static library ../../lib/libnnpack_reference_layers.a [ 5%] Built target renamedsp256.h_generated [ 5%] Generating experiments/python/funhash_op_test.py [ 5%] Generating dispavx.c [ 5%] Generating experiments/python/net_construct_bench.py [ 5%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/batch_normalization.cpp.o Scanning dependencies of target headers Scanning dependencies of target dispsse.c_generated [ 5%] Built target dispavx.c_generated [ 5%] Generating experiments/python/sparse_funhash_op_test.py [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/topology.c.o [ 5%] Generating experiments/python/sparse_reshape_op_test.py [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/init.c.o [ 5%] Built target nnpack_reference_layers [ 5%] Generating ../../../include/sleef.h [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/descriptor.c.o [ 5%] Generating dispsse.c Scanning dependencies of target renamedsp128.h_generated [ 5%] Generating experiments/python/tt_contraction_op_test.py [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/deterministic.c.o [ 5%] Built target thnvrtc [ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_util.cc.o Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ Scanning dependencies of target renameFMA4.h_generated Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ sse2 [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/linux/init.c.o [ 5%] Generating renamedsp128.h Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ sse4 [ 5%] Built target dispsse.c_generated [ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_util.cc.o [ 5%] Generating experiments/python/tt_pad_op_test.py Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct\ {\ __m128i\ x,\ y;\ } __AVX__ [ 5%] Generating include/renamefma4.h [ 5%] Generating include/renamefma4.h Generating renamefma4.h: mkrename 4 8 fma4 Generating renamefma4.h: mkrename 4 8 fma4 Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct\ {\ __m128i\ x,\ y;\ } __AVX__ avx [ 5%] Built target renamedsp128.h_generated Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct\ {\ __m128i\ x,\ y;\ } __AVX__ fma4 [ 5%] Building CXX object c10/CMakeFiles/c10.dir/core/CopyBytes.cpp.o [ 5%] Generating perfkernels/__init__.py [ 5%] Building CXX object c10/CMakeFiles/c10.dir/core/DefaultDtype.cpp.o [ 5%] Built target renameFMA4.h_generated [ 5%] Generating include/renameavx.h [ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/implicit_weak_message.cc.o Generating renameavx.h: mkrename 4 8 avx [ 5%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/isa.c.o Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i __m256i __AVX__ avx2 [ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allreduce_local.cc.o [ 5%] Building CXX object c10/CMakeFiles/c10.dir/core/Device.cpp.o Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ avx2128 ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 5%] Generating perfkernels/hp_emblookup_codegen.py [ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/barrier.cc.o [ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/coded_stream.cc.o [ 6%] Generating include/renamesse4.h Generating sleef.h: mkrename 8 16 __m512d __m512 __m256i __m512i __AVX512F__ Generating renamesse4.h: mkrename 2 4 sse4 [ 6%] Generating include/renamesse2.h [ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/implicit_weak_message.cc.o Generating sleef.h: mkrename 8 16 __m512d __m512 __m256i __m512i __AVX512F__ avx512f Generating renamesse2.h: mkrename 2 4 sse2 [ 6%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/broadcast.cc.o [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/DeviceType.cpp.o [ 6%] Generating proto/__init__.py [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/Scalar.cpp.o Scanning dependencies of target renameAVX.h_generated [ 6%] Built target headers [ 6%] Generating python/__init__.py [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/Storage.cpp.o [ 6%] Built target renameAVX.h_generated [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/StorageImpl.cpp.o [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/init.c.o [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/Stream.cpp.o [ 6%] Generating python/_import_c_extension.py [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/linux/cpuinfo.c.o [ 6%] Generating python/allcompare_test.py [ 6%] Generating python/attention.py [ 6%] Generating python/benchmark_generator.py [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/smallfile.c.o [ 6%] Generating python/binarysize.py [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/multiline.c.o [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/descriptor.c.o [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/cache/deterministic.c.o [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/linux/init.c.o [ 6%] Generating python/brew.py [ 6%] Generating python/brew_test.py [ 6%] Generating python/build.py [ 6%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/current.c.o [ 6%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/context.cc.o [ 6%] Generating python/cached_reader.py [ 6%] Generating python/caffe_translator.py [ 6%] Generating python/caffe_translator_test.py [ 6%] Generating python/checkpoint.py [ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/coded_stream.cc.o [ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorImpl.cpp.o [ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream.cc.o [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/x86/linux/cpuinfo.c.o [ 7%] Generating python/checkpoint_test.py [ 7%] Generating python/cnn.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/cpulist.c.o [ 7%] Generating python/compatibility.py [ 7%] Generating python/context.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/smallfile.c.o [ 7%] Generating python/context_test.py [ 7%] Generating python/control.py [ 7%] Generating python/control_ops_grad.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/processors.c.o [ 7%] Generating python/control_ops_grad_test.py [ 7%] Generating python/control_ops_util.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/multiline.c.o [ 7%] Generating python/control_test.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/current.c.o [ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o [ 7%] Generating python/convert.py [ 7%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/cpulist.c.o [ 7%] Generating python/convert_test.py [ 8%] Linking C static library ../../lib/libcpuinfo.a [ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution.cpp.o [ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution_relu.cpp.o [ 8%] Generating python/convnet_benchmarks.py [ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/deconvolution.cpp.o [ 8%] Generating python/convnet_benchmarks_test.py [ 8%] Generating python/core.py [ 8%] Built target cpuinfo [ 8%] Generating python/core_gradients_test.py Scanning dependencies of target renameSSE4.h_generated [ 8%] Generating python/core_test.py [ 8%] Built target renameSSE4.h_generated [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/message_lite.cc.o include/net.h:33:21: warning: ‘ncclResult_t ncclNetCloseListen(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseListen(void* listenComm) { NCCLCHECK(ncclNet-&gt;closeListen(listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~~ include/net.h:32:21: warning: ‘ncclResult_t ncclNetCloseRecv(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseRecv(void* recvComm) { NCCLCHECK(ncclNet-&gt;closeRecv(recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:31:21: warning: ‘ncclResult_t ncclNetCloseSend(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseSend(void* sendComm) { NCCLCHECK(ncclNet-&gt;closeSend(sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:30:21: warning: ‘ncclResult_t ncclNetTest(void*, int*, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetTest(void* request, int* done, int* size) { NCCLCHECK(ncclNet-&gt;test(request, done, size)); return ncclSuccess; } ^~~~~~~~~~~ include/net.h:29:21: warning: ‘ncclResult_t ncclNetFlush(void*, void*, int)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetFlush(void* recvComm, void* data, int size) { NCCLCHECK(ncclNet-&gt;flush(recvComm, data, size)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:28:21: warning: ‘ncclResult_t ncclNetIrecv(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIrecv(void* recvComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;irecv(recvComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:27:21: warning: ‘ncclResult_t ncclNetIsend(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIsend(void* sendComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;isend(sendComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:26:21: warning: ‘ncclResult_t ncclNetAccept(void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetAccept(void* listenComm, void** recvComm) { NCCLCHECK(ncclNet-&gt;accept(listenComm, recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:25:21: warning: ‘ncclResult_t ncclNetConnect(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetConnect(int dev, void* handle, void** sendComm) { NCCLCHECK(ncclNet-&gt;connect(dev, handle, sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:24:21: warning: ‘ncclResult_t ncclNetListen(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetListen(int dev, void* handle, void** listenComm) { NCCLCHECK(ncclNet-&gt;listen(dev, handle, listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:23:21: warning: ‘ncclResult_t ncclNetPtrSupport(int, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetPtrSupport(int dev, int* supportedTypes) { NCCLCHECK(ncclNet-&gt;ptrSupport(dev, supportedTypes)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~ include/net.h:22:21: warning: ‘ncclResult_t ncclNetDevices(int*, int**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetDevices(int* ndev, int** scores) { NCCLCHECK(ncclNet-&gt;devices(ndev, scores)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/common_coll.h:136:21: warning: ‘ncclResult_t saveKernel(int, const void*, void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm_t, cudaStream_t, size_t, int)’ defined but not used [-Wunused-function] static ncclResult_t saveKernel(int coll, const void* sendbuff, void* recvbuff, size_t count, ^~~~~~~~~~ include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ [ 8%] Generating python/crf.py [ 8%] Generating python/crf_predict.py [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/repeated_field.cc.o [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/bytestream.cc.o [ 8%] Generating python/crf_viterbi_test.py [ 8%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo_internals.dir/src/linux/processors.c.o [ 8%] Generating python/data_parallel_model.py [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream.cc.o [ 8%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/string_util.cc.o [ 8%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/sysinfo.cc.o [ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/eltwise.cpp.o [ 8%] Generating python/data_parallel_model_test.py [ 8%] Generating python/data_workers.py [ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/engine.cpp.o [ 8%] Generating python/data_workers_test.py [ 8%] Generating python/dataio.py [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/message_lite.cc.o [ 8%] Generating python/dataio_test.py [ 8%] Generating python/dataset.py [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/repeated_field.cc.o [ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/bytestream.cc.o [ 8%] Linking C static library ../../lib/libcpuinfo_internals.a [ 8%] Generating python/db_file_reader.py [ 8%] Generating python/db_test.py [ 9%] Generating python/device_checker.py [ 9%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/gather.cc.o [ 9%] Building CXX object third_party/benchmark/src/CMakeFiles/benchmark.dir/timers.cc.o [ 9%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorOptions.cpp.o [ 10%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorTypeId.cpp.o [ 10%] Built target cpuinfo_internals [ 10%] Generating python/docs/__init__.py [ 10%] Building CXX object c10/CMakeFiles/c10.dir/core/TensorTypeIdRegistration.cpp.o [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/common.cc.o [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/int128.cc.o [ 10%] Generating python/docs/formatter.py [ 10%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/inner_product.cpp.o [ 10%] Generating python/docs/generator.py [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/common.cc.o [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/io_win32.cc.o [ 10%] Generating python/docs/parser.py [ 10%] Generating python/docs/github.py [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/status.cc.o [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/statusor.cc.o [ 10%] Generating python/dyndep.py [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/stringpiece.cc.o [ 10%] Generating python/embedding_generation_benchmark.py Scanning dependencies of target renameSSE2.h_generated [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/stringprintf.cc.o [ 10%] Generating python/examples/__init__.py [ 10%] Built target renameSSE2.h_generated [ 10%] Generating python/examples/char_rnn.py [ 10%] Generating python/examples/lmdb_create_example.py [ 10%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/lrn.cpp.o [ 10%] Generating python/examples/resnet50_trainer.py [ 10%] Generating python/experiment_util.py [ 10%] Generating python/extension_loader.py /tmp/ccHmQJjb.s: Assembler messages: /tmp/ccHmQJjb.s:306: Error: no such instruction: `vmovdqa64 .LC0(%rip),%zmm2' /tmp/ccHmQJjb.s:310: Error: no such instruction: `vmovdqa64 (%r9),%zmm0' /tmp/ccHmQJjb.s:314: Error: no such instruction: `vextracti32x8 $0x1,%zmm0,%ymm1' /tmp/ccHmQJjb.s:315: Error: bad register name `%zmm0' /tmp/ccHmQJjb.s:316: Error: bad register name `%zmm1' /tmp/ccHmQJjb.s:317: Error: no such instruction: `vpmullq %zmm0,%zmm1,%zmm0' /tmp/ccHmQJjb.s:318: Error: no such instruction: `vpmullq %zmm0,%zmm2,%zmm2' /tmp/ccHmQJjb.s:320: Error: no such instruction: `vpxord %zmm3,%zmm3,%zmm3' /tmp/ccHmQJjb.s:321: Error: no such instruction: `vmovdqa64 .LC3(%rip),%zmm0' /tmp/ccHmQJjb.s:322: Error: no such instruction: `vshufi64x2 $78,%zmm3,%zmm2,%zmm1' /tmp/ccHmQJjb.s:323: Error: no such instruction: `vpmullq %zmm2,%zmm1,%zmm1' /tmp/ccHmQJjb.s:324: Error: no such instruction: `vpermi2q %zmm3,%zmm1,%zmm0' /tmp/ccHmQJjb.s:325: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm1' /tmp/ccHmQJjb.s:326: Error: no such instruction: `vmovdqa64 .LC4(%rip),%zmm0' /tmp/ccHmQJjb.s:327: Error: no such instruction: `vpermi2q %zmm3,%zmm1,%zmm0' /tmp/ccHmQJjb.s:328: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm0' make[2]: *** [third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 10%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/int128.cc.o [ 10%] Generating python/functional.py [ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/structurally_valid.cc.o [ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/io_win32.cc.o [ 11%] Generating python/functional_test.py [ 11%] Generating python/fused_8bit_rowwise_conversion_ops_test.py [ 11%] Generating python/gradient_check_test.py [ 11%] Generating python/gradient_checker.py [ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/reduce.cc.o [ 11%] Generating python/gru_cell.py Scanning dependencies of target qnnpack [ 11%] Generating src/x86_64-fma/2d-fourier-8x8.py.o [ 11%] Generating python/helpers/__init__.py [ 11%] Building CXX object c10/CMakeFiles/c10.dir/core/UndefinedTensorImpl.cpp.o [ 11%] Building CXX object c10/CMakeFiles/c10.dir/core/impl/DeviceGuardImplInterface.cpp.o [ 11%] Building CXX object c10/CMakeFiles/c10.dir/core/thread_pool.cpp.o [ 11%] Generating python/helpers/algebra.py [ 11%] Generating python/helpers/arg_scope.py [ 12%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/init.c.o [ 12%] Generating python/helpers/array_helpers.py [ 12%] Building CXX object c10/CMakeFiles/c10.dir/util/Array.cpp.o [ 12%] Building CXX object c10/CMakeFiles/c10.dir/util/Backtrace.cpp.o [ 12%] Generating python/helpers/control_ops.py /tmp/ccNz8CVo.s: Assembler messages: /tmp/ccNz8CVo.s:185: Error: bad register name `%zmm1' /tmp/ccNz8CVo.s:198: Error: bad register name `%zmm1' make[2]: *** [third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/eltwise.cpp.o] Error 1 [ 12%] Generating python/helpers/conv.py [ 12%] Generating python/helpers/db_input.py [ 12%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/strutil.cc.o [ 12%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/time.cc.o [ 12%] Generating python/helpers/dropout.py [ 12%] Generating python/helpers/elementwise_linear.py [ 12%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/add.c.o [ 13%] Generating python/helpers/nonlinearity.py [ 13%] Generating python/helpers/fc.py [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/status.cc.o [ 13%] Generating python/helpers/pooling.py [ 13%] Generating python/helpers/tools.py [ 13%] Generating python/helpers/normalization.py [ 13%] Generating python/helpers/train.py Scanning dependencies of target dispavx_obj Scanning dependencies of target dispsse_obj Scanning dependencies of target sleeffma4 [ 13%] Generating python/hip_test_util.py [ 13%] Building C object sleef/src/libm/CMakeFiles/dispsse_obj.dir/dispsse.c.o [ 13%] Building C object sleef/src/libm/CMakeFiles/dispavx_obj.dir/dispavx.c.o [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/statusor.cc.o [ 13%] Generating python/hsm_util.py [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/stringpiece.cc.o [ 13%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/scatter.cc.o [ 13%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/average-pooling.c.o [ 13%] Generating python/hypothesis_test.py [ 13%] Generating python/hypothesis_test_util.py [ 13%] Building C object sleef/src/libm/CMakeFiles/sleeffma4.dir/sleefsimdsp.c.o Scanning dependencies of target sleefavx Scanning dependencies of target sleefsse4 [ 13%] Building CXX object c10/CMakeFiles/c10.dir/util/C++17.cpp.o [ 13%] Generating python/ideep/LRN_op_test.py [ 13%] Linking CXX static library ../../../lib/libbenchmark.a Scanning dependencies of target sleefsse2 [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefavx.dir/sleefsimdsp.c.o [ 13%] Generating python/ideep/__init__.py [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefavx.dir/sleefsimddp.c.o [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefsse4.dir/sleefsimdsp.c.o [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefsse2.dir/sleefsimdsp.c.o /tmp/ccA4B3HZ.s: Assembler messages: /tmp/ccA4B3HZ.s:231: Error: no such instruction: `vmovdqa64 .LC0(%rip),%zmm0' /tmp/ccA4B3HZ.s:235: Error: no such instruction: `vmovdqa64 (%r11),%zmm1' /tmp/ccA4B3HZ.s:239: Error: no such instruction: `vextracti32x8 $0x1,%zmm1,%ymm2' /tmp/ccA4B3HZ.s:240: Error: bad register name `%zmm1' /tmp/ccA4B3HZ.s:241: Error: bad register name `%zmm2' /tmp/ccA4B3HZ.s:242: Error: no such instruction: `vpmullq %zmm1,%zmm2,%zmm1' /tmp/ccA4B3HZ.s:243: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm0' /tmp/ccA4B3HZ.s:245: Error: no such instruction: `vpxord %zmm2,%zmm2,%zmm2' /tmp/ccA4B3HZ.s:246: Error: no such instruction: `vshufi64x2 $78,%zmm2,%zmm0,%zmm1' /tmp/ccA4B3HZ.s:247: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm1' /tmp/ccA4B3HZ.s:248: Error: no such instruction: `vmovdqa64 .LC3(%rip),%zmm0' /tmp/ccA4B3HZ.s:249: Error: no such instruction: `vpermi2q %zmm2,%zmm1,%zmm0' /tmp/ccA4B3HZ.s:250: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm0' /tmp/ccA4B3HZ.s:251: Error: no such instruction: `vmovdqa64 .LC4(%rip),%zmm1' /tmp/ccA4B3HZ.s:252: Error: no such instruction: `vpermi2q %zmm2,%zmm0,%zmm1' /tmp/ccA4B3HZ.s:253: Error: no such instruction: `vpmullq %zmm1,%zmm0,%zmm0' [ 13%] Generating python/ideep/adam_op_test.py make[2]: *** [third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/inner_product.cpp.o] Error 1 [ 13%] Built target benchmark [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefsse4.dir/sleefsimddp.c.o [ 13%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/channel-shuffle.c.o [ 13%] Generating python/ideep/blobs_queue_db_test.py [ 13%] Generating python/ideep/channel_shuffle_op_test.py [ 13%] Building C object sleef/src/libm/CMakeFiles/sleefsse2.dir/sleefsimddp.c.o [ 13%] Generating python/ideep/concat_split_op_test.py [ 13%] Generating python/ideep/conv_op_test.py [ 13%] Generating python/ideep/conv_transpose_test.py [ 13%] Generating python/ideep/convfusion_op_test.py [ 13%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/clamp.c.o [ 13%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/convolution.c.o [ 13%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/deconvolution.c.o [ 13%] Generating python/ideep/copy_op_test.py [ 13%] Generating python/ideep/dropout_op_test.py [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wire_format_lite.cc.o make[1]: *** [third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 13%] Generating python/ideep/elementwise_sum_op_test.py [ 13%] Building C object sleef/src/libm/CMakeFiles/sleeffma4.dir/sleefsimddp.c.o [ 13%] Generating python/ideep/expanddims_squeeze_op_test.py [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/stringprintf.cc.o [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/structurally_valid.cc.o [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/strutil.cc.o [ 13%] Generating python/ideep/fc_op_test.py [ 13%] Linking CXX static library ../../../lib/libgtest.a [ 13%] Generating python/ideep/leaky_relu_op_test.py [ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/time.cc.o [ 13%] Generating python/ideep/moment_sgd_op_test.py [ 13%] Built target gtest [ 13%] Generating python/ideep/operator_fallback_op_test.py [ 13%] Generating python/ideep/pool_op_test.py [ 14%] Generating python/ideep/relu_op_test.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/fully-connected.c.o [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/wire_format_lite.cc.o [ 14%] Generating python/ideep/reshape_op_test.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/global-average-pooling.c.o [ 14%] Generating python/ideep/shape_op_test.py [ 14%] Generating python/ideep/sigmoid_op_test.py [ 14%] Generating python/ideep/softmax_op_test.py Compiling ring.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/ring.o [ 14%] Generating python/ideep/spatial_bn_op_test.py [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.cc.o [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/leaky-relu.c.o [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/Exception.cpp.o [ 14%] Generating python/ideep/test_ideep_net.py [ 14%] Generating python/ideep/transform_ideep_net.py [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/Half.cpp.o [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.pb.cc.o [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/LeftRight.cpp.o [ 14%] Generating python/ideep/weightedsum_op_test.py [ 14%] Generating python/ideep_test_util.py [ 14%] Built target dispsse_obj [ 14%] Generating python/layer_model_helper.py [ 14%] Generating python/layer_model_instantiator.py [ 14%] Built target dispavx_obj [ 14%] Generating python/layer_parameter_sharing_test.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/max-pooling.c.o [ 14%] Generating python/layer_test_util.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/sigmoid.c.o [ 14%] Generating python/layers/__init__.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/softargmax.c.o [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/api.pb.cc.o [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/operator-delete.c.o [ 14%] Generating python/layers/adaptive_weight.py [ 14%] Generating python/layers/add_bias.py [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/Logging.cpp.o [ 14%] Generating python/layers/arc_cosine_feature_map.py [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/compiler/importer.cc.o [ 14%] Generating python/layers/batch_distill_lr_loss.py [ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/types.cc.o [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/compiler/parser.cc.o [ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/common/linux.cc.o [ 14%] Generating python/layers/batch_lr_loss.py [ 14%] Generating python/layers/batch_mse_loss.py [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/Metaprogramming.cpp.o [ 14%] Generating python/layers/batch_normalization.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/indirection.c.o [ 14%] Generating python/layers/batch_sigmoid_cross_entropy_loss.py [ 14%] Generating python/layers/batch_softmax_loss.py [ 14%] Generating python/layers/blob_weighted_sum.py [ 14%] Generating python/layers/bucket_weighted.py [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/operator-run.c.o [ 14%] Built target sleefsse4 [ 14%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8lut32norm/scalar.c.o [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/Optional.cpp.o [ 14%] Built target ATEN_CPU_FILES_GEN_TARGET [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.pb.cc.o [ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/common/logging.cc.o [ 14%] Built target sleefavx [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.cc.o [ 14%] Generating python/layers/build_index.py [ 14%] Built target ATEN_CUDA_FILES_GEN_TARGET [ 14%] Building CXX object c10/CMakeFiles/c10.dir/util/SmallVector.cpp.o [ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor_database.cc.o [ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/context.cc.o [ 14%] Generating python/layers/concat.py [ 14%] Generating python/layers/constant_weight.py [ 14%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/file_store.cc.o [ 14%] Built target sleeffma4 [ 14%] Built target sleefsse2 [ 15%] Generating python/layers/dropout.py [ 15%] Generating python/layers/conv.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/duration.pb.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/dynamic_message.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/empty.pb.cc.o [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8lut/scalar.c.o [ 15%] Generating python/layers/fc.py [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/sgemm/6x8-psimd.c.o [ 15%] Generating python/layers/fc_without_bias.py [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8avgpool/mp8x9p8q-sse2.c.o [ 15%] Generating python/layers/feature_sparse_to_dense.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/extension_set_heavy.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/field_mask.pb.cc.o [ 15%] Generating python/layers/functional.py [ 15%] Generating python/layers/gather_record.py [ 15%] Generating python/layers/homotopy_weight.py ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/StringUtil.cpp.o [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8avgpool/up8x9-sse2.c.o [ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/Type.cpp.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_reflection.cc.o [ 15%] Generating python/layers/label_smooth.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_table_driven.cc.o [ 15%] Generating python/layers/last_n_window_collector.py [ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeList.cpp.o [ 15%] Generating python/layers/layer_normalization.py [ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeTraits.cpp.o [ 15%] Generating python/layers/layers.py [ 15%] Generating python/layers/margin_rank_loss.py [ 15%] Linking CXX static library ../../../lib/libprotobuf-lite.a [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8avgpool/up8xm-sse2.c.o [ 15%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/hash_store.cc.o [ 15%] Generating python/layers/merge_id_lists.py [ 15%] Generating src/x86_64-fma/2d-fourier-16x16.py.o [ 15%] Generating python/layers/pairwise_similarity.py [ 15%] Built target libprotobuf-lite [ 15%] Generating python/layers/position_weighted.py [ 15%] Building CXX object c10/CMakeFiles/c10.dir/util/UniqueVoidPtr.cpp.o [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8conv/4x4c2-sse2.c.o [ 15%] Generating python/layers/random_fourier_features.py [ 15%] Generating python/layers/reservoir_sampling.py [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8dwconv/mp8x25-sse2.c.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/gzip_stream.cc.o [ 15%] Generating python/layers/sampling_train.py [ 15%] Generating python/layers/sampling_trainable_mixin.py [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8dwconv/up8x9-sse2.c.o [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gavgpool/mp8x7p7q-sse2.c.o [ 15%] Generating python/layers/select_record_by_context.py [ 15%] Generating python/layers/semi_random_features.py [ 15%] Generating python/layers/sparse_feature_hash.py [ 15%] Generating python/layers/sparse_lookup.py [ 15%] Generating python/layers/split.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/printer.cc.o [ 15%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gavgpool/up8x7-sse2.c.o [ 15%] Generating python/layers/tags.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/strtod.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/tokenizer.cc.o [ 15%] Generating python/layers/uniform_sampling.py [ 15%] Generating python/layers_test.py [ 15%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/prefix_store.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl.cc.o [ 15%] Generating python/lengths_reducer_fused_8bit_rowwise_ops_test.py [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/map_field.cc.o [ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/message.cc.o [ 16%] Generating python/lengths_reducer_rowwise_8bit_ops_test.py [ 16%] Generating python/lstm_benchmark.py [ 16%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gavgpool/up8xm-sse2.c.o [ 16%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_gflags.cpp.o [ 16%] Generating python/memonger.py [ 16%] Generating python/memonger_test.py [ 16%] Generating python/mint/__init__.py [ 16%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gemm/2x4c8-sse2.c.o [ 16%] Generating python/mint/app.py [ 16%] Generating python/mkl/__init__.py [ 16%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/reflection_ops.cc.o include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ [ 17%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gemm/4x4c2-sse2.c.o [ 17%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/service.cc.o [ 17%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/store.cc.o [ 17%] Generating python/mkl/mkl_LRN_op_test.py [ 17%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/address.cc.o [ 17%] Generating python/mkl/mkl_LRN_speed_test.py [ 17%] Generating python/mkl/mkl_concat_op_test.py [ 17%] Generating python/mkl/mkl_conv_op_test.py [ 17%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/buffer.cc.o [ 17%] Generating python/mkl/mkl_copy_op_test.py [ 17%] Generating python/mkl/mkl_elementwise_add_op_test.py [ 17%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/context.cc.o [ 17%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8vadd/sse2.c.o [ 17%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/device.cc.o [ 17%] Generating python/mkl/mkl_elementwise_sum_op_test.py [ 17%] Generating python/mkl/mkl_fc_op_test.py [ 17%] Generating python/mkl/mkl_fc_speed_test.py [ 17%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_no_gflags.cpp.o [ 17%] Building CXX object c10/CMakeFiles/c10.dir/util/intrusive_ptr.cpp.o [ 17%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/source_context.pb.cc.o [ 17%] Generating python/mkl/mkl_fill_op_test.py [ 17%] Building CXX object c10/CMakeFiles/c10.dir/util/numa.cpp.o [ 17%] Generating python/mkl/mkl_pool_op_test.py [ 17%] Building CXX object c10/CMakeFiles/c10.dir/util/thread_name.cpp.o [ 17%] Building CXX object c10/CMakeFiles/c10.dir/util/typeid.cpp.o [ 17%] Generating python/mkl/mkl_pool_speed_test.py [ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/struct.pb.cc.o [ 18%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/pair.cc.o [ 18%] Generating python/mkl/mkl_relu_op_test.py [ 18%] Generating python/mkl/mkl_sbn_op_test.py [ 18%] Generating python/mkl/mkl_sbn_speed_test.py [ 18%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8clamp/sse2.c.o [ 18%] Generating python/mkl/mkl_sigmoid_op_test.py [ 18%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/unbound_buffer.cc.o [ 18%] Generating python/mkl/mkl_speed_test.py [ 18%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/address.cc.o [ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/mathlimits.cc.o [ 18%] Generating python/mkl/mkl_squeeze_op_test.py [ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/substitute.cc.o [ 18%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8maxpool/16x9p8q-sse2.c.o [ 18%] Generating python/mkl/rewrite_graph.py [ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/text_format.cc.o [ 18%] Generating python/mkl/rewrite_graph_test.py [ 18%] Generating python/mkl_test_util.py [ 18%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/buffer.cc.o [ 18%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/context.cc.o [ 18%] Generating python/model_device_test.py [ 19%] Generating python/model_helper.py [ 19%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/device.cc.o [ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/timestamp.pb.cc.o [ 19%] Generating python/model_helper_test.py [ 19%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8maxpool/sub16-sse2.c.o [ 19%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/u8rmax/sse2.c.o [ 19%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/x2-sse2.c.o [ 19%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/x3-sse2.c.o [ 19%] Generating python/modeling/__init__.py [ 19%] Generating python/modeling/compute_histogram_for_blobs.py [ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/type.pb.cc.o [ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/unknown_field_set.cc.o [ 19%] Generating python/modeling/compute_histogram_for_blobs_test.py [ 19%] Generating python/modeling/compute_norm_for_blobs.py [ 20%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/pair.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/delimited_message_util.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/field_comparator.cc.o [ 20%] Generating python/modeling/compute_norm_for_blobs_test.py [ 20%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/x4-sse2.c.o [ 20%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/unbound_buffer.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/field_mask_util.cc.o [ 20%] Generating python/modeling/compute_statistics_for_blobs.py [ 20%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/x8zip/xm-sse2.c.o [ 20%] Generating python/modeling/compute_statistics_for_blobs_test.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/datapiece.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/default_value_objectwriter.cc.o [ 20%] Generating python/modeling/get_entry_from_blobs.py [ 20%] Generating python/modeling/get_entry_from_blobs_test.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/error_listener.cc.o [ 20%] Generating python/modeling/gradient_clipping.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/field_mask_utility.cc.o [ 20%] Generating python/modeling/gradient_clipping_test.py [ 20%] Generating python/modeling/initializers.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_escaping.cc.o [ 20%] Linking C static library ../../lib/libqnnpack.a [ 20%] Generating python/modeling/initializers_test.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_objectwriter.cc.o [ 20%] Generating python/modeling/net_modifier.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_stream_parser.cc.o [ 20%] Generating python/modeling/parameter_info.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/object_writer.cc.o [ 20%] Built target qnnpack [ 20%] Generating python/modeling/parameter_sharing.py [ 20%] Generating python/modeling/parameter_sharing_test.py [ 20%] Generating python/models/__init__.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/proto_writer.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/protostream_objectsource.cc.o [ 20%] Generating python/models/__sym_init__.py Compiling bootstrap.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/bootstrap.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/protostream_objectwriter.cc.o [ 20%] Generating python/models/download.py [ 20%] Generating python/models/resnet.py [ 20%] Generating python/models/resnet_test.py [ 20%] Generating python/models/seq2seq/__init__.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/type_info.cc.o [ 20%] Generating python/models/seq2seq/beam_search.py [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/type_info_test_helper.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/utility.cc.o [ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/json_util.cc.o [ 20%] Generating python/models/seq2seq/seq2seq_beam_search_test.py [ 20%] Generating python/models/seq2seq/seq2seq_model_helper.py [ 20%] Generating python/models/seq2seq/seq2seq_model_helper_test.py [ 21%] Generating python/models/seq2seq/seq2seq_util.py [ 21%] Generating python/models/seq2seq/train.py [ 21%] Generating python/models/seq2seq/translate.py [ 21%] Generating python/modifier_context.py [ 21%] Generating python/muji.py [ 21%] Generating python/muji_test.py [ 21%] Generating python/net_builder.py [ 21%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/message_differencer.cc.o [ 21%] Generating python/net_builder_test.py [ 21%] Generating python/net_drawer.py [ 21%] Generating python/net_printer.py [ 21%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/time_util.cc.o [ 21%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/type_resolver_util.cc.o [ 22%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wire_format.cc.o [ 22%] Generating python/net_printer_test.py [ 22%] Generating python/nomnigraph_test.py [ 22%] Generating python/nomnigraph.py [ 22%] Linking CXX shared library ../lib/libc10.so [ 22%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wrappers.pb.cc.o [ 22%] Generating python/nomnigraph_transformations.py [ 22%] Generating python/nomnigraph_transformations_test.py [ 22%] Generating python/normalizer_context.py [ 22%] Generating python/normalizer.py [ 22%] Generating python/normalizer_test.py [ 22%] Generating python/numa_benchmark.py [ 22%] Generating python/numa_test.py [ 22%] Generating python/observer_test.py [ 22%] Generating python/onnx/backend.py [ 22%] Generating python/onnx/backend_cpp_rep.py [ 22%] Generating python/onnx/__init__.py [ 22%] Generating python/onnx/backend_rep.py [ 22%] Generating python/onnx/bin/__init__.py [ 22%] Generating python/onnx/bin/conversion.py [ 22%] Generating python/onnx/error.py [ 22%] Generating python/onnx/frontend.py [ 22%] Generating python/onnx/onnxifi.py [ 22%] Generating python/onnx/test_onnxifi.py [ 23%] Generating python/onnx/tests/__init__.py [ 23%] Generating python/onnx/helper.py [ 23%] Generating python/onnx/tests/c2_ref_test.py [ 23%] Generating python/onnx/tests/conversion_test.py [ 23%] Generating python/onnx/tests/helper_test.py [ 23%] Generating python/onnx/tests/ssa_test.py [ 23%] Generating python/onnx/tests/onnx_backend_test.py [ 23%] Generating python/onnx/workspace.py [ 23%] Generating python/onnx/tests/test_utils.py [ 23%] Generating python/operator_test/__init__.py [ 23%] Generating python/operator_test/activation_ops_test.py [ 23%] Generating python/operator_test/adagrad_test.py [ 23%] Generating python/operator_test/adagrad_test_helper.py [ 23%] Generating python/operator_test/adadelta_test.py [ 23%] Generating python/operator_test/adam_test.py [ 23%] Generating python/operator_test/adjust_batch_op_test.py [ 23%] Generating python/operator_test/affine_channel_op_test.py ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 23%] Generating python/operator_test/arg_ops_test.py [ 23%] Generating python/operator_test/assert_test.py [ 23%] Generating python/operator_test/apmeter_test.py [ 23%] Generating python/operator_test/atomic_ops_test.py [ 23%] Built target c10 [ 23%] Generating python/operator_test/basic_rnn_test.py [ 23%] Generating python/operator_test/batch_box_cox_test.py [ 23%] Generating python/operator_test/batch_bucketize_op_test.py [ 23%] Generating python/operator_test/batch_sparse_to_dense_op_test.py [ 23%] Generating python/operator_test/bbox_transform_test.py [ 23%] Generating python/operator_test/batch_moments_op_test.py [ 24%] Generating python/operator_test/bisect_percentile_op_test.py [ 24%] Generating python/operator_test/boolean_mask_test.py [ 24%] Generating python/operator_test/blobs_queue_db_test.py [ 24%] Generating python/operator_test/boolean_unmask_test.py [ 24%] Generating python/operator_test/box_with_nms_limit_op_test.py [ 24%] Generating python/operator_test/cast_op_test.py [ 24%] Generating python/operator_test/ceil_op_test.py [ 24%] Generating python/operator_test/channel_backprop_stats_op_test.py [ 24%] Generating python/operator_test/channel_shuffle_test.py [ 24%] Generating python/operator_test/channel_stats_op_test.py [ 24%] Generating python/operator_test/clip_tensor_op_test.py [ 24%] Generating python/operator_test/checkpoint_test.py [ 24%] Generating python/operator_test/clip_op_test.py [ 24%] Generating python/operator_test/collect_and_distribute_fpn_rpn_proposals_op_test.py [ 24%] Generating python/operator_test/concat_split_op_test.py [ 24%] Generating python/operator_test/conditional_test.py [ 24%] Generating python/operator_test/conftest.py [ 24%] Generating python/operator_test/conv_test.py [ 24%] Generating python/operator_test/conv_transpose_test.py [ 24%] Generating python/operator_test/copy_ops_test.py [ 24%] Generating python/operator_test/cosine_embedding_criterion_op_test.py [ 24%] Generating python/operator_test/counter_ops_test.py [ 24%] Generating python/operator_test/crf_test.py [ 24%] Generating python/operator_test/cross_entropy_ops_test.py [ 24%] Generating python/operator_test/ctc_beam_search_decoder_op_test.py [ 24%] Generating python/operator_test/ctc_greedy_decoder_op_test.py [ 24%] Generating python/operator_test/cudnn_recurrent_test.py [ 24%] Generating python/operator_test/data_couple_op_test.py [ 24%] Generating python/operator_test/dataset_ops_test.py [ 25%] Generating python/operator_test/depthwise_3x3_conv_test.py [ 25%] Generating python/operator_test/dense_vector_to_id_list_op_test.py [ 25%] Generating python/operator_test/distance_op_test.py [ 25%] Generating python/operator_test/detectron_keypoints.py [ 25%] Generating python/operator_test/deform_conv_test.py [ 25%] Generating python/operator_test/dropout_op_test.py [ 25%] Generating python/operator_test/duplicate_operands_test.py [ 25%] Generating python/operator_test/elementwise_linear_op_test.py [ 25%] Generating python/operator_test/elementwise_logical_ops_test.py [ 25%] Generating python/operator_test/elementwise_op_broadcast_test.py [ 25%] Generating python/operator_test/elementwise_ops_test.py [ 25%] Generating python/operator_test/emptysample_ops_test.py [ 25%] Generating python/operator_test/enforce_finite_op_test.py [ 25%] Generating python/operator_test/ensure_clipped_test.py [ 25%] Generating python/operator_test/ensure_cpu_output_op_test.py [ 25%] Generating python/operator_test/erf_op_test.py [ 25%] Generating python/operator_test/expand_op_test.py [ 25%] Generating python/operator_test/fc_operator_test.py [ 25%] Generating python/operator_test/feature_maps_ops_test.py [ 25%] Generating python/operator_test/find_op_test.py [ 25%] Generating python/operator_test/flatten_op_test.py [ 25%] Generating python/operator_test/filler_ops_test.py [ 25%] Generating python/operator_test/flexible_top_k_test.py [ 25%] Generating python/operator_test/floor_op_test.py [ 25%] Generating python/operator_test/gather_ops_test.py [ 25%] Generating python/operator_test/gather_ranges_op_test.py [ 25%] Generating python/operator_test/given_tensor_byte_string_to_uint8_fill_op_test.py [ 25%] Generating python/operator_test/given_tensor_fill_op_test.py [ 25%] Generating python/operator_test/glu_op_test.py [ 25%] Generating python/operator_test/group_norm_op_test.py [ 26%] Generating python/operator_test/gru_test.py [ 26%] Generating python/operator_test/group_conv_test.py [ 26%] Generating python/operator_test/heatmap_max_keypoint_op_test.py [ 26%] Generating python/operator_test/hsm_test.py [ 26%] Generating python/operator_test/hyperbolic_ops_test.py [ 26%] Generating python/operator_test/im2col_col2im_test.py [ 26%] Generating python/operator_test/image_input_op_test.py [ 26%] Generating python/operator_test/index_hash_ops_test.py [ 26%] Generating python/operator_test/index_ops_test.py [ 26%] Generating python/operator_test/instance_norm_test.py [ 26%] Generating python/operator_test/integral_image_ops_test.py [ 26%] Generating python/operator_test/key_split_ops_test.py [ 26%] Generating python/operator_test/jsd_ops_test.py [ 26%] Generating python/operator_test/lars_test.py [ 26%] Generating python/operator_test/layer_norm_op_test.py [ 26%] Generating python/operator_test/leaky_relu_test.py [ 26%] Generating python/operator_test/learning_rate_adaption_op_test.py [ 26%] Generating python/operator_test/learning_rate_op_test.py [ 26%] Generating python/operator_test/lengths_pad_op_test.py [ 26%] Generating python/operator_test/length_split_op_test.py [ 26%] Generating python/operator_test/lengths_tile_op_test.py [ 26%] Generating python/operator_test/lengths_top_k_ops_test.py [ 26%] Generating python/operator_test/listwise_l2r_operator_test.py [ 26%] Generating python/operator_test/locally_connected_op_test.py [ 26%] Generating python/operator_test/load_save_test.py [ 26%] Generating python/operator_test/loss_ops_test.py [ 26%] Generating python/operator_test/lpnorm_op_test.py [ 27%] Generating python/operator_test/map_ops_test.py [ 27%] Generating python/operator_test/margin_ranking_criterion_op_test.py [ 27%] Generating python/operator_test/math_ops_test.py [ 27%] Generating python/operator_test/mean_op_test.py [ 27%] Generating python/operator_test/matmul_op_test.py [ 27%] Generating python/operator_test/merge_id_lists_op_test.py [ 27%] Generating python/operator_test/mkl_conv_op_test.py [ 27%] Generating python/operator_test/mkl_packed_fc_op_test.py [ 27%] Generating python/operator_test/mkl_speed_test.py [ 27%] Generating python/operator_test/mod_op_test.py [ 27%] Generating python/operator_test/moments_op_test.py [ 27%] Generating python/operator_test/momentum_sgd_test.py [ 27%] Generating python/operator_test/negate_gradient_op_test.py [ 27%] Generating python/operator_test/ngram_ops_test.py [ 27%] Generating python/operator_test/normalize_op_test.py [ 27%] Generating python/operator_test/mpi_test.py [ 27%] Generating python/operator_test/numpy_tile_op_test.py [ 27%] Generating python/operator_test/one_hot_ops_test.py [ 27%] Generating python/operator_test/onnx_while_test.py [ 27%] Generating python/operator_test/order_switch_test.py [ 27%] Generating python/operator_test/pack_ops_test.py [ 27%] Generating python/operator_test/pack_rnn_sequence_op_test.py [ 27%] Generating python/operator_test/pad_test.py [ 27%] Generating python/operator_test/partition_ops_test.py [ 27%] Generating python/operator_test/percentile_op_test.py [ 27%] Generating python/operator_test/pooling_test.py [ 27%] Generating python/operator_test/piecewise_linear_transform_test.py [ 27%] Generating python/operator_test/prepend_dim_test.py [ 27%] Generating python/operator_test/python_op_test.py [ 28%] Generating python/operator_test/rand_quantization_op_speed_test.py [ 28%] Generating python/operator_test/rank_loss_operator_test.py [ 28%] Generating python/operator_test/rand_quantization_op_test.py [ 28%] Generating python/operator_test/rebatching_queue_test.py [ 28%] Generating python/operator_test/record_queue_test.py [ 28%] Generating python/operator_test/recurrent_net_executor_test.py [ 28%] Generating python/operator_test/reduce_ops_test.py [ 28%] Generating python/operator_test/resize_op_test.py [ 28%] Generating python/operator_test/reduction_ops_test.py [ 28%] Generating python/operator_test/recurrent_network_test.py [ 28%] Generating python/operator_test/reshape_ops_test.py [ 28%] Generating python/operator_test/rnn_cell_test.py [ 28%] Generating python/operator_test/rmac_regions_op_test.py [ 28%] Generating python/operator_test/segment_ops_test.py [ 28%] Generating python/operator_test/sparse_gradient_checker_test.py [ 28%] Generating python/operator_test/selu_op_test.py [ 28%] Generating python/operator_test/shape_inference_test.py [ 28%] Generating python/operator_test/softplus_op_test.py [ 28%] Generating python/operator_test/sinusoid_position_encoding_op_test.py [ 28%] Generating python/operator_test/roi_align_rotated_op_test.py [ 28%] Generating python/operator_test/softmax_ops_test.py [ 28%] Generating python/operator_test/sequence_ops_test.py [ 28%] Generating python/operator_test/sparse_lengths_sum_benchmark.py [ 28%] Generating python/operator_test/sparse_normalize_test.py [ 28%] Generating python/operator_test/sparse_ops_test.py [ 28%] Generating python/operator_test/sparse_to_dense_mask_op_test.py [ 28%] Generating python/operator_test/spatial_bn_op_test.py [ 28%] Generating python/operator_test/specialized_segment_ops_test.py [ 28%] Generating python/operator_test/square_root_divide_op_test.py [ 28%] Generating python/operator_test/transpose_op_test.py [ 28%] Generating python/operator_test/stats_put_ops_test.py [ 28%] Generating python/operator_test/thresholded_relu_op_test.py [ 28%] Generating python/operator_test/string_ops_test.py [ 28%] Generating python/operator_test/top_k_test.py [ 29%] Generating python/operator_test/torch_integration_test.py [ 29%] Generating python/operator_test/text_file_reader_test.py [ 29%] Generating python/operator_test/tile_op_test.py [ 29%] Generating python/operator_test/stats_ops_test.py [ 29%] Generating python/operator_test/trigonometric_op_test.py [ 29%] Generating python/operator_test/unique_ops_test.py [ 29%] Generating python/operator_test/unique_uniform_fill_op_test.py [ 29%] Generating python/operator_test/upsample_op_test.py [ 29%] Generating python/operator_test/utility_ops_test.py [ 29%] Generating python/operator_test/video_input_op_test.py [ 29%] Generating python/operator_test/weighted_multi_sample_test.py [ 29%] Generating python/operator_test/weighted_sum_test.py [ 29%] Generating python/operator_test/wngrad_test.py [ 29%] Generating python/operator_test/weighted_sample_test.py [ 29%] Generating python/optimizer_context.py [ 29%] Generating python/optimizer.py [ 29%] Generating python/optimizer_test.py [ 29%] Generating python/optimizer_test_util.py [ 29%] Generating python/parallel_workers_test.py [ 29%] Generating python/parallel_workers.py [ 29%] Generating python/parallelize_bmuf_distributed_test.py [ 29%] Generating python/pipeline.py [ 29%] Generating python/pipeline_test.py [ 29%] Generating python/predictor/__init__.py [ 30%] Generating python/predictor/predictor_exporter.py include/net.h:33:21: warning: ‘ncclResult_t ncclNetCloseListen(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseListen(void* listenComm) { NCCLCHECK(ncclNet-&gt;closeListen(listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~~ include/net.h:32:21: warning: ‘ncclResult_t ncclNetCloseRecv(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseRecv(void* recvComm) { NCCLCHECK(ncclNet-&gt;closeRecv(recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:31:21: warning: ‘ncclResult_t ncclNetCloseSend(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseSend(void* sendComm) { NCCLCHECK(ncclNet-&gt;closeSend(sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ [ 30%] Generating python/predictor/mobile_exporter.py include/net.h:30:21: warning: ‘ncclResult_t ncclNetTest(void*, int*, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetTest(void* request, int* done, int* size) { NCCLCHECK(ncclNet-&gt;test(request, done, size)); return ncclSuccess; } ^~~~~~~~~~~ include/net.h:29:21: warning: ‘ncclResult_t ncclNetFlush(void*, void*, int)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetFlush(void* recvComm, void* data, int size) { NCCLCHECK(ncclNet-&gt;flush(recvComm, data, size)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:28:21: warning: ‘ncclResult_t ncclNetIrecv(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIrecv(void* recvComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;irecv(recvComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:27:21: warning: ‘ncclResult_t ncclNetIsend(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIsend(void* sendComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;isend(sendComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:26:21: warning: ‘ncclResult_t ncclNetAccept(void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetAccept(void* listenComm, void** recvComm) { NCCLCHECK(ncclNet-&gt;accept(listenComm, recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:25:21: warning: ‘ncclResult_t ncclNetConnect(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetConnect(int dev, void* handle, void** sendComm) { NCCLCHECK(ncclNet-&gt;connect(dev, handle, sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:24:21: warning: ‘ncclResult_t ncclNetListen(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetListen(int dev, void* handle, void** listenComm) { NCCLCHECK(ncclNet-&gt;listen(dev, handle, listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:23:21: warning: ‘ncclResult_t ncclNetPtrSupport(int, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetPtrSupport(int dev, int* supportedTypes) { NCCLCHECK(ncclNet-&gt;ptrSupport(dev, supportedTypes)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~ include/net.h:22:21: warning: ‘ncclResult_t ncclNetDevices(int*, int**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetDevices(int* ndev, int** scores) { NCCLCHECK(ncclNet-&gt;devices(ndev, scores)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:21:20: warning: ‘const char* ncclNetName()’ defined but not used [-Wunused-function] static const char* ncclNetName() { return ncclNet-&gt;name; } ^~~~~~~~~~~ [ 30%] Generating python/predictor/mobile_exporter_test.py [ 30%] Generating python/predictor/predictor_py_utils.py [ 30%] Generating python/predictor/predictor_test.py [ 30%] Generating python/predictor/serde.py [ 30%] Generating python/predictor/predictor_exporter_test.py [ 30%] Generating python/predictor_constants.py [ 30%] Generating python/python_op_test.py [ 30%] Generating python/queue_util.py [ 30%] Generating python/recurrent.py [ 30%] Generating python/record_queue.py [ 30%] Generating python/regularizer_context.py [ 30%] Generating python/regularizer.py [ 30%] Generating python/regularizer_test.py [ 30%] Generating python/rnn/lstm_comparison.py [ 30%] Generating python/rnn_cell.py [ 30%] Generating python/rnn/__init__.py [ 30%] Generating python/schema_test.py [ 30%] Generating python/schema.py [ 30%] Generating python/rnn/rnn_cell_test_util.py [ 30%] Generating python/scope.py [ 30%] Generating python/scope_test.py [ 30%] Generating python/serialized_test/__init__.py [ 30%] Generating python/serialized_test/coverage.py [ 30%] Generating python/serialized_test/serialized_test_util.py [ 30%] Generating python/session.py [ 30%] Generating python/sparse_to_dense_mask_test.py [ 30%] Generating python/session_test.py [ 31%] Generating python/sparse_to_dense_test.py [ 31%] Generating python/task.py [ 31%] Generating python/task_test.py [ 31%] Generating python/test/__init__.py [ 31%] Generating python/test/do_op_test.py [ 31%] Generating python/test/blob_deallocation_test.py [ 31%] Generating python/test/executor_test.py [ 31%] Generating python/test/executor_test_util.py [ 31%] Generating python/test_util.py [ 31%] Generating python/text_file_reader.py [ 31%] Generating python/test/inference_lstm_op_test.py [ 31%] Generating python/timeout_guard.py [ 31%] Generating python/toy_regression_test.py [ 31%] Generating python/transformations_test.py [ 31%] Generating python/transformations.py [ 31%] Generating python/trt/__init__.py [ 31%] Generating python/trt/test_trt.py [ 31%] Generating python/trt/transform.py [ 31%] Generating python/tt_core.py [ 31%] Generating python/tt_core_test.py [ 31%] Generating python/utils.py [ 31%] Generating python/utils_test.py [ 31%] Generating python/visualize.py [ 31%] Generating python/workspace_test.py [ 31%] Generating python/workspace.py [ 31%] Generating quantization/__init__.py [ 31%] Generating quantization/server/__init__.py [ 31%] Generating quantization/server/batch_matmul_dnnlowp_op_test.py [ 31%] Generating quantization/server/batch_permutation_dnnlowp_op_test.py [ 31%] Generating quantization/server/conv_depthwise_dnnlowp_op_test.py [ 32%] Generating quantization/server/concat_dnnlowp_op_test.py [ 32%] Generating quantization/server/conv_dnnlowp_acc16_op_test.py [ 32%] Generating quantization/server/channel_shuffle_dnnlowp_op_test.py [ 32%] Generating quantization/server/conv_groupwise_dnnlowp_acc16_op_test.py [ 32%] Generating quantization/server/conv_dnnlowp_op_test.py [ 32%] Generating quantization/server/conv_groupwise_dnnlowp_op_test.py [ 32%] Generating quantization/server/dequantize_dnnlowp_op_test.py [ 32%] Generating quantization/server/dnnlowp_test_utils.py [ 32%] Generating quantization/server/elementwise_add_dnnlowp_op_test.py [ 32%] Generating quantization/server/elementwise_linear_dnnlowp_op_test.py [ 32%] Generating quantization/server/elementwise_mul_dnnlowp_op_test.py [ 32%] Generating quantization/server/elementwise_sum_dnnlowp_op_test.py [ 32%] Generating quantization/server/fully_connected_dnnlowp_acc16_op_test.py [ 32%] Generating quantization/server/fully_connected_dnnlowp_op_test.py [ 32%] Generating quantization/server/fully_connected_fp16_test.py [ 32%] Generating quantization/server/group_norm_dnnlowp_op_test.py [ 32%] Generating quantization/server/gather_dnnlowp_op_test.py [ 32%] Generating quantization/server/fully_connected_rowwise_dnnlowp_op_test.py [ 32%] Generating quantization/server/lstm_unit_dnnlowp_op_test.py [ 32%] Generating quantization/server/observer_test.py [ 32%] Generating quantization/server/quantize_dnnlowp_op_test.py [ 32%] Generating quantization/server/pool_dnnlowp_op_test.py [ 32%] Generating quantization/server/relu_dnnlowp_op_test.py [ 32%] Generating quantization/server/sigmoid_dnnlowp_op_test.py [ 32%] Generating quantization/server/resize_nearest_dnnlowp_op_test.py [ 32%] Generating quantization/server/spatial_batch_norm_dnnlowp_op_test.py [ 32%] Generating quantization/server/utils.py [ 32%] Generating quantization/server/tanh_dnnlowp_op_test.py [ 32%] Built target python_copy_files Compiling transport.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Linking CXX static library ../../../lib/libgloo.a [ 32%] Built target gloo include/common_coll.h:136:21: warning: ‘ncclResult_t saveKernel(int, const void*, void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm_t, cudaStream_t, size_t, int)’ defined but not used [-Wunused-function] static ncclResult_t saveKernel(int coll, const void* sendbuff, void* recvbuff, size_t count, ^~~~~~~~~~ include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling misc/group.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/group.o [ 32%] Linking CXX static library ../../../lib/libprotobuf.a [ 32%] Built target libprotobuf ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling misc/nvmlwrap.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/nvmlwrap.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Generating src/x86_64-fma/2d-winograd-8x8-3x3.py.o Compiling misc/ibvwrap.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/ibvwrap.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Generating src/x86_64-fma/blas/s8gemm.py.o Compiling misc/rings.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/rings.o [ 32%] Generating src/x86_64-fma/blas/c8gemm.py.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Generating src/x86_64-fma/blas/s4c6gemm.py.o include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ include/net.h:33:21: warning: ‘ncclResult_t ncclNetCloseListen(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseListen(void* listenComm) { NCCLCHECK(ncclNet-&gt;closeListen(listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~~ include/net.h:32:21: warning: ‘ncclResult_t ncclNetCloseRecv(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseRecv(void* recvComm) { NCCLCHECK(ncclNet-&gt;closeRecv(recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:31:21: warning: ‘ncclResult_t ncclNetCloseSend(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseSend(void* sendComm) { NCCLCHECK(ncclNet-&gt;closeSend(sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:30:21: warning: ‘ncclResult_t ncclNetTest(void*, int*, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetTest(void* request, int* done, int* size) { NCCLCHECK(ncclNet-&gt;test(request, done, size)); return ncclSuccess; } ^~~~~~~~~~~ include/net.h:29:21: warning: ‘ncclResult_t ncclNetFlush(void*, void*, int)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetFlush(void* recvComm, void* data, int size) { NCCLCHECK(ncclNet-&gt;flush(recvComm, data, size)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:28:21: warning: ‘ncclResult_t ncclNetIrecv(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIrecv(void* recvComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;irecv(recvComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:27:21: warning: ‘ncclResult_t ncclNetIsend(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIsend(void* sendComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;isend(sendComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:26:21: warning: ‘ncclResult_t ncclNetAccept(void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetAccept(void* listenComm, void** recvComm) { NCCLCHECK(ncclNet-&gt;accept(listenComm, recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:25:21: warning: ‘ncclResult_t ncclNetConnect(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetConnect(int dev, void* handle, void** sendComm) { NCCLCHECK(ncclNet-&gt;connect(dev, handle, sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:24:21: warning: ‘ncclResult_t ncclNetListen(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetListen(int dev, void* handle, void** listenComm) { NCCLCHECK(ncclNet-&gt;listen(dev, handle, listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:23:21: warning: ‘ncclResult_t ncclNetPtrSupport(int, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetPtrSupport(int dev, int* supportedTypes) { NCCLCHECK(ncclNet-&gt;ptrSupport(dev, supportedTypes)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~ include/net.h:22:21: warning: ‘ncclResult_t ncclNetDevices(int*, int**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetDevices(int* ndev, int** scores) { NCCLCHECK(ncclNet-&gt;devices(ndev, scores)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:21:20: warning: ‘const char* ncclNetName()’ defined but not used [-Wunused-function] static const char* ncclNetName() { return ncclNet-&gt;name; } ^~~~~~~~~~~ [ 32%] Generating src/x86_64-fma/blas/conv1x1.py.o Compiling misc/utils.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/utils.o [ 32%] Generating src/x86_64-fma/blas/sgemm.py.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Generating src/x86_64-fma/max-pooling.py.o [ 32%] Generating src/x86_64-fma/relu.py.o Compiling misc/enqueue.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/misc/enqueue.o [ 32%] Generating src/x86_64-fma/softmax.py.o ptxas warning : Too big maxrregcount value specified 96, will be ignored [ 32%] Generating src/x86_64-fma/blas/sdotxf.py.o include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ include/common_coll.h:136:21: warning: ‘ncclResult_t saveKernel(int, const void*, void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm_t, cudaStream_t, size_t, int)’ defined but not used [-Wunused-function] static ncclResult_t saveKernel(int coll, const void* sendbuff, void* recvbuff, size_t count, ^~~~~~~~~~ [ 32%] Generating src/x86_64-fma/blas/shdotxf.py.o Compiling transport/p2p.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport/p2p.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/nvlink.h:116:12: warning: ‘int getNumNvlinks(const char*)’ defined but not used [-Wunused-function] static int getNumNvlinks(const char* busId) { ^~~~~~~~~~~~~ include/nvlink.h:49:21: warning: ‘ncclResult_t getMaxNvlinks(int*)’ defined but not used [-Wunused-function] static ncclResult_t getMaxNvlinks(int* maxLinks) { ^~~~~~~~~~~~~ include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ include/topo.h:46:21: warning: ‘ncclResult_t getSockPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getSockPath(char* ifName, char** path) { ^~~~~~~~~~~ include/topo.h:35:21: warning: ‘ncclResult_t getMlxPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getMlxPath(char* ibName, char** path) { ^~~~~~~~~~ Compiling transport/shm.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport/shm.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Scanning dependencies of target nnpack [ 32%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/init.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-inference.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/softmax-output.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/relu-output.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/pooling-output.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/fully-connected-output.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/fully-connected-inference.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-kernel-gradient.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/relu-input-gradient.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-output.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-input-gradient.c.o [ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/x86_64-fma/softmax.c.o include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ [ 33%] Linking C static library ../../lib/libnnpack.a [ 33%] Built target nnpack Compiling transport/net.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport/net.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/nvlink.h:60:12: warning: ‘int getNvlinkGpu(const char*, const char*)’ defined but not used [-Wunused-function] static int getNvlinkGpu(const char* busId1, const char* busId2) { ^~~~~~~~~~~~ include/nvlink.h:49:21: warning: ‘ncclResult_t getMaxNvlinks(int*)’ defined but not used [-Wunused-function] static ncclResult_t getMaxNvlinks(int* maxLinks) { ^~~~~~~~~~~~~ include/topo.h:66:12: warning: ‘int pciDistance(char*, char*)’ defined but not used [-Wunused-function] static int pciDistance(char* path1, char* path2) { ^~~~~~~~~~~ include/topo.h:46:21: warning: ‘ncclResult_t getSockPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getSockPath(char* ifName, char** path) { ^~~~~~~~~~~ include/topo.h:35:21: warning: ‘ncclResult_t getMlxPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getMlxPath(char* ibName, char** path) { ^~~~~~~~~~ include/topo.h:15:21: warning: ‘ncclResult_t getCudaPath(int, char**)’ defined but not used [-Wunused-function] static ncclResult_t getCudaPath(int cudaDev, char** path) { ^~~~~~~~~~~ include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ Compiling transport/net_socket.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport/net_socket.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/topo.h:35:21: warning: ‘ncclResult_t getMlxPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getMlxPath(char* ibName, char** path) { ^~~~~~~~~~ include/net.h:33:21: warning: ‘ncclResult_t ncclNetCloseListen(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseListen(void* listenComm) { NCCLCHECK(ncclNet-&gt;closeListen(listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~~ include/net.h:32:21: warning: ‘ncclResult_t ncclNetCloseRecv(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseRecv(void* recvComm) { NCCLCHECK(ncclNet-&gt;closeRecv(recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:31:21: warning: ‘ncclResult_t ncclNetCloseSend(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseSend(void* sendComm) { NCCLCHECK(ncclNet-&gt;closeSend(sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:30:21: warning: ‘ncclResult_t ncclNetTest(void*, int*, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetTest(void* request, int* done, int* size) { NCCLCHECK(ncclNet-&gt;test(request, done, size)); return ncclSuccess; } ^~~~~~~~~~~ include/net.h:29:21: warning: ‘ncclResult_t ncclNetFlush(void*, void*, int)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetFlush(void* recvComm, void* data, int size) { NCCLCHECK(ncclNet-&gt;flush(recvComm, data, size)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:28:21: warning: ‘ncclResult_t ncclNetIrecv(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIrecv(void* recvComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;irecv(recvComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:27:21: warning: ‘ncclResult_t ncclNetIsend(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIsend(void* sendComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;isend(sendComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:26:21: warning: ‘ncclResult_t ncclNetAccept(void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetAccept(void* listenComm, void** recvComm) { NCCLCHECK(ncclNet-&gt;accept(listenComm, recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:25:21: warning: ‘ncclResult_t ncclNetConnect(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetConnect(int dev, void* handle, void** sendComm) { NCCLCHECK(ncclNet-&gt;connect(dev, handle, sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:24:21: warning: ‘ncclResult_t ncclNetListen(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetListen(int dev, void* handle, void** listenComm) { NCCLCHECK(ncclNet-&gt;listen(dev, handle, listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:23:21: warning: ‘ncclResult_t ncclNetPtrSupport(int, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetPtrSupport(int dev, int* supportedTypes) { NCCLCHECK(ncclNet-&gt;ptrSupport(dev, supportedTypes)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~ include/net.h:22:21: warning: ‘ncclResult_t ncclNetDevices(int*, int**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetDevices(int* ndev, int** scores) { NCCLCHECK(ncclNet-&gt;devices(ndev, scores)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:21:20: warning: ‘const char* ncclNetName()’ defined but not used [-Wunused-function] static const char* ncclNetName() { return ncclNet-&gt;name; } ^~~~~~~~~~~ Compiling transport/net_ib.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/transport/net_ib.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/param.h:45:13: warning: ‘void initEnv()’ defined but not used [-Wunused-function] static void initEnv() { ^~~~~~~ include/topo.h:46:21: warning: ‘ncclResult_t getSockPath(char*, char**)’ defined but not used [-Wunused-function] static ncclResult_t getSockPath(char* ifName, char** path) { ^~~~~~~~~~~ include/net.h:33:21: warning: ‘ncclResult_t ncclNetCloseListen(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseListen(void* listenComm) { NCCLCHECK(ncclNet-&gt;closeListen(listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~~ include/net.h:32:21: warning: ‘ncclResult_t ncclNetCloseRecv(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseRecv(void* recvComm) { NCCLCHECK(ncclNet-&gt;closeRecv(recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:31:21: warning: ‘ncclResult_t ncclNetCloseSend(void*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetCloseSend(void* sendComm) { NCCLCHECK(ncclNet-&gt;closeSend(sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~~~ include/net.h:30:21: warning: ‘ncclResult_t ncclNetTest(void*, int*, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetTest(void* request, int* done, int* size) { NCCLCHECK(ncclNet-&gt;test(request, done, size)); return ncclSuccess; } ^~~~~~~~~~~ include/net.h:29:21: warning: ‘ncclResult_t ncclNetFlush(void*, void*, int)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetFlush(void* recvComm, void* data, int size) { NCCLCHECK(ncclNet-&gt;flush(recvComm, data, size)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:28:21: warning: ‘ncclResult_t ncclNetIrecv(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIrecv(void* recvComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;irecv(recvComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:27:21: warning: ‘ncclResult_t ncclNetIsend(void*, void*, int, int, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetIsend(void* sendComm, void* data, int size, int type, void** request) { NCCLCHECK(ncclNet-&gt;isend(sendComm, data, size, type, request)); return ncclSuccess; } ^~~~~~~~~~~~ include/net.h:26:21: warning: ‘ncclResult_t ncclNetAccept(void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetAccept(void* listenComm, void** recvComm) { NCCLCHECK(ncclNet-&gt;accept(listenComm, recvComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:25:21: warning: ‘ncclResult_t ncclNetConnect(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetConnect(int dev, void* handle, void** sendComm) { NCCLCHECK(ncclNet-&gt;connect(dev, handle, sendComm)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:24:21: warning: ‘ncclResult_t ncclNetListen(int, void*, void**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetListen(int dev, void* handle, void** listenComm) { NCCLCHECK(ncclNet-&gt;listen(dev, handle, listenComm)); return ncclSuccess; } ^~~~~~~~~~~~~ include/net.h:23:21: warning: ‘ncclResult_t ncclNetPtrSupport(int, int*)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetPtrSupport(int dev, int* supportedTypes) { NCCLCHECK(ncclNet-&gt;ptrSupport(dev, supportedTypes)); return ncclSuccess; } ^~~~~~~~~~~~~~~~~ include/net.h:22:21: warning: ‘ncclResult_t ncclNetDevices(int*, int**)’ defined but not used [-Wunused-function] static ncclResult_t ncclNetDevices(int* ndev, int** scores) { NCCLCHECK(ncclNet-&gt;devices(ndev, scores)); return ncclSuccess; } ^~~~~~~~~~~~~~ include/net.h:21:20: warning: ‘const char* ncclNetName()’ defined but not used [-Wunused-function] static const char* ncclNetName() { return ncclNet-&gt;name; } ^~~~~~~~~~~ Compiling collectives/all_reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/all_reduce.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling collectives/all_gather.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/all_gather.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling collectives/broadcast.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/broadcast.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling collectives/reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/reduce.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling collectives/reduce_scatter.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/reduce_scatter.o ptxas warning : Too big maxrregcount value specified 96, will be ignored include/common_coll.h:40:21: warning: ‘ncclResult_t ArgsCheck(const void*, const void*, size_t, ncclDataType_t, ncclRedOp_t, int, ncclComm*, const char*)’ defined but not used [-Wunused-function] static ncclResult_t ArgsCheck(const void* sendbuff, const void* recvbuff, size_t count, ncclDataType_t type, ncclRedOp_t op, int root, struct ncclComm* comm, const char* opname) { ^~~~~~~~~ Compiling all_reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_reduce_sum.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling broadcast.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/broadcast_sum.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_sum.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_gather.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_gather_sum.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce_scatter.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_scatter_sum.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_reduce_prod.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling broadcast.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/broadcast_prod.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_prod.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_gather.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_gather_prod.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce_scatter.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_scatter_prod.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_reduce_min.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling broadcast.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/broadcast_min.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_min.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_gather.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_gather_min.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce_scatter.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_scatter_min.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_reduce_max.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling broadcast.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/broadcast_max.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_max.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling all_gather.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/all_gather_max.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling reduce_scatter.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/reduce_scatter_max.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Compiling functions.cu &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/functions.o ptxas warning : Too big maxrregcount value specified 96, will be ignored Archiving objects &gt; /worka/work/derick/github/pytorch/build/nccl/obj/collectives/device/colldevice.a Linking libnccl.so.2.3.7 &gt; /worka/work/derick/github/pytorch/build/nccl/lib/libnccl.so.2.3.7 Archiving libnccl_static.a &gt; /worka/work/derick/github/pytorch/build/nccl/lib/libnccl_static.a /worka/work/derick/github/pytorch/third_party/nccl/nccl/src [ 33%] No install step for 'nccl_external' [ 33%] Completed 'nccl_external' [ 33%] Built target nccl_external make: *** [all] Error 2 Traceback (most recent call last): File "setup.py", line 710, in &lt;module&gt; build_deps() File "setup.py", line 282, in build_deps build_dir='build') File "/worka/work/derick/github/pytorch/tools/build_pytorch_libs.py", line 259, in build_caffe2 check_call(['make', '-j', str(max_jobs), 'install'], cwd=build_dir, env=my_env) File "/home/derick/.conda/envs/pytorch1/lib/python3.7/subprocess.py", line 347, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['make', '-j', '36', 'install']' returned non-zero exit status 2. </code></pre></div>
0
<p dir="auto">my demo is like it:<br> <code class="notranslate">&lt;div class="cart" *ngFor="let mealInfo of mealInfoList;let mealInfoIndex = index" *ngIf="mealInfo?.selectedCount &gt; 0"&gt;</code><br> the *ngIf desn't work.</p> <p dir="auto"><code class="notranslate">&lt;div *ngFor="let a of [11,12,13]" *ngIf="a == 11"&gt;&lt;/div&gt;</code><br> the *ngFor desn't work.</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc1</li> </ul>
<p dir="auto">Based on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="111898250" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/4792" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/4792/hovercard" href="https://github.com/angular/angular/issues/4792">#4792</a>, putting multiple template directives on a single element doesn't work on Angular 2. It should throw.</p> <p dir="auto">However, this plunk demonstrates that it <em>doesn't</em> throw. Plus, we see 4 instead of 3 buttons, which is rather confusing.</p> <p dir="auto"><a href="http://plnkr.co/edit/oK47qCG1BnQsC2Qio1ID?p=preview" rel="nofollow">http://plnkr.co/edit/oK47qCG1BnQsC2Qio1ID?p=preview</a></p>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>For English only</strong>, other languages will not accept.</p> <p dir="auto">Before report a bug, make sure you have:</p> <ul dir="auto"> <li>Searched open and closed <a href="https://github.com/apache/incubator-shardingsphere/issues">GitHub issues</a>.</li> <li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li> </ul> <p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br> If no response <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p> <p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">4.0.0-RC2</p> <h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3> <p dir="auto">Sharding-JDBC</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">the query result is decrypt</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">the query result is still encrypt</p> <h3 dir="auto">Reason analyze (If you can)</h3> <p dir="auto">thie query result not use the encryptRule to decrypt</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <p dir="auto">spring:<br> shardingsphere:<br> datasource:<br> names: master,slave0<br> master:<br> type: com.alibaba.druid.pool.DruidDataSource<br> driver-class-name: org.h2.Driver<br> url: jdbc:h2:mem:dbtest:public;DB_CLOSE_DELAY=-1;MODE=MySQL<br> slave0:<br> type: com.alibaba.druid.pool.DruidDataSource<br> driver-class-name: org.h2.Driver<br> url: jdbc:h2:mem:dbtest:public;DB_CLOSE_DELAY=-1;MODE=MySQL<br> sharding:<br> defaultDataSourceName: dataSource<br> master-slave-rules:<br> dataSource:<br> master-data-source-name: master<br> slave-data-source-names[0]: slave0<br> load-balance-algorithm-type: ROUND_ROBIN<br> encryptRule:<br> encryptors:<br> encryptor_aes:<br> type: AES<br> props:<br> aes.key.value: 123456<br> tables:<br> company:<br> columns:<br> address:<br> cipherColumn: address<br> encryptor: encryptor_aes<br> full_name:<br> cipherColumn: full_name<br> encryptor: encryptor_aes<br> props:<br> sql.show: true</p> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<p dir="auto">the profile as below:</p> <p dir="auto">spring:<br>   shardingsphere:<br>     props:<br>       sql.show: true<br>       query.with.cipher.comlum: true<br>     datasource:<br>       name: ds0<br>       ds0:<br>         type: org.apache.commons.dbcp.BasicDataSource</p> <p dir="auto">        driver-class-name: com.mysql.cj.jdbc.Driver</p> <p dir="auto">        url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&amp;characterEncoding=utf-8&amp;serverTimezone=UTC</p> <p dir="auto">        username: root</p> <p dir="auto">        password: root</p> <p dir="auto">        max-total: 100<br>     sharding:<br>       tables:<br>         user:<br>           actual-data-nodes: ds0.user_$-&gt;{0..4}<br>           table-strategy:<br>             inline:<br>               sharding-column: id<br>               algorithm-expression: user_$-&gt;{id % 5}<br>     encrypt:<br>       encryptors:<br>         encryptor_aes:<br>           type: aes<br>           props.aes.key.value: 123456<br>       tables:<br>         user:<br>           columns:<br>             name:<br>               cipherColumn: name<br>               encryptor: encryptor_aes</p>
1
<p dir="auto">The instructions on this challenge need to be updated. The *<em>arity *</em> property is deprecated and not supported on any browser according to:<br> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arity" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arity</a></p> <p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/make-a-person#?solution=var%20Person%20%3D%20function%28firstAndLast%29%20%7B%0A%20%0A%20%20%20%20return%20firstAndLast%3B%0A%7D%3B%0A%0Avar%20bob%20%3D%20new%20Person%28'Bob%20Ross'%29%3B%0Abob.getFullName%28%29%3B%0A" rel="nofollow">Make a Person</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var Person = function(firstAndLast) { return firstAndLast; }; var bob = new Person('Bob Ross'); bob.getFullName(); "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">Person</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">firstAndLast</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">firstAndLast</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">bob</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Person</span><span class="pl-kos">(</span><span class="pl-s">'Bob Ross'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">bob</span><span class="pl-kos">.</span><span class="pl-en">getFullName</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">It's strange that the description for this exercise says "All functions that take an argument have an *_arity *_of 1, and the argument will be a string.", when it's simpler just to say something like "All functions that take arguments, take one argument that is a string". Also I feel that the word "arity" is an outdated word after googling the word and finding out that it used to be a property of functions but is now <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arity" rel="nofollow">deprecated</a></p>
1
<p dir="auto">I see this in 0.10.4. If I press <code class="notranslate">Cancel</code> the app exits (the don't save case). If I press <code class="notranslate">Don't Save</code> the dialog closes but VSCode stays running (the cancel case).</p>
<p dir="auto">When attempting to close or change workspace containing unsaved file(s) vscode prompts you to save them (expected) however clicking 'Don't save' results in the same action as clicking 'Cancel'. I.e. the editor remains in the current workspace.<br> Detected on 0.10.4</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.3.0</li> <li>Operating System / Platform =&gt; Ubuntu 20.04 LTS (64 bit)</li> <li>Interpreter =&gt; Python 3.8.2</li> </ul> <h5 dir="auto">Detailed description</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Python import cv2 img = cv2.imread('./lena.jpg', 1) cv2.imshow('image',img) cv2.waitKey(0) cv2.destroyAllWindows()"><pre class="notranslate"><code class="notranslate"># Python import cv2 img = cv2.imread('./lena.jpg', 1) cv2.imshow('image',img) cv2.waitKey(0) cv2.destroyAllWindows() </code></pre></div> <ul dir="auto"> <li>The above code is not working properly.</li> <li>Sometimes a new window is opening with a dark small background.</li> <li>Screenshot of the same has been attached.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/57290210/89702491-67834c80-d95f-11ea-8015-83972238774d.png"><img src="https://user-images.githubusercontent.com/57290210/89702491-67834c80-d95f-11ea-8015-83972238774d.png" alt="Screenshot from 2020-08-08 09-52-57" style="max-width: 100%;"></a></li> </ul> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">According to me, the method <code class="notranslate">cv2.imshow()</code> is not working properly.<br> Fixing the method would work.</p> <h5 dir="auto">Issue submission checklist</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues,<br> answers.opencv.org, Stack Overflow, etc and have not found solution</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to latest OpenCV version and the issue is still there</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> There is reproducer code and related data files: videos, images, onnx, etc</li> </ul>
<h3 dir="auto">Expected behaviour</h3> <p dir="auto">imshow displays image</p> <h3 dir="auto">Actual behaviour</h3> <p dir="auto">when calling cv2.imshow(), I mostly get a small window with the correct name but containing only a black screen. It does work sometimes however but it is unpredictable. This issue was not encountered in previous versions of opencv-contrib-python.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43655410/87697368-9e4ab600-c757-11ea-98b9-d88afcdc83d5.png"><img src="https://user-images.githubusercontent.com/43655410/87697368-9e4ab600-c757-11ea-98b9-d88afcdc83d5.png" alt="error" style="max-width: 100%;"></a></p> <h3 dir="auto">Steps to reproduce</h3> <ul dir="auto"> <li>example code</li> </ul> <p dir="auto">import cv2<br> import os<br> import imutils</p> <p dir="auto">image = cv2.imread("ref_image.png")</p> <p dir="auto">cv2.imshow("test", image)<br> cv2.waitKey(0)</p> <p dir="auto">cv2.destroyAllWindows()</p> <ul dir="auto"> <li>operating system : Ubuntu 20.04</li> <li>architecture (e.g. x86): x64</li> <li>python version: 3.8</li> <li>opencv-python version: opencv-contrib-python 4.3.36</li> </ul>
1
<p dir="auto">When sending form data, values which are booleans are encoded as "True" and "False" as opposed to "true" and "false". This is because of the urllib.parse.urlencode function.<br> Perhaps it is non standard to pass a boolean as form data, but I think this is non obvious to regular users. Maybe it should raise an exception or perform a conversion to lowercase.</p> <h2 dir="auto">Expected Result</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; data = {&quot;key&quot;: True, &quot;key2&quot;: &quot;true&quot;} &gt;&gt;&gt; req = requests.post(&quot;http://www.google.com&quot;, data=data) &gt;&gt;&gt; req.request.body 'key=true&amp;key2=true'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; data = {"key": True, "key2": "true"} &gt;&gt;&gt; req = requests.post("http://www.google.com", data=data) &gt;&gt;&gt; req.request.body 'key=true&amp;key2=true' </code></pre></div> <h2 dir="auto">Actual Result</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; data = {&quot;key&quot;: True, &quot;key2&quot;: &quot;true&quot;} &gt;&gt;&gt; req = requests.post(&quot;http://www.google.com&quot;, data=data) &gt;&gt;&gt; req.request.body 'key=True&amp;key2=true'"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; data = {"key": True, "key2": "true"} &gt;&gt;&gt; req = requests.post("http://www.google.com", data=data) &gt;&gt;&gt; req.request.body 'key=True&amp;key2=true' </code></pre></div> <h2 dir="auto">Reproduction Steps</h2> <p dir="auto">Pass a dictionary with a key/value pair with a boolean value to the data param of a post.</p>
<p dir="auto">For a Squid configuration of:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="http_port 3128 https_port 3129 cert=/usr/local/opt/squid/etc/ssl/squid.crt key=/usr/local/opt/squid/etc/ssl/squid.key"><pre class="notranslate"><code class="notranslate">http_port 3128 https_port 3129 cert=/usr/local/opt/squid/etc/ssl/squid.crt key=/usr/local/opt/squid/etc/ssl/squid.key </code></pre></div> <p dir="auto">And test names where:</p> <p dir="auto">The 'http_port' annotation indicates whether Squid HTTP port was used.</p> <p dir="auto">The 'https_port' annotation indicates whether Squid HTTPS port was used.</p> <p dir="auto">The 'scheme' annotation in test names refers to whether the scheme was part of proxy definition in proxies dictionary passed to requests</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="no_scheme --&gt; { 'https': 'localhost:3129' } http_scheme --&gt; { 'https': 'http://localhost:3129' } https_scheme --&gt; { 'https': 'https://localhost:3129' }"><pre class="notranslate"><code class="notranslate">no_scheme --&gt; { 'https': 'localhost:3129' } http_scheme --&gt; { 'https': 'http://localhost:3129' } https_scheme --&gt; { 'https': 'https://localhost:3129' } </code></pre></div> <p dir="auto">Results for different requests versions are:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" requests 0.9.3 1.2.3 2.0.0 no_proxy PASS PASS PASS http_port_no_scheme PASS FAIL FAIL http_port_with_http_scheme PASS PASS PASS http_port_with_https_scheme FAIL FAIL PASS https_port_no_scheme FAIL PASS FAIL https_port_with_http_scheme FAIL FAIL FAIL https_port_with_https_scheme PASS PASS FAIL"><pre class="notranslate"><code class="notranslate"> requests 0.9.3 1.2.3 2.0.0 no_proxy PASS PASS PASS http_port_no_scheme PASS FAIL FAIL http_port_with_http_scheme PASS PASS PASS http_port_with_https_scheme FAIL FAIL PASS https_port_no_scheme FAIL PASS FAIL https_port_with_http_scheme FAIL FAIL FAIL https_port_with_https_scheme PASS PASS FAIL </code></pre></div> <p dir="auto">The problem one I am concerned about is https_port_with_https_scheme as this no longer works any more.</p> <p dir="auto">I fully realise that http_port_with_https_scheme now works and that this presumably would use CONNECT as is the safest option, but we would have to notify all customers relying on https_port_with_https_scheme that what they used before no longer works and they will need to change their configuration they have. If they don't heed that instruction, then we will start see failed connections and complaints.</p> <p dir="auto">BTW, it would be really good if the documentation explained the differences between all the combinations, what mechanisms they use and what represents best practice for being the safest/best to use.</p> <p dir="auto">Test used for https_port_with_https_scheme is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import unittest import requests PROXY_HOST = 'localhost' PROXY_HTTP_PORT = 3128 PROXY_HTTPS_PORT = 3129 REMOTE_URL = 'https://pypi.python.org/pypi' class TestProxyingOfSSLRequests(unittest.TestCase): def test_proxy_via_squid_https_port_with_https_scheme(self): proxies = { 'https': 'https://%s:%s' % (PROXY_HOST, PROXY_HTTPS_PORT) } response = requests.get(REMOTE_URL, proxies=proxies) self.assertTrue(len(response.content) != 0) if __name__ == '__main__': unittest.main()"><pre class="notranslate"><code class="notranslate">import unittest import requests PROXY_HOST = 'localhost' PROXY_HTTP_PORT = 3128 PROXY_HTTPS_PORT = 3129 REMOTE_URL = 'https://pypi.python.org/pypi' class TestProxyingOfSSLRequests(unittest.TestCase): def test_proxy_via_squid_https_port_with_https_scheme(self): proxies = { 'https': 'https://%s:%s' % (PROXY_HOST, PROXY_HTTPS_PORT) } response = requests.get(REMOTE_URL, proxies=proxies) self.assertTrue(len(response.content) != 0) if __name__ == '__main__': unittest.main() </code></pre></div> <p dir="auto">For full set of tests and results see:</p> <ul dir="auto"> <li><a href="https://dl.dropboxusercontent.com/u/22571016/requests-ssl-proxy.tar" rel="nofollow">https://dl.dropboxusercontent.com/u/22571016/requests-ssl-proxy.tar</a></li> </ul> <p dir="auto">Cheat sheet for setting up Squid on MacOS X with SSL support from our own cheat sheet is:</p> <p dir="auto">To test proxying via SSL, the easiest thing to do is install 'squid' via 'brew' under MacOSX, but avoid the standard recipe and instead use:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="brew install https://raw.github.com/mxcl/homebrew/a7bf4c381f4e38c24fb23493a92851ea8339493e/Library/Formula/squid.rb"><pre class="notranslate"><code class="notranslate">brew install https://raw.github.com/mxcl/homebrew/a7bf4c381f4e38c24fb23493a92851ea8339493e/Library/Formula/squid.rb </code></pre></div> <p dir="auto">This will install 'squid' with SSL support.</p> <p dir="auto">You can then generate a self signed certificate to use:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cd /usr/local/opt/squid/etc mkdir ssl cd ssl openssl genrsa -des3 -out squid.key 1024 openssl req -new -key squid.key -out squid.csr cp squid.key squid.key.org openssl rsa -in squid.key.org -out squid.key openssl x509 -req -days 365 -in squid.csr -signkey squid.key -out squid.crt"><pre class="notranslate"><code class="notranslate">cd /usr/local/opt/squid/etc mkdir ssl cd ssl openssl genrsa -des3 -out squid.key 1024 openssl req -new -key squid.key -out squid.csr cp squid.key squid.key.org openssl rsa -in squid.key.org -out squid.key openssl x509 -req -days 365 -in squid.csr -signkey squid.key -out squid.crt </code></pre></div> <p dir="auto">Then edit the the squid configuration file at '/usr/local/opt/squid/etc/squid.conf', adding:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="https_port 3129 cert=/usr/local/opt/squid/etc/ssl/squid.crt key=/usr/local/opt/squid/etc/ssl/squid.key"><pre class="notranslate"><code class="notranslate">https_port 3129 cert=/usr/local/opt/squid/etc/ssl/squid.crt key=/usr/local/opt/squid/etc/ssl/squid.key </code></pre></div> <p dir="auto">Then use configuration of:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="proxy_host = localhost proxy_port = 3129"><pre class="notranslate"><code class="notranslate">proxy_host = localhost proxy_port = 3129 </code></pre></div>
0
<p dir="auto">Repro: <a href="https://jsbin.com/gebasa/3/edit?js,output" rel="nofollow">https://jsbin.com/gebasa/3/edit?js,output</a></p> <p dir="auto">Given:</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;input disabled={true} type=&quot;checkbox&quot; checked={trueOrFalse} onChange={alert} /&gt;"><pre class="notranslate">&lt;<span class="pl-ent">input</span> <span class="pl-e">disabled</span>={true} <span class="pl-e">type</span>=<span class="pl-s"><span class="pl-pds">"</span>checkbox<span class="pl-pds">"</span></span> <span class="pl-e">checked</span>={trueOrFalse} <span class="pl-e">onChange</span>={alert} /&gt;</pre></div> <p dir="auto">On at least IE11 a double click on checkbox causes onChange to be called. If it's just adding an if statement, normalizing this would be nice. It may also affect other elements/events like <code class="notranslate">&lt;button disabled onClick={f}&gt;</code>, misc screen readers, etc.</p> <p dir="auto">Workaround: duplicate the disabled boolean logic in the handler.</p> <p dir="auto">The report was from <strong>sim1234</strong> on IRC and verified by <strong>phi0x</strong>.</p>
<p dir="auto">Hi. I have a simple component like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var MyImage = React.createClass({ render: function() { return &lt;img src=&quot;aaa.jpg&quot; /&gt;; } });"><pre class="notranslate"><code class="notranslate">var MyImage = React.createClass({ render: function() { return &lt;img src="aaa.jpg" /&gt;; } }); </code></pre></div> <p dir="auto">When I debug it using React dev tools to inspect the React DOM, that's what I see:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3027415/5999651/2d63e6c8-aad4-11e4-8f07-af44aefffd13.png"><img src="https://cloud.githubusercontent.com/assets/3027415/5999651/2d63e6c8-aad4-11e4-8f07-af44aefffd13.png" alt="screenshot 2015-02-02 12 08 12" style="max-width: 100%;"></a></p> <p dir="auto">This breaks my unit tests, which expect just one <code class="notranslate">&lt;img&gt;</code> element. (I use <code class="notranslate">TestUtils.findRenderedComponentWithType(myImage, 'img');</code>)</p> <p dir="auto">This is an issue only with the virtual DOM, browser DOM looks like expected:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3027415/5999729/0414ce80-aad5-11e4-89f4-e652710da9a8.png"><img src="https://cloud.githubusercontent.com/assets/3027415/5999729/0414ce80-aad5-11e4-89f4-e652710da9a8.png" alt="screenshot 2015-02-02 12 13 52" style="max-width: 100%;"></a></p> <p dir="auto">Interesting note: When I change the line in <code class="notranslate">render()</code> to <code class="notranslate">return &lt;img src="aaa.jpg"&gt;aaa&lt;/img&gt;;</code> the element isn't duplicated anymore:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3027415/5999688/8bf6289a-aad4-11e4-82fc-7b9854a4e06c.png"><img src="https://cloud.githubusercontent.com/assets/3027415/5999688/8bf6289a-aad4-11e4-82fc-7b9854a4e06c.png" alt="screenshot 2015-02-02 12 10 52" style="max-width: 100%;"></a></p> <p dir="auto">I'm using React <code class="notranslate">0.12.2</code>.</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=martypitt" rel="nofollow">Marty Pitt</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9741?redirect=false" rel="nofollow">SPR-9741</a></strong> and commented</p> <p dir="auto">When specifying the name of a persistence unit to use for LocalContainerEntityManagerFactoryBean (ie., assuming there are multiple persistence units defined in persistence.xml), this name is now applied to the persistence unit from scanned pacakges.</p> <p dir="auto">In 3.1.0, the name applied to the generated package was 'default'. However, now, the name applied is the one defined in the entityManager configuration.</p> <p dir="auto">This results in an exception "Conflicting persistence unit definitions for name 'xxx'".</p> <p dir="auto">This is a breaking change in behaviour from 3.1.0 to 3.1.2.</p> <p dir="auto">The change is caused by new setter behaviour introduced in LocalContainerEntityManagerFactoryBean in 3.1.2, specifically this code:</p> <p dir="auto">{{<br> <code class="notranslate">@Override</code><br> public void setPersistenceUnitName(String persistenceUnitName) {<br> super.setPersistenceUnitName(persistenceUnitName);<br> this.internalPersistenceUnitManager.setDefaultPersistenceUnitName(persistenceUnitName);<br> }<br> }}</p> <p dir="auto">This changes the internal defaultPersistenceUnitName from <code class="notranslate">default</code>. Later, when <code class="notranslate">DefaultPersistenceUnit.buildDefaultPersistenceUnitInfo()</code> is called, a new persistence unit is generated using this name:</p> <p dir="auto">{{<br> private SpringPersistenceUnitInfo buildDefaultPersistenceUnitInfo() {<br> SpringPersistenceUnitInfo scannedUnit = new SpringPersistenceUnitInfo();<br> scannedUnit.setPersistenceUnitName(this.defaultPersistenceUnitName);<br> scannedUnit.setExcludeUnlistedClasses(true);<br> }}</p> <p dir="auto">This then results in an exception being thrown.</p> <p dir="auto">As an example, here's the defined <code class="notranslate">Persistence.xml</code>, which contains both a prod config, and a test config:</p> <p dir="auto">{{</p> <p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p> <p dir="auto">&lt;persistence version="1.0"<br> xmlns="<a href="http://java.sun.com/xml/ns/persistence" rel="nofollow">http://java.sun.com/xml/ns/persistence</a>" 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://java.sun.com/xml/ns/persistence" rel="nofollow">http://java.sun.com/xml/ns/persistence</a> <a href="http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd%22%3E" rel="nofollow">http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"&gt;</a><br> &lt;persistence-unit name="production"&gt;<br> &lt;properties&gt;</p> <p dir="auto">&lt;!-- JPA Configuration goes here --&gt;<br> &lt;/properties&gt;<br> &lt;/persistence-unit&gt;<br> &lt;persistence-unit name="test" transaction-type="RESOURCE_LOCAL"&gt;<br> &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;<br> &lt;properties&gt;<br> &lt;!-- JPA Configuration goes here --&gt;<br> &lt;/properties&gt;<br> &lt;/persistence-unit&gt;<br> &lt;/persistence&gt;<br> }}</p> <p dir="auto">Then, the appropriate config is selected in the EntityManager configration:</p> <p dir="auto">{{<br> &lt;bean id="entityManagerFactory"<br> class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;<br> &lt;property name="dataSource" ref="dataSource" /&gt;<br> &lt;property name="packagesToScan"&gt;<br> &lt;list&gt;<br> &lt;value&gt;aa.bb.cc&lt;/value&gt;<br> &lt;/list&gt;<br> &lt;/property&gt;<br> &lt;property name="persistenceUnitName" value="test" /&gt;<br> &lt;property name="jpaVendorAdapter"&gt;<br> &lt;bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"&gt;<br> &lt;property name="showSql" value="true" /&gt;<br> &lt;property name="generateDdl" value="true" /&gt;<br> &lt;property name="databasePlatform" value="org.hibernate.dialect.H2Dialect" /&gt;<br> &lt;/bean&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;<br> }}</p> <p dir="auto">This causes the exception.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.2</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://stackoverflow.com/questions/12189921/conflicting-persistence-unit-definitions-when-testing" rel="nofollow">http://stackoverflow.com/questions/12189921/conflicting-persistence-unit-definitions-when-testing</a></p> <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/0cf4a2626bae8707a324aef1f0e62b06a80c2ab8/hovercard" href="https://github.com/spring-projects/spring-framework/commit/0cf4a2626bae8707a324aef1f0e62b06a80c2ab8"><tt>0cf4a26</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/f32e4077fae1ce986ca565c73b1703f74dd6ba31/hovercard" href="https://github.com/spring-projects/spring-framework/commit/f32e4077fae1ce986ca565c73b1703f74dd6ba31"><tt>f32e407</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=snowway" rel="nofollow">薛伟</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1003?redirect=false" rel="nofollow">SPR-1003</a></strong> and commented</p> <p dir="auto">A FactoryBean which can use the powerful OGNL expression language<br> with OGNL support,developers can invoke method,static method,static field and some advanced operation straightforward and easy.</p> <p dir="auto">the sourcecode<br> /*</p> <ul dir="auto"> <li>Created on 2005-6-2<br> */<br> package org.snowway.spring.extension;</li> </ul> <p dir="auto">import java.util.Collections;<br> import java.util.Hashtable;<br> import java.util.Map;</p> <p dir="auto">import org.springframework.beans.BeansException;<br> import org.springframework.beans.FatalBeanException;<br> import org.springframework.beans.factory.FactoryBean;<br> import org.springframework.context.ApplicationContext;<br> import org.springframework.context.ApplicationContextAware;</p> <p dir="auto">import ognl.Ognl;<br> import ognl.OgnlException;<br> /**</p> <ul dir="auto"> <li> <p dir="auto"><code class="notranslate">@author</code> snowway</p> </li> <li> <p dir="auto"><code class="notranslate">@version</code> <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="4a35e0e54f320d0ab16695e3d22b9cee">$Id$</math-renderer></p> </li> <li> </li></ul> <p dir="auto">&lt;p&gt;</p> <ul dir="auto"> <li> <p dir="auto">A FactoryBean which can use the powerful OGNL expression language&lt;br&gt;</p> </li> <li> <p dir="auto">need runtime OGNL support(e.g. ognl-2.6.5.jar)&lt;br&gt;</p> </li> <li> </li><li> <p dir="auto">the default root object for OGNL expression is ApplicationContext instance&lt;br&gt;<br> */<br> public class OgnlExpressionFactoryBean implements FactoryBean,ApplicationContextAware{</p> <p dir="auto">//the ognl expression<br> private String expression;</p> <p dir="auto">//the naming context for the evaluation<br> private Map context;</p> <p dir="auto">private ApplicationContext applicationContext;</p> <p dir="auto">//the ognl root object,default is ApplicationContext instance<br> private Object root;</p> <p dir="auto">//is user define custom root object<br> private boolean _hasSetRootExplicit = false;</p> <p dir="auto">/* (non-Javadoc)</p> <ul dir="auto"> <li> <p dir="auto"><code class="notranslate">@see</code> org.springframework.context.ApplicationContextAware#setApplicationContext(org.springframework.context.ApplicationContext)<br> */<br> public void setApplicationContext(ApplicationContext applicationContext)<br> throws BeansException {</p> <p dir="auto">this.applicationContext = applicationContext;<br> //when no custom root object,use ApplicationContext default<br> if(!_hasSetRootExplicit)<br> this.root = this.applicationContext;<br> }</p> </li> </ul> <p dir="auto">/**</p> <ul dir="auto"> <li> <code class="notranslate">@param</code> expression the ognl expression to set.<br> */<br> public void setExpression(String expression) {<br> this.expression = expression;<br> }</li> </ul> <p dir="auto">/**</p> <ul dir="auto"> <li> <code class="notranslate">@param</code> context the naming context for the evaluation<br> */<br> public void setContext(Map context) {<br> this.context = context;<br> }</li> </ul> <p dir="auto">/**</p> <ul dir="auto"> <li> <code class="notranslate">@param</code> root the root object for the OGNL expression<br> */<br> public void setRoot(Object root) {<br> _hasSetRootExplicit = true;<br> this.root = root;<br> }</li> </ul> <p dir="auto">public Object getObject() throws Exception {<br> if(expression==null)<br> throw new IllegalArgumentException("ognl expression cannot be null!");</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" //the return object after ognl evaluation Object returnObject = null; try{ returnObject = OgnlExpressionEvaluator.evaluate(expression, context, root); }catch(OgnlException ex){ //a better way is throw appropriate Exception insteadof RuntimeException //I write RuntimeException for the sake of simplicity throw new RuntimeException(&quot;error in evaluation &quot;,ex); } if(returnObject==null) throw new FatalBeanException(&quot;OgnlExpressionFactoryBean is not allowed to return null, &quot; + &quot;but the expression '&quot; + this.expression + &quot;' return null&quot;); return returnObject;"><pre class="notranslate"><code class="notranslate"> //the return object after ognl evaluation Object returnObject = null; try{ returnObject = OgnlExpressionEvaluator.evaluate(expression, context, root); }catch(OgnlException ex){ //a better way is throw appropriate Exception insteadof RuntimeException //I write RuntimeException for the sake of simplicity throw new RuntimeException("error in evaluation ",ex); } if(returnObject==null) throw new FatalBeanException("OgnlExpressionFactoryBean is not allowed to return null, " + "but the expression '" + this.expression + "' return null"); return returnObject; </code></pre></div> <p dir="auto">}<br> /**</p> <ul dir="auto"> <li>unknown type<br> */<br> public Class getObjectType() {<br> return null;<br> }</li> </ul> <p dir="auto">public boolean isSingleton() {<br> return true;<br> }</p> <p dir="auto">/**</p> <ul dir="auto"> <li> <p dir="auto"><code class="notranslate">@author</code> snowway</p> </li> <li> <p dir="auto"><code class="notranslate">@version</code> <math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="4a35e0e54f320d0ab16695e3d22b9cee">$Id$</math-renderer></p> </li> <li> </li></ul> <p dir="auto">&lt;p&gt;</p> <ul dir="auto"> <li> <p dir="auto">a helper class for evaluate ognl expression and cache the compiled expression object<br> */<br> private static class OgnlExpressionEvaluator{</p> <p dir="auto">//a map for pre-compiled ognl expression object<br> private static Map expressions = new Hashtable();</p> <p dir="auto">/**</p> <ul dir="auto"> <li> <p dir="auto"><code class="notranslate">@param</code> expression the OGNL expression</p> </li> <li> <p dir="auto"><code class="notranslate">@param</code> context the naming context for the evaluation</p> </li> <li> <p dir="auto"><code class="notranslate">@param</code> root the root object for the OGNL expression<br> */<br> public static Object evaluate(String expression,<br> Map context,Object root) throws OgnlException{</p> <p dir="auto">//the context can not be null,otherwise OGNL will throw NullPointerException<br> if(context == null)<br> context = Collections.EMPTY_MAP;</p> <p dir="auto">//try to retrieve pre-compiled ognl expression object<br> Object compiledObject = expressions.get(expression);</p> <p dir="auto">//compile first if failed to retrieve pre-compiled object<br> if(compiledObject==null){<br> expressions.put(expression,compiledObject = Ognl.parseExpression(expression));<br> }</p> <p dir="auto">//evaluate<br> return Ognl.getValue(compiledObject,context,root);<br> }<br> }<br> }</p> </li> </ul> </li> </ul> </li> </ul> <p dir="auto">the demo xml</p> <p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br> &lt;!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"<br> "<a href="http://www.springframework.org/dtd/spring-beans.dtd%22%3E" rel="nofollow">http://www.springframework.org/dtd/spring-beans.dtd"&gt;</a><br> &lt;beans&gt;<br> &lt;!--<br> static method invocation<br> it will return java system properties<br> @ represent static method or field invocation<br> --&gt;<br> &lt;bean id="sysprops" class="org.snowway.spring.extension.OgnlExpressionFactoryBean"&gt;<br> &lt;property name="expression"&gt;<br> &lt;value&gt;<br> <code class="notranslate">@java</code>.lang.System@getProperties()<br> &lt;/value&gt;<br> &lt;/property&gt;<br> &lt;/bean&gt;</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;!-- static filed reference it will return java.io.PrintStream object @ represent static method or field invocation --&gt; &lt;bean id=&quot;printStream&quot; class=&quot;org.snowway.spring.extension.OgnlExpressionFactoryBean&quot;&gt; &lt;property name=&quot;expression&quot;&gt; &lt;value&gt;@java.lang.System@out&lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- method invocation return value it will return &quot;ABCDE&quot; --&gt; &lt;bean id=&quot;uppercaseString&quot; class=&quot;org.snowway.spring.extension.OgnlExpressionFactoryBean&quot;&gt; &lt;property name=&quot;expression&quot;&gt; &lt;value&gt;&quot;abcde&quot;.toUpperCase()&lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- use existing bean as the root of OGNL expression it will return java.version system property value (e.g. 1.4.2_05) the root object is java.util.Properties,so you can invoke java.util.Properties.getProperty method it can alse write as #this.getProperty(&quot;java.version&quot;),#this represent the root now --&gt; &lt;bean id=&quot;javaVersion&quot; class=&quot;org.snowway.spring.extension.OgnlExpressionFactoryBean&quot;&gt; &lt;property name=&quot;expression&quot;&gt; &lt;value&gt; getProperty(&quot;java.version&quot;) &lt;/value&gt; &lt;/property&gt; &lt;property name=&quot;root&quot;&gt; &lt;ref local=&quot;sysprops&quot;/&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- use naming context in OGNL evaluation it will return such as &quot;1.4.2_05 ABCDE&quot; when you need more object for evaluation,you can put object to naming context. you can use #mapkey for object in naming contenxt --&gt; &lt;bean id=&quot;javaVersionAndUppercaseString&quot; class=&quot;org.snowway.spring.extension.OgnlExpressionFactoryBean&quot;&gt; &lt;property name=&quot;expression&quot;&gt; &lt;value&gt; #sysprops.getProperty(&quot;java.version&quot;) + &quot; &quot; +#uppercaseString &lt;/value&gt; &lt;/property&gt; &lt;property name=&quot;context&quot;&gt; &lt;map&gt; &lt;entry key=&quot;sysprops&quot;&gt; &lt;ref local=&quot;sysprops&quot;/&gt; &lt;/entry&gt; &lt;entry key=&quot;uppercaseString&quot;&gt; &lt;ref local=&quot;uppercaseString&quot;/&gt; &lt;/entry&gt; &lt;/map&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- ApplicationContext bean reference it will return user property(a list of Map.Entry item) i use ApplicationContext object as OGNL root object for convenience. getBean is the method of ApplicationContext --&gt; &lt;bean id=&quot;userprops&quot; class=&quot;org.snowway.spring.extension.OgnlExpressionFactoryBean&quot;&gt; &lt;property name=&quot;expression&quot;&gt; &lt;value&gt; &lt;!-- collection selection the syntax is collection.{? expression_return_true_or_false } in the {},#this is current item in collection,not the root object of OGNL when expression_return_true_or_false evaluate to true,the current item is reserved e.g. listeners.{? #this instanceof java.awt.event.ActionListener} --&gt; getBean(&quot;sysprops&quot;).entrySet().{? #this.key.startsWith(&quot;user&quot;)} &lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- collection projection it will return [2,3,4] --&gt; &lt;bean id=&quot;addOneForEachElement&quot; class=&quot;org.snowway.spring.extension.OgnlExpressionFactoryBean&quot;&gt; &lt;property name=&quot;expression&quot;&gt; &lt;value&gt; &lt;!-- collection projection the syntax is collection.{ expression } in the {},#this is current item in collection,not the root object for OGNL collection projection expression will iterate all item,and each item will pass into expression and return the expression value use the #var=expression syntax to define a variable. one more thing,OGNL use , to separate expressions, and the entire expression result is the last one --&gt; &lt;![CDATA[ #list = new java.util.ArrayList(), #list.add(1),#list.add(2),#list.add(3), #list.{ #this + 1 } ]]&gt; &lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- object navigation it will return &quot;my name is:snowway and my birthday is:Tue Sep 18 00:00:00 CST 1979 &quot; --&gt; &lt;bean id=&quot;objectNavigation&quot; class=&quot;org.snowway.spring.extension.OgnlExpressionFactoryBean&quot;&gt; &lt;property name=&quot;expression&quot;&gt; &lt;value&gt; &lt;!-- use #{key1:value1,key2:value2} to define a map use #@java.util.LinkedHashMap@{key1:value1,key2:value2} to define specified map map.key == map[key] --&gt; &lt;![CDATA[ #map = #@java.util.LinkedHashMap@{&quot;name&quot;:&quot;snowway&quot;, &quot;age&quot;:26, &quot;email&quot;:&quot;snowway.xue@gmail.com&quot;, &quot;birthday&quot;:new java.util.GregorianCalendar(1979,8,18)}, &quot;my name is:&quot;+#map['name']+&quot; and my birthday is:&quot;+#map.birthday.time ]]&gt; &lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- please read OGNL LanguageGuide(www.ognl.org) for other expression usage --&gt;"><pre class="notranslate"><code class="notranslate">&lt;!-- static filed reference it will return java.io.PrintStream object @ represent static method or field invocation --&gt; &lt;bean id="printStream" class="org.snowway.spring.extension.OgnlExpressionFactoryBean"&gt; &lt;property name="expression"&gt; &lt;value&gt;@java.lang.System@out&lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- method invocation return value it will return "ABCDE" --&gt; &lt;bean id="uppercaseString" class="org.snowway.spring.extension.OgnlExpressionFactoryBean"&gt; &lt;property name="expression"&gt; &lt;value&gt;"abcde".toUpperCase()&lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- use existing bean as the root of OGNL expression it will return java.version system property value (e.g. 1.4.2_05) the root object is java.util.Properties,so you can invoke java.util.Properties.getProperty method it can alse write as #this.getProperty("java.version"),#this represent the root now --&gt; &lt;bean id="javaVersion" class="org.snowway.spring.extension.OgnlExpressionFactoryBean"&gt; &lt;property name="expression"&gt; &lt;value&gt; getProperty("java.version") &lt;/value&gt; &lt;/property&gt; &lt;property name="root"&gt; &lt;ref local="sysprops"/&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- use naming context in OGNL evaluation it will return such as "1.4.2_05 ABCDE" when you need more object for evaluation,you can put object to naming context. you can use #mapkey for object in naming contenxt --&gt; &lt;bean id="javaVersionAndUppercaseString" class="org.snowway.spring.extension.OgnlExpressionFactoryBean"&gt; &lt;property name="expression"&gt; &lt;value&gt; #sysprops.getProperty("java.version") + " " +#uppercaseString &lt;/value&gt; &lt;/property&gt; &lt;property name="context"&gt; &lt;map&gt; &lt;entry key="sysprops"&gt; &lt;ref local="sysprops"/&gt; &lt;/entry&gt; &lt;entry key="uppercaseString"&gt; &lt;ref local="uppercaseString"/&gt; &lt;/entry&gt; &lt;/map&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- ApplicationContext bean reference it will return user property(a list of Map.Entry item) i use ApplicationContext object as OGNL root object for convenience. getBean is the method of ApplicationContext --&gt; &lt;bean id="userprops" class="org.snowway.spring.extension.OgnlExpressionFactoryBean"&gt; &lt;property name="expression"&gt; &lt;value&gt; &lt;!-- collection selection the syntax is collection.{? expression_return_true_or_false } in the {},#this is current item in collection,not the root object of OGNL when expression_return_true_or_false evaluate to true,the current item is reserved e.g. listeners.{? #this instanceof java.awt.event.ActionListener} --&gt; getBean("sysprops").entrySet().{? #this.key.startsWith("user")} &lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- collection projection it will return [2,3,4] --&gt; &lt;bean id="addOneForEachElement" class="org.snowway.spring.extension.OgnlExpressionFactoryBean"&gt; &lt;property name="expression"&gt; &lt;value&gt; &lt;!-- collection projection the syntax is collection.{ expression } in the {},#this is current item in collection,not the root object for OGNL collection projection expression will iterate all item,and each item will pass into expression and return the expression value use the #var=expression syntax to define a variable. one more thing,OGNL use , to separate expressions, and the entire expression result is the last one --&gt; &lt;![CDATA[ #list = new java.util.ArrayList(), #list.add(1),#list.add(2),#list.add(3), #list.{ #this + 1 } ]]&gt; &lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- object navigation it will return "my name is:snowway and my birthday is:Tue Sep 18 00:00:00 CST 1979 " --&gt; &lt;bean id="objectNavigation" class="org.snowway.spring.extension.OgnlExpressionFactoryBean"&gt; &lt;property name="expression"&gt; &lt;value&gt; &lt;!-- use #{key1:value1,key2:value2} to define a map use #@java.util.LinkedHashMap@{key1:value1,key2:value2} to define specified map map.key == map[key] --&gt; &lt;![CDATA[ #map = #@java.util.LinkedHashMap@{"name":"snowway", "age":26, "email":"snowway.xue@gmail.com", "birthday":new java.util.GregorianCalendar(1979,8,18)}, "my name is:"+#map['name']+" and my birthday is:"+#map.birthday.time ]]&gt; &lt;/value&gt; &lt;/property&gt; &lt;/bean&gt; &lt;!-- please read OGNL LanguageGuide(www.ognl.org) for other expression usage --&gt; </code></pre></div> <p dir="auto">&lt;/beans&gt;</p> <hr> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/10761/ognl-2.6.5.jar" rel="nofollow">ognl-2.6.5.jar</a> (<em>163.99 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/10760/OgnlExpressionFactoryBean.rar" rel="nofollow">OgnlExpressionFactoryBean.rar</a> (<em>3.20 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="398048048" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/4739" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/4739/hovercard" href="https://github.com/spring-projects/spring-framework/issues/4739">#4739</a> Introducing Expression Language Support (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<p dir="auto">While its a neat feature, to load scripts as if they were in a web browser, in the examples I've come across, I didn't see anything similar to the javascript 'integrity' attribute to ensure the remote source code matches the loaded remote code.</p> <p dir="auto">Does Deno have such a feature? If so, disregard the rest - if not, my question is as such:</p> <p dir="auto">Lets say some deno code (Package A) exists in the wild, that depends on deno scripts from:</p> <p dir="auto"><a href="https://ahungry.com/deno-package.ts" rel="nofollow">https://ahungry.com/deno-package.ts</a> (this could be example.com, but I'm not sure that does expire)</p> <p dir="auto">Unlike a central repository similar to npm (which has its own problems), domain names are not permanent, and are time expired.</p> <p dir="auto">If ahungry.com was to expire, and a malicious actor then registered it, and hosted a malicious deno-package.ts script on their remote end, a problem arises - how does Deno ensure the user doesn't run this altered code?</p> <p dir="auto">If this is not the first time the user has executed Package A, perhaps its not going to be an issue until the user runs the deno upgrade (remote packages) command, at which point Deno could detect the TLS fingerprint of the remote is now different.</p> <p dir="auto">But, for a first time user of Package A, that has never run 'deno' before, and therefore has no hidden cache of deno packages - wouldn't it eagerly pull in and execute this code?</p> <p dir="auto">NPM is not suspect to this same problem, unless they expired npm packages yearly and were to allow anyone to claim other's slots after this time period (which would seem ridiculous in the context of package hosting).</p>
<p dir="auto">I don't know if this already came up, but if security is a major concern and referencing modules via http(s) should be possible, then maybe there should be a way to use <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity" rel="nofollow">subresource integrity</a> to ensure that the downloaded module isn't tampered with.</p> <p dir="auto">It could be part of the hash, like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { test } from &quot;https://unpkg.com/deno_testing@0.0.5/testing.ts#sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC&quot;"><pre class="notranslate"><code class="notranslate">import { test } from "https://unpkg.com/deno_testing@0.0.5/testing.ts#sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC" </code></pre></div> <p dir="auto">That would be very explicit, although not compatible to semver ranges.</p>
1
<p dir="auto">github\tensorflow\tensorflow\contrib\lite\java\demo\app\src\main\java\com\example\android\tflitecamerademo\ImageClassifier.java<br> Error:(152, 16) The method setNumThreads(int) is undefined for the type Interpreter</p>
<p dir="auto">TF has no analogue to <code class="notranslate">np.random.choice</code> function that chooses random element from tensor (optionally according to provided probabilities). It's especially useful in RL problems when you use epsilon-greedy exploration strategy.</p> <h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3> <p dir="auto"><a href="http://stackoverflow.com/questions/41123879/numpy-random-choice-in-tensorflow" rel="nofollow">These</a> <a href="http://stackoverflow.com/questions/37757986/weighted-random-tensor-select-in-tensorflow" rel="nofollow">two</a> solve the problem using <code class="notranslate">tf.multinomial</code>, but maybe it will be convenient to include <code class="notranslate">tf.random_choice</code> in TF API?</p> <p dir="auto">It could be implemented through <code class="notranslate">tf.multinomial</code> , for example.</p>
0
<h3 dir="auto">Describe the bug</h3> <p dir="auto">Looks like new version is faling in <code class="notranslate">test/ext/mypy/test_mypy_plugin_py3k.py::MypyPluginTest::test_files[plain-keyfunc_dict.py]</code> unit on testing using pytest.</p> <h3 dir="auto">To Reproduce</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account. - `python3 -sBm build -w --no-isolation` - because I'm calling `build` with `--no-isolation` I'm using during all processes only locally installed modules - install .whl file in &lt;/install/prefix&gt; - run pytest with $PYTHONPATH pointing to sitearch and sitelib inside &lt;/install/prefix&gt; - build is performed in env which is *`cut off from access to the public network`* (pytest is executed with `-m &quot;not network&quot;`)"><pre class="notranslate"><span class="pl-v">I</span><span class="pl-s">'m packaging your module as an rpm package so I'</span><span class="pl-s1">m</span> <span class="pl-s1">using</span> <span class="pl-s1">the</span> <span class="pl-s1">typical</span> <span class="pl-v">PEP517</span> <span class="pl-s1">based</span> <span class="pl-s1">build</span>, <span class="pl-s1">install</span> <span class="pl-c1">and</span> <span class="pl-s1">test</span> <span class="pl-s1">cycle</span> <span class="pl-s1">used</span> <span class="pl-s1">on</span> <span class="pl-s1">building</span> <span class="pl-s1">packages</span> <span class="pl-k">from</span> <span class="pl-s1">non</span><span class="pl-c1">-</span><span class="pl-s1">root</span> <span class="pl-s1">account</span>. <span class="pl-c1">-</span> <span class="pl-s">`python3 -sBm build -w --no-isolation`</span> <span class="pl-c1">-</span> <span class="pl-s1">because</span> <span class="pl-v">I</span><span class="pl-s">'m calling `build` with `--no-isolation` I'</span><span class="pl-s1">m</span> <span class="pl-s1">using</span> <span class="pl-s1">during</span> <span class="pl-s1">all</span> <span class="pl-s1">processes</span> <span class="pl-s1">only</span> <span class="pl-s1">locally</span> <span class="pl-s1">installed</span> <span class="pl-s1">modules</span> <span class="pl-c1">-</span> <span class="pl-s1">install</span> .<span class="pl-s1">whl</span> <span class="pl-s1">file</span> <span class="pl-c1">in</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-s1">install</span><span class="pl-c1">/</span><span class="pl-s1">prefix</span><span class="pl-c1">&gt;</span> <span class="pl-c1">-</span> <span class="pl-s1">run</span> <span class="pl-s1">pytest</span> <span class="pl-k">with</span> $<span class="pl-v">PYTHONPATH</span> <span class="pl-s1">pointing</span> <span class="pl-s1">to</span> <span class="pl-s1">sitearch</span> <span class="pl-c1">and</span> <span class="pl-s1">sitelib</span> <span class="pl-s1">inside</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-s1">install</span><span class="pl-c1">/</span><span class="pl-s1">prefix</span><span class="pl-c1">&gt;</span> <span class="pl-c1">-</span> <span class="pl-s1">build</span> <span class="pl-c1">is</span> <span class="pl-s1">performed</span> <span class="pl-c1">in</span> <span class="pl-s1">env</span> <span class="pl-s1">which</span> <span class="pl-c1">is</span> <span class="pl-c1">*</span><span class="pl-s">`cut off from access to the public network`</span><span class="pl-c1">*</span> (<span class="pl-s1">pytest</span> <span class="pl-c1">is</span> <span class="pl-s1">executed</span> <span class="pl-s1">with</span> <span class="pl-s">`-m "not network"`</span>)</pre></div> <h3 dir="auto">Error</h3> <p dir="auto">Here is pytest output</p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>OS: Linux</li> <li>Python: 3.8.16</li> <li>SQLAlchemy: 2.0.2</li> <li>Database: N/A</li> <li>DBAPI (eg: psycopg, cx_oracle, mysqlclient): N/A</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">Here is list of installed modules in build env</p> <details> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Package Version ----------------------------- ----------------- alabaster 0.7.13 appdirs 1.4.4 attrs 22.2.0 Babel 2.11.0 build 0.9.0 changelog 0.5.8 charset-normalizer 3.0.1 cssselect 1.1.0 Cython 0.29.33 distro 1.8.0 docutils 0.19 exceptiongroup 1.0.0 execnet 1.9.0 extras 1.0.0 fixtures 4.0.0 gpg 1.18.0-unknown greenlet 1.1.3 idna 3.4 imagesize 1.4.1 importlib-metadata 6.0.0 iniconfig 2.0.0 Jinja2 3.1.2 libcomps 0.1.19 lxml 4.9.2 Markdown 3.4.1 MarkupSafe 2.1.1 mypy 0.990 mypy-extensions 0.4.3 numpy 1.24.1 olefile 0.46 packaging 23.0 pbr 5.9.0 pep517 0.13.0 Pillow 9.4.0 pip 22.3.1 pluggy 1.0.0 Pygments 2.14.0 PyGObject 3.43.1.dev0 pytest 7.2.1 pytest-xdist 3.1.0 python-dateutil 2.8.2 pytz 2022.4 requests 2.28.2 rpm 4.17.0 scour 0.38.2 setuptools 65.6.3 six 1.16.0 smartypants 2.0.1 snowballstemmer 2.2.0 Sphinx 6.1.3 sphinx-copybutton 0.5.1 sphinx-paramlinks 0.5.2 sphinxcontrib-applehelp 1.0.2.dev20221204 sphinxcontrib-devhelp 1.0.2.dev20230202 sphinxcontrib-htmlhelp 2.0.0 sphinxcontrib-jsmath 1.0.1.dev20230128 sphinxcontrib-qthelp 1.0.3.dev20230128 sphinxcontrib-serializinghtml 1.1.5 testtools 2.5.0 toml 0.10.2 tomli 2.0.1 typing_extensions 4.4.0 typogrify 2.0.7 urllib3 1.26.12 wheel 0.38.4 zipp 3.12.0"><pre class="notranslate"><span class="pl-c1">Package Version</span> <span class="pl-c1">----------------------------- -----------------</span> <span class="pl-c1">alabaster 0.7.13</span> <span class="pl-c1">appdirs 1.4.4</span> <span class="pl-c1">attrs 22.2.0</span> <span class="pl-c1">Babel 2.11.0</span> <span class="pl-c1">build 0.9.0</span> <span class="pl-c1">changelog 0.5.8</span> <span class="pl-c1">charset-normalizer 3.0.1</span> <span class="pl-c1">cssselect 1.1.0</span> <span class="pl-c1">Cython 0.29.33</span> <span class="pl-c1">distro 1.8.0</span> <span class="pl-c1">docutils 0.19</span> <span class="pl-c1">exceptiongroup 1.0.0</span> <span class="pl-c1">execnet 1.9.0</span> <span class="pl-c1">extras 1.0.0</span> <span class="pl-c1">fixtures 4.0.0</span> <span class="pl-c1">gpg 1.18.0-unknown</span> <span class="pl-c1">greenlet 1.1.3</span> <span class="pl-c1">idna 3.4</span> <span class="pl-c1">imagesize 1.4.1</span> <span class="pl-c1">importlib-metadata 6.0.0</span> <span class="pl-c1">iniconfig 2.0.0</span> <span class="pl-c1">Jinja2 3.1.2</span> <span class="pl-c1">libcomps 0.1.19</span> <span class="pl-c1">lxml 4.9.2</span> <span class="pl-c1">Markdown 3.4.1</span> <span class="pl-c1">MarkupSafe 2.1.1</span> <span class="pl-c1">mypy 0.990</span> <span class="pl-c1">mypy-extensions 0.4.3</span> <span class="pl-c1">numpy 1.24.1</span> <span class="pl-c1">olefile 0.46</span> <span class="pl-c1">packaging 23.0</span> <span class="pl-c1">pbr 5.9.0</span> <span class="pl-c1">pep517 0.13.0</span> <span class="pl-c1">Pillow 9.4.0</span> <span class="pl-c1">pip 22.3.1</span> <span class="pl-c1">pluggy 1.0.0</span> <span class="pl-c1">Pygments 2.14.0</span> <span class="pl-c1">PyGObject 3.43.1.dev0</span> <span class="pl-c1">pytest 7.2.1</span> <span class="pl-c1">pytest-xdist 3.1.0</span> <span class="pl-c1">python-dateutil 2.8.2</span> <span class="pl-c1">pytz 2022.4</span> <span class="pl-c1">requests 2.28.2</span> <span class="pl-c1">rpm 4.17.0</span> <span class="pl-c1">scour 0.38.2</span> <span class="pl-c1">setuptools 65.6.3</span> <span class="pl-c1">six 1.16.0</span> <span class="pl-c1">smartypants 2.0.1</span> <span class="pl-c1">snowballstemmer 2.2.0</span> <span class="pl-c1">Sphinx 6.1.3</span> <span class="pl-c1">sphinx-copybutton 0.5.1</span> <span class="pl-c1">sphinx-paramlinks 0.5.2</span> <span class="pl-c1">sphinxcontrib-applehelp 1.0.2.dev20221204</span> <span class="pl-c1">sphinxcontrib-devhelp 1.0.2.dev20230202</span> <span class="pl-c1">sphinxcontrib-htmlhelp 2.0.0</span> <span class="pl-c1">sphinxcontrib-jsmath 1.0.1.dev20230128</span> <span class="pl-c1">sphinxcontrib-qthelp 1.0.3.dev20230128</span> <span class="pl-c1">sphinxcontrib-serializinghtml 1.1.5</span> <span class="pl-c1">testtools 2.5.0</span> <span class="pl-c1">toml 0.10.2</span> <span class="pl-c1">tomli 2.0.1</span> <span class="pl-c1">typing_extensions 4.4.0</span> <span class="pl-c1">typogrify 2.0.7</span> <span class="pl-c1">urllib3 1.26.12</span> <span class="pl-c1">wheel 0.38.4</span> <span class="pl-c1">zipp 3.12.0</span></pre></div> </details>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">If a trigger in SQLite raises ROLLBACK, the exception that is propogated to the application is always "OperationalError: SQL logic error or missing database". Here is an example that illustrates the problem (I have attached this file):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import * import sqlite3 DB_NAME = 'test.db3' def set_up_database(): ** Make a simple table with one (primary key) column, and a trigger that prevents deletion from the table. Also puts a row into the table. ** conn = sqlite3.connect(DB_NAME) cursor = conn.cursor() cursor.executescript(** DROP TABLE IF EXISTS test_table; CREATE TABLE test_table(name VARCHAR(10) NOT NULL PRIMARY KEY); CREATE TRIGGER delete_test_table BEFORE DELETE ON &quot;test_table&quot; FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'Cannot delete from table &quot;test_table&quot;'); END; INSERT INTO test_table(name) VALUES('first'); **) cursor.close() conn.close() def test_direct_insert(): ** Attempt to duplicate a primary key using direct sqlite3 access. The exception message should indicate the problem, and it does: test_direct() insert duplicate error: column name is not unique ** conn = sqlite3.connect(DB_NAME) cursor = conn.cursor() try: cursor.execute('INSERT INTO test_table(name) VALUES(?)', ('first',)) except Exception, e: print 'test_direct() insert duplicate error: %s' % e finally: cursor.close() conn.close() def test_direct_delete(): ** Attempt to delete a row using direct sqlite3 access, but the table's trigger prevents all deletion. The exception message should indicate the problem, and it does: test_direct() deletion error: Cannot delete from table &quot;test_table&quot; ** conn = sqlite3.connect(DB_NAME) cursor = conn.cursor() try: cursor.execute('DELETE FROM test_table WHERE name=?', ('first',)) except Exception, e: print 'test_direct() deletion error: %s' % e finally: cursor.close() conn.close() def test_sqlalchemy_insert(): ** Attempt to duplicate a primary key through SQLAlchemy. The exception message should indicate the problem, and it does: test_sqlalchemy() insert duplicate error: (IntegrityError) column name is not unique u'INSERT INTO test_table (name) VALUES (?)' ['first']('first') ** db = create_engine('sqlite:///%s' % DB_NAME) metadata = MetaData(db) table = Table('test_table', metadata, autoload=True) #metadata.engine.echo = True insert_statement = table.insert() try: insert_statement.execute(name='first') except Exception, e: print 'test_sqlalchemy() insert duplicate error: %s' % e def test_sqlalchemy_delete(): ** Attempt to delete a row through SQLAlchemy, but the table's trigger prevents all deletion. The exception message should indicate the problem, BUT it displays instead: test_sqlalchemy() deletion error: (OperationalError) SQL logic error or missing database None None ** db = create_engine('sqlite:///%s' % DB_NAME) metadata = MetaData(db) table = Table('test_table', metadata, autoload=True) #metadata.engine.echo = True delete_statement = table.delete() try: delete_statement.execute(name='first') except Exception, e: print 'test_sqlalchemy() deletion error: %s' % e if __name__ == '__main__': set_up_database() test_direct_insert() # Works fine. test_direct_delete() # Works fine. test_sqlalchemy_insert() # Works fine. test_sqlalchemy_delete() # Doesn't work correctly."><pre class="notranslate"><code class="notranslate">from sqlalchemy import * import sqlite3 DB_NAME = 'test.db3' def set_up_database(): ** Make a simple table with one (primary key) column, and a trigger that prevents deletion from the table. Also puts a row into the table. ** conn = sqlite3.connect(DB_NAME) cursor = conn.cursor() cursor.executescript(** DROP TABLE IF EXISTS test_table; CREATE TABLE test_table(name VARCHAR(10) NOT NULL PRIMARY KEY); CREATE TRIGGER delete_test_table BEFORE DELETE ON "test_table" FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'Cannot delete from table "test_table"'); END; INSERT INTO test_table(name) VALUES('first'); **) cursor.close() conn.close() def test_direct_insert(): ** Attempt to duplicate a primary key using direct sqlite3 access. The exception message should indicate the problem, and it does: test_direct() insert duplicate error: column name is not unique ** conn = sqlite3.connect(DB_NAME) cursor = conn.cursor() try: cursor.execute('INSERT INTO test_table(name) VALUES(?)', ('first',)) except Exception, e: print 'test_direct() insert duplicate error: %s' % e finally: cursor.close() conn.close() def test_direct_delete(): ** Attempt to delete a row using direct sqlite3 access, but the table's trigger prevents all deletion. The exception message should indicate the problem, and it does: test_direct() deletion error: Cannot delete from table "test_table" ** conn = sqlite3.connect(DB_NAME) cursor = conn.cursor() try: cursor.execute('DELETE FROM test_table WHERE name=?', ('first',)) except Exception, e: print 'test_direct() deletion error: %s' % e finally: cursor.close() conn.close() def test_sqlalchemy_insert(): ** Attempt to duplicate a primary key through SQLAlchemy. The exception message should indicate the problem, and it does: test_sqlalchemy() insert duplicate error: (IntegrityError) column name is not unique u'INSERT INTO test_table (name) VALUES (?)' ['first']('first') ** db = create_engine('sqlite:///%s' % DB_NAME) metadata = MetaData(db) table = Table('test_table', metadata, autoload=True) #metadata.engine.echo = True insert_statement = table.insert() try: insert_statement.execute(name='first') except Exception, e: print 'test_sqlalchemy() insert duplicate error: %s' % e def test_sqlalchemy_delete(): ** Attempt to delete a row through SQLAlchemy, but the table's trigger prevents all deletion. The exception message should indicate the problem, BUT it displays instead: test_sqlalchemy() deletion error: (OperationalError) SQL logic error or missing database None None ** db = create_engine('sqlite:///%s' % DB_NAME) metadata = MetaData(db) table = Table('test_table', metadata, autoload=True) #metadata.engine.echo = True delete_statement = table.delete() try: delete_statement.execute(name='first') except Exception, e: print 'test_sqlalchemy() deletion error: %s' % e if __name__ == '__main__': set_up_database() test_direct_insert() # Works fine. test_direct_delete() # Works fine. test_sqlalchemy_insert() # Works fine. test_sqlalchemy_delete() # Doesn't work correctly. </code></pre></div> <p dir="auto">I have tried to find the source of the problem, and it looks like it might be in sqlalchemy.engine.default.do_rollback(). Apparently, the connection.rollback() statement is raising the OperationalError. Note that the error happens only for triggers, not other constraints.</p> <p dir="auto">For now, I trap the OperationalError in do_rollback() and toss it, so the original IntegrityError gets propogated to my application. However, I'm not sure whether there is a more-serious underlying problem.</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/698/sqlite_trigger_problem.py">sqlite_trigger_problem.py</a></p>
0
<p dir="auto">I found an example where webpack struggles to avoid dependency duplication. See below, where <code class="notranslate">c.js</code> is the entry point.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// c.js function getMeAModule(moduleName) { if (moduleName === 'a') { require.ensure(['a'], function (require) { var a = require('a'); a(); }); } if (moduleName === 'b') { require.ensure(['b'], function (require) { var b = require('b'); b(); }); } } window.getMeAModule = getMeAModule;"><pre class="notranslate"><span class="pl-c">// c.js</span> <span class="pl-k">function</span> <span class="pl-en">getMeAModule</span><span class="pl-kos">(</span><span class="pl-s1">moduleName</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">moduleName</span> <span class="pl-c1">===</span> <span class="pl-s">'a'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">require</span><span class="pl-kos">.</span><span class="pl-en">ensure</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'a'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">require</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">require</span><span class="pl-kos">(</span><span class="pl-s">'a'</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-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">if</span> <span class="pl-kos">(</span><span class="pl-s1">moduleName</span> <span class="pl-c1">===</span> <span class="pl-s">'b'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">require</span><span class="pl-kos">.</span><span class="pl-en">ensure</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'b'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">require</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-c1">=</span> <span class="pl-s1">require</span><span class="pl-kos">(</span><span class="pl-s">'b'</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-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-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">getMeAModule</span> <span class="pl-c1">=</span> <span class="pl-s1">getMeAModule</span><span class="pl-kos">;</span></pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// a.js var d = require('d'); module.exports = function () { d(); console.log('a'); };"><pre class="notranslate"><span class="pl-c">// a.js</span> <span class="pl-k">var</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'d'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-en">exports</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">d</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'a'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// b.js var d = require('d'); module.exports = function () { d(); console.log('b'); };"><pre class="notranslate"><span class="pl-c">// b.js</span> <span class="pl-k">var</span> <span class="pl-s1">d</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'d'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-en">exports</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">d</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'b'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// d.js module.exports = function () { console.log('d'); };"><pre class="notranslate"><span class="pl-c">// d.js</span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-en">exports</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'d'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">If you build this example with webpack, three chunks will be created. The first will contain the entry point, <code class="notranslate">c.js</code>, as you would expect. The second "normal" chunk will contain <code class="notranslate">a.js</code> as well as <code class="notranslate">d.js</code>, and the third "normal" chunk will contain <code class="notranslate">b.js</code> and <code class="notranslate">d.js</code>.</p> <p dir="auto">It seems to me that in the ideal situation, I could run <code class="notranslate">getMeAModule('a')</code> in the console, and then subsequently run <code class="notranslate">getMeAModule('b')</code> in the console but before webpack sends the async request for the chunk containing b, it checks (on the client) to see that b's dependency on d is already satisifed, and performs a smarter async request.</p> <p dir="auto">I'm finding this to be quite problematic on a big project with a complicated dependency graph, large modules, and a dynamic require statement (which we currently work around with a long series of if-blocks, as in this example). Is webpack equipped to handle this situation? If so, how best can I do so?</p> <p dir="auto">Thanks for your help! :)</p>
<p dir="auto">I'm having troubles with nested split points and common chunk plugin. This is the module layout in a minimal example.</p> <h2 dir="auto">MODULES:</h2> <p dir="auto"><code class="notranslate">a</code>,<code class="notranslate">b</code>,<code class="notranslate">c</code>,<code class="notranslate">d</code>,<code class="notranslate">e</code>: Leaf modules. You can see them as unrelated pieces of library code.</p> <p dir="auto"><code class="notranslate">common</code>: Common module. It just contains the explicit requires of what i want to be in a common chunk. In this case <code class="notranslate">a</code>, <code class="notranslate">b</code> and <code class="notranslate">c</code>.</p> <p dir="auto"><code class="notranslate">app</code>: It defines two split point for <code class="notranslate">subapp_1</code> and <code class="notranslate">subapp_2</code> via <code class="notranslate">require.ensure</code></p> <p dir="auto"><code class="notranslate">index</code>: It defines two split point for loading <code class="notranslate">common</code> and <code class="notranslate">app</code> via <code class="notranslate">require.ensure</code></p> <p dir="auto"><code class="notranslate">subapp_1</code>: requires <code class="notranslate">a</code> and <code class="notranslate">d</code></p> <p dir="auto"><code class="notranslate">subapp_2</code>: requires <code class="notranslate">b</code>, <code class="notranslate">c</code> and <code class="notranslate">e</code></p> <p dir="auto">I expect output of the build to have these chunks:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- main chunk that calls the `require.ensure` for `common` and `app` chunks - a `common` chunk with `a`, `b` and `c` code - an `app` chunk that calls the `require.ensure` for `subapp_1` and `subapp2` - a `subapp_1` chunk that has only the `d` code - a `subapp_2` chunk that hase only the `e` code"><pre class="notranslate"><code class="notranslate">- main chunk that calls the `require.ensure` for `common` and `app` chunks - a `common` chunk with `a`, `b` and `c` code - an `app` chunk that calls the `require.ensure` for `subapp_1` and `subapp2` - a `subapp_1` chunk that has only the `d` code - a `subapp_2` chunk that hase only the `e` code </code></pre></div> <p dir="auto">What i obtain is the same result but looks like webpack is not able to understand that <code class="notranslate">subapp_1</code> and <code class="notranslate">subapp_2</code> only need the bits that are not in the common chunk.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- main chunk that calls the `require.ensure` for `common` and `app` chunks - a `common` chunk with `a`, `b` and `c` code - an `app` chunk that calls the `require.ensure` for `subapp_1` and `subapp2` - a `subapp_1` chunk that has `a` code and `d` code - a `subapp_2` chunk that has `b`, `c` and `e` code"><pre class="notranslate"><code class="notranslate">- main chunk that calls the `require.ensure` for `common` and `app` chunks - a `common` chunk with `a`, `b` and `c` code - an `app` chunk that calls the `require.ensure` for `subapp_1` and `subapp2` - a `subapp_1` chunk that has `a` code and `d` code - a `subapp_2` chunk that has `b`, `c` and `e` code </code></pre></div> <p dir="auto">Am i missing something here?<br> The test case is attached to the issue and you can run it just with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install ./node_modules/.bin/webpack"><pre class="notranslate"><code class="notranslate">npm install ./node_modules/.bin/webpack </code></pre></div> <p dir="auto">The resulting build is gonna be in:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./build"><pre class="notranslate"><code class="notranslate">./build </code></pre></div> <p dir="auto">You can find the auto contained example here:</p> <p dir="auto"><a href="https://www.dropbox.com/s/7oteeky864cb219/splitpoint_test.zip?dl=0" rel="nofollow">https://www.dropbox.com/s/7oteeky864cb219/splitpoint_test.zip?dl=0</a></p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/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: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">I have repeatedly received many robot emails just now.I wonder if there is something wrong with the robot.One more suggestion, could it be configured to send conflict messages only to the submitter? I think it's unnecessary to push it to people who aren't paying attention to them</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.2</li> <li>Operating System version: win10</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>spring项目用rmi协议启动服务</li> <li>spring项目的客户端调用该服务正常</li> <li>非spring项目的客户端调用该服务出错</li> <li>重复第1步用dubbo默认协议启动服务</li> <li>重复3调用正常</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">调用正常返回结果</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">调用失败</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2018-09-14 09:40:27,515 INFO org.apache.struts.tiles.TilesRequestProcessor - Get Connection Succeed 2018-09-14 09:40:27,546 INFO com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry - [DUBBO] Register: consumer://192.168.20.30/com.paradm.docview.remote.core.IDocviewRemoteService?application=paradm-dubbo-consumer&amp;category=consumers&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525, dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,583 INFO com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry - [DUBBO] Subscribe: consumer://192.168.20.30/com.paradm.docview.remote.core.IDocviewRemoteService?application=paradm-dubbo-consumer&amp;category=providers,configurators,routers&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525, dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,676 INFO com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry - [DUBBO] Notify urls for subscribe url consumer://192.168.20.30/com.paradm.docview.remote.core.IDocviewRemoteService?application=paradm-dubbo-consumer&amp;category=providers,configurators,routers&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525, urls: [rmi://192.168.20.55:20889/com.paradm.docview.remote.core.IDocviewRemoteService?anyhost=true&amp;application=dubbo&amp;dubbo=2.6.2&amp;generic=false&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,createDvTaskWithThumb,deleteDmsAnnotationDigitalSignature,createAnnotationComment,updateAnnotationComment,createTask,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,getTask,downloadImage,getDmsAnnotationList,createDmsAnnotationDigitalSignature&amp;pid=2572&amp;revision=3.0.1&amp;side=provider&amp;timestamp=1536821513478, empty://192.168.20.30/com.paradm.docview.remote.core.IDocviewRemoteService?application=paradm-dubbo-consumer&amp;category=configurators&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525, empty://192.168.20.30/com.paradm.docview.remote.core.IDocviewRemoteService?application=paradm-dubbo-consumer&amp;category=routers&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525], dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,677 ERROR com.alibaba.dubbo.registry.integration.RegistryDirectory - Unsupported protocol rmi in notified url: rmi://192.168.20.55:20889/com.paradm.docview.remote.core.IDocviewRemoteService?anyhost=true&amp;application=dubbo&amp;dubbo=2.6.2&amp;generic=false&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,createDvTaskWithThumb,deleteDmsAnnotationDigitalSignature,createAnnotationComment,updateAnnotationComment,createTask,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,getTask,downloadImage,getDmsAnnotationList,createDmsAnnotationDigitalSignature&amp;pid=2572&amp;revision=3.0.1&amp;side=provider&amp;timestamp=1536821513478 from registry 192.168.23.55:2181 to consumer 192.168.20.30, supported protocol: [dubbo, injvm, mock, redis, registry, thrift] java.lang.IllegalStateException: Unsupported protocol rmi in notified url: rmi://192.168.20.55:20889/com.paradm.docview.remote.core.IDocviewRemoteService?anyhost=true&amp;application=dubbo&amp;dubbo=2.6.2&amp;generic=false&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,createDvTaskWithThumb,deleteDmsAnnotationDigitalSignature,createAnnotationComment,updateAnnotationComment,createTask,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,getTask,downloadImage,getDmsAnnotationList,createDmsAnnotationDigitalSignature&amp;pid=2572&amp;revision=3.0.1&amp;side=provider&amp;timestamp=1536821513478 from registry 192.168.23.55:2181 to consumer 192.168.20.30, supported protocol: [dubbo, injvm, mock, redis, registry, thrift] at com.alibaba.dubbo.registry.integration.RegistryDirectory.toInvokers(RegistryDirectory.java:364) at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:253) at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:223) at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:414) at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:274) at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:260) at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doSubscribe(ZookeeperRegistry.java:190) at com.alibaba.dubbo.registry.support.FailbackRegistry.subscribe(FailbackRegistry.java:190) at com.alibaba.dubbo.registry.integration.RegistryDirectory.subscribe(RegistryDirectory.java:159) at com.alibaba.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:305) at com.alibaba.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:286) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:106) at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:65) at com.alibaba.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:63) at com.alibaba.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:394) at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333) at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163) at com.alibaba.dubbo.config.utils.ReferenceConfigCache.get(ReferenceConfigCache.java:115) at com.dcivision.workspace.common.RemoteServiceConfig.getBean(RemoteServiceConfig.java:168) at com.dcivision.workspace.common.RemoteServiceManager.getDvRemoteService(RemoteServiceManager.java:68) at com.dcivision.workspace.web.DocumentViewerAction.init(DocumentViewerAction.java:79) at com.dcivision.framework.web.AbstractMaintAction.execute(AbstractMaintAction.java:199) at com.dcivision.workspace.web.DocumentViewerAction.execute(DocumentViewerAction.java:69) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at com.dcivision.framework.MainRequestProcessor.processActionPerform(MainRequestProcessor.java:329) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at com.dcivision.framework.MainRequestProcessor.process(MainRequestProcessor.java:273) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1495) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:520) at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.dcivision.framework.web.LoginFilter.doFilter(LoginFilter.java:180) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2018-09-14 09:40:27,677 ERROR com.alibaba.dubbo.registry.integration.RegistryDirectory - urls to invokers error .invokerUrls.size :1, invoker.size :0. urls :[rmi://192.168.20.55:20889/com.paradm.docview.remote.core.IDocviewRemoteService?anyhost=true&amp;application=dubbo&amp;dubbo=2.6.2&amp;generic=false&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,createDvTaskWithThumb,deleteDmsAnnotationDigitalSignature,createAnnotationComment,updateAnnotationComment,createTask,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,getTask,downloadImage,getDmsAnnotationList,createDmsAnnotationDigitalSignature&amp;pid=2572&amp;revision=3.0.1&amp;side=provider&amp;timestamp=1536821513478] java.lang.IllegalStateException: urls to invokers error .invokerUrls.size :1, invoker.size :0. urls :[rmi://192.168.20.55:20889/com.paradm.docview.remote.core.IDocviewRemoteService?anyhost=true&amp;application=dubbo&amp;dubbo=2.6.2&amp;generic=false&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,createDvTaskWithThumb,deleteDmsAnnotationDigitalSignature,createAnnotationComment,updateAnnotationComment,createTask,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,getTask,downloadImage,getDmsAnnotationList,createDmsAnnotationDigitalSignature&amp;pid=2572&amp;revision=3.0.1&amp;side=provider&amp;timestamp=1536821513478] at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:258) at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:223) at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:414) at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:274) at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:260) at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doSubscribe(ZookeeperRegistry.java:190) at com.alibaba.dubbo.registry.support.FailbackRegistry.subscribe(FailbackRegistry.java:190) at com.alibaba.dubbo.registry.integration.RegistryDirectory.subscribe(RegistryDirectory.java:159) at com.alibaba.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:305) at com.alibaba.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:286) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:106) at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:65) at com.alibaba.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:63) at com.alibaba.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:394) at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333) at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163) at com.alibaba.dubbo.config.utils.ReferenceConfigCache.get(ReferenceConfigCache.java:115) at com.dcivision.workspace.common.RemoteServiceConfig.getBean(RemoteServiceConfig.java:168) at com.dcivision.workspace.common.RemoteServiceManager.getDvRemoteService(RemoteServiceManager.java:68) at com.dcivision.workspace.web.DocumentViewerAction.init(DocumentViewerAction.java:79) at com.dcivision.framework.web.AbstractMaintAction.execute(AbstractMaintAction.java:199) at com.dcivision.workspace.web.DocumentViewerAction.execute(DocumentViewerAction.java:69) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at com.dcivision.framework.MainRequestProcessor.processActionPerform(MainRequestProcessor.java:329) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at com.dcivision.framework.MainRequestProcessor.process(MainRequestProcessor.java:273) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1495) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:520) at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.dcivision.framework.web.LoginFilter.doFilter(LoginFilter.java:180) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2018-09-14 09:40:27,678 INFO com.alibaba.dubbo.config.AbstractConfig - [DUBBO] Refer dubbo service com.paradm.docview.remote.core.IDocviewRemoteService from url zookeeper://192.168.23.55:2181/com.alibaba.dubbo.registry.RegistryService?application=paradm-dubbo-consumer&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;register.ip=192.168.20.30&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525, dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,707 DEBUG com.alibaba.dubbo.remoting.transport.DecodeHandler - [DUBBO] Decode decodeable message com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult, dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,747 DEBUG com.alibaba.dubbo.remoting.transport.DecodeHandler - [DUBBO] Decode decodeable message com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult, dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,748 ERROR com.dcivision.workspace.core.WspDocumentManager - Failed to invoke the method getTask in the service com.paradm.docview.remote.core.IDocviewRemoteService. No provider available for the service com.paradm.docview.remote.core.IDocviewRemoteService from registry 192.168.23.55:2181 on the consumer 192.168.20.30 using the dubbo version 2.6.2. Please check if the providers have been started and registered. com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method getTask in the service com.paradm.docview.remote.core.IDocviewRemoteService. No provider available for the service com.paradm.docview.remote.core.IDocviewRemoteService from registry 192.168.23.55:2181 on the consumer 192.168.20.30 using the dubbo version 2.6.2. Please check if the providers have been started and registered. at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:257) at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:56) at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:238) at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75) at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52) at com.alibaba.dubbo.common.bytecode.proxy1.getTask(proxy1.java) at com.dcivision.workspace.core.WspDocumentManager.getDocviewTaskRemoteBean(WspDocumentManager.java:1213) at com.dcivision.workspace.web.DocumentViewerAction.init(DocumentViewerAction.java:84) at com.dcivision.framework.web.AbstractMaintAction.execute(AbstractMaintAction.java:199) at com.dcivision.workspace.web.DocumentViewerAction.execute(DocumentViewerAction.java:69) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at com.dcivision.framework.MainRequestProcessor.processActionPerform(MainRequestProcessor.java:329) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at com.dcivision.framework.MainRequestProcessor.process(MainRequestProcessor.java:273) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1495) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:520) at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.dcivision.framework.web.LoginFilter.doFilter(LoginFilter.java:180) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)"><pre class="notranslate"><code class="notranslate">2018-09-14 09:40:27,515 INFO org.apache.struts.tiles.TilesRequestProcessor - Get Connection Succeed 2018-09-14 09:40:27,546 INFO com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry - [DUBBO] Register: consumer://192.168.20.30/com.paradm.docview.remote.core.IDocviewRemoteService?application=paradm-dubbo-consumer&amp;category=consumers&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525, dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,583 INFO com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry - [DUBBO] Subscribe: consumer://192.168.20.30/com.paradm.docview.remote.core.IDocviewRemoteService?application=paradm-dubbo-consumer&amp;category=providers,configurators,routers&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525, dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,676 INFO com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry - [DUBBO] Notify urls for subscribe url consumer://192.168.20.30/com.paradm.docview.remote.core.IDocviewRemoteService?application=paradm-dubbo-consumer&amp;category=providers,configurators,routers&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525, urls: [rmi://192.168.20.55:20889/com.paradm.docview.remote.core.IDocviewRemoteService?anyhost=true&amp;application=dubbo&amp;dubbo=2.6.2&amp;generic=false&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,createDvTaskWithThumb,deleteDmsAnnotationDigitalSignature,createAnnotationComment,updateAnnotationComment,createTask,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,getTask,downloadImage,getDmsAnnotationList,createDmsAnnotationDigitalSignature&amp;pid=2572&amp;revision=3.0.1&amp;side=provider&amp;timestamp=1536821513478, empty://192.168.20.30/com.paradm.docview.remote.core.IDocviewRemoteService?application=paradm-dubbo-consumer&amp;category=configurators&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525, empty://192.168.20.30/com.paradm.docview.remote.core.IDocviewRemoteService?application=paradm-dubbo-consumer&amp;category=routers&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525], dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,677 ERROR com.alibaba.dubbo.registry.integration.RegistryDirectory - Unsupported protocol rmi in notified url: rmi://192.168.20.55:20889/com.paradm.docview.remote.core.IDocviewRemoteService?anyhost=true&amp;application=dubbo&amp;dubbo=2.6.2&amp;generic=false&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,createDvTaskWithThumb,deleteDmsAnnotationDigitalSignature,createAnnotationComment,updateAnnotationComment,createTask,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,getTask,downloadImage,getDmsAnnotationList,createDmsAnnotationDigitalSignature&amp;pid=2572&amp;revision=3.0.1&amp;side=provider&amp;timestamp=1536821513478 from registry 192.168.23.55:2181 to consumer 192.168.20.30, supported protocol: [dubbo, injvm, mock, redis, registry, thrift] java.lang.IllegalStateException: Unsupported protocol rmi in notified url: rmi://192.168.20.55:20889/com.paradm.docview.remote.core.IDocviewRemoteService?anyhost=true&amp;application=dubbo&amp;dubbo=2.6.2&amp;generic=false&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,createDvTaskWithThumb,deleteDmsAnnotationDigitalSignature,createAnnotationComment,updateAnnotationComment,createTask,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,getTask,downloadImage,getDmsAnnotationList,createDmsAnnotationDigitalSignature&amp;pid=2572&amp;revision=3.0.1&amp;side=provider&amp;timestamp=1536821513478 from registry 192.168.23.55:2181 to consumer 192.168.20.30, supported protocol: [dubbo, injvm, mock, redis, registry, thrift] at com.alibaba.dubbo.registry.integration.RegistryDirectory.toInvokers(RegistryDirectory.java:364) at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:253) at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:223) at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:414) at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:274) at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:260) at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doSubscribe(ZookeeperRegistry.java:190) at com.alibaba.dubbo.registry.support.FailbackRegistry.subscribe(FailbackRegistry.java:190) at com.alibaba.dubbo.registry.integration.RegistryDirectory.subscribe(RegistryDirectory.java:159) at com.alibaba.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:305) at com.alibaba.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:286) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:106) at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:65) at com.alibaba.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:63) at com.alibaba.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:394) at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333) at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163) at com.alibaba.dubbo.config.utils.ReferenceConfigCache.get(ReferenceConfigCache.java:115) at com.dcivision.workspace.common.RemoteServiceConfig.getBean(RemoteServiceConfig.java:168) at com.dcivision.workspace.common.RemoteServiceManager.getDvRemoteService(RemoteServiceManager.java:68) at com.dcivision.workspace.web.DocumentViewerAction.init(DocumentViewerAction.java:79) at com.dcivision.framework.web.AbstractMaintAction.execute(AbstractMaintAction.java:199) at com.dcivision.workspace.web.DocumentViewerAction.execute(DocumentViewerAction.java:69) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at com.dcivision.framework.MainRequestProcessor.processActionPerform(MainRequestProcessor.java:329) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at com.dcivision.framework.MainRequestProcessor.process(MainRequestProcessor.java:273) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1495) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:520) at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.dcivision.framework.web.LoginFilter.doFilter(LoginFilter.java:180) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2018-09-14 09:40:27,677 ERROR com.alibaba.dubbo.registry.integration.RegistryDirectory - urls to invokers error .invokerUrls.size :1, invoker.size :0. urls :[rmi://192.168.20.55:20889/com.paradm.docview.remote.core.IDocviewRemoteService?anyhost=true&amp;application=dubbo&amp;dubbo=2.6.2&amp;generic=false&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,createDvTaskWithThumb,deleteDmsAnnotationDigitalSignature,createAnnotationComment,updateAnnotationComment,createTask,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,getTask,downloadImage,getDmsAnnotationList,createDmsAnnotationDigitalSignature&amp;pid=2572&amp;revision=3.0.1&amp;side=provider&amp;timestamp=1536821513478] java.lang.IllegalStateException: urls to invokers error .invokerUrls.size :1, invoker.size :0. urls :[rmi://192.168.20.55:20889/com.paradm.docview.remote.core.IDocviewRemoteService?anyhost=true&amp;application=dubbo&amp;dubbo=2.6.2&amp;generic=false&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,createDvTaskWithThumb,deleteDmsAnnotationDigitalSignature,createAnnotationComment,updateAnnotationComment,createTask,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,getTask,downloadImage,getDmsAnnotationList,createDmsAnnotationDigitalSignature&amp;pid=2572&amp;revision=3.0.1&amp;side=provider&amp;timestamp=1536821513478] at com.alibaba.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:258) at com.alibaba.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:223) at com.alibaba.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:414) at com.alibaba.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:274) at com.alibaba.dubbo.registry.support.FailbackRegistry.notify(FailbackRegistry.java:260) at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.doSubscribe(ZookeeperRegistry.java:190) at com.alibaba.dubbo.registry.support.FailbackRegistry.subscribe(FailbackRegistry.java:190) at com.alibaba.dubbo.registry.integration.RegistryDirectory.subscribe(RegistryDirectory.java:159) at com.alibaba.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:305) at com.alibaba.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:286) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:106) at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:65) at com.alibaba.dubbo.qos.protocol.QosProtocolWrapper.refer(QosProtocolWrapper.java:63) at com.alibaba.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java) at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:394) at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333) at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163) at com.alibaba.dubbo.config.utils.ReferenceConfigCache.get(ReferenceConfigCache.java:115) at com.dcivision.workspace.common.RemoteServiceConfig.getBean(RemoteServiceConfig.java:168) at com.dcivision.workspace.common.RemoteServiceManager.getDvRemoteService(RemoteServiceManager.java:68) at com.dcivision.workspace.web.DocumentViewerAction.init(DocumentViewerAction.java:79) at com.dcivision.framework.web.AbstractMaintAction.execute(AbstractMaintAction.java:199) at com.dcivision.workspace.web.DocumentViewerAction.execute(DocumentViewerAction.java:69) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at com.dcivision.framework.MainRequestProcessor.processActionPerform(MainRequestProcessor.java:329) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at com.dcivision.framework.MainRequestProcessor.process(MainRequestProcessor.java:273) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1495) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:520) at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.dcivision.framework.web.LoginFilter.doFilter(LoginFilter.java:180) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) 2018-09-14 09:40:27,678 INFO com.alibaba.dubbo.config.AbstractConfig - [DUBBO] Refer dubbo service com.paradm.docview.remote.core.IDocviewRemoteService from url zookeeper://192.168.23.55:2181/com.alibaba.dubbo.registry.RegistryService?application=paradm-dubbo-consumer&amp;check=false&amp;dubbo=2.6.2&amp;interface=com.paradm.docview.remote.core.IDocviewRemoteService&amp;methods=deleteDmsAnnotation,deleteAnnotationComment,deleteDmsAnnotationDigitalSignature,createDvTaskWithThumb,createAnnotationComment,updateAnnotationComment,createDmsAnnotation,updateDmsAnnotation,raiseTaskPriority,createTask,getTask,createDmsAnnotationDigitalSignature,getDmsAnnotationList,downloadImage&amp;pid=13852&amp;register.ip=192.168.20.30&amp;revision=3.0.1&amp;side=consumer&amp;timestamp=1536889227525, dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,707 DEBUG com.alibaba.dubbo.remoting.transport.DecodeHandler - [DUBBO] Decode decodeable message com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult, dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,747 DEBUG com.alibaba.dubbo.remoting.transport.DecodeHandler - [DUBBO] Decode decodeable message com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult, dubbo version: 2.6.2, current host: 192.168.20.30 2018-09-14 09:40:27,748 ERROR com.dcivision.workspace.core.WspDocumentManager - Failed to invoke the method getTask in the service com.paradm.docview.remote.core.IDocviewRemoteService. No provider available for the service com.paradm.docview.remote.core.IDocviewRemoteService from registry 192.168.23.55:2181 on the consumer 192.168.20.30 using the dubbo version 2.6.2. Please check if the providers have been started and registered. com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method getTask in the service com.paradm.docview.remote.core.IDocviewRemoteService. No provider available for the service com.paradm.docview.remote.core.IDocviewRemoteService from registry 192.168.23.55:2181 on the consumer 192.168.20.30 using the dubbo version 2.6.2. Please check if the providers have been started and registered. at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:257) at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:56) at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:238) at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:75) at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52) at com.alibaba.dubbo.common.bytecode.proxy1.getTask(proxy1.java) at com.dcivision.workspace.core.WspDocumentManager.getDocviewTaskRemoteBean(WspDocumentManager.java:1213) at com.dcivision.workspace.web.DocumentViewerAction.init(DocumentViewerAction.java:84) at com.dcivision.framework.web.AbstractMaintAction.execute(AbstractMaintAction.java:199) at com.dcivision.workspace.web.DocumentViewerAction.execute(DocumentViewerAction.java:69) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at com.dcivision.framework.MainRequestProcessor.processActionPerform(MainRequestProcessor.java:329) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at com.dcivision.framework.MainRequestProcessor.process(MainRequestProcessor.java:273) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1495) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:520) at javax.servlet.http.HttpServlet.service(HttpServlet.java:624) at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at com.dcivision.framework.web.LoginFilter.doFilter(LoginFilter.java:180) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) </code></pre></div>
0
<p dir="auto">works only if i click it twice. e.g.</p> <ul dir="auto"> <li>Open Folder "Desktop"... nothing happens</li> <li>Open Folder "Desktop" a second time... voila it appears</li> </ul> <p dir="auto">is this normal? and that is no exception!! it happens everytime!!</p>
<p dir="auto">Like I mentioned <a href="https://github.com/atom/atom/issues/3405#issuecomment-53685094" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/3405/hovercard">here in my comment</a> opening a folder won't work for the first time you open it, wether if you drag&amp;drop it or just open it via the shortcut.</p> <p dir="auto">Same Problem on two different computers with Atom (0.124.0) running on Mac OS X (Mavericks).</p>
1
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <p dir="auto">I believe goimports does not automatically include package unsafe even if referenced in the source, which is fine, but when package unsafe is imported it can confuse goimports and produces syntactically correct, but unexpected output, such as:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import ( &quot;reflect&quot; &quot;unsafe&quot; ) import &quot;fmt&quot;"><pre class="notranslate"><code class="notranslate">import ( "reflect" "unsafe" ) import "fmt" </code></pre></div> <ol dir="auto"> <li>What version of Go are you using (<code class="notranslate">go version</code>)?</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="go version go1.6 linux/amd64"><pre class="notranslate"><code class="notranslate">go version go1.6 linux/amd64 </code></pre></div> <ol dir="auto"> <li>What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GOARCH=&quot;amd64&quot; GOBIN=&quot;&quot; GOEXE=&quot;&quot; GOHOSTARCH=&quot;amd64&quot; GOHOSTOS=&quot;linux&quot; GOOS=&quot;linux&quot; GORACE=&quot;&quot; GOROOT=&quot;/usr/lib/google-golang&quot; GOTOOLDIR=&quot;/usr/lib/google-golang/pkg/tool/linux_amd64&quot; GO15VENDOREXPERIMENT=&quot;1&quot; CC=&quot;gcc&quot; GOGCCFLAGS=&quot;-fPIC -m64 -pthread -fmessage-length=0 -gno-record-gcc-switches -fdebug-prefix-map=/tmp/go-build262021310=/tmp/go-build&quot; CXX=&quot;g++&quot; CGO_ENABLED=&quot;1&quot;"><pre class="notranslate"><code class="notranslate">GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GORACE="" GOROOT="/usr/lib/google-golang" GOTOOLDIR="/usr/lib/google-golang/pkg/tool/linux_amd64" GO15VENDOREXPERIMENT="1" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -gno-record-gcc-switches -fdebug-prefix-map=/tmp/go-build262021310=/tmp/go-build" CXX="g++" CGO_ENABLED="1" </code></pre></div> <ol dir="auto"> <li>What did you do?</li> </ol> <p dir="auto">Ran goimports on the source code <a href="http://play.golang.org/p/Ppc325UINU" rel="nofollow">http://play.golang.org/p/Ppc325UINU</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package code import &quot;unsafe&quot; import &quot;fmt&quot; var _ = fmt.Print var _ = unsafe.Sizeof var _ = reflect.Value"><pre class="notranslate"><code class="notranslate">package code import "unsafe" import "fmt" var _ = fmt.Print var _ = unsafe.Sizeof var _ = reflect.Value </code></pre></div> <ol dir="auto"> <li>What did you expect to see?</li> </ol> <p dir="auto"><a href="http://play.golang.org/p/ySR9QrdVlp" rel="nofollow">http://play.golang.org/p/ySR9QrdVlp</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package code import ( &quot;fmt&quot; &quot;reflect&quot; &quot;unsafe&quot; ) var _ = fmt.Print var _ = unsafe.Sizeof var _ = reflect.Value"><pre class="notranslate"><code class="notranslate">package code import ( "fmt" "reflect" "unsafe" ) var _ = fmt.Print var _ = unsafe.Sizeof var _ = reflect.Value </code></pre></div> <ol dir="auto"> <li>What did you see instead?</li> </ol> <p dir="auto"><a href="http://play.golang.org/p/i49dfImPxA" rel="nofollow">http://play.golang.org/p/i49dfImPxA</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package code import ( &quot;reflect&quot; &quot;unsafe&quot; ) import &quot;fmt&quot; var _ = fmt.Print var _ = unsafe.Sizeof var _ = reflect.Value"><pre class="notranslate"><code class="notranslate">package code import ( "reflect" "unsafe" ) import "fmt" var _ = fmt.Print var _ = unsafe.Sizeof var _ = reflect.Value </code></pre></div>
<p dir="auto">with imports like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import &quot;bytes&quot; import &quot;encoding/binary&quot;"><pre class="notranslate"><code class="notranslate">import "bytes" import "encoding/binary" </code></pre></div> <p dir="auto">and code that adds a dependency on another package, like bufio:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bufio.NewReader(os.Stdin)"><pre class="notranslate"><code class="notranslate">bufio.NewReader(os.Stdin) </code></pre></div> <p dir="auto">goimports will rewrite the imports to look like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import ( &quot;bufio&quot; &quot;bytes&quot; ) import &quot;encoding/binary&quot;"><pre class="notranslate"><code class="notranslate">import ( "bufio" "bytes" ) import "encoding/binary" </code></pre></div> <p dir="auto">The formatting here is odd. I expected it to look like either:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import &quot;bufio&quot; import &quot;bytes&quot; import &quot;encoding/binary&quot;"><pre class="notranslate"><code class="notranslate">import "bufio" import "bytes" import "encoding/binary" </code></pre></div> <p dir="auto">where the established convention in the code of using <code class="notranslate">import</code> before every import is left alone or</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import ( &quot;bufio&quot; &quot;bytes&quot; &quot;encoding/binary&quot; )"><pre class="notranslate"><code class="notranslate">import ( "bufio" "bytes" "encoding/binary" ) </code></pre></div> <p dir="auto">where the convention of using grouped imports is properly done.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto"><a href="https://github.com/mui-org/material-ui/blob/bfbf4ed7f765ebf6760b22a598ad6e4eb9f6f244/src/Input/Input.js#L50">https://github.com/mui-org/material-ui/blob/bfbf4ed7f765ebf6760b22a598ad6e4eb9f6f244/src/Input/Input.js#L50</a><br> Easing function that used in this line does not exists in theme definition. <code class="notranslate">easeInOut</code> will used instead as default value.</p>
<p dir="auto">When a ListItem has its disabled prop set to true, the onClick function still fires.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Expect the ListItem to be.. well.. disabled? ie. not fire an onClick.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Regardless of the disabled prop value, the onClick prop still fires.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>A basic List/ListItem:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;List&gt; &lt;ListItem disabled primaryText=&quot;Im disabled!&quot; onClick={() =&gt; (window.alert('I fired!'))} /&gt; &lt;/List&gt;"><pre class="notranslate"><code class="notranslate">&lt;List&gt; &lt;ListItem disabled primaryText="Im disabled!" onClick={() =&gt; (window.alert('I fired!'))} /&gt; &lt;/List&gt; </code></pre></div> <ol start="2" dir="auto"> <li>Clicking on the ListItem still fires the onClick.</li> </ol> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>0.18.0</td> </tr> <tr> <td>React</td> <td>15.6.1</td> </tr> <tr> <td>browser</td> <td>All</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto"><a href="https://github.com/facebook/react/blob/master/src/browser/ui/ReactMount.js#L81">https://github.com/facebook/react/blob/master/src/browser/ui/ReactMount.js#L81</a></p> <p dir="auto">It seems this is mainly the cause of invalid nesting of tags, <code class="notranslate">&lt;a&gt;&lt;div /&gt;&lt;/a&gt;</code>, <code class="notranslate">&lt;table&gt;&lt;tr&gt;&lt;/tr&gt;&lt;/table&gt;</code>, etc. I know there are some issues/PRs regarding this already but AFAIK they're trying to solve/detect it, it seems reasonable to just improve this (very non-informative) error message in the meantime.</p> <p dir="auto">PS. I've probably seen 2-3 people get bitten by it myself now that I think about it.</p>
<p dir="auto">React version: 18.0.0</p> <h2 dir="auto">Steps To Reproduce</h2> <p dir="auto"><code class="notranslate">componentWillUnmount</code> is called twice upon toggling the rendered component. Even when <strong>StrictMode</strong> is disabled</p> <p dir="auto">Link to code example: <a href="https://codesandbox.io/s/componentwillunmount-called-twice-hrpzy5?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/componentwillunmount-called-twice-hrpzy5?file=/src/App.js</a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto">After upgrading to react 18 we've seen some different behavior in a conditionally rendered, lazy class component.</p> <p dir="auto">In the provided code example the class component is rendered first. After the first toggle, the class component's componentWillUnmount is called twice.</p> <p dir="auto">Subsequent toggle calls correctly lead to a single componentWillUnmount invocation.</p> <p dir="auto">This does only seem to affect the class component when its rendered first. If the condition is changed to initially show the other function component the class component unmounts just fine</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">The class component's componentWillUnmount is only called once</p>
0
<p dir="auto">by <strong>qeed.quan</strong>:</p> <pre class="notranslate">For some reason I am getting a build error using cgo with GLEW, I am running linux 64 bit version and go version devel +811f060da18a Thu Mar 28 15:04:25 2013 -0700 linux/amd64 with GCC 4.8 I get build errors such as these when trying to install GLEW # gl In file included from buffer.go:4:0: gl.h:4:25: error: enumerator value for '__cgo_enum__8' is not an integer constant #define GLEW_GET_FUN(x) (*x) ^ /usr/include/GL/glew.h:1685:22: note: in expansion of macro 'GLEW_GET_FUN' #define glGenBuffers GLEW_GET_FUN(__glewGenBuffers) ^ gl.h:4:25: error: enumerator value for '__cgo_enum__9' is not an integer constant #define GLEW_GET_FUN(x) (*x) ^ /usr/include/GL/glew.h:1679:22: note: in expansion of macro 'GLEW_GET_FUN' #define glBindBuffer GLEW_GET_FUN(__glewBindBuffer) ^ gl.h:4:25: error: enumerator value for '__cgo_enum__10' is not an integer constant #define GLEW_GET_FUN(x) (*x) ^ the errors continue from here but they are mostly the same. The GLEW header file does #define GLEW_GET_FUN(x) (x) but it needed #define GLEW_GET_FUN(x) (*x) to compile properly when cgo was still working, or else one would get the error: could not determine kind of name for C.glDeleteBuffers and so on. I have attached my GL bindings to test with glew.</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/5153/0/gl.zip" rel="nofollow">gl.zip</a> (6539 bytes)</li> </ol>
<p dir="auto">by <strong>vincent.risi</strong>:</p> <pre class="notranslate">This is not a bug but if the := already allows for some of the variable to be old, why not allow for them all to be old? for instance I would like to have a, b := Called(x) ... a, b := Called(a*b) as it does not really affect the usability if this was relaxed.</pre>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/827" rel="nofollow">http://projects.scipy.org/scipy/ticket/827</a> on 2008-12-28 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nilswagner01/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nilswagner01">@nilswagner01</a>, assigned to unknown.</em></p> <p dir="auto">scipy.test() and python2.6</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; scipy.__version__ '0.7.0.dev5294' &gt;&gt;&gt; numpy.__version__ '1.3.0.dev6221' ====================================================================== ERROR: Testing that kmeans2 init methods work. ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py&quot;, line 147, in test_kmeans2_init data = data.reshape((200, 2)) ValueError: total size of new array must be unchanged ====================================================================== ERROR: Testing simple call to kmeans2 with rank 1 data. ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py&quot;, line 127, in test_kmeans2_rank1 data = data.reshape((200, 2)) ValueError: total size of new array must be unchanged ====================================================================== ERROR: Testing simple call to kmeans2 with rank 1 data. ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py&quot;, line 139, in test_kmeans2_rank1_2 data = data.reshape((200, 2)) ValueError: total size of new array must be unchanged ====================================================================== ERROR: This will cause kmean to have a cluster with no points. ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py&quot;, line 96, in test_kmeans_lost_cluster data = data.reshape((200, 2)) ValueError: total size of new array must be unchanged "><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; scipy.__version__ '0.7.0.dev5294' &gt;&gt;&gt; numpy.__version__ '1.3.0.dev6221' ====================================================================== ERROR: Testing that kmeans2 init methods work. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py", line 147, in test_kmeans2_init data = data.reshape((200, 2)) ValueError: total size of new array must be unchanged ====================================================================== ERROR: Testing simple call to kmeans2 with rank 1 data. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py", line 127, in test_kmeans2_rank1 data = data.reshape((200, 2)) ValueError: total size of new array must be unchanged ====================================================================== ERROR: Testing simple call to kmeans2 with rank 1 data. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py", line 139, in test_kmeans2_rank1_2 data = data.reshape((200, 2)) ValueError: total size of new array must be unchanged ====================================================================== ERROR: This will cause kmean to have a cluster with no points. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/cluster/tests/test_vq.py", line 96, in test_kmeans_lost_cluster data = data.reshape((200, 2)) ValueError: total size of new array must be unchanged </code></pre></div>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/828" rel="nofollow">http://projects.scipy.org/scipy/ticket/828</a> on 2008-12-28 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nilswagner01/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nilswagner01">@nilswagner01</a>, assigned to unknown.</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; scipy.__version__ '0.7.0.dev5294' &gt;&gt;&gt; numpy.__version__ '1.3.0.dev6221' ====================================================================== ERROR: test_complex_write_read (test_mmio.TestMMIOCoordinate) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_mmio.py&quot;, line 290, in test_complex_write_read b = mmread(fn).todense() File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 52, in mmread return MMFile().read(source) File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 273, in read return self._parse_body(stream) File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 407, in _parse_body flat_data = flat_data.reshape(-1,4) ValueError: total size of new array must be unchanged ====================================================================== ERROR: read a hermitian matrix ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_mmio.py&quot;, line 213, in test_read_hermitian b = mmread(fn).todense() File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 52, in mmread return MMFile().read(source) File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 273, in read return self._parse_body(stream) File &quot;/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py&quot;, line 407, in _parse_body flat_data = flat_data.reshape(-1,4) ValueError: total size of new array must be unchanged "><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; scipy.__version__ '0.7.0.dev5294' &gt;&gt;&gt; numpy.__version__ '1.3.0.dev6221' ====================================================================== ERROR: test_complex_write_read (test_mmio.TestMMIOCoordinate) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_mmio.py", line 290, in test_complex_write_read b = mmread(fn).todense() File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 52, in mmread return MMFile().read(source) File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 273, in read return self._parse_body(stream) File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 407, in _parse_body flat_data = flat_data.reshape(-1,4) ValueError: total size of new array must be unchanged ====================================================================== ERROR: read a hermitian matrix ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/tests/test_mmio.py", line 213, in test_read_hermitian b = mmread(fn).todense() File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 52, in mmread return MMFile().read(source) File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 273, in read return self._parse_body(stream) File "/home/nwagner/local/lib64/python2.6/site-packages/scipy/io/mmio.py", line 407, in _parse_body flat_data = flat_data.reshape(-1,4) ValueError: total size of new array must be unchanged </code></pre></div>
1
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br> Ubuntu 16.04 (ppc64le)</li> <li><strong>TensorFlow installed from (source or binary)</strong>:<br> Installed from source (v1.0.1)</li> <li><strong>TensorFlow version (use command below)</strong>:<br> ('v1.0.1-0-ge895d5c-dirty', '1.0.1')</li> <li><strong>Bazel version (if compiling from source)</strong>:<br> bazel release 0.4.4-2017-04-10 (@80a07b5)</li> <li><strong>CUDA/cuDNN version</strong>:<br> In disable mode</li> <li><strong>Exact command to reproduce</strong>:<br> bazel test //tensorflow/python/kernel_tests:cast_op_test</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Built TF successfully , however I am getting <code class="notranslate">Items are not equal</code> error while running the <code class="notranslate">cast_op_test</code></p> <p dir="auto">To cross verify the test results , I ran this test on X86 vm and that passed successfully. This test is failing only on ppc64le platform . Here I would like to know your suggestions and comments.</p> <h3 dir="auto">Source code / logs</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel test //tensorflow/python/kernel_tests:cast_op_test exec ${PAGER:-/usr/bin/less} &quot;$0&quot; || exit 1 ----------------------------------------------------------------------------- I tensorflow/compiler/xla/service/platform_util.cc:58] platform Host present with 16 visible devices I tensorflow/compiler/xla/service/service.cc:180] XLA service executing computations on platform Host. Devices: I tensorflow/compiler/xla/service/service.cc:187] StreamExecutor device (0): &lt;undefined&gt;, &lt;undefined&gt; /root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py:62: ComplexWarning: Casting complex values to real discards the imaginary part np_ans = x.astype(dtype) ....F.W tensorflow/core/framework/op_kernel.cc:983] Unimplemented: Cast int64 to string is not supported E tensorflow/core/common_runtime/executor.cc:594] Executor failed to create kernel. Unimplemented: Cast int64 to string is not supported [[Node: Cast = Cast[DstT=DT_STRING, SrcT=DT_INT64, _device=&quot;/job:localhost/replica:0/task:0/cpu:0&quot;](Cast/x)]] ........ ====================================================================== FAIL: testInfNan (__main__.CastOpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py&quot;, line 150, in testInfNan self._compare(np.inf, np.int32, i4.min, False) File &quot;/root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py&quot;, line 124, in _compare x, dst_dtype, use_gpu=use_gpu), dst_dtype(expected)) File &quot;/usr/lib64/python2.7/site-packages/numpy/testing/utils.py&quot;, line 425, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: 2147483647 DESIRED: -2147483648 ---------------------------------------------------------------------- Ran 14 tests in 2.485s FAILED (failures=1) ` ```"><pre class="notranslate"><code class="notranslate">$ bazel test //tensorflow/python/kernel_tests:cast_op_test exec ${PAGER:-/usr/bin/less} "$0" || exit 1 ----------------------------------------------------------------------------- I tensorflow/compiler/xla/service/platform_util.cc:58] platform Host present with 16 visible devices I tensorflow/compiler/xla/service/service.cc:180] XLA service executing computations on platform Host. Devices: I tensorflow/compiler/xla/service/service.cc:187] StreamExecutor device (0): &lt;undefined&gt;, &lt;undefined&gt; /root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py:62: ComplexWarning: Casting complex values to real discards the imaginary part np_ans = x.astype(dtype) ....F.W tensorflow/core/framework/op_kernel.cc:983] Unimplemented: Cast int64 to string is not supported E tensorflow/core/common_runtime/executor.cc:594] Executor failed to create kernel. Unimplemented: Cast int64 to string is not supported [[Node: Cast = Cast[DstT=DT_STRING, SrcT=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"](Cast/x)]] ........ ====================================================================== FAIL: testInfNan (__main__.CastOpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py", line 150, in testInfNan self._compare(np.inf, np.int32, i4.min, False) File "/root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py", line 124, in _compare x, dst_dtype, use_gpu=use_gpu), dst_dtype(expected)) File "/usr/lib64/python2.7/site-packages/numpy/testing/utils.py", line 425, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: 2147483647 DESIRED: -2147483648 ---------------------------------------------------------------------- Ran 14 tests in 2.485s FAILED (failures=1) ` ``` </code></pre></div>
<h3 dir="auto">System Information</h3> <ul dir="auto"> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br> Ubuntu 16.04 (ppc64le)</li> <li><strong>TensorFlow installed from (source or binary):</strong><br> Installed from source (v1.0.1)</li> <li><strong>TensorFlow version (use command below):</strong><br> ('v1.0.1-0-ge895d5c-dirty', '1.0.1')</li> <li><strong>Bazel version (if compiling from source)</strong>:<br> bazel release 0.4.4-2017-04-10 (@80a07b5)</li> <li><strong>CUDA/cuDNN version:</strong><br> In disable mode</li> <li><strong>Exact command to reproduce</strong>:<br> bazel test //tensorflow/python/kernel_tests:cast_op_test</li> </ul> <h3 dir="auto">Describe the problem clearly</h3> <p dir="auto">This is regarding failure of test case testInfNan in cast_op_test.py file.While executing this test case on ppc64le, it was observed that following line returns unexpected results:</p> <p dir="auto"><code class="notranslate">self._compare(np.inf, np.int32, i4.min, False)</code></p> <p dir="auto">i4.min value on x86 as well as on ppc64le is -2147483648. However "np.inf" on x86 is "signed" by default whereas on ppc64le it is "unsigned" by default. To make the results compatible with x86, somehow np.inf should be cast as "signed" on ppc64le. In my opinion there could be two ways of doing this.</p> <ol dir="auto"> <li>Use a proper cast (python equivalent of "(signed int) var" in C) which would always interprete np.inf as of type "signed" on ppc64le<br> -- or --</li> <li>if we are on ppc64le platform, when dealing with np.inf, convert it explicitly to signed as "-np.inf" and then perform subsequent operations</li> </ol> <p dir="auto">Though I have not yet decided on which one to implement, I am trying to find a right place first to put this fix in tensorflow code. I guess the right place would be somewhere in the code related to following 2 lines in cast_op_test.py (line# 57 and 58, in function _cast):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="val = constant_op.constant(x, self._toDataType(np.array([x]).dtype)) return math_ops.cast(val, self._toDataType(dtype), name=&quot;cast&quot;).eval() "><pre class="notranslate"><code class="notranslate">val = constant_op.constant(x, self._toDataType(np.array([x]).dtype)) return math_ops.cast(val, self._toDataType(dtype), name="cast").eval() </code></pre></div> <p dir="auto">However I am unable to grasp code details about constant() in python/framework/constant_op.py and cast() in python/ops/math_ops.py, similarly there is REGISTER_OP("Cast") in core/ops/math_ops.cc which I guess is the heart of cast functionality. Is my understanding correct?</p> <p dir="auto">So if I have to implement the changes for ppc64le, which could be the right place to do so?</p> <h3 dir="auto">Source Code / Logs</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="`$ bazel test //tensorflow/python/kernel_tests:cast_op_test exec ${PAGER:-/usr/bin/less} &quot;$0&quot; || exit 1 ----------------------------------------------------------------------------- I tensorflow/compiler/xla/service/platform_util.cc:58] platform Host present with 16 visible devices I tensorflow/compiler/xla/service/service.cc:180] XLA service executing computations on platform Host. Devices: I tensorflow/compiler/xla/service/service.cc:187] StreamExecutor device (0): &lt;undefined&gt;, &lt;undefined&gt; /root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py:62: ComplexWarning: Casting complex values to real discards the imaginary part np_ans = x.astype(dtype) ....F.W tensorflow/core/framework/op_kernel.cc:983] Unimplemented: Cast int64 to string is not supported E tensorflow/core/common_runtime/executor.cc:594] Executor failed to create kernel. Unimplemented: Cast int64 to string is not supported [[Node: Cast = Cast[DstT=DT_STRING, SrcT=DT_INT64, _device=&quot;/job:localhost/replica:0/task:0/cpu:0&quot;](Cast/x)]] ........ ====================================================================== FAIL: testInfNan (__main__.CastOpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py&quot;, line 150, in testInfNan self._compare(np.inf, np.int32, i4.min, False) File &quot;/root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py&quot;, line 124, in _compare x, dst_dtype, use_gpu=use_gpu), dst_dtype(expected)) File &quot;/usr/lib64/python2.7/site-packages/numpy/testing/utils.py&quot;, line 425, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: 2147483647 DESIRED: -2147483648 ---------------------------------------------------------------------- Ran 14 tests in 2.485s FAILED (failures=1)`"><pre class="notranslate"><code class="notranslate">`$ bazel test //tensorflow/python/kernel_tests:cast_op_test exec ${PAGER:-/usr/bin/less} "$0" || exit 1 ----------------------------------------------------------------------------- I tensorflow/compiler/xla/service/platform_util.cc:58] platform Host present with 16 visible devices I tensorflow/compiler/xla/service/service.cc:180] XLA service executing computations on platform Host. Devices: I tensorflow/compiler/xla/service/service.cc:187] StreamExecutor device (0): &lt;undefined&gt;, &lt;undefined&gt; /root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py:62: ComplexWarning: Casting complex values to real discards the imaginary part np_ans = x.astype(dtype) ....F.W tensorflow/core/framework/op_kernel.cc:983] Unimplemented: Cast int64 to string is not supported E tensorflow/core/common_runtime/executor.cc:594] Executor failed to create kernel. Unimplemented: Cast int64 to string is not supported [[Node: Cast = Cast[DstT=DT_STRING, SrcT=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"](Cast/x)]] ........ ====================================================================== FAIL: testInfNan (__main__.CastOpTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py", line 150, in testInfNan self._compare(np.inf, np.int32, i4.min, False) File "/root/.cache/bazel/_bazel_root/68a62076e91007a7908bc42a32e4cff9/execroot/tensorflow/bazel-out/local-opt/bin/tensorflow/python/kernel_tests/cast_op_test.runfiles/org_tensorflow/tensorflow/python/kernel_tests/cast_op_test.py", line 124, in _compare x, dst_dtype, use_gpu=use_gpu), dst_dtype(expected)) File "/usr/lib64/python2.7/site-packages/numpy/testing/utils.py", line 425, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: 2147483647 DESIRED: -2147483648 ---------------------------------------------------------------------- Ran 14 tests in 2.485s FAILED (failures=1)` </code></pre></div>
1
<p dir="auto">I'm looking to integrate Playwright into CI, and was wondering if it was a known use-case and how to solve it within Playwright. I've seen some issues relying on chokidar, but would you recommend this?</p>
<h2 dir="auto">Description</h2> <p dir="auto">As a user, I want to run my component tests only on changed files, as it would be a use case in a git hook (<a href="https://git-scm.com/docs/githooks#_pre_push" rel="nofollow"><code class="notranslate">pre-push</code></a>)</p> <h2 dir="auto">Alternatives</h2> <ul dir="auto"> <li><a href="https://jestjs.io/docs/cli#--onlychanged" rel="nofollow">https://jestjs.io/docs/cli#--onlychanged</a></li> <li><a href="https://vitest.dev/guide/cli.html#changed" rel="nofollow">https://vitest.dev/guide/cli.html#changed</a></li> </ul> <h2 dir="auto">Preferred Solution</h2> <p dir="auto">Enhancement of the cli commands, e.g.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npx playwright test --only-changed"><pre class="notranslate">npx playwright <span class="pl-c1">test</span> --only-changed</pre></div>
1
<p dir="auto">I found that numpy.sqrt has a strange type mapping:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; numpy.sqrt.types ['f-&gt;f', 'd-&gt;d', 'e-&gt;e', 'f-&gt;f', 'd-&gt;d', 'g-&gt;g', 'F-&gt;F', 'D-&gt;D', 'G-&gt;G', 'O-&gt;O']"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; numpy.sqrt.types ['f-&gt;f', 'd-&gt;d', 'e-&gt;e', 'f-&gt;f', 'd-&gt;d', 'g-&gt;g', 'F-&gt;F', 'D-&gt;D', 'G-&gt;G', 'O-&gt;O'] </code></pre></div> <p dir="auto">It causes sqrt to upcast float16 to float32. It is also strange that 'f' and 'd' appear twice. Is this definition/behavior intended?<br> Note: I checked it with NumPy 1.9.2 on Python 2.7.9 &amp; 3.4.3.</p>
<p dir="auto">Sorry, if this is a duplicate but I could not find a matching issue..</p> <p dir="auto">I am reporting an issue that was introduced <em>after</em> version 1.8.2 and is present in all of 1.9.1, 1.9.2rc1 and master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/numpy/numpy/commit/a4cdc5b8d314fcf18faf29d82e84c877c4ed0e3f/hovercard" href="https://github.com/numpy/numpy/commit/a4cdc5b8d314fcf18faf29d82e84c877c4ed0e3f"><tt>a4cdc5b</tt></a>). I am on Python 2.7.9.</p> <p dir="auto">Here's a snippet to illustrate the issue:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np a = np.arange(10) print a mask = a &gt; 4 print mask a[mask].fill(-1) a[~mask].fill(-2) print a a[mask] = -1 a[~mask] = -2 print a"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">10</span>) <span class="pl-k">print</span> <span class="pl-s1">a</span> <span class="pl-s1">mask</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">4</span> <span class="pl-k">print</span> <span class="pl-s1">mask</span> <span class="pl-s1">a</span>[<span class="pl-s1">mask</span>].<span class="pl-en">fill</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>) <span class="pl-s1">a</span>[<span class="pl-c1">~</span><span class="pl-s1">mask</span>].<span class="pl-en">fill</span>(<span class="pl-c1">-</span><span class="pl-c1">2</span>) <span class="pl-k">print</span> <span class="pl-s1">a</span> <span class="pl-s1">a</span>[<span class="pl-s1">mask</span>] <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">1</span> <span class="pl-s1">a</span>[<span class="pl-c1">~</span><span class="pl-s1">mask</span>] <span class="pl-c1">=</span> <span class="pl-c1">-</span><span class="pl-c1">2</span> <span class="pl-k">print</span> <span class="pl-s1">a</span></pre></div> <p dir="auto">which produces..</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[0 1 2 3 4 5 6 7 8 9] [False False False False False True True True True True] [0 1 2 3 4 5 6 7 8 9] [-2 -2 -2 -2 -2 -1 -1 -1 -1 -1]"><pre class="notranslate"><code class="notranslate">[0 1 2 3 4 5 6 7 8 9] [False False False False False True True True True True] [0 1 2 3 4 5 6 7 8 9] [-2 -2 -2 -2 -2 -1 -1 -1 -1 -1] </code></pre></div> <p dir="auto">I've tried to <code class="notranslate">git bisect</code> to the responsible commit, but git seems to get confused, it stops the bisect run with the following message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="The merge base 6c729b4423857850e6553cf6c2d0fc8b026036dd is bad. This means the bug has been fixed between 6c729b4423857850e6553cf6c2d0fc8b026036dd and [4563730a2d036307f1b67b2856d749aabdd8d546]."><pre class="notranslate"><code class="notranslate">The merge base 6c729b4423857850e6553cf6c2d0fc8b026036dd is bad. This means the bug has been fixed between 6c729b4423857850e6553cf6c2d0fc8b026036dd and [4563730a2d036307f1b67b2856d749aabdd8d546]. </code></pre></div> <p dir="auto">Here's the <code class="notranslate">git bisect log</code> afterwards:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git bisect start # good: [4563730a2d036307f1b67b2856d749aabdd8d546] REL: Release 1.8.2 git bisect good 4563730a2d036307f1b67b2856d749aabdd8d546 # bad: [d44b9c61499f8bc5a9fc94286cd52f05e15e003f] REL: Release 1.9.1 git bisect bad d44b9c61499f8bc5a9fc94286cd52f05e15e003f # bad: [6c729b4423857850e6553cf6c2d0fc8b026036dd] Merge pull request #3635 from charris/giant-style-cleanup git bisect bad 6c729b4423857850e6553cf6c2d0fc8b026036dd"><pre class="notranslate"><code class="notranslate">git bisect start # good: [4563730a2d036307f1b67b2856d749aabdd8d546] REL: Release 1.8.2 git bisect good 4563730a2d036307f1b67b2856d749aabdd8d546 # bad: [d44b9c61499f8bc5a9fc94286cd52f05e15e003f] REL: Release 1.9.1 git bisect bad d44b9c61499f8bc5a9fc94286cd52f05e15e003f # bad: [6c729b4423857850e6553cf6c2d0fc8b026036dd] Merge pull request #3635 from charris/giant-style-cleanup git bisect bad 6c729b4423857850e6553cf6c2d0fc8b026036dd </code></pre></div>
0
<p dir="auto">Noticed this flake:<br> <a href="http://build.golang.org/log/de2ea0b431bc216003fd8762e62bbd46b3511fca" rel="nofollow">http://build.golang.org/log/de2ea0b431bc216003fd8762e62bbd46b3511fca</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... ok math/rand 5.305s ok mime 1.365s ok mime/multipart 2.470s ok mime/quotedprintable 3.075s --- FAIL: TestDialTimeout (0.00s) timeout_test.go:82: #3: dial tcp 127.0.0.1:0: connectex: The requested address is not valid in its context. FAIL FAIL net 21.902s ok net/http 10.666s ok net/http/cgi 6.718s ok net/http/cookiejar 1.583s ..."><pre class="notranslate"><code class="notranslate">... ok math/rand 5.305s ok mime 1.365s ok mime/multipart 2.470s ok mime/quotedprintable 3.075s --- FAIL: TestDialTimeout (0.00s) timeout_test.go:82: #3: dial tcp 127.0.0.1:0: connectex: The requested address is not valid in its context. FAIL FAIL net 21.902s ok net/http 10.666s ok net/http/cgi 6.718s ok net/http/cookiejar 1.583s ... </code></pre></div> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexbrainman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexbrainman">@alexbrainman</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikioh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikioh">@mikioh</a></p>
<p dir="auto">I've been running run.bash in a loop on my linux/amd64 workstation for the past few days and out of ~500 runs, I've had three failures of TestDialTimeout with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- FAIL: TestDialTimeout (0.00s) timeout_test.go:82: #3: dial tcp 127.0.0.1:0: getsockopt: connection refused FAIL FAIL net 2.223s"><pre class="notranslate"><code class="notranslate">--- FAIL: TestDialTimeout (0.00s) timeout_test.go:82: #3: dial tcp 127.0.0.1:0: getsockopt: connection refused FAIL FAIL net 2.223s </code></pre></div> <p dir="auto">It has my GC changes from CL 12674, but I don't think those are related. The latest commit from master is <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/golang/go/commit/ae1ea2aa94b366107f4f92a591d102fd32ad86ae/hovercard" href="https://github.com/golang/go/commit/ae1ea2aa94b366107f4f92a591d102fd32ad86ae"><tt>ae1ea2a</tt></a>. This shows up occasionally on the dashboard as well:</p> <p dir="auto"><a href="http://build.golang.org/log/398d35aa4f0214a279c1b18213c932c4f32ece96" rel="nofollow">2015-06-05T18:51:23-d64cdde/linux-amd64-nocgo</a><br> <a href="http://build.golang.org/log/bbda1a1379bc01902c09daa840dfe0341b980621" rel="nofollow">2015-06-05T18:51:23-d64cdde/linux-amd64-noopt</a><br> <a href="http://build.golang.org/log/5448640aaefbef8b6ee1a5a15e114239dbd97c32" rel="nofollow">2015-06-11T14:33:40-0beb931/solaris-amd64-smartos</a><br> <a href="http://build.golang.org/log/92ad06d11345836d5f2ec377bf39edfc1b5aaa3c" rel="nofollow">2015-06-14T20:54:01-48d865a/linux-amd64-noopt</a><br> <a href="http://build.golang.org/log/8530044346da0c6cff3c83e59ecc34ea12d1f1f0" rel="nofollow">2015-07-05T03:36:56-1edf489/linux-amd64-noopt</a><br> <a href="http://build.golang.org/log/ee759225c67461e2da3a15f2d8ddb5cdf75c2fe3" rel="nofollow">2015-07-14T00:07:31-337b7e7/linux-amd64</a><br> <a href="http://build.golang.org/log/331a3ea8d34fb11da0f28bc8e8b0512a2990e2b5" rel="nofollow">2015-07-15T23:28:42-08dbd8a/solaris-amd64-smartos</a><br> <a href="http://build.golang.org/log/6348d86aa7a05f85ad4304a1a85a1e17caf9b0a9" rel="nofollow">2015-07-17T22:46:05-955c0fd/android-arm-crawshaw</a><br> <a href="http://build.golang.org/log/b7e1f89c3ddfd3d149c38959ca08e65befa0e4dd" rel="nofollow">2015-07-23T17:10:28-e0ac5c5/linux-386-sid</a></p> <p dir="auto">This may be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="91892031" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/11474" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/11474/hovercard" href="https://github.com/golang/go/issues/11474">#11474</a>, though the error sounds different.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikioh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikioh">@mikioh</a></p>
1
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/target-the-same-element-with-multiple-jquery-selectors" rel="nofollow">Target the same element with multiple jQuery Selectors</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;script&gt; $(document).ready(function() { $(&quot;button&quot;).addClass(&quot;animated&quot;); $(&quot;.btn&quot;).addclass(&quot;shake&quot;); $(&quot;#target1&quot;).addClass(&quot;btn-primary&quot;); }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"button"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addClass</span><span class="pl-kos">(</span><span class="pl-s">"animated"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">".btn"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addclass</span><span class="pl-kos">(</span><span class="pl-s">"shake"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addClass</span><span class="pl-kos">(</span><span class="pl-s">"btn-primary"</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">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Only change code above this line. --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">&gt;</span>jQuery Playground<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#left-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">&gt;</span>#target1<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">&gt;</span>#target2<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">&gt;</span>#target3<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#right-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">&gt;</span>#target4<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">&gt;</span>#target5<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">&gt;</span>#target6<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">When I try to run the test for this excersice, it doesnt appear the "to do" list below the "run test, help," etc. buttons, also it doesnt run the test (I belive the code is correct and it doesnt let me check that).</p> <p dir="auto">Help?</p>
<p dir="auto">Challenge tests for jQuery fail to run if syntax errors are present in a campers code.</p> <p dir="auto">Examples:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161661570" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9289" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9289/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9289">#9289</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="159738958" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9082" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9082/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9082">#9082</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163218773" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9470" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9470/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9470">#9470</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="164753410" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9672" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9672/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9672">#9672</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="165201340" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/9698" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/9698/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/9698">#9698</a></p> <p dir="auto">What is stopping the tests running? Can we fix it?</p> <p dir="auto">Is there a way to lint jQuery in codemirror so campers get visual clues to syntax errors, like in the JS challenges?</p> <p dir="auto">-Or-</p> <p dir="auto">When there is a syntax error, can we present a modal to the camper saying there is a syntax error present in their code when they click 'Run tests'?</p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.18362.657] PowerToys version: 0.18.0 PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.18362.657] PowerToys version: 0.18.0 PowerToy module for which you are reporting the bug (if applicable): FancyZones </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Three monitor setup, from Left to Right:</p> <ul dir="auto"> <li>Monitor 1: Browser with active Project + Team Explorer/Output/etc</li> <li>Monitor 2: Main Visual window (code)</li> <li>Monitor 3: Solution Explorer + Additional Apps (ie: chrome debugger usually)</li> </ul> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Remember each of Visual Studio's individual windows last zone.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">All VS windows get moved into the last zone I dropped in<br> (My guess is because they all end up using the same title or inherit the parent window handle??)<br> Note that VS remembers the last setup correctly if I have "Last known zone" turned off.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/146563/82701330-d71d5180-9c24-11ea-9cc9-03a1f2a62225.png"><img src="https://user-images.githubusercontent.com/146563/82701330-d71d5180-9c24-11ea-9cc9-03a1f2a62225.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This applies to 0.14.1 and also to the current master.</p> <p dir="auto">Repro steps:</p> <ul dir="auto"> <li>have "Move newly created windows to their last known zone" ON.</li> <li>open Outlook and snap it to a zone.</li> <li>open an email message or create a new email message.</li> </ul> <p dir="auto">Result:</p> <ul dir="auto"> <li>the email message window is snapped to the zone where Outlook is snapped.</li> </ul> <p dir="auto">Expected:</p> <ul dir="auto"> <li>the email message window is opened where it was last used.</li> </ul> <p dir="auto">Moving the email message window somewhere else will "fix" the problem, subsequent email messages will be opened where they were last used and not snapped to the zone.<br> Snapping Outlook to a new zone will bring back the bug.</p>
1
<ul dir="auto"> <li>OpenCV =&gt; :net.forward() error:</li> <li>Operating System / Platform =&gt; :android imx8:<br> Hi,I use DNN with opencl to detect object ,tiny-yolov2, but when run net.forward() ,it's ANR ,Here is the log:</li> </ul> <p dir="auto">2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: pid: 14020, tid: 15200, name: Thread-359 &gt;&gt;&gt; com.pateonavi.naviapp &lt;&lt;&lt;<br> 2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xfffffffc<br> 2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: r0 b5883600 r1 b59dd750 r2 a6c80d70 r3 c86c1a20<br> 2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: r4 b5883600 r5 fffffff8 r6 a6c80d00 r7 00000000<br> 2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: r8 c86c1a20 r9 a6c80d70 r10 b59dd750 r11 b5883784<br> 2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: ip f32b4d00 sp a6c80ce8 lr a8dd25b9 pc a8dd6b46<br> 2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: backtrace:<br> 2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: #00 pc 0060eb46 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br> 2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5857810" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/1/hovercard" href="https://github.com/opencv/opencv/pull/1">#1</a> pc 0061238d /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br> 2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5867398" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/2" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/2/hovercard" href="https://github.com/opencv/opencv/pull/2">#2</a> pc 00612677 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br> 2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5907046" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/3" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/3/hovercard" href="https://github.com/opencv/opencv/pull/3">#3</a> pc 005c5405 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br> 2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5915756" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/4" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/4/hovercard" href="https://github.com/opencv/opencv/pull/4">#4</a> pc 005c6265 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br> 2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5931862" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/5" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/5/hovercard" href="https://github.com/opencv/opencv/pull/5">#5</a> pc 005b1337 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br> 2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5936931" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/6" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/6/hovercard" href="https://github.com/opencv/opencv/pull/6">#6</a> pc 005b2331 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so<br> 2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6069994" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/7" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/7/hovercard" href="https://github.com/opencv/opencv/pull/7">#7</a> pc 005b6287 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so (cv::dnn::experimental_dnn_34_v11::Net::forward(cv::String const&amp;)+250)<br> 2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6103928" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/8" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/8/hovercard" href="https://github.com/opencv/opencv/pull/8">#8</a> pc 0001bb80 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libimageproc.so (ImageProcessor::classify(cv::Mat)+352)</p> <p dir="auto">Here is the code:<br> cv::Mat blob = cv::dnn::blobFromImage(result,1/255.f,cv::Size(224,224),cv::Scalar(),false,true);<br> my_net.setInput(blob);<br> cv::String outputNames = getOutputsNames();<br> cv::Mat output= my_net.forward();</p> <p dir="auto">I use the opencvforandroidSDK ,it is correct ,but i compule it with opencl ,it is error ,<br> Can you give me some help?<br> Thanks!</p>
<p dir="auto">编译opencv3.4.3版本带OPENCL的,测试能够检测到opencl,但是当运行DNN模块net.forword(output)函数就会导致系统奔溃,用官网的Android SDK版本的CPU版本是正常的</p> <p dir="auto">芯片是imx8Q ,opencl 1.2.<br> 请问是编译问题还是版本问题?</p>
1
<p dir="auto">It would be nice if the examples pages had a jsfiddle link so that it would be easier to generate use cases for bug reporting by users.</p>
<p dir="auto">After compiling, <code class="notranslate">#grid &gt; .fluid(@fluidGridColumnWidth, @fluidGridGutterWidth);</code> produces duplicate CSS rules. The duplicates are directly after the first rule set. Example:</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" .row-fluid [class*=&quot;span&quot;] { /* code*/ } .row-fluid [class*=&quot;span&quot;]:first-child { margin-left: 0; } .row-fluid .span12 { width: 99.99999998999999%; *width: 99.94680850063828%; } /* … */ .row-fluid .span1 { width: 8.3333333333%; *width: 8.3333333333%; } /* Directly after, it repeats the exact same code */ .row-fluid [class*=&quot;span&quot;] { /* code*/ } .row-fluid [class*=&quot;span&quot;]:first-child { margin-left: 0; } .row-fluid .span12 { width: 99.99999998999999%; *width: 99.94680850063828%; } /* … */ .row-fluid .span1 { width: 8.3333333333%; *width: 8.3333333333%; } "><pre class="notranslate"> .<span class="pl-c1">row-fluid</span> [<span class="pl-c1">class</span><span class="pl-c1">*=</span><span class="pl-s">"span"</span>] { <span class="pl-c">/* code*/</span> } .<span class="pl-c1">row-fluid</span> [<span class="pl-c1">class</span><span class="pl-c1">*=</span><span class="pl-s">"span"</span>]<span class="pl-kos">:</span><span class="pl-c1">first-child</span> { <span class="pl-c1">margin-left</span><span class="pl-kos">:</span> <span class="pl-c1">0</span>; } .<span class="pl-c1">row-fluid</span> .<span class="pl-c1">span12</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">99.99999998999999<span class="pl-smi">%</span></span>; <span class="pl-ent"><span class="pl-c1">*</span></span><span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">99.94680850063828<span class="pl-smi">%</span></span>; } <span class="pl-c">/* … */</span> .<span class="pl-c1">row-fluid</span> .<span class="pl-c1">span1</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">8.3333333333<span class="pl-smi">%</span></span>; <span class="pl-ent"><span class="pl-c1">*</span></span><span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">8.3333333333<span class="pl-smi">%</span></span>; } <span class="pl-c">/* Directly after, it repeats the exact same code */</span> .<span class="pl-c1">row-fluid</span> [<span class="pl-c1">class</span><span class="pl-c1">*=</span><span class="pl-s">"span"</span>] { <span class="pl-c">/* code*/</span> } .<span class="pl-c1">row-fluid</span> [<span class="pl-c1">class</span><span class="pl-c1">*=</span><span class="pl-s">"span"</span>]<span class="pl-kos">:</span><span class="pl-c1">first-child</span> { <span class="pl-c1">margin-left</span><span class="pl-kos">:</span> <span class="pl-c1">0</span>; } .<span class="pl-c1">row-fluid</span> .<span class="pl-c1">span12</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">99.99999998999999<span class="pl-smi">%</span></span>; <span class="pl-ent"><span class="pl-c1">*</span></span><span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">99.94680850063828<span class="pl-smi">%</span></span>; } <span class="pl-c">/* … */</span> .<span class="pl-c1">row-fluid</span> .<span class="pl-c1">span1</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">8.3333333333<span class="pl-smi">%</span></span>; <span class="pl-ent"><span class="pl-c1">*</span></span><span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">8.3333333333<span class="pl-smi">%</span></span>; }</pre></div> <p dir="auto">The duplicates are a part of the core code and not within media-queries. I've tried to fix it, but can't seem to figure out why it's duplicating the rules. BTW, I'm using CodeKit as the compiler, but I wouldn't think that would cause the issue as the grid output is the only thing that duplicates (from I can see).</p> <p dir="auto">Anyway, it's not critical issue, but I thought I would just report the strange behavior. Thanks for all your hard work and great contribution to our community. Cheers!</p>
0
<ul dir="auto"> <li>VSCode Version: 1.0.0</li> <li>OS Version: Mac OS 10.11.4</li> </ul> <h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Create the following <code class="notranslate">package.json</code> file and open it in Code: <code class="notranslate">{ "private": true }</code></li> <li>View the linter warnings (hover over the green squiggles)</li> </ol> <h2 dir="auto">Expected</h2> <p dir="auto">No warnings, because <code class="notranslate">npm install</code> no longer warns about missing names and versions in private packages.</p> <h2 dir="auto">Actual</h2> <p dir="auto">Code produces the following warnings:</p> <ul dir="auto"> <li>Missing property "name"</li> <li>Missing property "version"</li> </ul>
<p dir="auto">When a <code class="notranslate">package.json</code> has <code class="notranslate">private: true</code>, my understanding is that it shouldn't require a <code class="notranslate">name</code> or a <code class="notranslate">version</code>.</p>
1
<p dir="auto">I have two indexes, the first one called <strong>areas</strong> is an index containing of multiple polygons, and second one is an index containing of multiple <strong>points</strong> indicating the document's lat/lon on earth, the index is called <strong>stores</strong>.</p> <p dir="auto">The problem is that I want to attach areas(polygons) that contain the <strong>store's point</strong> (lat/lon) inside of them, to the store's document as an embedded object. So I can easily find that a document on <strong>stores</strong> index has which areas.</p> <p dir="auto">In an <strong>RDBMS</strong> I was able to join this two table and find the needed records, In elasticsearch I can iterate over <strong>areas</strong> index documents one by one and perform a query to find the <strong>stores</strong> that fit in the <strong>area's</strong> polygon, and then perform an update on the <strong>store</strong> document, as the number of <strong>areas</strong> are huge, I have to perform over 50,000 queries on elasticsearch.</p> <p dir="auto">A good solution would be sending a bulk list of areas with the query and tell elasticsearch to aggregate returning results by them the answer would be something like this:</p> <ul dir="auto"> <li>Polygon A : [store1, store2, store3],</li> <li>Polygon B : [store1, store4, store5]</li> </ul> <p dir="auto">I didn't find anyway to implement this and I switched back to RDBMS solution which is not very optimized and fast too, but it is faster in design.</p> <p dir="auto">Is there anyway to implement this with elasticsearch?</p> <p dir="auto">I also planned for writing a plugin which does this functionality if it is not possible currently.</p>
<p dir="auto">Hi !<br> I have the same issue that the one exposed here : <a href="https://github.com/elastic/elasticsearch/issues/12819" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/12819/hovercard">#12819 </a> (before closing due to the lack of feedback asked by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/clintongormley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/clintongormley">@clintongormley</a> to the author <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/apanimesh061/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/apanimesh061">@apanimesh061</a>)</p> <p dir="auto">I discussed it here <a href="http://stackoverflow.com/questions/37205478/how-to-prevent-duplicate-tokens-with-same-start-pos-but-different-end?noredirect=1#comment61964513_37205478" rel="nofollow">on stackoverflow</a> because I thought I made a mistake in my parameters</p> <p dir="auto">When using a shingle token filter after removal of stopwords why don't we have a parameter to completely ignore stopwords ?<br> There would be two huge benefits for me :</p> <ul dir="auto"> <li>Even with "filler_token":"" (or "filler_token":" " then a "trim" token filter) there are duplicated shingles generated, with the same text, "pos" and "start" but only differing by "end" that might tweak the queries scores for the duplicated words as seen <a href="http://i.stack.imgur.com/nboTe.png" rel="nofollow">here :</a></li> <li>If a word is surrounded by stopwords, no shingles would be generated associating it with other words around, several (deleted) stopwords away...</li> </ul> <p dir="auto">I shall add that those duplicated tokens are not removed by a "unique" token filter... and that I don't understand why.</p> <p dir="auto">Here is my analysis (I only kept the "test" analyzer which I used to generate examples but I have a few others ):</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;settings&quot;: { &quot;index&quot;: { &quot;analysis&quot;: { &quot;filter&quot;: { &quot;fr_stop&quot;: { &quot;ignore_case&quot;: &quot;true&quot;, &quot;remove_trailing&quot;: &quot;true&quot;, &quot;type&quot;: &quot;stop&quot;, &quot;stopwords&quot;: &quot;_french_&quot; }, &quot;fr_worddelimiter&quot;: { &quot;type&quot;: &quot;word_delimiter&quot;, &quot;language&quot;: &quot;french&quot; }, &quot;fr_snowball&quot;: { &quot;type&quot;: &quot;snowball&quot;, &quot;language&quot;: &quot;french&quot; }, &quot;custom_nGram&quot;: { &quot;type&quot;: &quot;ngram&quot;, &quot;min_gram&quot;: &quot;3&quot;, &quot;max_gram&quot;: &quot;10&quot; }, &quot;custom_shingles&quot;: { &quot;max_shingle_size&quot;: &quot;4&quot;, &quot;min_shingle_size&quot;: &quot;2&quot;, &quot;token_separator&quot;: &quot; &quot;, &quot;output_unigrams&quot;: &quot;true&quot;, &quot;filler_token&quot;:&quot;&quot;, &quot;type&quot;: &quot;shingle&quot; }, &quot;custom_unique&quot;: { &quot;type&quot;: &quot;unique&quot;, &quot;only_on_same_position&quot;: &quot;true&quot; }, &quot;fr_elision&quot;: { &quot;type&quot;: &quot;elision&quot;, &quot;articles&quot;: [ &quot;l&quot;, &quot;m&quot;, &quot;t&quot;, &quot;qu&quot;, &quot;n&quot;, &quot;s&quot;, &quot;j&quot;, &quot;d&quot;, &quot;c&quot;, &quot;jusqu&quot;, &quot;quoiqu&quot;, &quot;lorsqu&quot;, &quot;puisqu&quot;, &quot;parce qu&quot;, &quot;parcequ&quot;, &quot;entr&quot;, &quot;presqu&quot;, &quot;quelqu&quot; ] } }, &quot;charfilter&quot;: &quot;html_strip&quot;, &quot;analyzer&quot;: { &quot;test&quot;: { &quot;filter&quot;: [ &quot;asciifolding&quot;, &quot;lowercase&quot;, &quot;fr_stop&quot;, &quot;fr_elision&quot;, &quot;custom_shingles&quot; &quot;trim&quot;, &quot;custom_unique&quot;, ], &quot;type&quot;: &quot;custom&quot;, &quot;tokenizer&quot;: &quot;standard&quot; } }, &quot;tokenizer&quot;: { &quot;custom_edgeNGram&quot;: { &quot;token_chars&quot;: [ &quot;letter&quot;, &quot;digit&quot; ], &quot;min_gram&quot;: &quot;3&quot;, &quot;type&quot;: &quot;edgeNGram&quot;, &quot;max_gram&quot;: &quot;20&quot; }, &quot;custom_nGram&quot;: { &quot;token_chars&quot;: [ &quot;letter&quot;, &quot;digit&quot; ], &quot;min_gram&quot;: &quot;3&quot;, &quot;type&quot;: &quot;nGram&quot;, &quot;max_gram&quot;: &quot;20&quot; } } } } }"><pre class="notranslate"><span class="pl-ent">"settings"</span>: { <span class="pl-ent">"index"</span>: { <span class="pl-ent">"analysis"</span>: { <span class="pl-ent">"filter"</span>: { <span class="pl-ent">"fr_stop"</span>: { <span class="pl-ent">"ignore_case"</span>: <span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>, <span class="pl-ent">"remove_trailing"</span>: <span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>, <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>stop<span class="pl-pds">"</span></span>, <span class="pl-ent">"stopwords"</span>: <span class="pl-s"><span class="pl-pds">"</span>_french_<span class="pl-pds">"</span></span> }, <span class="pl-ent">"fr_worddelimiter"</span>: { <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>word_delimiter<span class="pl-pds">"</span></span>, <span class="pl-ent">"language"</span>: <span class="pl-s"><span class="pl-pds">"</span>french<span class="pl-pds">"</span></span> }, <span class="pl-ent">"fr_snowball"</span>: { <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>snowball<span class="pl-pds">"</span></span>, <span class="pl-ent">"language"</span>: <span class="pl-s"><span class="pl-pds">"</span>french<span class="pl-pds">"</span></span> }, <span class="pl-ent">"custom_nGram"</span>: { <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>ngram<span class="pl-pds">"</span></span>, <span class="pl-ent">"min_gram"</span>: <span class="pl-s"><span class="pl-pds">"</span>3<span class="pl-pds">"</span></span>, <span class="pl-ent">"max_gram"</span>: <span class="pl-s"><span class="pl-pds">"</span>10<span class="pl-pds">"</span></span> }, <span class="pl-ent">"custom_shingles"</span>: { <span class="pl-ent">"max_shingle_size"</span>: <span class="pl-s"><span class="pl-pds">"</span>4<span class="pl-pds">"</span></span>, <span class="pl-ent">"min_shingle_size"</span>: <span class="pl-s"><span class="pl-pds">"</span>2<span class="pl-pds">"</span></span>, <span class="pl-ent">"token_separator"</span>: <span class="pl-s"><span class="pl-pds">"</span> <span class="pl-pds">"</span></span>, <span class="pl-ent">"output_unigrams"</span>: <span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>, <span class="pl-ent">"filler_token"</span>:<span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>, <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>shingle<span class="pl-pds">"</span></span> }, <span class="pl-ent">"custom_unique"</span>: { <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>unique<span class="pl-pds">"</span></span>, <span class="pl-ent">"only_on_same_position"</span>: <span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span> }, <span class="pl-ent">"fr_elision"</span>: { <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>elision<span class="pl-pds">"</span></span>, <span class="pl-ent">"articles"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>l<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>m<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>t<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>qu<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>n<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>s<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>j<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>d<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>c<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>jusqu<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>quoiqu<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>lorsqu<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>puisqu<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>parce qu<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>parcequ<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>entr<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>presqu<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>quelqu<span class="pl-pds">"</span></span> ] } }, <span class="pl-ent">"charfilter"</span>: <span class="pl-s"><span class="pl-pds">"</span>html_strip<span class="pl-pds">"</span></span>, <span class="pl-ent">"analyzer"</span>: { <span class="pl-ent">"test"</span>: { <span class="pl-ent">"filter"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>asciifolding<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>lowercase<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>fr_stop<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>fr_elision<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>custom_shingles<span class="pl-pds">"</span></span> <span class="pl-s"><span class="pl-pds">"</span>trim<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>custom_unique<span class="pl-pds">"</span></span>, ], <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>custom<span class="pl-pds">"</span></span>, <span class="pl-ent">"tokenizer"</span>: <span class="pl-s"><span class="pl-pds">"</span>standard<span class="pl-pds">"</span></span> } }, <span class="pl-ent">"tokenizer"</span>: { <span class="pl-ent">"custom_edgeNGram"</span>: { <span class="pl-ent">"token_chars"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>letter<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>digit<span class="pl-pds">"</span></span> ], <span class="pl-ent">"min_gram"</span>: <span class="pl-s"><span class="pl-pds">"</span>3<span class="pl-pds">"</span></span>, <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>edgeNGram<span class="pl-pds">"</span></span>, <span class="pl-ent">"max_gram"</span>: <span class="pl-s"><span class="pl-pds">"</span>20<span class="pl-pds">"</span></span> }, <span class="pl-ent">"custom_nGram"</span>: { <span class="pl-ent">"token_chars"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>letter<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>digit<span class="pl-pds">"</span></span> ], <span class="pl-ent">"min_gram"</span>: <span class="pl-s"><span class="pl-pds">"</span>3<span class="pl-pds">"</span></span>, <span class="pl-ent">"type"</span>: <span class="pl-s"><span class="pl-pds">"</span>nGram<span class="pl-pds">"</span></span>, <span class="pl-ent">"max_gram"</span>: <span class="pl-s"><span class="pl-pds">"</span>20<span class="pl-pds">"</span></span> } } } } }</pre></div>
0
<ul dir="auto"> <li>[ x] I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="The radio button and checkbox should not blink by default. Once selected then they should have there selected animation. Right now as soon as I render the Checkbox &amp; Radio button this is what happens. Kindly have a look at this image"><pre class="notranslate"><code class="notranslate">The radio button and checkbox should not blink by default. Once selected then they should have there selected animation. Right now as soon as I render the Checkbox &amp; Radio button this is what happens. Kindly have a look at this image </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16651811/32547035-b7f42bb4-c4a2-11e7-8f3c-224a3dba5f78.gif"><img src="https://user-images.githubusercontent.com/16651811/32547035-b7f42bb4-c4a2-11e7-8f3c-224a3dba5f78.gif" alt="error" data-animated-image="" style="max-width: 100%;"></a></p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">As you can see in the image above the checkbox and radio button keep on blinking</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">My codebase is as follows</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Material UI Components import Radio, { RadioGroup } from 'material-ui/Radio'; import Checkbox from 'material-ui/Checkbox'; import { FormLabel, FormControl, FormControlLabel } from 'material-ui/Form'; . . . &lt;FormControl component=&quot;fieldset&quot; required&gt; {/* &lt;FormLabel&gt;{name}&lt;/FormLabel&gt; */} &lt;RadioGroup aria-label=&quot;radio-selection&quot; name={name} onChange={this.onHandleChange} value={this.state.selectedValue} &gt; {listOfValues.map((item, index) =&gt; ( &lt;FormControlLabel key={index} value={item} control={&lt;Radio /&gt;} label={item} /&gt; ))} &lt;/RadioGroup&gt; &lt;/FormControl&gt; &lt;FormGroup&gt; {/*&lt;h4 className=&quot;text-capitalize&quot;&gt;{name ? name : 'Checklist'}&lt;/h4&gt;*/} {listOfValues.map((item, i) =&gt; ( &lt;FormControlLabel key={i} control={&lt;Checkbox value={item} /&gt;} onChange={(event, isInputChecked) =&gt; { this.onHandle(isInputChecked, item) }} checked={selectedValues.includes(item)} label={item} /&gt; ))} &lt;/FormGroup&gt;"><pre class="notranslate"><code class="notranslate">// Material UI Components import Radio, { RadioGroup } from 'material-ui/Radio'; import Checkbox from 'material-ui/Checkbox'; import { FormLabel, FormControl, FormControlLabel } from 'material-ui/Form'; . . . &lt;FormControl component="fieldset" required&gt; {/* &lt;FormLabel&gt;{name}&lt;/FormLabel&gt; */} &lt;RadioGroup aria-label="radio-selection" name={name} onChange={this.onHandleChange} value={this.state.selectedValue} &gt; {listOfValues.map((item, index) =&gt; ( &lt;FormControlLabel key={index} value={item} control={&lt;Radio /&gt;} label={item} /&gt; ))} &lt;/RadioGroup&gt; &lt;/FormControl&gt; &lt;FormGroup&gt; {/*&lt;h4 className="text-capitalize"&gt;{name ? name : 'Checklist'}&lt;/h4&gt;*/} {listOfValues.map((item, i) =&gt; ( &lt;FormControlLabel key={i} control={&lt;Checkbox value={item} /&gt;} onChange={(event, isInputChecked) =&gt; { this.onHandle(isInputChecked, item) }} checked={selectedValues.includes(item)} label={item} /&gt; ))} &lt;/FormGroup&gt; </code></pre></div> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>alpha20</td> </tr> <tr> <td>React</td> <td>16</td> </tr> <tr> <td>browser</td> <td>not using</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I'm trying to override the element of Expansion Panel that contains these classes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MuiCollapse-container-44 MuiCollapse-entered-45"><pre class="notranslate"><code class="notranslate">MuiCollapse-container-44 MuiCollapse-entered-45 </code></pre></div> <p dir="auto">I.e. seem to be using the Collapse component?</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">No API to change the part that uses Collapse</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">The components below (that are part of Expansion Panel) all work fine to override CSS with. Collapse is not listed, so I guess this is not a bug - more a missing feature?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;ExpansionPanel /&gt; &lt;ExpansionPanelActions /&gt; &lt;ExpansionPanelDetails /&gt; &lt;ExpansionPanelSummary /&gt;"><pre class="notranslate"><code class="notranslate">&lt;ExpansionPanel /&gt; &lt;ExpansionPanelActions /&gt; &lt;ExpansionPanelDetails /&gt; &lt;ExpansionPanelSummary /&gt; </code></pre></div>
0
<p dir="auto">When adding int <code class="notranslate">1</code> to a numpy {u}int array, usually a type conversion to int64 happens. This is normal. If, however, the type is <code class="notranslate">uint64</code>, the array gets converted to <code class="notranslate">float64</code>. I had not expected that. Perhaps it's correct though. Opinions?</p> <p dir="auto">MWE:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy a = numpy.array(0, dtype=int) print((a + 1).dtype) # int64 a = numpy.array(0, dtype=numpy.uint16) print((a + 1).dtype) # int64 a = numpy.array(0, dtype=numpy.uint32) print((a + 1).dtype) # int64 a = numpy.array(0, dtype=numpy.uint64) print((a + 1).dtype) # float64!"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-en">array</span>(<span class="pl-c1">0</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">int</span>) <span class="pl-en">print</span>((<span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>).<span class="pl-s1">dtype</span>) <span class="pl-c"># int64</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-en">array</span>(<span class="pl-c1">0</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">numpy</span>.<span class="pl-s1">uint16</span>) <span class="pl-en">print</span>((<span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>).<span class="pl-s1">dtype</span>) <span class="pl-c"># int64</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-en">array</span>(<span class="pl-c1">0</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">numpy</span>.<span class="pl-s1">uint32</span>) <span class="pl-en">print</span>((<span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>).<span class="pl-s1">dtype</span>) <span class="pl-c"># int64</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">numpy</span>.<span class="pl-en">array</span>(<span class="pl-c1">0</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">numpy</span>.<span class="pl-s1">uint64</span>) <span class="pl-en">print</span>((<span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>).<span class="pl-s1">dtype</span>) <span class="pl-c"># float64!</span></pre></div>
<p dir="auto">Hi,</p> <p dir="auto">This is my first issue so I apologize if I have gotten something obviously wrong. Essentially, it appears that when using the polyfit function from numpy.polynomial.polynomial, the coefficients are returned with lowest order first; this is the opposite of what happens when the function numpy.polyfit is called. I believe that the documentation for both functions states that the highest order coefficient should be returned first. As an example, I've attached a screenshot of an IPython notebook with a minimal example along with the code. My version of numpy is 1.10.4 and I am on Debian 3.16.0-4.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from numpy.polynomial.polynomial import polyfit import numpy as np print np.version.version print np.polyfit([1,2],[2,4],1) print polyfit([1,2],[2,4],1)"><pre class="notranslate"><code class="notranslate">from numpy.polynomial.polynomial import polyfit import numpy as np print np.version.version print np.polyfit([1,2],[2,4],1) print polyfit([1,2],[2,4],1) </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10506722/14084384/78697264-f4e8-11e5-8bdf-e2188637a7a6.png"><img src="https://cloud.githubusercontent.com/assets/10506722/14084384/78697264-f4e8-11e5-8bdf-e2188637a7a6.png" alt="numpy_polynomial_bug" style="max-width: 100%;"></a></p>
0
<p dir="auto">Hi</p> <p dir="auto">I am having problem using proxy with Scrapy, I have private proxy with HTTPS supported.</p> <p dir="auto">I tried with simplest spider without proxy with the following extensions:<br> EXTENSIONS = {<br> 'scrapy.extensions.telnet.TelnetConsole': None,<br> }<br> SPIDER_MIDDLEWARES = {<br> 'scrapy_splash.SplashDeduplicateArgsMiddleware': 100,<br> }<br> DOWNLOADER_MIDDLEWARES = {<br> 'scrapy_splash.SplashCookiesMiddleware': 723,<br> 'scrapy_splash.SplashMiddleware': 725,<br> 'scrapy.downloadermiddlewares.httpcompression.HttpCompressionMiddleware': 810,<br> }</p> <p dir="auto">It worked fine 200 ok response</p> <p dir="auto">Then I configured the proxy as suggested in the documenation:<br> <a href="https://docs.scrapy.org/en/latest/topics/downloader-middleware.html?highlight=proxy#module-scrapy.downloadermiddlewares.httpproxy" rel="nofollow">https://docs.scrapy.org/en/latest/topics/downloader-middleware.html?highlight=proxy#module-scrapy.downloadermiddlewares.httpproxy</a></p> <ol dir="auto"> <li></li> </ol> <p dir="auto">added this to the middle ware:<br> DOWNLOADER_MIDDLEWARES = {<br> ...<br> 'scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware': 1<br> ...<br> }</p> <ol start="2" dir="auto"> <li>I added the meta key proxy per each request as follows:<br> request = SplashRequest(url='<a href="https://www.example.com" rel="nofollow">https://www.example.com</a>', callback=self.parse, endpoint='execute',<br> args={'wait': 1,<br> 'lua_source': login_script,<br> 'timeout':90,<br> }<br> )<br> request.meta['proxy'] = proxy<br> yield request</li> </ol> <p dir="auto">where proxy = '<a href="https://username:password@proxyip:proxyport" rel="nofollow">https://username:password@proxyip:proxyport</a>'</p> <p dir="auto">I am getting the error below when running scrapy:<br> 2019-07-19 16:11:29 [scrapy.downloadermiddlewares.retry] DEBUG: Retrying &lt;GET <a href="https://www.example.com" rel="nofollow">https://www.example.com</a> via <a href="http://127.0.0.1:8050/execute%3E" rel="nofollow">http://127.0.0.1:8050/execute&gt;</a> (failed 1 times): [&lt;twisted.python.failure.Failure OpenSSL.SSL.Error: [('SSL rout<br> ines', 'ssl3_get_record', 'wrong version number')]&gt;]</p> <p dir="auto">I tried to fix by using the values of DOWNLOADER_CLIENT_TLS_METHOD such as:<br> 'TLSv1.0' 'TLSv1.1' 'TLSv1.2' 'SSLv3'<br> but it didn't change anything same error.</p> <p dir="auto">Thanks</p>
<p dir="auto">I'm unable to scrape https sites through https supported proxies. I've tried with proxymesh as well as other proxy services. I can scrape most of this sites without proxies or using Tor.</p> <p dir="auto">Curl seems to work fine too:<br> <code class="notranslate">curl -x https://xx.xx.xx.xx:xx --proxy-user user:pass -L https://www.base.net:443</code><br> Retrieves the site's html.</p> <p dir="auto"><strong>Setup</strong>:</p> <ul dir="auto"> <li>OS:<br> OS X El Capitan v10.11.3</li> </ul> <p dir="auto"><strong>Scrapy</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="scrapy version -v Scrapy : 1.0.5 lxml : 3.5.0.0 libxml2 : 2.9.2 Twisted : 15.5.0 Python : 2.7.11 (default, Dec 7 2015, 23:36:10) - [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] pyOpenSSL : 0.15.1 (OpenSSL 1.0.2g 1 Mar 2016) Platform : Darwin-15.3.0-x86_64-i386-64bit"><pre class="notranslate"><code class="notranslate">scrapy version -v Scrapy : 1.0.5 lxml : 3.5.0.0 libxml2 : 2.9.2 Twisted : 15.5.0 Python : 2.7.11 (default, Dec 7 2015, 23:36:10) - [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] pyOpenSSL : 0.15.1 (OpenSSL 1.0.2g 1 Mar 2016) Platform : Darwin-15.3.0-x86_64-i386-64bit </code></pre></div> <p dir="auto"><strong>Solutions tried</strong>:<br> 1 - Installing Scrapy-1.1.0rc3<br> <code class="notranslate">2016-03-09 12:44:59 [scrapy] ERROR: Error downloading &lt;GET https://www.base.net/&gt;: [&lt;twisted.python.failure.Failure OpenSSL.SSL.Error: [('SSL routines', 'SSL23_GET_SERVER_HELLO', 'unknown protocol')]&gt;]</code><br> Other website:<br> <code class="notranslate">2016-03-09 12:56:45 [scrapy] DEBUG: Retrying &lt;GET https://es.alojadogatopreto.com/es-es/&gt; (failed 1 times): [&lt;twisted.python.failure.Failure OpenSSL.SSL.Error: [('SSL routines', 'ssl23_read', 'ssl handshake failure')]&gt;]</code></p> <p dir="auto">2 - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="131659833" data-permission-text="Title is private" data-url="https://github.com/scrapy/scrapy/issues/1764" data-hovercard-type="issue" data-hovercard-url="/scrapy/scrapy/issues/1764/hovercard?comment_id=181950638&amp;comment_type=issue_comment" href="https://github.com/scrapy/scrapy/issues/1764#issuecomment-181950638">#1764 (comment)</a><br> Using SSLv23_METHOD<br> <code class="notranslate">2016-03-09 12:22:40 [scrapy] ERROR: Error downloading &lt;GET https://www.base.net/&gt;: [&lt;twisted.python.failure.Failure OpenSSL.SSL.Error: [('SSL routines', 'SSL23_GET_SERVER_HELLO', 'unknown protocol')]&gt;]</code><br> Using other SSL methods<br> <code class="notranslate">2016-03-09 12:24:11 [scrapy] ERROR: Error downloading &lt;GET https://www.base.net/&gt;: [&lt;twisted.python.failure.Failure OpenSSL.SSL.Error: [('SSL routines', 'SSL3_GET_RECORD', 'wrong version number')]&gt;]</code></p> <p dir="auto">3 - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="75785040" data-permission-text="Title is private" data-url="https://github.com/scrapy/scrapy/issues/1227" data-hovercard-type="issue" data-hovercard-url="/scrapy/scrapy/issues/1227/hovercard?comment_id=154890557&amp;comment_type=issue_comment" href="https://github.com/scrapy/scrapy/issues/1227#issuecomment-154890557">#1227 (comment)</a> | Get same errors as in 1 &amp; 2.<br> 4 - <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="100553508" data-permission-text="Title is private" data-url="https://github.com/scrapy/scrapy/issues/1429" data-hovercard-type="issue" data-hovercard-url="/scrapy/scrapy/issues/1429/hovercard?comment_id=131187012&amp;comment_type=issue_comment" href="https://github.com/scrapy/scrapy/issues/1429#issuecomment-131187012">#1429 (comment)</a> | Get same errors as in 1 &amp; 2.</p>
1
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>yes</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>yes</td> </tr> <tr> <td>Symfony version</td> <td>3.3.15</td> </tr> </tbody> </table> <p dir="auto">Hello, this is a feature request, not a bug report (I guess). To dynamically load form contents, like a select list for an entity or choice type, we have the posibility to use form events and there are some tutorials to do so. When this load involves multiple levels and the events are fired in cascade, this events mechanism, is, to say the less, not developer friendly, I've seen some tutorials but always find them difficult to adapt to my own needs.</p> <p dir="auto">The method I actually would prefer is handling events with pure Ajax, calling controller methods from javascript that return a JSON with dynamic new values, but here is the problem: if I load a select field (choice or entity) with options that where not present when the form was created I receive some errors:</p> <blockquote> <p dir="auto">ConstraintViolation<br> TransformationFailedException: message: "Unable to reverse value for property path "XXX": The choice "40" does not exist or is not unique"<br> TransformationFailedException: message: "The choice "40" does not exist or is not unique"</p> </blockquote> <p dir="auto">So my request is to allow developers to choose a server based mechanism, like form events, or an ajax based method, allowing new values for choice and entity fields. Maybe what I'm asking crashes completely with the Symfony way of doing things :-P but I don't think I'm the only one who finds cascade form events not developer friendly.</p> <p dir="auto">Thank you</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>yes</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>yes</td> </tr> <tr> <td>Symfony version</td> <td>3.3</td> </tr> </tbody> </table> <p dir="auto">I'm sure that the Security component is great ... but most Symfony newcomers think that it's an abhorrent monstrosity. Could we please discuss about solutions to reduce its perceived complexity?</p> <h2 dir="auto">Problem 1 - Low level calls</h2> <p dir="auto">I think this is the worst problem for newcomers. Symfony forces you to make "low level" calls for all its operations.</p> <p dir="auto"><strong>Example:</strong> getting the current user (<em>what's a token storage?</em>)</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$user = $this-&gt;get('security.token_storage')-&gt;getToken()-&gt;getUser();"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>user</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.token_storage'</span>)-&gt;<span class="pl-en">getToken</span>()-&gt;<span class="pl-en">getUser</span>();</pre></div> <p dir="auto">instead of:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$user = $this-&gt;get('security')-&gt;getUser(); // add this method too in case you need the token // $user = $this-&gt;get('security')-&gt;getToken();"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>user</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security'</span>)-&gt;<span class="pl-en">getUser</span>(); <span class="pl-c">// add this method too in case you need the token</span> <span class="pl-c">// $user = $this-&gt;get('security')-&gt;getToken();</span></pre></div> <p dir="auto"><strong>Example:</strong> checking permissions (<em>who's the authorization checker?</em>)</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$this-&gt;get('security.authorization_checker')-&gt;isGranted('ROLE_ADMIN'); // $this-&gt;get('security.authorization_checker')-&gt;isGranted('ROLE_ADMIN', $subject);"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(<span class="pl-s">'ROLE_ADMIN'</span>); <span class="pl-c">// $this-&gt;get('security.authorization_checker')-&gt;isGranted('ROLE_ADMIN', $subject);</span></pre></div> <p dir="auto">instead of:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$this-&gt;get('security')-&gt;isGranted('ROLE_ADMIN'); // $this-&gt;get('security')-&gt;isGranted('ROLE_ADMIN', $subject);"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security'</span>)-&gt;<span class="pl-en">isGranted</span>(<span class="pl-s">'ROLE_ADMIN'</span>); <span class="pl-c">// $this-&gt;get('security')-&gt;isGranted('ROLE_ADMIN', $subject);</span></pre></div> <h2 dir="auto">Problem 2 - Unintuitive behavior</h2> <p dir="auto"><strong>Example:</strong> defining a role hierarchy simplifies the assignment of roles for users, but complicates the code a lot. You need to deal with the <code class="notranslate">getReachableRoles()</code> method, etc.</p> <p dir="auto"><strong>Example:</strong> the management of the user types is so confusing. Checking if a user is anonymous is usually done like this:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$this-&gt;get('security.authorization_checker')-&gt;isGranted('IS_AUTHENTICATED_ANONYMOUSLY');"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.authorization_checker'</span>)-&gt;<span class="pl-en">isGranted</span>(<span class="pl-s">'IS_AUTHENTICATED_ANONYMOUSLY'</span>);</pre></div> <p dir="auto">First, it's incredibly verbose. Second, it returns <code class="notranslate">true</code> also when the user is NOT strictly anonymous (for example when the user is logged in).</p> <p dir="auto">Why not add something like this that returns <code class="notranslate">true</code> ONLY when the user is really anonymous (not logged in, not remembered, etc.):</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$this-&gt;get('security')-&gt;isAnonymous();"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security'</span>)-&gt;<span class="pl-en">isAnonymous</span>();</pre></div> <p dir="auto">The anonymous handling in general is very confusing. For example, having to add the <code class="notranslate">anonymous</code> option to firewalls is always a big "WTF?" in workshops for Symfony newcomers.</p> <h2 dir="auto">Problem 3 - Common tasks verbosity</h2> <p dir="auto">Example: encoding a password for the currently logged user</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$user = $this-&gt;get('security.token_storage')-&gt;getToken()-&gt;getUser(); $password = $this-&gt;get('security.password_encoder')-&gt;encodePassword($user, 'foobar');"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>user</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.token_storage'</span>)-&gt;<span class="pl-en">getToken</span>()-&gt;<span class="pl-en">getUser</span>(); <span class="pl-s1"><span class="pl-c1">$</span>password</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.password_encoder'</span>)-&gt;<span class="pl-en">encodePassword</span>(<span class="pl-s1"><span class="pl-c1">$</span>user</span>, <span class="pl-s">'foobar'</span>);</pre></div> <p dir="auto">Instead of:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$password = $this-&gt;get('security')-&gt;encodePassword('foobar'); // in case you want to encode it for other user: // $password = $this-&gt;get('security')-&gt;encodePassword('foobar', UserInterface $user);"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>password</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security'</span>)-&gt;<span class="pl-en">encodePassword</span>(<span class="pl-s">'foobar'</span>); <span class="pl-c">// in case you want to encode it for other user:</span> <span class="pl-c">// $password = $this-&gt;get('security')-&gt;encodePassword('foobar', UserInterface $user);</span></pre></div> <p dir="auto"><strong>Example:</strong> login a user.</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$user = ... // why does the token need the roles as the 4th arg if I pass the entire user as the 1st arg? $token = new UsernamePasswordToken($user, $user-&gt;getPassword(), 'main', $user-&gt;getRoles()); $token-&gt;setAuthenticated(true); $this-&gt;get('security.token_storage')-&gt;setToken($token); $this-&gt;get('session')-&gt;set('_security_main', serialize($token)); $this-&gt;get('session')-&gt;save();"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>user</span> = <span class="pl-c1">.</span>.<span class="pl-c1">.</span> <span class="pl-c">// why does the token need the roles as the 4th arg if I pass the entire user as the 1st arg?</span> <span class="pl-c"></span><span class="pl-s1"><span class="pl-c1">$</span>token</span> = <span class="pl-k">new</span> <span class="pl-v">UsernamePasswordToken</span>(<span class="pl-s1"><span class="pl-c1">$</span>user</span>, <span class="pl-s1"><span class="pl-c1">$</span>user</span>-&gt;<span class="pl-en">getPassword</span>(), <span class="pl-s">'main'</span>, <span class="pl-s1"><span class="pl-c1">$</span>user</span>-&gt;<span class="pl-en">getRoles</span>()); <span class="pl-s1"><span class="pl-c1">$</span>token</span>-&gt;<span class="pl-en">setAuthenticated</span>(<span class="pl-c1">true</span>); <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security.token_storage'</span>)-&gt;<span class="pl-en">setToken</span>(<span class="pl-s1"><span class="pl-c1">$</span>token</span>); <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'session'</span>)-&gt;<span class="pl-en">set</span>(<span class="pl-s">'_security_main'</span>, serialize(<span class="pl-s1"><span class="pl-c1">$</span>token</span>)); <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'session'</span>)-&gt;<span class="pl-en">save</span>();</pre></div> <p dir="auto">instead of:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$user = ... $this-&gt;get('security')-&gt;login($user); // support this also: $this-&gt;get('security')-&gt;login($user, $providerKey);"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>user</span> = <span class="pl-c1">.</span>.<span class="pl-c1">.</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'security'</span>)-&gt;<span class="pl-en">login</span>(<span class="pl-s1"><span class="pl-c1">$</span>user</span>); <span class="pl-c">// support this also: $this-&gt;get('security')-&gt;login($user, $providerKey);</span></pre></div> <h2 dir="auto">Problem 4 - Roles, attributes</h2> <ul dir="auto"> <li>The concept of <em>"security attributes"</em> is hard to understand for a lot of newcomers. If they were called <em>"security permissions"</em>, anyone could understand them even without an explanation.</li> <li>Having roles separated from attributes is always confusing. Are roles attributes? Are a special type of attributes? Are something different but related? Is <code class="notranslate">IS_AUTHENTICATED_ANONYMOUSLY</code> a role or not?</li> </ul> <p dir="auto">We could make everything "security permissions" and forget about roles.</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Before: @Security(&quot;has_role('ROLE_ADMIN')&quot;) @Security(&quot;is_granted('EDIT_PRODUCT')&quot;) // After: @Security(&quot;is_granted('ROLE_ADMIN')&quot;) @Security(&quot;is_granted('EDIT_PRODUCT')&quot;) // Alternative @Security(&quot;is_granted('ROLE_ADMIN') and is_granted('EDIT_PRODUCT')&quot;)"><pre class="notranslate"><span class="pl-c">// Before:</span> @<span class="pl-v">Security</span>("<span class="pl-s">has_role('ROLE_ADMIN')</span>") @<span class="pl-v">Security</span>("<span class="pl-s">is_granted('EDIT_PRODUCT')</span>") <span class="pl-c">// After:</span> @<span class="pl-v">Security</span>("<span class="pl-s">is_granted('ROLE_ADMIN')</span>") @<span class="pl-v">Security</span>("<span class="pl-s">is_granted('EDIT_PRODUCT')</span>") <span class="pl-c">// Alternative</span> @<span class="pl-v">Security</span>("<span class="pl-s">is_granted('ROLE_ADMIN') and is_granted('EDIT_PRODUCT')</span>")</pre></div> <p dir="auto">Maintaining the <code class="notranslate">ROLE_</code> prefix would be a good idea for most apps, but if they were permissions, people could remove it if needed. Example: "does the user have the <code class="notranslate">ADMIN</code> permission?" instead of "does the user has the <code class="notranslate">ROLE_ADMIN</code> role?".</p> <h2 dir="auto">Final remarks</h2> <p dir="auto">I'm not proposing to remove the low level security calls. I'm not asking to hide Security features. I'm not asking to remove developer's control of Security component. I'm just asking to:</p> <ul dir="auto"> <li>Make people <strong>work less</strong> and <strong>learn less things</strong> to make the common security tasks.</li> <li>Allow people to go deep into low level functions if they need to (exactly the same as today).</li> </ul> <h2 dir="auto">References</h2> <p dir="auto">A while ago I published a proof-of-concept bundle with some of these ideas: <a href="https://github.com/EasyCorp/easy-security-bundle">EasySecurityBundle</a>. Don't use it in real applications! I don't know if it's safe and it's not optimized for performance. It was just a proof of concept to see if this idea is doable.</p>
0
<p dir="auto">I'm attempting to create windows nightlies, inspired by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ihnorton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ihnorton">@ihnorton</a>'s recent windows builds, and I'm running into the following error during the second bootstrap phase with both 32 and 64-bit builds:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... meta.jl i18n.jl help.jl sparse.jl sparse/abstractsparse.jl matrixmarket.jl linalg.jl broadcast.jl fftw.jl dsp.jl rounding.jl gmp.jl mpfr.jl constants.jl quadgk.jl deprecated.jl git.jl pkg.jl graphics.jl profile.jl err:dbghelp_stabs:stabs_parse Unknown stab type 0x0a abnormal program termination *** This error is usually fixed by running 'make clean'. If the error persists, try 'make cleanall'. *** make[1]: *** [/home/sabae/tmp/julia-packaging/win32/julia-master/usr/bin/sys.ji] Error 1 make: *** [release] Error 2"><pre class="notranslate"><code class="notranslate">... meta.jl i18n.jl help.jl sparse.jl sparse/abstractsparse.jl matrixmarket.jl linalg.jl broadcast.jl fftw.jl dsp.jl rounding.jl gmp.jl mpfr.jl constants.jl quadgk.jl deprecated.jl git.jl pkg.jl graphics.jl profile.jl err:dbghelp_stabs:stabs_parse Unknown stab type 0x0a abnormal program termination *** This error is usually fixed by running 'make clean'. If the error persists, try 'make cleanall'. *** make[1]: *** [/home/sabae/tmp/julia-packaging/win32/julia-master/usr/bin/sys.ji] Error 1 make: *** [release] Error 2 </code></pre></div> <p dir="auto">This is being done on a headless, 64-bit ubuntu 13.04 machine. I should point out that because of the headless part, when I run the <code class="notranslate">make</code> process, I get some warnings about not being able to open up an X window, so perhaps there is some kind of configuration I need to do?</p>
<p dir="auto">This used to work on Julia 0.6.2, but on master <code class="notranslate">Missing</code> is lost:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; f(::Type{T}) where {T&lt;:Union{Integer, Missing}} = T f (generic function with 1 method) julia&gt; f(Union{Missing, Int}) Int64"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-en">f</span>(<span class="pl-k">::</span><span class="pl-c1">Type{T}</span>) <span class="pl-k">where</span> {T<span class="pl-k">&lt;:</span><span class="pl-c1">Union{Integer, Missing}</span>} <span class="pl-k">=</span> T f (generic <span class="pl-k">function</span> with <span class="pl-c1">1</span> method) julia<span class="pl-k">&gt;</span> <span class="pl-c1">f</span>(Union{Missing, Int}) Int64</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: Windows 10 Insider Preview Build 20152.1000 PowerToys version: v0.18.2"><pre class="notranslate"><code class="notranslate">Windows build number: Windows 10 Insider Preview Build 20152.1000 PowerToys version: v0.18.2 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Opened the PowerToys app and two Window appeared with different designs.</p> <h1 dir="auto">Screenshot</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/47639147/86328790-1947a300-bc67-11ea-92ff-d6c4a2e55bd5.png"><img src="https://user-images.githubusercontent.com/47639147/86328790-1947a300-bc67-11ea-92ff-d6c4a2e55bd5.png" alt="Annotation 2020-07-02 131757" 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: 2004 (Microsoft Windows [Version 10.0.19041.329]) PowerToys version: 0.18.2 PowerToy module for which you are reporting the bug (if applicable): RUN"><pre class="notranslate"><code class="notranslate">Windows build number: 2004 (Microsoft Windows [Version 10.0.19041.329]) PowerToys version: 0.18.2 PowerToy module for which you are reporting the bug (if applicable): RUN </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Have Windows 10 v 2004.</li> <li>Look in Settings...Run.</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Run no longer configurable because it thinks I have an old version of Windows.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">"This feature requires Windows 10 version 1903 or higher"</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=guitarking117" rel="nofollow">Nick Williams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7619?redirect=false" rel="nofollow">SPR-7619</a></strong> and commented</p> <p dir="auto">MappingJacksonJsonView is a very simple implementation of a JSON-rendering view. There are many cases where one might need to extend MappingJacksonJsonView to accomplish more complicated tasks. It would be nice if the "objectMapper," "encoding," "prefixJson" and "renderedAttributes" fields could be made protected instead of private to make extending MappingJacksonJsonView a little easier.</p> <p dir="auto">Thanks!</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.1</p> <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/f57bc1aaaafa0ccb94cfef57e34cf8aa099ade6f/hovercard" href="https://github.com/spring-projects/spring-framework/commit/f57bc1aaaafa0ccb94cfef57e34cf8aa099ade6f"><tt>f57bc1a</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=astefan" rel="nofollow">Andrei Stefan</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3556?redirect=false" rel="nofollow">SPR-3556</a></strong> and commented</p> <p dir="auto">I made two tests:</p> <ul dir="auto"> <li>one with AspectJ support;</li> <li>one with Spring's AspectJ support.</li> </ul> <p dir="auto">The tests involve two interfaces: Base&lt;T&gt; and DerivedInterface&lt;T&gt; extends Base&lt;T&gt;.<br> A Before pointcut matching all methods from Base and DerivedInterface is defined: <code class="notranslate">@Before</code>("execution(* example.Base+.*(..))")<br> In AspectJ a test creating an instance of a class implementing DerivedInterface: DerivedInterface&lt;String&gt; obj = new DerivedString(); and then calling methods on both interfaces demonstrates advice being applied on both methods.<br> The same test in Spring getting a bean instance from ApplicationContext like DerivedInterface&lt;String&gt; bean = (DerivedInterface&lt;String&gt;) context.getBean("myBean"); and calling methods on both interfaces, the advice is not applied to methods receiving as parameter the generic type &lt;T&gt;.</p> <p dir="auto">Methods like method(&lt;T&gt;) don't get the advice applied, but method2() have the advice applied.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.5, 2.1 M3</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/12641/SpringAspectJ.zip" rel="nofollow">SpringAspectJ.zip</a> (<em>1.86 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="398079012" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8309" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8309/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8309">#8309</a> Spring AOP <code class="notranslate">@Aspect</code> pointcut ignores generic type params and matches to many join points (<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="398080881" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8559" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8559/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8559">#8559</a> AspectJ pointcut expressions fail to match generically parameterized methods (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
0
<h4 dir="auto">Describe the bug</h4> <p dir="auto"><code class="notranslate">AxiosHeaders</code>, <code class="notranslate">AxiosError</code>, <code class="notranslate">CanceledError</code> and <code class="notranslate">Axios</code> are "exported" in the type definitions <code class="notranslate">index.d.ts</code>, but not exported in the module.</p> <h4 dir="auto">To Reproduce</h4> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { AxiosHeaders } = require('axios'); // Allowed by Typescript const headers = new AxiosHeaders({ 'name': 'value' }); // &lt;-- throws Error as AxiosHeaders is not actually exported"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> AxiosHeaders <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'axios'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Allowed by Typescript</span> <span class="pl-k">const</span> <span class="pl-s1">headers</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">AxiosHeaders</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-s">'name'</span>: <span class="pl-s">'value'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// &lt;-- throws Error as AxiosHeaders is not actually exported</span></pre></div> <h4 dir="auto">Expected behavior</h4> <p dir="auto"><del>Types are not exported, but only declared (<code class="notranslate">declare class</code> instead of <code class="notranslate">export class</code>).</del></p> <p dir="auto">Classes are exported and can be imported and used like so:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { AxiosError, AxiosHeaders, Axios, CanceledError } from 'axios'; new AxiosError(); new AxiosHeaders(); new Axios(); new CanceledError();"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">AxiosError</span><span class="pl-kos">,</span> <span class="pl-smi">AxiosHeaders</span><span class="pl-kos">,</span> <span class="pl-smi">Axios</span><span class="pl-kos">,</span> <span class="pl-smi">CanceledError</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'axios'</span><span class="pl-kos">;</span> <span class="pl-k">new</span> <span class="pl-smi">AxiosError</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">new</span> <span class="pl-smi">AxiosHeaders</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">new</span> <span class="pl-smi">Axios</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">new</span> <span class="pl-smi">CanceledError</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h4 dir="auto">Environment</h4> <ul dir="auto"> <li>Axios Version 1.1.0</li> <li>Node.js Version 16.15.1</li> <li>OS: OSX 12.5</li> <li>Typescript 4.6.3 (any version)</li> <li>React 17</li> </ul> <h4 dir="auto">Additional context/Screenshots</h4> <p dir="auto">none</p>
<p dir="auto">Hello,</p> <p dir="auto">When I tried to update the axios to version 1.0.0, I get this error. It works fine with 0.27.2</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/114129264/193981607-38a19d0f-0780-411e-b48a-a4ff28fa4e21.png"><img src="https://user-images.githubusercontent.com/114129264/193981607-38a19d0f-0780-411e-b48a-a4ff28fa4e21.png" alt="Untitled" style="max-width: 100%;"></a></p> <p dir="auto">In the bootstrap.js, I used it with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="window.axios = require('axios'); window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';"><pre class="notranslate"><code class="notranslate">window.axios = require('axios'); window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; </code></pre></div> <p dir="auto">Please advise. Thank you.</p>
1
<p dir="auto">error:<br> Traceback (most recent call last):<br> File "D:\Python Program\Pworkspace\test.py", line 34, in <br> pd.read_csv(path)<br> File "C:\Users\wuqing\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\parsers.py", line 655, in parser_f<br> return _read(filepath_or_buffer, kwds)<br> File "C:\Users\wuqing\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\parsers.py", line 405, in _read<br> parser = TextFileReader(filepath_or_buffer, **kwds)<br> File "C:\Users\wuqing\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\parsers.py", line 764, in <strong>init</strong><br> self._make_engine(self.engine)<br> File "C:\Users\wuqing\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\parsers.py", line 985, in _make_engine<br> self._engine = CParserWrapper(self.f, **self.options)<br> File "C:\Users\wuqing\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\parsers.py", line 1605, in <strong>init</strong><br> self._reader = parsers.TextReader(src, **kwds)<br> File "pandas_libs\parsers.pyx", line 394, in pandas._libs.parsers.TextReader.<strong>cinit</strong> (pandas_libs\parsers.c:4209)<br> File "pandas_libs\parsers.pyx", line 712, in pandas._libs.parsers.TextReader._setup_parser_source (pandas_libs\parsers.c:8895)<br> OSError: Initializing from file failed</p> <p dir="auto">code:<br> temp = pd.read_csv('测试.csv')</p> <p dir="auto">the following code works:<br> temp = pd.read_csv('tmp.csv')</p> <p dir="auto">the following also works:<br> temp = pd.read_csv('测试.csv', engine='python')</p> <p dir="auto">如果文件名中有中文,并且不加engine时用的是engine='c',这时则会报出如下错误:OSError: Initializing from file failed</p> <p dir="auto">我看以前有类似问题出现,但是新版本仍然有这个bug,希望能帮忙解决</p>
<p dir="auto">This is to discuss pushing the <code class="notranslate">Categorical.categories</code> and<br> <code class="notranslate">Categorical.ordered</code> information into the extension type <code class="notranslate">CategoricalDtype</code>.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pd.CategoricalDtype(categories, ordered=False)"><pre class="notranslate"><span class="pl-s1">pd</span>.<span class="pl-v">CategoricalDtype</span>(<span class="pl-s1">categories</span>, <span class="pl-s1">ordered</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)</pre></div> <p dir="auto">Note that there is no <code class="notranslate">values</code> argument. This is a type constructor, that<br> isn't attached to any specific <code class="notranslate">Categorical</code> instance.</p> <h2 dir="auto">Why?</h2> <p dir="auto">Several times now (<code class="notranslate">read_csv(..., dtype=...)</code>, <code class="notranslate">.astype(...)</code>, <code class="notranslate">Series([], dtype=...)</code>)<br> we have places where we accept <code class="notranslate">dtype='category'</code> which takes the values<br> in the method (the series, or column from the CSV, etc.)<br> and hands it off to the <em>value</em> constructor, with no control over the<br> <code class="notranslate">categories</code> and <code class="notranslate">ordered</code> arguments.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Categorical(values, categories=None, ordered=False)"><pre class="notranslate"><span class="pl-v">Categorical</span>(<span class="pl-s1">values</span>, <span class="pl-s1">categories</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">ordered</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)</pre></div> <p dir="auto">The proposal here would add the <code class="notranslate">categories</code> and <code class="notranslate">ordered</code><br> attributes / arguments to <code class="notranslate">CategoricalDtype</code> and provide a common API<br> for specifying non-default parameters for the <code class="notranslate">Categorical</code> constructor<br> in methods like <code class="notranslate">read_csv</code>, <code class="notranslate">astype</code>, etc.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="t = pd.CategoricalDtype(['low', 'med', 'high'], ordered=True) pd.read_csv('foo.csv', dtype={'A': int, 'B': t) pd.Series(['high', 'low', 'high'], dtype=t) s = pd.Series(['high', 'low', 'high']) s.astype(t)"><pre class="notranslate"><span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">CategoricalDtype</span>([<span class="pl-s">'low'</span>, <span class="pl-s">'med'</span>, <span class="pl-s">'high'</span>], <span class="pl-s1">ordered</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">'foo.csv'</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span>{<span class="pl-s">'A'</span>: <span class="pl-s1">int</span>, <span class="pl-s">'B'</span>: <span class="pl-s1">t</span>) <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-s">'high'</span>, <span class="pl-s">'low'</span>, <span class="pl-s">'high'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">t</span>) <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-s">'high'</span>, <span class="pl-s">'low'</span>, <span class="pl-s">'high'</span>]) <span class="pl-s1">s</span>.<span class="pl-en">astype</span>(<span class="pl-s1">t</span>)</pre></div> <p dir="auto">We would continue to accept <code class="notranslate">dtype='category'</code>.</p> <p dir="auto">This becomes even more import when doing operations on larger than memory datasets with something like <code class="notranslate">dask</code> or even (<code class="notranslate">read_csv(..., chunksize=N)</code>). Right now you don't have an easy way to specify the <code class="notranslate">categories</code> or <code class="notranslate">ordered</code> for columns (assuming you know them ahead of time).</p> <h2 dir="auto">Issues</h2> <ol dir="auto"> <li><code class="notranslate">CategoricalDtype</code> currently isn't part of the public API. Which methods<br> on it do we make public?</li> <li>Equality semantics: For backwards compat, I think all instances<br> of <code class="notranslate">CategoricalDtype</code> should compare equal with all others. You can use<br> identity to check if two types are the same</li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="t1 = pd.CategoricalDtype(['a', 'b'], ordered=True) t2 = pd.CategoricalDtype(['a', 'b'], ordered=False) t1 == t2 # True t1 is t2 # False t1 is t1 # True"><pre class="notranslate"><span class="pl-s1">t1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">CategoricalDtype</span>([<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>], <span class="pl-s1">ordered</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">CategoricalDtype</span>([<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>], <span class="pl-s1">ordered</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">t1</span> <span class="pl-c1">==</span> <span class="pl-s1">t2</span> <span class="pl-c"># True</span> <span class="pl-s1">t1</span> <span class="pl-c1">is</span> <span class="pl-s1">t2</span> <span class="pl-c"># False</span> <span class="pl-s1">t1</span> <span class="pl-c1">is</span> <span class="pl-s1">t1</span> <span class="pl-c"># True</span></pre></div> <ol start="3" dir="auto"> <li>Should the <code class="notranslate">categories</code> argument be required? Currently <code class="notranslate">dtype='category'</code><br> says 1.) infer the categories based on the <em>values</em>, and 2.) it's unordered.<br> Would <code class="notranslate">CategoricalDtype(None, ordered=False)</code> be allowed?</li> <li>Strictness? If I say</li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pd.Series(['a', 'b', 'c'], dtype=pd.CategoricalDtype(['a', 'b']))"><pre class="notranslate"><span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s">'c'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">CategoricalDtype</span>([<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>]))</pre></div> <p dir="auto">What happens? I would probably expect a <code class="notranslate">TypeError</code> or <code class="notranslate">ValueError</code> as <code class="notranslate">c</code><br> isn't "supposed" to be there. Or do we replace <code class="notranslate">'c'</code> with <code class="notranslate">NA</code>? Should<br> <code class="notranslate">strict</code> be another parameter to <code class="notranslate">CategoricalDtype</code> (I don't think so).</p> <p dir="auto">I'm willing to work on this over the next couple weeks.</p> <p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="190053261" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14676" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14676/hovercard" href="https://github.com/pandas-dev/pandas/issues/14676">#14676</a> (astype)<br> xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="185449278" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14503" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14503/hovercard" href="https://github.com/pandas-dev/pandas/issues/14503">#14503</a> (read_csv)</p>
0
<h2 dir="auto">Describe the bug</h2> <p dir="auto"><code class="notranslate">yarn dev</code> works fine, but <code class="notranslate">yarn build &amp;&amp; yarn start</code> errors out</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>clone repo, <code class="notranslate">cd examples/with-styletron</code>, <code class="notranslate">yarn install</code></li> <li><code class="notranslate">yarn build</code></li> <li><code class="notranslate">yarn start</code></li> <li>Load <a href="http://localhost:3000" rel="nofollow">http://localhost:3000</a></li> <li>See error in shell:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; Ready on http://localhost:3000 TypeError: Cannot read property 'renderStyle' of undefined at driver (/Users/s/workspace/next.js/examples/with-styletron/node_modules/styletron-standard/dist/index.js:16:20) at Object.StyledElement.React.createElement [as children] (/Users/s/workspace/next.js/examples/with-styletron/node_modules/styletron-react/dist/index.js:284:32) at a.render (/Users/s/workspace/next.js/examples/with-styletron/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:44:64) at a.read (/Users/s/workspace/next.js/examples/with-styletron/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:41:58) at renderToString (/Users/s/workspace/next.js/examples/with-styletron/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:53:83) at render (/Users/s/workspace/next.js/examples/with-styletron/node_modules/next-server/dist/server/render.js:86:16) at renderPage (/Users/s/workspace/next.js/examples/with-styletron/node_modules/next-server/dist/server/render.js:211:20) at Function.getInitialProps (/Users/s/workspace/next.js/examples/with-styletron/.next/server/static/RUt_NNFZYVNClDESx18vF/pages/_document.js:398:18) at Object.loadGetInitialProps (/Users/s/workspace/next.js/examples/with-styletron/node_modules/next-server/dist/lib/utils.js:42:35) at Object.renderToHTML (/Users/s/workspace/next.js/examples/with-styletron/node_modules/next-server/dist/server/render.js:218:36)"><pre class="notranslate"><code class="notranslate">&gt; Ready on http://localhost:3000 TypeError: Cannot read property 'renderStyle' of undefined at driver (/Users/s/workspace/next.js/examples/with-styletron/node_modules/styletron-standard/dist/index.js:16:20) at Object.StyledElement.React.createElement [as children] (/Users/s/workspace/next.js/examples/with-styletron/node_modules/styletron-react/dist/index.js:284:32) at a.render (/Users/s/workspace/next.js/examples/with-styletron/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:44:64) at a.read (/Users/s/workspace/next.js/examples/with-styletron/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:41:58) at renderToString (/Users/s/workspace/next.js/examples/with-styletron/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:53:83) at render (/Users/s/workspace/next.js/examples/with-styletron/node_modules/next-server/dist/server/render.js:86:16) at renderPage (/Users/s/workspace/next.js/examples/with-styletron/node_modules/next-server/dist/server/render.js:211:20) at Function.getInitialProps (/Users/s/workspace/next.js/examples/with-styletron/.next/server/static/RUt_NNFZYVNClDESx18vF/pages/_document.js:398:18) at Object.loadGetInitialProps (/Users/s/workspace/next.js/examples/with-styletron/node_modules/next-server/dist/lib/utils.js:42:35) at Object.renderToHTML (/Users/s/workspace/next.js/examples/with-styletron/node_modules/next-server/dist/server/render.js:218:36) </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Page should render properly</p> <h2 dir="auto">Screenshots</h2> <p dir="auto">If applicable, add screenshots to help explain your problem.</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macOS</li> <li>Browser (if applies) [e.g. chrome, safari]</li> <li>Version of Next.js: <code class="notranslate">latest</code></li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Add any other context about the problem here.</p>
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">In Next.js 8.1.0 React Context.Consumer receives value of undefined</p> <p dir="auto">Only on server side</p> <p dir="auto">UPDATE: Only in production, not in <code class="notranslate">npm run dev</code></p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Reproduce repository - <a href="https://github.com/zpnester/next-consumer-issue">link</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const MyContext = React.createContext(); function Home() { return &lt;MyContext.Provider value={{ x: &quot;123&quot; }}&gt; &lt;MyContext.Consumer&gt; {value =&gt; value.x} &lt;/MyContext.Consumer&gt; &lt;/MyContext.Provider&gt; } export default Home;"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">MyContext</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createContext</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-v">Home</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-v">MyContext</span><span class="pl-kos">.</span><span class="pl-v">Provider</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span> <span class="pl-c1">x</span>: <span class="pl-s">"123"</span> <span class="pl-kos">}</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-v">MyContext</span><span class="pl-kos">.</span><span class="pl-v">Consumer</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-s1">value</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-v">MyContext</span><span class="pl-kos">.</span><span class="pl-v">Consumer</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-v">MyContext</span><span class="pl-kos">.</span><span class="pl-v">Provider</span><span class="pl-c1">&gt;</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">Home</span><span class="pl-kos">;</span></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">MyContext.Consumer value should receive object from MyContext.Provider</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>Version of Next.js: 8.1.0</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Also an issue for many Antd components</p>
1