[Support] nbgitpuller link breaks after update - University of Toronto

The Freshdesk ticket link
https://2i2c.freshdesk.com/a/tickets/1229
Ticket request type
Something is not working
Ticket impact
🟥 Critical
Short ticket description
Nbgitpuller links not working.
When the hub is:

pointing to https://jupyter.utoronto.ca or https://datatools.utoronto.ca it gives 404 or page not found
pointing to https://r.datatools.utoronto.ca it thows  the following (see screenshot below)

(Optional) Investigation results
No investigation happened yet as I wanted to first open the issue for visibility.

nbgitpuller works with https://r.datatools.utoronto.ca/ if the repo is public.
However the repo in the ticket is private and it was reported that it worked on Monday, I believe before the migration?

I am confused of the fact that I don't see evidence that private GitHub pulling was setup for the toronto hub https://infrastructure.2i2c.org/howto/features/private-nbgitpuller/#allow-nbgitpuller-to-pull-from-private-github-repos

Ahh, the GitHub app is not under the 2i2c org, this is why I couldn't find it. git-credentials-helper is setup at https://github.com/2i2c-org/infrastructure/blob/b6846fb9814bc613b8f442fc00f5faf2699ebe28/config/clusters/utoronto/common.values.yaml#L59-L65

git-credentials-helper is available in the original utoronto hub image https://github.com/2i2c-org/utoronto-image/blob/14320bae73a0570aa1ab1b19c68758894b291979/environment.yml#L42 but not in the new r-image.
https://github.com/2i2c-org/utoronto-r-image/pull/17 should make it available

Opened https://github.com/2i2c-org/infrastructure/pull/3604 to move the setup of the https://github.com/organizations/utoronto-2i2c/settings/apps/utoronto-jupyterhub-private-cloner app under the default hub, as I believe we need a new one for the R hub

Hmm, the weird thing is that using nbgitpuller with a private repo on https://jupyter.utoronto.ca doesn't work either, although it seems to have everything setup 🤔

I've opened https://github.com/2i2c-org/infrastructure/pull/3605 that registeres the new GitHub app created to be used for pulling by the r hub https://github.com/organizations/utoronto-2i2c/settings/apps/utoronto-r-hub-private-cloner

I believe what remains now is to merge the PRs below:

https://github.com/2i2c-org/utoronto-r-image/pull/17
https://github.com/2i2c-org/infrastructure/pull/3605
https://github.com/2i2c-org/infrastructure/pull/3604

and then update the r hub user image with a tag that has https://github.com/2i2c-org/utoronto-r-image/pull/17

I merged and then reverted https://github.com/2i2c-org/infrastructure/pull/3606 - it turns out https://github.com/2i2c-org/utoronto-r-image/pull/17 was actually the only change needed! It does mean that the same GitHub app is used for both jupyter.utoronto.ca and r.datatools.utoronto.ca, but that's actually ok as it makes the migration from jupyter.utoronto.ca to r.datatools.utoronto.ca easier - people will not have to reinstall.

I opened https://github.com/2i2c-org/infrastructure/pull/3608 to document. @GeorgianaElena do you think it's ok to delete the github app created for the R hub?
We should probably try to bring the github app for the jupyter app to this org! But idk if that means everyone will have to reinstall the app?

Thank you @yuvipanda for sorting this out! I've deleted the new app and will close this issue as it's now resolved 🚀


Multi drive support

Hi,
I tried adding a second drive to the Atari port (https://github.com/ivop/cpm65/tree/atari-multi-drive) but it does not seem to work as expected:

Directory of A: works normally. I switch to B: and then the directory listing is not correct. CTRL-C and the DIR, still wrong. But DIR B: suddenly shows the correct directory. Any idea what's going on here?
Regards,
Ivo
Edit: I looked at the nano6502 port and as far as I can see I did exactly what they did, i.e. return a separate dph for each drive.

A lot of these issues got fixed in #113, but there's clearly something else wrong.
The symptoms look weird. If you look at the first sector of the directory of B:, are the entries for ATBASIC.COM and ATBASIC.TXT next to each other in the same sector? If so, then it looks like the last-visible-item variable in the BDOS is being somehow set to 1, which it shouldn't be. It's an optimisation to allow unused sectors of the directory to be skipped. It's supposed to be determined when the drive is logged on.

More funny behaviour :)

I found out that when I type B: this code does not seem to work correctly:
    ; Decide if the drive was already logged in.

    lda login_vector+0
    ldx login_vector+1
    ldy active_drive
    jsr shiftr              ; flag at bottom of temp+0

    ror temp+0
    zif_cs
        jmp .    ; debug, endless loop
        rts
    zendif

The first time it should not take the zif_cs and continue after zendif because the drive was not logged in yet. But it thinks it does.

Found it!
zproc internal_LOGINDRIVE
    ; Select the drive.

    sta active_drive          ; <----- MISSING
    jsr select_active_drive

    ; Decide if the drive was already logged in.

select_active_drive starts with lda active_drive, which is 0.
I have put sta active_drive within internal_LOGINDRIVE because elsewhere it is called with A set to what has to become the active drive.

Fantastic! This bug was driving me crazy when I tried to find the cause for it (see #113), I'm really happy to see it fixed.

Thanks. There's still something fishy going on though.

Opening a file on a drive that has not been logged in yet does not work. I'll look into it later tonight.

Think I found it. OPENFILE and CREATEFILE call convert_user_fcb. convert_user_fcb stores the drive number to active_drive and calls select_active_drive, which does not log in the drive. Changing that to internal_LOGINDRIVE (which calls select_active_drive, too) seems to fix this:
--- a/src/bdos/filesystem.S
+++ b/src/bdos/filesystem.S
@@ -243,13 +243,12 @@ zproc convert_user_fcb
     zif_mi
         ldx current_drive       ; override with current drive
     zendif
-    txa
-    sta active_drive            ; set the active drive

     lda current_user
     sta (param), y              ; update FCB

-    jmp select_active_drive
+    txa
+    jmp internal_LOGINDRIVE
 zendproc

I'll send a pull request after diner.

Okay, that turned out to be the wrong fix, even though the problem description is right (i.e. all file related bdos_* functions call convert_user_fcb which then uses an active drive that is not logged in yet).
Another thing I noticed is this:

DIR B: silently changes the selected drive to B, but CCP does not update its prompt (global drive variable). Not even when I press enter. Only after CTRL-C does it notice it's no longer on A:. Same happens with TYPE B:somefile.txt
Perhaps CCP should call bdos_SELECTDSK with the drive variable as a parameter in the main loop? This automatically returns to what was the current drive before when calling an external application, too. @davidgiven ?

dir b: shouldn't change the active drive.
From looking at the code, I think the BDOS isn't distinguishing between selecting the drive temporarily when working on an FCB on the non-current drive, and a call to LOGINDRIVE. I think BEGINSYS/ENDSYS need to store the old value of current_drive and restore it after the system call is done with, like the FCB drive is.

In ccp.S, entry_DIR explicitly calls bdos_SELECTDISK. If I remove that, BDOS automatically uses the drive that's set in userfcb and then DIR B: does not change the active drive in CCP.  Transient commands, like stat, ls and dinfo, still change the active drive, but I suppose that's because they all call bdos_SELECTDISK, too, instead of relying on BDOS accessing the correct drive that is set in the passed fcb.

Yup, I've just run into this myself on a new port. Investigating.


If there are multiple COG (GeoTIFF) layers some are not rendered correctly depending on layer order

Describe the bug
When I create a map with multiple COG GeoTIFF layers, some of the layers does not render at all, depending on the order of the layers.
For created sample files the results are like following:

1st image: 2 layers correctly rendered.

2nd image: the same layers added in reverse order: the left one is invisible.
To Reproduce
Steps to reproduce the behavior:

You can use sample project placed here: https://github.com/mpiotrowski-im/cog-rendering-bug
Copy sample file from https://we.tl/t-AnFkNC5TUx to assets
Run as described in readme and see error

Expected behavior
GeoTIFF layers are always rendered and visible regardless of the order of layers.

The layer order is somehow affecting the band 2 value
        color: [
            'interpolate',
            ['linear'],
            ['band', 1],
            ['var', 'minValue'],
            ['color', 0, 0, 0, ['match', ['band', 2], 0, 0, 1]],
            ['var', 'maxValue'],
            ['color', 255, 0, 0, ['match', ['band', 2], 0, 0, 1]],
        ]

works in either order, and also if you use the sources options with a single layer.

Thank you for checking the problem. I will test the proposed solution today. I'm assuming from your description that layer configuration is executing asynchronously. That's why I have problem when very large layer is added before smaller ones. I guess processing of larger layer is somehow interrupted unfinished when in short time I am adding more layers or creating a group layer from them.

Hi!
I like to confirm that waiting for the view to be ready, before adding layers to the map, solves the problem.
I do not know Open Layers internals good enough to say if it can be changed or fixed in the library. So I would like to suggest that if changing the behaviour of library would be to complicated in this case, then maybe adding some information to documentation or creating new example for large GeoTIFF source with above code snippet would be a good solution.


Upcoming Release

I decided to create a ticket for this since a lot of people have been reaching out to me lately about a new issue.  Looks like Reddit updated their API again and it broke the library.  The timing couldn't be worse since I've been on hiatus so I can focus on my new job, so that's why I've been slow to respond on this one.
I'm hoping I'll be able to set aside a few hours to work on this tomorrow since I know this is an urgent issue.  We're overdue for a release anyway so my goal is to do that instead of just a hotfix.  Please watch this ticket for updates and thank you for your patience.
In case you're wondering, no, Reddit does not warn us ahead of time when they make a breaking API change like this.  So all we can do is just put out those fires when they crop up.  Looks like we already have a PR for this one but I haven't had a chance to review it yet.

PR #150 has been merged into develop.

I went ahead and put out a hotfix release.  If you update to version 1.5.2 in NuGet, the library should work again.

TODO:

https://github.com/sirkris/Reddit.NET/issues/159
https://github.com/sirkris/Reddit.NET/issues/155
https://github.com/sirkris/Reddit.NET/issues/156
https://github.com/sirkris/Reddit.NET/issues/148
https://github.com/sirkris/Reddit.NET/issues/147
https://github.com/sirkris/Reddit.NET/issues/146
https://github.com/sirkris/Reddit.NET/issues/145
https://github.com/sirkris/Reddit.NET/issues/143


Remove requirement of ZOOM_EMAIL

Can just fetch this from API itself:
ZOOM_EMAIL = client.user.get(id='me').json().get('email')

Going to close this, as it's not as clearly extraneous as i'd thought at first...!


Work with the jupyter security group to revamp the jupyter security documentation

Documentation topics (some coming from the conversations at the NSF Cybersecurity Summit's Jupyter presentation):

Security structure
a project-wide view of vulnerabilities in dependencies
FAQ with common: misconfigurations, local issues etc and mitigations
Threat models for different interested groups

Threat model for user

worst thing a notebook could do on your computer
risks of executing a notebook
How much do I need to interact with a notebook before it starts becoming a security issue? Just opening it? Trusting it? Running a cell?
Notebook virus that infects other notebooks has been prevented up to now, must be something in Jupyter preventing this, why hasn't that happened?

Documentation styles

Choose your own adventure style document
Concise guides following the Diátaxis approach

cc @rpwagner and @rcthomas

@RRosio thanks for starting this conversation!
Improving Project-wide security documentation was one the leading recommendation by the participants in the Jupyter Security Workshop last Monday (link to the notes). Specifically to start by providing a summary of security topics related to all Jupyter components and links to the existing scattered throughout the Subprojects. Being able to partner with this new Working Group on how to approach these improvements would be ideal.
Fortunately, we're not starting from scratch. There is the Project Jupyter security page as central location to host updated documentation, a survey of Jupyter security-related documentation from the Trusted CI engagement, and I would like to contribute the security training materials used for JupyterCon and other conferences.


Rename quant_cuda to autogptq_cuda to avoid conflicts with GPTQ-for-LLaMa

This PR fixes a conflict with GPTQ-for-LLaMa, caused by both repos using quant_cuda as the name for the CUDA kernel.
Before this PR, any user who has both GPTQ-for-LLaMa and AutoGPTQ installed will get conflicts.  If a user tries to use GPTQ-for-LLaMa after installing AutoGPTQ, they will get this error:
  File "/workspace/venv/git/text-generation-webui/repositories/GPTQ-for-LLaMa/quant.py", line 424, in forward
    quant_cuda.vecquant3matmul(x, self.qweight, y, self.scales, self.qzeros, self.groupsize)
TypeError: vecquant3matmul(): incompatible function arguments. The following argument types are supported:
    1. (arg0: torch.Tensor, arg1: torch.Tensor, arg2: torch.Tensor, arg3: torch.Tensor, arg4: torch.Tensor, arg5: torch.Tensor) -> None

This PR renames the kernel so that both repos can be installed on a system at the same time, and both used, without any issues.
Testing done:

AutoGPTQ + CUDA
AutoGPTQ + CUDA + FA
AutoGPTQ + Triton
AutoGPTQ + CUDA + FA and GPTQ-for-LLaMA CUDA at the same time

Sorry, I just realised I made this relative to my other PR: https://github.com/PanQiWei/AutoGPTQ/pull/85
Let me know if you want me to separate them.

+1 for this, this rename is very important for deploying AutoGPTQ in parallel with old GPTQ-for-LLaMa installs.

Hi @TheBloke , thank you very much for this pr! I'm totally agree with change quant_cuda  to autogptq_cuda to avoid conflicts. I would suggest to isolate the additional changes in this pr into a new pr and then I can merge those renames, and we can discuss other changes in that new pr.

Oh, I just saw the changes other than renames are in #85 , so it would be better to maintain this pr only contains renames.


added missing reference needed for line 114 in base.py

Hello there,
Just added a reference to factory.py because i was getting Import errors.
Cheers

What import did you do to cause the import error?


Hardcode missing names in QPY backwards-compat tests

Summary
The newest control-flow QPY tests do not have hard-coded names on the outer circuits, which trips assertion errors if the library import causes any more circuits to be instantiated during build (since the generated names are circuit-count dependent).
Inner circuits do not need naming in the same way, since these are not used in the assertion; nested circuits' names would be tested separately. The control-flow builder interface, for example, does not assign these circuits names at all.

Summary
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage remained the same at 87.04%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/lex.rs
3
90.91%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
74377

Relevant Lines:
85452

💛  - Coveralls


Updated the README to be consistent with recent code changes.

Last week, Rich asked me to update the README.  It hadn't occurred to me to update it as I was modifying the code!

Well, drat! I just did something similar without having seen this and pushed a version to PyPI. I'll deconflict and merge your changes in when I'm back next week.


Incomplete docs

Following this tutorial doesn't yield anything. Is there a more complete doc available somewhere?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 22ef3d8e-6a71-4d5b-9591-a6021285b972
Version Independent ID: 81e08f6b-1257-3833-80db-7c72bff5f754
Content: Quickstart: Perform a news search with Node.js - Bing News Search REST API - Azure Cognitive Services
Content Source: articles/cognitive-services/Bing-News-Search/nodejs.md
Service: cognitive-services
Sub-service: bing-news-search
GitHub Login: @aahill
Microsoft Alias: aahi

@sravanthidasari we will review your feedback and get back to you shortly. Thanks.

@sravanthidasari the source code for this sample is available here. Thanks.


Error on Percentage caret

Hi Robin!
Again here haha.
Here is the fiddle: https://jsfiddle.net/j32m6m0L/
When you put some data into the input, click outside and click again in the input (to change the percentage maybe), the caret goes to the right of the input and can't write.
I saw that in 3.3.11 you fix that (If it helps)
Thanks again for the amazing plugin!

I Fix that with positionCaretOnClick: "lvp" :)

Hi Robin, is there any way to put the caret on the left on click? I only see lvp and radixPoint. Thanks!


wsl.exe hangs on launching

Windows Version
Microsoft Windows [Version 10.0.22621.1992]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>
Distro Version
Ubuntu
Other Software
Docker Desktop
Repro Steps
Load terminal, enter wsl and it doesn't do anything. Other commands like wsl --install show that Ubuntu is already installed then it says Launching Ubuntu but nothing happens. wsl -l -v also hangs and does nothing.
I have tried to uninstall everything to do with WSL and ubuntu and restarted the pc, then tried to configure it all again but the same thing is still happening.
Expected Behavior
Allow me to configure and use ubuntu
Actual Behavior
Nothing happens, it just keeps flashing a cursor at me.
Diagnostic Logs
WslLogs-2023-11-04_10-05-48.zip

Thanks for reporting and attaching logs.

If you use resmon.exe do you see other existing handles open?

Same problem here with WSL on WIndows 11 since yesterday when it looks like the 2.0.9 update was installed. Directy after a restart of the PC I can run "wsl --list" but if I try starting a distro it just hangs with a blinking cursor.

seeing this too for the last few days. WSL2 is my daily driver and I haven't found a workaround


Updating Main with changes in Live

Changes are from PRs

Docs Build status updates of commit 093a9f0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

biztalk/core/how-to-restore-your-databases.md
:bulb:Suggestion
View
Details

biztalk/core/biztalk-framework-schema-and-properties.md
:white_check_mark:Succeeded
View

biztalk/core/file-adapter-property-schema-and-properties.md
:white_check_mark:Succeeded
View

biztalk/core/ftp-adapter-property-schema-and-properties.md
:white_check_mark:Succeeded
View

biztalk/core/how-to-manually-purge-data-from-the-biztalk-tracking-database.md
:white_check_mark:Succeeded
View

biztalk/core/http-adapter-property-schema-and-properties.md
:white_check_mark:Succeeded
View

biztalk/core/mime-smime-property-schema-and-properties.md
:white_check_mark:Succeeded
View

biztalk/core/msmq-adapter-property-schema-and-properties.md
:white_check_mark:Succeeded
View

biztalk/core/using-failed-message-routing.md
:white_check_mark:Succeeded
View

biztalk/core/how-to-restore-your-databases.md

Line 69, Column 7: [Suggestion: preserve-view-not-set - See documentation] Did you mean to link to a specific version? If so, add &preserve-view=true to the URL: /sql/connect/oledb/release-notes-for-oledb-driver-for-sql-server?view=sql-server-ver15#previous-releases

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


[BUG] Jupyter notebook execution behaving randomly

SynapseML version
using docker installation mentioned here https://microsoft.github.io/SynapseML/docs/getting_started/installation/#docker
System information

Language version (e.g. python 3.8, scala 2.12):
Spark Version (e.g. 3.2.3):
Spark Platform (e.g. Synapse, Databricks):

using the docker setup mentioened here: https://microsoft.github.io/SynapseML/docs/getting_started/installation/#docker
Note: using Macbook Pro (Apple M1 Pro chip)
Describe the problem
sometimes the same code runs sometimes it takes too much time(i feel it hangs execution), attaching screenshot of same:

Although it stucks in different part of notebook if separate attempts. even simple commands like echo fails.
attaching logs as well in below section: (Note: i had to restart jupyter kernal many time to start execution from begining, it randomaly stops further execution. i had to start jupyter in debug mode to check)
Code to reproduce issue
NA
Other info / logs
demo-notebook-1  | [D 15:06:15.332 NotebookApp] 304 GET /static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured (<IP_ADDRESS>) 118.460000ms
demo-notebook-1  | [D 15:06:15.359 NotebookApp] 304 GET /custom/custom.css (<IP_ADDRESS>) 89.880000ms
demo-notebook-1  | [D 15:06:15.375 NotebookApp] 304 GET /static/components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full,Safe&delayStartupUntil=configured (<IP_ADDRESS>) 8.050000ms
demo-notebook-1  | [D 15:06:15.796 NotebookApp] 304 GET /static/components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js?V=2.7.9 (<IP_ADDRESS>) 16.000000ms
demo-notebook-1  | [D 15:06:15.956 NotebookApp] 304 GET /custom/custom-preload.js?v=20230706121415 (<IP_ADDRESS>) 18.320000ms
demo-notebook-1  | [D 15:06:15.967 NotebookApp] 304 GET /static/components/MathJax/config/TeX-AMS-MML_HTMLorMML-full.js?V=2.7.9 (<IP_ADDRESS>) 5.560000ms
demo-notebook-1  | [D 15:06:15.980 NotebookApp] 304 GET /custom/custom-preload.js?v=20230706121415 (<IP_ADDRESS>) 5.570000ms
demo-notebook-1  | [D 15:06:16.026 NotebookApp] 304 GET /static/components/MathJax/config/Safe.js?V=2.7.9 (<IP_ADDRESS>) 8.610000ms
demo-notebook-1  | [D 15:06:16.255 NotebookApp] Paths used for configuration of notebook:
demo-notebook-1  |      /etc/jupyter/nbconfig/notebook.json
demo-notebook-1  | [D 15:06:16.295 NotebookApp] Paths used for configuration of notebook:
demo-notebook-1  |      /usr/local/etc/jupyter/nbconfig/notebook.d/widgetsnbextension.json
demo-notebook-1  |      /usr/local/etc/jupyter/nbconfig/notebook.json
demo-notebook-1  | [D 15:06:16.313 NotebookApp] Paths used for configuration of notebook:
demo-notebook-1  |      /root/.local/etc/jupyter/nbconfig/notebook.json
demo-notebook-1  | [D 15:06:16.332 NotebookApp] Paths used for configuration of notebook:
demo-notebook-1  |      /root/.jupyter/nbconfig/notebook.json
demo-notebook-1  | [D 15:06:16.349 NotebookApp] 200 GET /api/config/notebook?=1688655975811 (<IP_ADDRESS>) 298.760000ms
demo-notebook-1  | [D 15:06:16.361 NotebookApp] Paths used for configuration of common:
demo-notebook-1  |      /etc/jupyter/nbconfig/common.json
demo-notebook-1  | [D 15:06:16.366 NotebookApp] Paths used for configuration of common:
demo-notebook-1  |      /usr/local/etc/jupyter/nbconfig/common.json
demo-notebook-1  | [D 15:06:16.372 NotebookApp] Paths used for configuration of common:
demo-notebook-1  |      /root/.local/etc/jupyter/nbconfig/common.json
demo-notebook-1  | [D 15:06:16.379 NotebookApp] Paths used for configuration of common:
demo-notebook-1  |      /root/.jupyter/nbconfig/common.json
demo-notebook-1  | [D 15:06:16.385 NotebookApp] 200 GET /api/config/common?=1688655975812 (<IP_ADDRESS>) 31.180000ms
demo-notebook-1  | [D 15:06:16.440 NotebookApp] Found kernel python3 in /usr/local/share/jupyter/kernels
demo-notebook-1  | [D 15:06:16.474 NotebookApp] 304 GET /api/kernelspecs (<IP_ADDRESS>) 65.320000ms
demo-notebook-1  | [D 15:06:16.501 NotebookApp] 304 GET /static/components/MathJax/config/Safe.js?V=2.7.9 (<IP_ADDRESS>) 86.230000ms
demo-notebook-1  | [D 15:06:16.508 NotebookApp] 304 GET /static/components/MathJax/extensions/TeX/begingroup.js?V=2.7.9 (<IP_ADDRESS>) 90.120000ms
demo-notebook-1  | [W 15:06:16.612 NotebookApp] Notebook test_docker_compose/synapses_if.ipynb is not trusted
demo-notebook-1  | [D 15:06:16.636 NotebookApp] 200 GET /api/contents/test_docker_compose/synapses_if.ipynb?type=notebook&=1688655975813 (<IP_ADDRESS>) 151.380000ms
demo-notebook-1  | [D 15:06:16.640 NotebookApp] 304 GET /custom/custom.js?v=20230706121415 (<IP_ADDRESS>) 150.970000ms
demo-notebook-1  | [D 15:06:16.643 NotebookApp] 304 GET /static/components/MathJax/extensions/TeX/newcommand.js?V=2.7.9 (<IP_ADDRESS>) 145.860000ms
demo-notebook-1  | [D 15:06:16.650 NotebookApp] 304 GET /static/components/MathJax/extensions/MathML/content-mathml.js?V=2.7.9 (<IP_ADDRESS>) 137.110000ms
demo-notebook-1  | [D 15:06:16.689 NotebookApp] 304 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js?V=2.7.9 (<IP_ADDRESS>) 19.670000ms
demo-notebook-1  | [D 15:06:16.697 NotebookApp] 304 GET /static/components/MathJax/extensions/TeX/begingroup.js?V=2.7.9 (<IP_ADDRESS>) 24.910000ms
demo-notebook-1  | [D 15:06:16.700 NotebookApp] 304 GET /custom/custom.js?v=20230706121415 (<IP_ADDRESS>) 25.490000ms
demo-notebook-1  | [D 15:06:16.704 NotebookApp] 304 GET /static/components/MathJax/extensions/Safe.js?V=2.7.9 (<IP_ADDRESS>) 25.040000ms
demo-notebook-1  | [D 15:06:16.714 NotebookApp] 304 GET /nbextensions/jupyter-js-widgets/extension.js?v=20230706121415 (<IP_ADDRESS>) 22.470000ms
demo-notebook-1  | [D 15:06:16.731 NotebookApp] 304 GET /static/components/MathJax/extensions/TeX/newcommand.js?V=2.7.9 (<IP_ADDRESS>) 12.760000ms
demo-notebook-1  | [D 15:06:16.736 NotebookApp] 304 GET /static/components/MathJax/extensions/MathML/content-mathml.js?V=2.7.9 (<IP_ADDRESS>) 11.290000ms
demo-notebook-1  | [D 15:06:16.770 NotebookApp] 200 GET /nbextensions/jupyter-js-widgets/extension.js?v=20230706121415 (<IP_ADDRESS>) 28.960000ms
demo-notebook-1  | [D 15:06:16.793 NotebookApp] 200 GET /static/components/MathJax/extensions/Safe.js?V=2.7.9 (<IP_ADDRESS>) 48.530000ms
demo-notebook-1  | [D 15:06:16.800 NotebookApp] 304 GET /static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/fontdata.js?V=2.7.9 (<IP_ADDRESS>) 51.410000ms
demo-notebook-1  | [D 15:06:16.845 NotebookApp] 200 GET /api/contents/test_docker_compose/synapses_if.ipynb/checkpoints?=1688655975814 (<IP_ADDRESS>) 21.340000ms
demo-notebook-1  | [D 15:06:16.874 NotebookApp] 201 POST /api/sessions (<IP_ADDRESS>) 43.300000ms
demo-notebook-1  | [D 15:06:17.003 NotebookApp] Initializing websocket connection /api/kernels/3295e79c-6f1d-4e50-8732-1eedf72d2109/channels
demo-notebook-1  | [D 15:06:17.045 NotebookApp] 101 GET /api/kernels/3295e79c-6f1d-4e50-8732-1eedf72d2109/channels?session_id=277e9fc2dd9c4e3db74ad8e64f847349 (<IP_ADDRESS>) 46.530000ms
demo-notebook-1  | [D 15:06:17.047 NotebookApp] Opening websocket /api/kernels/3295e79c-6f1d-4e50-8732-1eedf72d2109/channels
demo-notebook-1  | [D 15:06:17.048 NotebookApp] Getting buffer for 3295e79c-6f1d-4e50-8732-1eedf72d2109
demo-notebook-1  | [D 15:06:17.052 NotebookApp] Connecting to: tcp://<IP_ADDRESS>:42545
demo-notebook-1  | [D 15:06:17.079 NotebookApp] Connecting to: tcp://<IP_ADDRESS>:46619
demo-notebook-1  | [D 15:06:17.084 NotebookApp] Connecting to: tcp://<IP_ADDRESS>:39049
demo-notebook-1  | [D 15:06:17.088 NotebookApp] Connecting to: tcp://<IP_ADDRESS>:36609
demo-notebook-1  | [D 15:06:17.092 NotebookApp] Nudge: not nudging busy kernel 3295e79c-6f1d-4e50-8732-1eedf72d2109
demo-notebook-1  | [D 15:06:17.984 NotebookApp] 304 GET /static/base/images/favicon-busy-1.ico (<IP_ADDRESS>) 3.630000ms
demo-notebook-1  | [D 15:08:17.074 NotebookApp] 200 GET /api/contents/test_docker_compose/synapses_if.ipynb?content=0&_=1688655975815 (<IP_ADDRESS>) 61.970000ms
demo-notebook-1  | [I 15:08:17.113 NotebookApp] Saving file at /test_docker_compose/synapses_if.ipynb
demo-notebook-1  | [D 15:08:17.115 NotebookApp] Saving /notebooks/features/test_docker_compose/synapses_if.ipynb
demo-notebook-1  | [W 15:08:17.123 NotebookApp] Notebook test_docker_compose/synapses_if.ipynb is not trusted
demo-notebook-1  | [D 15:08:17.286 NotebookApp] 200 PUT /api/contents/test_docker_compose/synapses_if.ipynb (<IP_ADDRESS>) 185.620000m
What component(s) does this bug affect?

[ ] area/cognitive: Cognitive project
[X] area/core: Core project
[X] area/deep-learning: DeepLearning project
[ ] area/lightgbm: Lightgbm project
[ ] area/opencv: Opencv project
[ ] area/vw: VW project
[ ] area/website: Website
[X] area/build: Project build system
[ ] area/notebooks: Samples under notebooks folder
[X] area/docker: Docker usage
[ ] area/models: models related issue

What language(s) does this bug affect?

[ ] language/scala: Scala source code
[ ] language/python: Pyspark APIs
[ ] language/r: R APIs
[ ] language/csharp: .NET APIs
[ ] language/new: Proposals for new client languages

What integration(s) does this bug affect?

[ ] integrations/synapse: Azure Synapse integrations
[ ] integrations/azureml: Azure ML integrations
[ ] integrations/databricks: Databricks integrations

I was able to run the notebook a few times without any issue, with one change to do the docker image.

The change I had to make is this:
tools/docker/demo/Dockerfile, line 30:
RUN curl -sSL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh \
    && bash /tmp/miniconda.sh -bfp /usr/local \
    && rm -rf /tmp/miniconda.sh \
    && conda update conda \
-    && conda install -y python=3 jupyter pyspark \
+    && conda install -y python=3.9 jupyter pyspark \
    && conda clean --all --yes

Then run the followings from repo root:
docker build . -f tools/docker/demo/Dockerfile -t synapseml
docker run -it -p 8888:8888 --rm -e ACCEPT_EULA=yes synapseml:latest

The reason for the change is the dependencies in the IsolationForest notebook is not compatible with the latest version of python3 (3.12).

@mhamilton723, I suggest we fix the python version in the conda install step whenever we update the Spark version.


In static build, enabled but not found Webp causes undefined references

In static build, if WITH_WEBP is ticked (default value) but WEP_INCLUDE_DIR is not found, there will be undefined references when trying to linking to the produced libopencv_imgcodecs310.a library:
libopencv_imgcodecs310.a(grfmt_webp.cpp.obj):grfmt_webp.cpp:(.text$_ZNK2cv11WebPDecoder14checkSignatureERKNS_6StringE+0x39): undefined reference to `WebPGetFeaturesInternal'
libopencv_imgcodecs310.a(grfmt_webp.cpp.obj):grfmt_webp.cpp:(.text$_ZN2cv11WebPDecoder8readDataERNS_3MatE+0x14c): undefined reference to `WebPDecodeBGRInto'
libopencv_imgcodecs310.a(grfmt_webp.cpp.obj): bad reloc address 0x14c in section `.text$_ZN2cv11WebPDecoder8readDataERNS_3MatE'
(Workaround: manually disable WITH_WEBP)
CMake output:
[...]
Media I/O:
ZLib:                        build (ver 1.2.8)
JPEG:                        build (ver 90)
WEBP:                        build (ver 0.3.1)
[...]

Please add more details, because we can't reproduce this problem. You can take a look on the one of our static Windows build with WebP: http://pullrequest.opencv.org/buildbot/builders/precommit_windows_ten/builds/520

Sorry for not mentioning this: The error doesn't happen at build time, but when linking the library to another project. So if you link an external application to libopencv_imgcodecs310.a you should see the error.

In case of static link you should specify all 3rdparty libraries (like libwebp.a, libz.a/libzip.a, etc). Do you add them into linker list?
You may want to use CMake to do this automatically, check this example

I don't think this is the problem: When no WEBP support is available, at the beginning of grfmt_webp.cpp #ifdef HAVE_WEBP  should give false and the file should not be compiled, so that there's no trace of the call to WebPGetFeaturesInternal and WebPDecodeBGRInto. So the problem seems to me that HAVE_WEBP is somehow defined by mistake somewhere.

Thanks for the clarification! I had missed a new library libwebp.a exists now. Sorry, my bad!


tests: use python3 to run http_api test to fix failed integration_tests

What problem does this PR solve?

Issue Number: close #5474
What is changed and how it works?
Our CI envs still default to python2 to run tests. http_api requires using requests which brings certifi. Actually certifi's recent releases doesn't support python2 any more.
Release note
None

/run-all-testes

/run-check-issue-triage-complete

/run-check-issue-triage-complete

/run-all-testes

/run-leak-test

/run-all-tests

/merge

/run-kafka-integration-test

/run-kafka-integration-test

/run-verify

/run-integration-test

/run-kafka-integration-test

/run-verify

Codecov Report

Merging #5473 (06d2af3) into master (7a80b61) will increase coverage by 0.3300%.
The diff coverage is 51.1784%.

Flag
Coverage Δ

cdc
61.6099% <43.7500%> (+0.6457%)
:arrow_up:

dm
52.0445% <68.5393%> (+0.0842%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #5473        +/-   ##
================================================
+ Coverage   55.9233%   56.2533%   +0.3300%
================================================
  Files           528        530         +2
  Lines         69935      69962        +27
================================================
+ Hits          39110      39356       +246
+ Misses        27100      26857       -243
- Partials       3725       3749        +24


Error handling for govc retries (#627)

Issue #, if available:
Description of changes:
Adding this bug fix for next 0.6 patch release
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: taneyland
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [taneyland]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: danbudris, taneyland
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [danbudris,taneyland]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


GUI for custom keybindings

Custom keybindings are possible now with #5 being implemented. But it's uncomfy without GUI. I've been thinking that stealing rivatuner statistics server general gui desing might fit this program well.

I was thinking of trying to add a GUI for custom binds, is that okay?

Hey, thanks for expressing an interest! Currenty I'm in research phase for an ui and not quite sure how I want to proceed, also because I want a UI for the process filter (see #9 ). I don't want to make ui purely in win32 because I plan to go crossplatform, so I'll probably go with some immediate-ui solution that is a single-header library. Like microui or nuklear. If you have ideas in this area, feel free to share them

This is done on rewrite branch


New version: Bostrot.WSLManager version <IP_ADDRESS>

- [X] Have you signed the Contributor License Agreement?

[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.6 schema?

Resolves #143028

Microsoft Reviewers: Open in CodeFlow

For moderators
This account is automated by Github Actions and the source code was created by CoolPlayLin. If you have any questions about any pull request, don't hesitate to ping Exorcism0666.

[!warning]
With the new version of Komac, numerous Pull Requests may contain bugs or unwanted elements. If such issues arise, please tag russellbanks so that these bugs can be addressed in future updates.

[!important]
Please carefully review these Pull Request before merging. If it is a Pull Request for removing incorrect content and the URLs are issue, free upon manual checking, please close this Pull Request directly. (It is best to inform Exorcism0666 of the closure.)

良い一日をお過ごしください！

Automatic Validation ended with:

Installation failed with exit code -2146762496
2024-03-09 07:36:07.703 [CORE] Deployment operation #0: error 0x800B0100: The app package must be digitally signed for signature validation.
2024-03-09 07:36:07.703 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\Deployment.cpp(161)\WindowsPackageManager.dll!00007FFEA9DB3F75: (caller: 00007FFEA9D0A720) Exception(1) tid(19ec) 800B0100 No signature was present in the subject.
2024-03-09 07:36:07.836 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\Deployment.cpp(54)\WindowsPackageManager.dll!00007FFEA9DB2D2F: (caller: 00007FFEA9DB432C) Exception(2) tid(19ec) 80073CF1 Package was not found.
2024-03-09 07:36:07.837 [FAIL] D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\Deployment.cpp(126)\WindowsPackageManager.dll!00007FFEA9F28931: (caller: 00007FFEA9DB5853) LogHr(1) tid(19ec) 80073CF1 Package was not found.
Msg:[D:\a_work\1\s\external\pkg\src\AppInstallerCommonCore\Deployment.cpp(54)\WindowsPackageManager.dll!00007FFEA9DB2D2F: (caller: 00007FFEA9DB432C) Exception(2) tid(19ec) 80073CF1 Package was not found.
2024-03-09 07:36:07.853 [CLI ] MSIX installer failed:<PHONE_NUMBER>

(Automated response - build 869.)


tests/snippets/java/test_default.txt .                                                                                [ 92%]
tests/snippets/java/test_enhanced_for.txt .                                                                                [ 92%]
tests/snippets/java/test_numeric_literals.txt .                                                                                [ 92%]
tests/snippets/java/test_record.txt .                                                                                [ 92%]
tests/snippets/js/super.txt .                                                                                [ 92%]
tests/snippets/jslt/test_sample.txt .                                                                                [ 92%]
tests/snippets/json/test_basic.txt .                                                                                [ 92%]
tests/snippets/json/test_basic_bare.txt .                                                                                [ 92%]
tests/snippets/julia/test_keywords.txt .                                                                                [ 92%]
tests/snippets/julia/test_macros.txt .                                                                                [ 92%]
tests/snippets/julia/test_names.txt .                                                                                [ 92%]
tests/snippets/julia/test_numbers.txt .                                                                                [ 92%]
tests/snippets/julia/test_operators.txt .                                                                                [ 92%]
tests/snippets/julia/test_strings.txt .                                                                                [ 92%]
tests/snippets/julia/test_symbols.txt .                                                                                [ 92%]
tests/snippets/julia/test_types.txt .                                                                                [ 92%]
tests/snippets/julia/test_unicode.txt .                                                                                [ 92%]
tests/snippets/julia-repl/test_repl.txt .                                                                                [ 92%]
tests/snippets/kotlin/test_can_cope_generics_in_destructuring.txt .                                                                                [ 92%]
tests/snippets/kotlin/test_can_cope_with_backtick_names_in_functions.txt .                                                                                [ 92%]
tests/snippets/kotlin/test_can_cope_with_commas_and_dashes_in_backtick_Names.txt .                                                                                [ 92%]
tests/snippets/kotlin/test_can_cope_with_destructuring.txt .                                                                                [ 92%]
tests/snippets/kotlin/test_can_cope_with_generics.txt .                                                                                [ 92%]
tests/snippets/kotlin/test_modifier_keyword.txt .                                                                                [ 92%]
tests/snippets/kotlin/test_should_cope_with_multiline_comments.txt .                                                                                [ 92%]
tests/snippets/kotlin/test_string_interpolation.txt .                                                                                [ 92%]
tests/snippets/less/test_single_line_comments.txt .                                                                                [ 93%]
tests/snippets/mason/test_handles_tags_correctly.txt .                                                                                [ 93%]
tests/snippets/matlab/test_classes_with_properties.txt .                                                                                [ 93%]
tests/snippets/matlab/test_command_mode.txt .                                                                                [ 93%]
tests/snippets/matlab/test_comment_after_continuation.txt .                                                                                [ 93%]
tests/snippets/matlab/test_dot_operator.txt .                                                                                [ 93%]
tests/snippets/matlab/test_keywords_ended_by_newline.txt .                                                                                [ 93%]
tests/snippets/matlab/test_line_continuation.txt .                                                                                [ 93%]
tests/snippets/matlab/test_multiple_spaces_variable_assignment.txt .                                                                                [ 93%]
tests/snippets/matlab/test_one_space_assignment.txt .                                                                                [ 93%]
tests/snippets/matlab/test_operator_multiple_space.txt .                                                                                [ 93%]
tests/snippets/matlab/test_single_line.txt .                                                                                [ 93%]
tests/snippets/mcfunction/commenting.txt .                                                                                [ 93%]
tests/snippets/mcfunction/coordinates.txt .                                                                                [ 93%]
tests/snippets/mcfunction/data.txt .                                                                                [ 93%]
tests/snippets/mcfunction/difficult_1.txt .                                                                                [ 93%]
tests/snippets/mcfunction/multiline.txt .                                                                                [ 93%]
tests/snippets/mcfunction/selectors.txt .                                                                                [ 93%]
tests/snippets/mcfunction/simple.txt .                                                                                [ 93%]
tests/snippets/md/test_bold_fenced_by_asterisk.txt .                                                                                [ 93%]
tests/snippets/md/test_bold_fenced_by_underscore.txt .                                                                                [ 93%]
tests/snippets/md/test_bulleted_list_1.txt .                                                                                [ 93%]
tests/snippets/md/test_bulleted_list_2.txt .                                                                                [ 93%]
tests/snippets/md/test_bulleted_list_3.txt .                                                                                [ 93%]
tests/snippets/md/test_bulleted_list_4.txt .                                                                                [ 93%]
tests/snippets/md/test_code_block_fenced_by_backticks.txt .                                                                                [ 93%]
tests/snippets/md/test_code_block_with_language.txt .                                                                                [ 93%]
tests/snippets/md/test_escape_italics.txt .                                                                                [ 93%]
tests/snippets/md/test_inline_code.txt .                                                                                [ 93%]
tests/snippets/md/test_inline_code_after_block.txt .                                                                                [ 93%]
tests/snippets/md/test_inline_code_in_list.txt .                                                                                [ 93%]
tests/snippets/md/test_invalid_bold.txt .                                                                                [ 93%]
tests/snippets/md/test_invalid_italics.txt .                                                                                [ 93%]
tests/snippets/md/test_italics_and_bold.txt .                                                                                [ 93%]
tests/snippets/md/test_italics_fenced_by_asterisk.txt .                                                                                [ 93%]
tests/snippets/md/test_italics_fenced_by_underscore.txt .                                                                                [ 93%]
tests/snippets/md/test_italics_no_multiline.txt .                                                                                [ 93%]
tests/snippets/md/test_links.txt .                                                                                [ 93%]
tests/snippets/md/test_mentions.txt .                                                                                [ 93%]
tests/snippets/md/test_numbered_list.txt .                                                                                [ 93%]
tests/snippets/md/test_quote.txt .                                                                                [ 94%]
tests/snippets/md/test_reference_style_links.txt .                                                                                [ 94%]
tests/snippets/md/test_strikethrough.txt .                                                                                [ 94%]
tests/snippets/md/test_task_list.txt .                                                                                [ 94%]
tests/snippets/md/test_topics.txt .                                                                                [ 94%]
tests/snippets/nasm/checkid.txt .                                                                                [ 94%]
tests/snippets/objectivec/test_literal_number_bool.txt .                                                                                [ 94%]
tests/snippets/objectivec/test_literal_number_bool_expression.txt .                                                                                [ 94%]
tests/snippets/objectivec/test_literal_number_expression.txt .                                                                                [ 94%]
tests/snippets/objectivec/test_literal_number_int.txt .                                                                                [ 94%]
tests/snippets/objectivec/test_literal_number_nested_expression.txt .                                                                                [ 94%]
tests/snippets/objectivec/test_module_import.txt .                                                                                [ 94%]
tests/snippets/octave/test_multilinecomment.txt .                                                                                [ 94%]
tests/snippets/omg-idl/annotation_named_params.txt .                                                                                [ 94%]
tests/snippets/omg-idl/enumerators.txt .                                                                                [ 94%]
tests/snippets/peg/test_basic.txt .                                                                                [ 94%]
tests/snippets/peg/test_modified_strings.txt .                                                                                [ 94%]
tests/snippets/peg/test_operators.txt .                                                                                [ 94%]
tests/snippets/php/test_string_escaping_run.txt .                                                                                [ 94%]
tests/snippets/powershell/test_colon_punctuation.txt .                                                                                [ 94%]
tests/snippets/powershell/test_remoting_session.txt .                                                                                [ 94%]
tests/snippets/powershell/test_session.txt .                                                                                [ 94%]
tests/snippets/praat/test_broken_unquoted_string.txt .                                                                                [ 94%]
tests/snippets/praat/test_function_call.txt .                                                                                [ 94%]
tests/snippets/praat/test_inline_if.txt .                                                                                [ 94%]
tests/snippets/praat/test_interpolated_indexed_numeric_with_precision.txt .                                                                                [ 94%]
tests/snippets/praat/test_interpolated_local_numeric_with_precision.txt .                                                                                [ 94%]
tests/snippets/praat/test_interpolated_numeric_hash.txt .                                                                                [ 94%]
tests/snippets/praat/test_interpolated_numeric_indexed.txt .                                                                                [ 94%]
tests/snippets/praat/test_interpolated_numeric_with_precision.txt .                                                                                [ 94%]
tests/snippets/praat/test_interpolated_string_hash.txt .                                                                                [ 94%]
tests/snippets/praat/test_interpolated_string_indexed.txt .                                                                                [ 94%]
tests/snippets/praat/test_interpolation_boundary.txt .                                                                                [ 94%]
tests/snippets/praat/test_numeric_assignment.txt .                                                                                [ 94%]
tests/snippets/praat/test_string_assignment.txt .                                                                                [ 94%]
tests/snippets/praat/test_string_escaped_quotes.txt .                                                                                [ 94%]
tests/snippets/promql/test_complex_exp_single_quotes.txt .                                                                                [ 94%]
tests/snippets/promql/test_expression_and_comment.txt .                                                                                [ 94%]
tests/snippets/promql/test_function_delta.txt .                                                                                [ 94%]
tests/snippets/promql/test_function_multi_line.txt .                                                                                [ 94%]
tests/snippets/promql/test_function_multi_line_with_offset.txt .                                                                                [ 95%]
tests/snippets/promql/test_function_sum_with_args.txt .                                                                                [ 95%]
tests/snippets/promql/test_matching_operator_no_regex_match.txt .                                                                                [ 95%]
tests/snippets/promql/test_metric.txt .                                                                                [ 95%]
tests/snippets/promql/test_metric_multiple_labels.txt .                                                                                [ 95%]
tests/snippets/promql/test_metric_multiple_labels_with_spaces.txt .                                                                                [ 95%]
tests/snippets/promql/test_metric_one_label.txt .                                                                                [ 95%]
tests/snippets/properties/test_comments.txt .                                                                                [ 95%]
tests/snippets/properties/test_escaped_space_in_key.txt .                                                                                [ 95%]
tests/snippets/properties/test_escaped_space_in_value.txt .                                                                                [ 95%]
tests/snippets/properties/test_just_key.txt .                                                                                [ 95%]
tests/snippets/properties/test_just_key_with_space.txt .                                                                                [ 95%]
tests/snippets/properties/test_leading_whitespace_comments.txt .                                                                                [ 95%]
tests/snippets/properties/test_space_delimited_kv_pair.txt .                                                                                [ 95%]
tests/snippets/python/test_floats.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_01a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_01b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_02a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_02b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_03a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_03b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_04a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_04b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_05a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_05b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_06a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_06b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_07a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_07b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_08a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_08b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_09a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_09b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_10a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_10b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_11a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_11b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_12a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_12b.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_13a.txt .                                                                                [ 95%]
tests/snippets/python/test_fstring_13b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_14a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_14b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_15a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_15b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_16a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_16b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_17a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_17b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_18a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_18b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_19a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_19b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_20a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_20b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_21a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_21b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_22a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_22b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_23a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_23b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_24a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_24b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_25a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_25b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_26a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_26b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_27a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_27b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_28a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_28b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_29a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_29b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_30a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_30b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_31a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_31b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_32a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_32b.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_33a.txt .                                                                                [ 96%]
tests/snippets/python/test_fstring_33b.txt .                                                                                [ 97%]
tests/snippets/python/test_fstring_34a.txt .                                                                                [ 97%]
tests/snippets/python/test_fstring_34b.txt .                                                                                [ 97%]
tests/snippets/python/test_fstring_35a.txt .                                                                                [ 97%]
tests/snippets/python/test_fstring_35b.txt .                                                                                [ 97%]
tests/snippets/python/test_fstring_36a.txt .                                                                                [ 97%]
tests/snippets/python/test_fstring_36b.txt .                                                                                [ 97%]
tests/snippets/python/test_needs_name.txt .                                                                                [ 97%]
tests/snippets/python/test_pep_515.txt .                                                                                [ 97%]
tests/snippets/python/test_raw_fstring.txt .                                                                                [ 97%]
tests/snippets/python/test_walrus_operator.txt .                                                                                [ 97%]
tests/snippets/python2/test_cls_builtin.txt .                                                                                [ 97%]
tests/snippets/qbasic/test_keywords_with_dollar.txt .                                                                                [ 97%]
tests/snippets/r/test_call.txt .                                                                                [ 97%]
tests/snippets/r/test_custom_operator.txt .                                                                                [ 97%]
tests/snippets/r/test_dot_indexing.txt .                                                                                [ 97%]
tests/snippets/r/test_dot_name.txt .                                                                                [ 97%]
tests/snippets/r/test_indexing.txt .                                                                                [ 97%]
tests/snippets/r/test_name1.txt .                                                                                [ 97%]
tests/snippets/r/test_name2.txt .                                                                                [ 97%]
tests/snippets/r/test_name3.txt .                                                                                [ 97%]
tests/snippets/ruby/test_escaped_bracestring.txt .                                                                                [ 97%]
tests/snippets/ruby/test_interpolation_nested_curly.txt .                                                                                [ 97%]
tests/snippets/ruby/test_operator_methods.txt .                                                                                [ 97%]
tests/snippets/ruby/test_range_syntax1.txt .                                                                                [ 97%]
tests/snippets/ruby/test_range_syntax2.txt .                                                                                [ 97%]
tests/snippets/ruby/test_range_syntax3.txt .                                                                                [ 97%]
tests/snippets/rust/test_attribute.txt .                                                                                [ 97%]
tests/snippets/rust/test_break.txt .                                                                                [ 97%]
tests/snippets/rust/test_rawstrings.txt .                                                                                [ 97%]
tests/snippets/scala/test_colon_colon_function_name.txt .                                                                                [ 97%]
tests/snippets/scala/test_default_parameter.txt .                                                                                [ 97%]
tests/snippets/scala/test_end_val.txt .                                                                                [ 97%]
tests/snippets/scala/test_end_valx.txt .                                                                                [ 97%]
tests/snippets/scala/test_float_with_exponents.txt .                                                                                [ 97%]
tests/snippets/scala/test_function_operator_name.txt .                                                                                [ 97%]
tests/snippets/scala/test_import_path.txt .                                                                                [ 97%]
tests/snippets/scala/test_invalid_symbol_and_invalid_char.txt .                                                                                [ 97%]
tests/snippets/scala/test_open_soft_keyword.txt .                                                                                [ 97%]
tests/snippets/scala/test_package_name.txt .                                                                                [ 97%]
tests/snippets/scala/test_prepend_operator.txt .                                                                                [ 98%]
tests/snippets/scala/test_qualified_name.txt .                                                                                [ 98%]
tests/snippets/scala/test_qualified_name_class.txt .                                                                                [ 98%]
tests/snippets/scala/test_script_header.txt .                                                                                [ 98%]
tests/snippets/scala/test_symbol_followed_by_op.txt .                                                                                [ 98%]
tests/snippets/scala/test_symbol_name_ending_with_star.txt .                                                                                [ 98%]
tests/snippets/scala/test_underscore_name.txt .                                                                                [ 98%]
tests/snippets/scheme/keywords.txt .                                                                                [ 98%]
tests/snippets/scheme/numbers.txt .                                                                                [ 98%]
tests/snippets/scheme/strings.txt .                                                                                [ 98%]
tests/snippets/shell/test_array_nums.txt .                                                                                [ 98%]
tests/snippets/shell/test_curly_no_escape_and_quotes.txt .                                                                                [ 98%]
tests/snippets/shell/test_curly_with_escape.txt .                                                                                [ 98%]
tests/snippets/shell/test_end_of_line_nums.txt .                                                                                [ 98%]
tests/snippets/shell/test_parsed_single.txt .                                                                                [ 98%]
tests/snippets/shell/test_short_variable_names.txt .                                                                                [ 98%]
tests/snippets/shexc/test_prefixed_name_starting_with_number.txt .                                                                                [ 98%]
tests/snippets/smarty/test_nested_curly.txt .                                                                                [ 98%]
tests/snippets/snbt/json.txt .                                                                                [ 98%]
tests/snippets/snbt/literals.txt .                                                                                [ 98%]
tests/snippets/snbt/multiline.txt .                                                                                [ 98%]
tests/snippets/snbt/nesting.txt .                                                                                [ 98%]
tests/snippets/snbt/quoted_keys.txt .                                                                                [ 98%]
tests/snippets/systemverilog/test_basic.txt .                                                                                [ 98%]
tests/snippets/systemverilog/test_classes.txt .                                                                                [ 98%]
tests/snippets/systemverilog/test_numbers.txt .                                                                                [ 98%]
tests/snippets/systemverilog/test_operators.txt .                                                                                [ 98%]
tests/snippets/tcl/test_comma_and_at.txt .                                                                                [ 98%]
tests/snippets/teal/test_comments.txt .                                                                                [ 98%]
tests/snippets/teal/test_literals.txt .                                                                                [ 98%]
tests/snippets/teal/test_strings.txt .                                                                                [ 98%]
tests/snippets/terraform/test_attributes.txt .                                                                                [ 98%]
tests/snippets/terraform/test_backend.txt .                                                                                [ 98%]
tests/snippets/terraform/test_comment.txt .                                                                                [ 98%]
tests/snippets/terraform/test_functions.txt .                                                                                [ 98%]
tests/snippets/terraform/test_heredoc.txt .                                                                                [ 98%]
tests/snippets/terraform/test_module.txt .                                                                                [ 98%]
tests/snippets/terraform/test_resource.txt .                                                                                [ 98%]
tests/snippets/terraform/test_types.txt .                                                                                [ 98%]
tests/snippets/terraform/test_variable_declaration.txt .                                                                                [ 98%]
tests/snippets/terraform/test_variable_read.txt .                                                                                [ 99%]
tests/snippets/turtle/test_prefixed_name_starting_with_number.txt .                                                                                [ 99%]
tests/snippets/typescript/test_function_definition.txt .                                                                                [ 99%]
tests/snippets/unixconfig/etc_group.txt .                                                                                [ 99%]
tests/snippets/unixconfig/etc_passwd.txt .                                                                                [ 99%]
tests/snippets/unixconfig/etc_shadow.txt .                                                                                [ 99%]
tests/snippets/usd/test_attribute.txt .                                                                                [ 99%]
tests/snippets/usd/test_composition_arcs.txt .                                                                                [ 99%]
tests/snippets/usd/test_metadata.txt .                                                                                [ 99%]
tests/snippets/usd/test_numbers.txt .                                                                                [ 99%]
tests/snippets/usd/test_outer_match_at_sign.txt .                                                                                [ 99%]
tests/snippets/usd/test_outer_match_double.txt .                                                                                [ 99%]
tests/snippets/usd/test_outer_match_single.txt .                                                                                [ 99%]
tests/snippets/usd/test_string_multiple_line.txt .                                                                                [ 99%]
tests/snippets/usd/test_string_priority.txt .                                                                                [ 99%]
tests/snippets/usd/test_string_single_line.txt .                                                                                [ 99%]
tests/snippets/vbscript/test_floats.txt .                                                                                [ 99%]
tests/snippets/vbscript/test_floats_multiple.txt .                                                                                [ 99%]
tests/snippets/vbscript/test_integers.txt .                                                                                [ 99%]
tests/snippets/vbscript/test_invalid_character.txt .                                                                                [ 99%]
tests/snippets/vbscript/test_names.txt .                                                                                [ 99%]
tests/snippets/vbscript/test_reject_almost_float.txt .                                                                                [ 99%]
tests/snippets/vbscript/test_unterminated_string.txt .                                                                                [ 99%]
tests/snippets/wat/test_align_and_offset_accept_hexadecimal_numbers.txt .                                                                                [ 99%]
tests/snippets/wat/test_comment_with_open_paren.txt .                                                                                [ 99%]
tests/snippets/wat/test_comment_with_semicolon.txt .                                                                                [ 99%]
tests/snippets/wat/test_i32_const_is_builtin.txt .                                                                                [ 99%]
tests/snippets/wat/test_multiline_comment.txt .                                                                                [ 99%]
tests/snippets/wat/test_nested_comment.txt .                                                                                [ 99%]
tests/snippets/wat/test_string_byte_escape.txt .                                                                                [ 99%]
tests/snippets/wat/test_string_with_escape.txt .                                                                                [ 99%]
tests/snippets/wat/test_variable_name_pattern.txt .                                                                                [ 99%]
tests/snippets/whiley/test_whiley_operator.txt .                                                                                [ 99%]
tests/snippets/xml/multiline-comment-catastrophic-backtracking.txt .                                                                                [ 99%]
tests/snippets/yaml/test_yaml.txt .                                                                                [ 99%]
tests/snippets/yang/test_float_value.txt .                                                                                [ 99%]
tests/snippets/yang/test_integer_value.txt .                                                                                [ 99%]
tests/snippets/yang/test_namespace_1.txt .                                                                                [ 99%]
tests/snippets/yang/test_namespace_2.txt .                                                                                [ 99%]
tests/snippets/yang/test_revision_date.txt .                                                                                [ 99%]
tests/snippets/yang/test_string_value.txt .                                                                                [100%]

================================================================================= FAILURES =================================================================================
_______________________________________________________________ test_formatter_public_api[BmpImageFormatter] _______________________________________________________________

cls = <class 'pygments.formatters.img.BmpImageFormatter'>

    @pytest.mark.parametrize('cls', [getattr(formatters, name)
                                     for name in formatters.FORMATTERS])
    def test_formatter_public_api(cls):
        # test that every formatter class has the correct public API
        ts = list(lexers.PythonLexer().get_tokens("def f(): pass"))
        string_out = StringIO()
        bytes_out = BytesIO()

        info = formatters.FORMATTERS[cls.__name__]
        assert len(info) == 5
        assert info[1], "missing formatter name"
        assert info[2], "missing formatter aliases"
        assert info[4], "missing formatter docstring"

        try:
>           inst = cls(opt1="val1")

tests/test_basic_api.py:154:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pygments/formatters/img.py:373: in __init__
    self.fontw, self.fonth = self.fonts.get_char_size()
pygments/formatters/img.py:209: in get_char_size
    return self.fonts['NORMAL'].getsize('M')
/usr/lib64/python3.8/site-packages/PIL/ImageFont.py:480: in getsize
    deprecate("getsize", 10, "getbbox or getlength")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

deprecated = 'getsize', when = 10, replacement = 'getbbox or getlength'

    def deprecate(
        deprecated: str,
        when: int | None,
        replacement: str | None = None,
        *,
        action: str | None = None,
        plural: bool = False,
    ) -> None:
        """
        Deprecations helper.

        :param deprecated: Name of thing to be deprecated.
        :param when: Pillow major version to be removed in.
        :param replacement: Name of replacement.
        :param action: Instead of "replacement", give a custom call to action
            e.g. "Upgrade to new thing".
        :param plural: if the deprecated thing is plural, needing "are" instead of "is".

        Usually of the form:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            Use [replacement] instead."

        You can leave out the replacement sentence:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"

        Or with another call to action:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            [action]."
        """

        is_ = "are" if plural else "is"

        if when is None:
            removed = "a future version"
        elif when <= int(__version__.split(".")[0]):
            raise RuntimeError(f"{deprecated} {is_} deprecated and should be removed.")
        elif when == 10:
            removed = "Pillow 10 (2023-07-01)"
        else:
            raise ValueError(f"Unknown removal version, update {__name__}?")

        if replacement and action:
            raise ValueError("Use only one of 'replacement' and 'action'")

        if replacement:
            action = f". Use {replacement} instead."
        elif action:
            action = f". {action.rstrip('.')}."
        else:
            action = ""

>       warnings.warn(
            f"{deprecated} {is_} deprecated and will be removed in {removed}{action}",
            DeprecationWarning,
            stacklevel=3,
        )
E       DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01).

        Usually of the form:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            Use [replacement] instead."

        You can leave out the replacement sentence:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"

        Or with another call to action:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            [action]."
        """

        is_ = "are" if plural else "is"

        if when is None:
            removed = "a future version"
        elif when <= int(__version__.split(".")[0]):
            raise RuntimeError(f"{deprecated} {is_} deprecated and should be removed.")
        elif when == 10:
            removed = "Pillow 10 (2023-07-01)"
        else:
            raise ValueError(f"Unknown removal version, update {__name__}?")

        if replacement and action:
            raise ValueError("Use only one of 'replacement' and 'action'")

        if replacement:
            action = f". Use {replacement} instead."
        elif action:
            action = f". {action.rstrip('.')}."
        else:
            action = ""

>       warnings.warn(
            f"{deprecated} {is_} deprecated and will be removed in {removed}{action}",
            DeprecationWarning,
            stacklevel=3,
        )
E       DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01).

        Usually of the form:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            Use [replacement] instead."

        You can leave out the replacement sentence:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"

        Or with another call to action:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            [action]."
        """

        is_ = "are" if plural else "is"

        if when is None:
            removed = "a future version"
        elif when <= int(__version__.split(".")[0]):
            raise RuntimeError(f"{deprecated} {is_} deprecated and should be removed.")
        elif when == 10:
            removed = "Pillow 10 (2023-07-01)"
        else:
            raise ValueError(f"Unknown removal version, update {__name__}?")

        if replacement and action:
            raise ValueError("Use only one of 'replacement' and 'action'")

        if replacement:
            action = f". Use {replacement} instead."
        elif action:
            action = f". {action.rstrip('.')}."
        else:
            action = ""

>       warnings.warn(
            f"{deprecated} {is_} deprecated and will be removed in {removed}{action}",
            DeprecationWarning,
            stacklevel=3,
        )
E       DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01).

        Usually of the form:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            Use [replacement] instead."

        You can leave out the replacement sentence:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"

        Or with another call to action:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            [action]."
        """

        is_ = "are" if plural else "is"

        if when is None:
            removed = "a future version"
        elif when <= int(__version__.split(".")[0]):
            raise RuntimeError(f"{deprecated} {is_} deprecated and should be removed.")
        elif when == 10:
            removed = "Pillow 10 (2023-07-01)"
        else:
            raise ValueError(f"Unknown removal version, update {__name__}?")

        if replacement and action:
            raise ValueError("Use only one of 'replacement' and 'action'")

        if replacement:
            action = f". Use {replacement} instead."
        elif action:
            action = f". {action.rstrip('.')}."
        else:
            action = ""

>       warnings.warn(
            f"{deprecated} {is_} deprecated and will be removed in {removed}{action}",
            DeprecationWarning,
            stacklevel=3,
        )
E       DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01).

        Usually of the form:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            Use [replacement] instead."

        You can leave out the replacement sentence:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"

        Or with another call to action:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            [action]."
        """

        is_ = "are" if plural else "is"

        if when is None:
            removed = "a future version"
        elif when <= int(__version__.split(".")[0]):
            raise RuntimeError(f"{deprecated} {is_} deprecated and should be removed.")
        elif when == 10:
            removed = "Pillow 10 (2023-07-01)"
        else:
            raise ValueError(f"Unknown removal version, update {__name__}?")

        if replacement and action:
            raise ValueError("Use only one of 'replacement' and 'action'")

        if replacement:
            action = f". Use {replacement} instead."
        elif action:
            action = f". {action.rstrip('.')}."
        else:
            action = ""

>       warnings.warn(
            f"{deprecated} {is_} deprecated and will be removed in {removed}{action}",
            DeprecationWarning,
            stacklevel=3,
        )
E       DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01).

        Usually of the form:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            Use [replacement] instead."

        You can leave out the replacement sentence:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"

        Or with another call to action:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            [action]."
        """

        is_ = "are" if plural else "is"

        if when is None:
            removed = "a future version"
        elif when <= int(__version__.split(".")[0]):
            raise RuntimeError(f"{deprecated} {is_} deprecated and should be removed.")
        elif when == 10:
            removed = "Pillow 10 (2023-07-01)"
        else:
            raise ValueError(f"Unknown removal version, update {__name__}?")

        if replacement and action:
            raise ValueError("Use only one of 'replacement' and 'action'")

        if replacement:
            action = f". Use {replacement} instead."
        elif action:
            action = f". {action.rstrip('.')}."
        else:
            action = ""

>       warnings.warn(
            f"{deprecated} {is_} deprecated and will be removed in {removed}{action}",
            DeprecationWarning,
            stacklevel=3,
        )
E       DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01).

        Usually of the form:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            Use [replacement] instead."

        You can leave out the replacement sentence:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"

        Or with another call to action:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            [action]."
        """

        is_ = "are" if plural else "is"

        if when is None:
            removed = "a future version"
        elif when <= int(__version__.split(".")[0]):
            raise RuntimeError(f"{deprecated} {is_} deprecated and should be removed.")
        elif when == 10:
            removed = "Pillow 10 (2023-07-01)"
        else:
            raise ValueError(f"Unknown removal version, update {__name__}?")

        if replacement and action:
            raise ValueError("Use only one of 'replacement' and 'action'")

        if replacement:
            action = f". Use {replacement} instead."
        elif action:
            action = f". {action.rstrip('.')}."
        else:
            action = ""

>       warnings.warn(
            f"{deprecated} {is_} deprecated and will be removed in {removed}{action}",
            DeprecationWarning,
            stacklevel=3,
        )
E       DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01).

        Usually of the form:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            Use [replacement] instead."

        You can leave out the replacement sentence:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)"

        Or with another call to action:

            "[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).
            [action]."
        """

        is_ = "are" if plural else "is"

        if when is None:
            removed = "a future version"
        elif when <= int(__version__.split(".")[0]):
            raise RuntimeError(f"{deprecated} {is_} deprecated and should be removed.")
        elif when == 10:
            removed = "Pillow 10 (2023-07-01)"
        else:
            raise ValueError(f"Unknown removal version, update {__name__}?")

        if replacement and action:
            raise ValueError("Use only one of 'replacement' and 'action'")

        if replacement:
            action = f". Use {replacement} instead."
        elif action:
            action = f". {action.rstrip('.')}."
        else:
            action = ""

>       warnings.warn(
            f"{deprecated} {is_} deprecated and will be removed in {removed}{action}",
            DeprecationWarning,
            stacklevel=3,
        )
E       DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead.

/usr/lib64/python3.8/site-packages/PIL/_deprecate.py:62: DeprecationWarning
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_guess.py:24: This is identified as T-SQL
SKIPPED [1] tests/test_guess.py:40: This is identified as MIME
SKIPPED [1] tests/test_guess.py:46: This is identified as Python
SKIPPED [1] tests/test_latex_formatter.py:58: [Errno 2] No such file or directory: 'latex'
FAILED tests/test_basic_api.py::test_formatter_public_api[BmpImageFormatter] - DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). U...
FAILED tests/test_basic_api.py::test_formatter_public_api[GifImageFormatter] - DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). U...
FAILED tests/test_basic_api.py::test_formatter_public_api[ImageFormatter] - DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use ...
FAILED tests/test_basic_api.py::test_formatter_public_api[JpgImageFormatter] - DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). U...
FAILED tests/test_basic_api.py::test_formatter_unicode_handling[BmpImageFormatter] - DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-...
FAILED tests/test_basic_api.py::test_formatter_unicode_handling[GifImageFormatter] - DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-...
FAILED tests/test_basic_api.py::test_formatter_unicode_handling[ImageFormatter] - DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01)...
FAILED tests/test_basic_api.py::test_formatter_unicode_handling[JpgImageFormatter] - DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-...

list of modules installed in build env
Package                       Version
----------------------------- -----------------
alabaster                     0.7.12
attrs                         22.1.0.dev0
Babel                         2.10.2
Brlapi                        0.8.3
build                         0.8.0
charset-normalizer            2.1.0
codespell                     2.1.0
cycler                        0.11.0
distro                        1.7.0
docutils                      0.17.1
extended-project              1.2.3
extras                        1.0.0
fixtures                      4.0.0
fonttools                     4.34.4
gpg                           1.17.1-unknown
idna                          3.3
imagesize                     1.4.1
importlib-metadata            4.12.0
iniconfig                     1.1.1
Jinja2                        3.1.1
kiwisolver                    1.4.3
libcomps                      0.1.18
louis                         3.22.0
lxml                          4.9.1
MarkupSafe                    2.1.1
matplotlib                    3.5.2
numpy                         1.23.1
olefile                       0.46
packaging                     21.3
pbr                           5.8.1
pep517                        0.12.0
Pillow                        9.2.0
pip                           22.0.4
pluggy                        1.0.0
py                            1.11.0
Pygments                      2.12.0
PyGObject                     3.42.1
pyparsing                     3.0.9
pytest                        7.1.2
python-dateutil               2.8.2
pytz                          2022.1
requests                      2.28.1
rpm                           4.17.0
setuptools                    63.1.0
simple-project                1.2.3
six                           1.16.0
snowballstemmer               2.2.0
Sphinx                        5.0.2
sphinxcontrib-applehelp       1.0.2.dev20220410
sphinxcontrib-devhelp         1.0.2.dev20220410
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-jsmath          1.0.1.dev20220712
sphinxcontrib-qthelp          1.0.3.dev20220712
sphinxcontrib-serializinghtml 1.1.5
testtools                     2.5.0
tomli                         2.0.1
urllib3                       1.26.9
wcag-contrast-ratio           0.9
wheel                         0.37.1
zipp                          3.8.0

Do't worry 😋
I've addded those units temporary to --deselect list.

That should be fixed now via #2196, right?

One sec will check that ..

Looks lik it will solve issue of errors however it would be good sooner or later solve thise warnings.

Hold my beer: #2198


The weight doesn't change. It's always 1.

Hi, my network has 5 tasks, 2 kinds of loss-- nn.mseloss（point_loss） and Dice (seg_loss)
when I use AutomaticWeightedLoss, the self.params[i] always 1。

After communicating with you privately, the problem has been resolved. Hahaha, the params of AutomaticWeightedLoss should also be put in the optimizer. Good luck!:stuck_out_tongue_winking_eye:

Can you help us for me I couldnt not resolved that this problem


go dep management

the current code base has some go dependencies and require a user to fetch them manually. As a workaround we use our make system to install these deps. However, this approach may lead to inconsistent versioning and unexpected errors.

Backlog

See also related issue #247 for fabric v2 CC transition (which requires module now)