usb: writing to CDC-ACM interface other than first one crashes USB stack on stm32f767

Describe the bug
If two composite CDC-ACM interfaces are configured (e.g. in the cdc_acm_composite sample), writing data to the second interface (using e.g. uart_poll_out()) crashes the USB stack to the point of becoming completely unusable.
To Reproduce
Steps to reproduce the behavior:

west build -b bare_test samples/subsys/usb/cdc_acm_composite/

I don't have an stm32f767 devboard on hand yet, so I've only tested this on custom hardware with a very bare devicetree. I'm expecting this to work with -b nucleo_f767zi as well though, will update once the board arrives.

west flash
Observe serial devices showing up in dmesg
Open terminals on both interfaces (/dev/serial/by-id/usbZEPHYR_Zephyr_CDC_ACM_Composite_sample_*-if00 and -if02)
Type something into the second terminal (-if02): it shows up in the first terminal
Type something into the first terminal: (-if00): dmesg reports usb usb1-port11: disabled by hub (EMI?), re-enabling..., serial interfaces disappear, don't reappear until zephyr board is reset

The reproduction is a little fragile sometimes, so try again if it doesn't work on the first attempt.
I have attempted to reproduce this with an STM32F769I DISCOVERY board (slightly MCU) with no success, but this board only exposes the USB-HS peripheral, not the affected USB-FS peripheral.
Expected behavior
Writing data to a CDC-ACM interface doesn't hang up the USB stack.
Impact
This makes using multiple USB serial interfaces impossible on affected devices.
Logs and console output
[00:00:00.000,000] <dbg> usb_cdc_acm: cdc_acm_init: Device dev 0x80098ac dev_data 0x200200b0 cfg 0x2002044c added to devlist 0x20020dc8
[00:00:00.000,000] <dbg> usb_cdc_acm: cdc_acm_init: Device dev 0x8009898 dev_data 0x20020000 cfg 0x20020470 added to devlist 0x20020dc8
*** Booting Zephyr OS build v3.6.0-1761-gdd0923d7ad8a ***
[00:00:00.001,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x2002044c status 2
[00:00:00.001,000] <dbg> usb_cdc_acm: cdc_acm_do_cb: Device connected
[00:00:00.001,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x20020470 status 2
[00:00:00.001,000] <dbg> usb_cdc_acm: cdc_acm_do_cb: Device connected
[00:00:00.001,000] <inf> cdc_acm_composite: Wait for DTR
[00:00:00.007,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x2002044c status 5
[00:00:00.007,000] <inf> usb_cdc_acm: Device suspended
[00:00:00.007,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x20020470 status 5
[00:00:00.007,000] <inf> usb_cdc_acm: Device suspended
[00:00:00.201,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x2002044c status 1
[00:00:00.201,000] <dbg> usb_cdc_acm: cdc_acm_do_cb: Device reset detected
[00:00:00.201,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x20020470 status 1
[00:00:00.201,000] <dbg> usb_cdc_acm: cdc_acm_do_cb: Device reset detected
[00:00:00.333,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x2002044c status 1
[00:00:00.333,000] <dbg> usb_cdc_acm: cdc_acm_do_cb: Device reset detected
[00:00:00.333,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x20020470 status 1
[00:00:00.333,000] <dbg> usb_cdc_acm: cdc_acm_do_cb: Device reset detected
[00:00:00.437,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x2002044c status 3
[00:00:00.437,000] <inf> usb_cdc_acm: Device configured
[00:00:00.437,000] <dbg> usb_cdc_acm: cdc_acm_read_cb: ep 1 size 0 dev_data 0x200200b0 rx_ringbuf space 512
[00:00:00.437,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x20020470 status 3
[00:00:00.437,000] <inf> usb_cdc_acm: Device configured
[00:00:00.437,000] <dbg> usb_cdc_acm: cdc_acm_read_cb: ep 2 size 0 dev_data 0x20020000 rx_ringbuf space 512
[00:00:00.437,000] <dbg> usb_cdc_acm: cdc_acm_class_handle_req: CDC_SET_LINE_CODING 9600 0 0 8
[00:00:00.439,000] <dbg> usb_cdc_acm: cdc_acm_class_handle_req: CDC_SET_LINE_CODING 9600 0 0 8
[00:00:26.147,000] <dbg> usb_cdc_acm: cdc_acm_write_cb: ep 82: written 0 bytes dev_data 0x200200b0
[00:00:26.147,000] <dbg> usb_cdc_acm: cdc_acm_class_handle_req: CDC_SET_CONTROL_LINE_STATE 0x3
[00:00:26.147,000] <dbg> usb_cdc_acm: cdc_acm_class_handle_req: CDC_SET_LINE_CODING 115200 0 0 8
[00:00:26.247,000] <dbg> usb_cdc_acm: tx_work_handler: Nothing to send
[00:00:34.303,000] <dbg> usb_cdc_acm: cdc_acm_write_cb: ep 84: written 0 bytes dev_data 0x20020000
[00:00:34.303,000] <dbg> usb_cdc_acm: cdc_acm_class_handle_req: CDC_SET_CONTROL_LINE_STATE 0x3
[00:00:34.303,000] <dbg> usb_cdc_acm: cdc_acm_class_handle_req: CDC_SET_LINE_CODING 115200 0 0 8
[00:00:34.335,000] <inf> cdc_acm_composite: DTR set, start test
[00:00:34.336,000] <dbg> usb_cdc_acm: cdc_acm_int_in: CDC_IntIN EP[81]
[00:00:34.344,000] <dbg> usb_cdc_acm: cdc_acm_int_in: CDC_IntIN EP[81]
[00:00:34.403,000] <dbg> usb_cdc_acm: tx_work_handler: Nothing to send
[00:00:35.352,000] <dbg> usb_cdc_acm: cdc_acm_int_in: CDC_IntIN EP[83]
[00:00:35.360,000] <dbg> usb_cdc_acm: cdc_acm_int_in: CDC_IntIN EP[83]
[00:00:42.457,000] <dbg> usb_cdc_acm: cdc_acm_read_cb: ep 1 size 1 dev_data 0x200200b0 rx_ringbuf space 512
[00:00:42.457,000] <dbg> usb_cdc_acm: cdc_acm_fifo_read: dev 0x80098ac size 64 rx_ringbuf space 511
[00:00:42.457,000] <dbg> usb_cdc_acm: cdc_acm_fifo_fill: dev_data 0x20020000 len 1 tx_ringbuf space 512
[00:00:42.457,000] <dbg> usb_cdc_acm: tx_work_handler: Got 1 bytes from ringbuffer send to ep 84
[00:02:11.227,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x2002044c status 4
[00:02:11.227,000] <inf> usb_cdc_acm: Device disconnected
[00:02:11.227,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x20020470 status 4
[00:02:11.227,000] <inf> usb_cdc_acm: Device disconnected
[00:02:11.227,000] <dbg> usb_cdc_acm: cdc_acm_read_cb: ep 1 size 0 dev_data 0x200200b0 rx_ringbuf space 512
[00:02:11.227,000] <dbg> usb_cdc_acm: cdc_acm_write_cb: ep 84: written 1 bytes dev_data 0x20020000
[00:02:11.227,000] <dbg> usb_cdc_acm: cdc_acm_write_cb: tx_ringbuf is empty
[00:02:11.227,000] <dbg> usb_cdc_acm: cdc_acm_read_cb: ep 2 size 0 dev_data 0x20020000 rx_ringbuf space 512
[00:02:18.563,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x2002044c status 2
[00:02:18.563,000] <dbg> usb_cdc_acm: cdc_acm_do_cb: Device connected
[00:02:18.563,000] <dbg> usb_cdc_acm: cdc_acm_dev_status_cb: cfg 0x20020470 status 2
[00:02:18.563,000] <dbg> usb_cdc_acm: cdc_acm_do_cb: Device connected

00:26: first terminal is opened on -if00
00:34: second terminal is opened on -if02
00:42: letter "a" is typed into -if00, which immediately kills the USB connection
02:11: the device is physically disconnected from and reconnected to the USB port, but it does not enumerate anymore.

Corresponding dmesg output, with timestamps synchronized:
[0.708383] usb 1-11: new full-speed USB device number 126 using xhci_hcd
[0.862380] usb 1-11: New USB device found, idVendor=2fe3, idProduct=0002, bcdDevice= 3.06
[0.862395] usb 1-11: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[0.862400] usb 1-11: Product: Zephyr CDC ACM Composite sample
[0.862404] usb 1-11: Manufacturer: ZEPHYR
[0.862408] usb 1-11: SerialNumber:<PHONE_NUMBER>260023
[0.867851] cdc_acm 1-11:1.0: ttyACM0: USB ACM device
[0.869148] cdc_acm 1-11:1.2: ttyACM1: USB ACM device
[42.887281] usb usb1-port11: disabled by hub (EMI?), re-enabling...
[42.887299] usb 1-11: USB disconnect, device number 126
[43.384770] usb 1-11: new full-speed USB device number 127 using xhci_hcd
[59.000791] usb 1-11: device descriptor read/64, error -110
[74.748857] usb 1-11: new full-speed USB device number 3 using xhci_hcd
[90.233078] usb 1-11: device descriptor read/64, error -110
[105.853294] usb usb1-port11: attempt power cycle
[106.269127] usb 1-11: new low-speed USB device number 4 using xhci_hcd
[106.269618] usb 1-11: Device not responding to setup address.
[106.481757] usb 1-11: Device not responding to setup address.
[106.689145] usb 1-11: device not accepting address 4, error -71
[106.817106] usb 1-11: new low-speed USB device number 6 using xhci_hcd
[106.817574] usb 1-11: Device not responding to setup address.
[107.025527] usb 1-11: Device not responding to setup address.
[107.233144] usb 1-11: device not accepting address 6, error -71
[107.233188] usb usb1-port11: unable to enumerate USB device

Environment (please complete the following information):

OS: Ubuntu 22.04
Toolchain: Zephyr SDK 0.16.5
Commit SHA or Version used:

latest main at time of posting: dd0923d7ad8ac1bac39bcbb55418ebb678591991
v3.6.0

I've bisected this down to 1204aa25c82735b6359fbe79ec95a2186d612e30, cc @Desvauxm-st


make sure bundle JS is served with correct content type

When running the server on Windows, it looks like Flask may not always serve the JS files with the correct Content-Type. Because that is using ES modules, the type is strictly required. This is visible in the browser console:

It looks like the content types can be set in code or in the registry, and code is definitely the better option: https://stackoverflow.com/questions/59355194/python-flask-error-failed-to-load-module-script-strict-mime-type-checking-i

Should be fixed now: https://github.com/ssube/onnx-web/blob/main/api/onnx_web/main.py#L36


Can we not rely on existing console running?

[ ] We have a limit for number of consoles running so should the user have one ready for the input on deploy?
[x] Test creating and starting a console from the API

Tested send input to existing console that did not start in the console and got this error:
{"error":"Console not yet started.  Please load it (or its iframe) in a browser first"}

Instructions should be updated to include that each deploy must be preceeded by loading the console in a browser


Handle redirection properly

Problem: At the moment if a proxied cloudrun service attempts to redirect with absolute url (location header = https://xxx.run.app/xxx), the redirection would fail because it will no longer go through the proxy.

Good idea!


Fix and address typo/grammatical issues within the README

This PR makes recommendations for typos and grammatical errors within the README text.

Thank you very much for this PR.


Create  calculated measure in Pygwalker

Is your feature request related to a problem? Please describe.
I'm always frustrated when I want to flexibly create a calculated field in the UI.
Describe the solution you'd like
I can create a field and describe the results of this field through sql, like superset.
Describe alternatives you've considered
not sure, I want to know other's suggestions.

Related discussions: #207

Hi, @353913575, @ddealwis09
Do you have any suggestions for this?

I don't know if I'm misunderstanding but maybe this can work, https://github.com/Kanaries/graphic-walker/wiki/How-to-Create-Computed-field-in-Graphic-Walker

@Edu126 Yes, I forgot to close this issue.


NativeConstantInvocationFixer - should not prepend a backslash when the file is not namespaced

If the file is not namespaced, all native calls are already fully-qualified. So prepending a backslash is not necessary there.

OK, actually, NativeFunctionInvocationFixer already has a scope option for that AFAIU. but NativeConstantInvocationFixer does not have it

@stof, can you propose a PR to add scope option for native_constant_invocation rule ?

@keradus already done


Add micah about

Adding Micah's info to the about page
The page will look like

Looks good, thanks!


boards: arm: nxp: Add pinctrl-names

Add "pinctrl-names" property for "default" to all NXP kinetis
based boards.
Signed-off-by: Kumar Gala<EMAIL_ADDRESS>

how is pinctrl-names ultimately used?

It is superfluous now, but used by the pinctrl proposal in https://github.com/zephyrproject-rtos/zephyr/pull/37572 to assign the state ID for each pinctrl-N prop.


Release sriovnet 1.2.0

its been a while since we last release.
in addition we did not release after moving this project to k8snetworkplumbingwg.

We should do a release to include CVE fixes:
#63
#62

v1.2.0 has been released !


7.1 Issue with a loop.

I've been noticing that the loops I've been creating are no longer working in the p5js editor. I even opened up an old project that I had saved, and it's not working either. If you can please help me, that would be great! Thank you!

@Coach1 This should be opened as an issue on the p5.js web editor repo. Here is the link.

This has been resolved upstream via https://github.com/processing/p5.js-web-editor/issues/635 so I'm going to close this now


Break out more components into plasma_core

Moves more stuff into plasma_core.

Just a quick question to keep sync. @kfichter what's your plan on what to move to plasma_core/ and what to stay in plasma/?

@boolafish Realistically I want to remove plasma entirely and make a folder contracts instead. I want to replace ChildChain with a Tester object (to replace TestingLanguage) that simulates the child chain.


Crystal framework are running on development

Hi,
I do not know about other frameworks, but :

Kemal
Raze
Lucky
Amber
are running on development mode

:warning: Mode is choosed with environment var, I don't know how to set them via neph
@tbrand I do not know if there is a mode for route_cr

@tbrand It appears the environment is not used by kemal, raze, ...
in fact make  / neph could be aware of CRYSTAL_ENV ... but those vars are not exported processed behind (e.g : symlinks in bin/).
The only way I see to do so, is exporting env var when running server (e.g: in class ExecServer)
What do you think ?

@tbrand it appear that frameworks are still running on development.
I've fixed this on #142


Fixed #24124 -- Used default context_processors in tests.

Patch from Aymeric
https://code.djangoproject.com/ticket/24124

It's merged in 5f7230e


Getting errors on install and opening

I am running xp pro I get the following errors on install and opening see screen shots
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. Windows Vista SP2 x64]
Bitness of browser

Additional context
Add any other context about the problem here.

Are you using an outdated version of Windows XP? What service pack do you use?

I am using windows sp pro sp3
32 bit
----- Original Message -----
From: FK2FAGHMS
To: win32ss/supermium
Cc: Methen ; Author
Sent: Wednesday, September 25, 2024 9:37 AM
Subject: Re: [win32ss/supermium] Getting errors on install and opening (Issue #917)
Are you using an outdated version of Windows XP? What service pack do you use?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Looks like progwrp.dll is not functioning. Let's wait the developer's response.

Install Visual C++ Repack
https://github.com/abbodi1406/vcredist/releases/tag/v0.35.0

Tried installing the vcrresirst for xp but still getting popup error for the second error click ok and browser opens ok

@Methen
Are you sure you have downloaded and launched the very latest x86 installer from below?
https://github.com/win32ss/supermium/releases/download/v126-r3/supermium_126_32_setup.exe

Install Visual C++ Repack for XP / 2003

Supermium's author has gone to great lengths to remove any dependency on WinXP SP3 on the Win10uCRT DLLs (installed on XP via the MSVC++2015-2019 redistributable or the alternate package you linked to :smile: ), so if this dependency stays current for the Supermium installer, then it's an omission on his behalf (but I doubt this is the case, else the tracker would've been full with relevant reports :wink: ) ...

Install Visual C++ Repack for Vista / 2008

The OP is on XP SP3 32-bit; but he didn't bother properly completing the issue template in the first post :disappointed: ; besides, a fully updated Vista machine (to EoL) isn't in need of the MSVC++2015-2019 "crutch"; Win10uCRT DLLs should be already present systemwide via Windows Update; be that as it may, the latest Sm-v126-r3_x86 shouldn't need those api-ms-*.dlls to launch on any supported OS...

there was ony one for xp
----- Original Message -----
From: Vangelis66
To: win32ss/supermium
Cc: Methen ; Mention
Sent: Wednesday, September 25, 2024 1:24 PM
Subject: Re: [win32ss/supermium] Getting errors on install and opening (Issue #917)
@Methen
Are you sure you have downloaded and launched the very latest x86 installer from below?
https://github.com/win32ss/supermium/releases/download/v126-r3/supermium_126_32_setup.exe
Install Visual C++ Repack for XP / 2003

Supermium's author has gone to great lengths to remove any dependency on WinXP SP3 on the Win10uCRT DLLs (installed on XP via the MSVC++2015-2019 redistributable or the alternate package you linked to 😄 ), so if this dependency stays current for the Supermium installer, then it's an omission on his behalf (but I doubt this is the case, else the tracker would've been full with relevant reports 😉 ) ...
Install Visual C++ Repack for Vista / 2008

The OP is on XP SP3 32-bit; but he didn't bother properly completing the issue template in the first post 😞 ; besides, a fully updated Vista machine (to EoL) isn't in need of the MSVC++2015-2019 "crutch"; Win10uCRT DLLs should be already present systemwide via Windows Update; be that as it may, the latest Sm-v126-r3_x86 shouldn't need those api-ms-*.dlls to launch on any supported OS...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

there was ony one for xp

... Where did you download from?
Please use the official download link from GitHub (the one I posted myself above), for the latest version of Supermium, i.e. v126-r3_ x86, which is good for XP all the way to Win11 ...

the link that posted here on  this post
----- Original Message -----
From: Vangelis66
To: win32ss/supermium
Cc: Methen ; Mention
Sent: Wednesday, September 25, 2024 1:39 PM
Subject: Re: [win32ss/supermium] Getting errors on install and opening (Issue #917)
there was ony one for xp

... Where did you download from?
Please use the official download link from GitHub (the one I posted myself above), for the latest version of Supermium, i.e. v126-r3_ x86, which is good for XP all the way to Win11 ...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

There were some issues with the earlier releases of Supermium 126 on Windows XP, but they should have been cleared up with release R3.
But this is an entirely new issue, as the first error is associated with an installer component derived from 7-Zip 9.20, which is compatible with Windows 95 and up. And the second one is seeking a function introduced in Vista's NTDLL, and not called by third-party applications. I think this system has had some sort of kernel extension or wrapper applied to it, which may be causing issues.

I just went head and reinstalled version 121 untill they get the newer one fixed
----- Original Message -----
From: Shane Fournier
To: win32ss/supermium
Cc: Methen ; Mention
Sent: Wednesday, September 25, 2024 9:51 PM
Subject: Re: [win32ss/supermium] Getting errors on install and opening (Issue #917)
There were some issues with the earlier releases of Supermium 126 on Windows XP, but they should have been cleared up with release R3.
But this is an entirely new issue, as the first error is associated with an installer component derived from 7-Zip 9.20, which is compatible with Windows 95 and up. And the second one is seeking a function introduced in Vista's NTDLL, and not called by third-party applications. I think this system has had some sort of kernel extension or wrapper applied to it, which may be causing issues.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

I just went head and reinstalled version 121 untill they get the newer one fixed

... And what you just did :-1: is a sure way of "your issue(s)" never getting fixed in the future  ; for the time being, it is just you reporting those two issues with the installer and main executable, no-one else can replicate under a "proper" XP SP3 x86 installation, this includes the Supermium developer...
As the dev confirmed, both issues you cited shouldn't be present at all, yet you continue to be secretive about your system's "details":

I think this system has had some sort of kernel extension or wrapper applied to it, which may be causing issues.

Any comment on this speculation?
OT: I realise you (mainly) prefer e-mail as a means to post in this thread, but can you PLEASE make a small extra effort to edit out the bulk of the "----- Original Message -----" stuff in your replies? This isn't an old "mailing list" type of bug tracker, you know :wink: ...
It appears you have a poor record of following simple instructions given and posting netiquette, as demonstrated by issues you previously opened in the Mypal GitHub tracker (#509, #514); please, respect the free time of volunteers (like myself) and the extra-precious time of the maintainer when posting, by being helpful/more cooperating :smile: ...
Regards.

yep but  it has been reported and they know cant use a version if its not working right not can I ?
----- Original Message -----
From: Vangelis66
To: win32ss/supermium
Cc: Methen ; Mention
Sent: Thursday, September 26, 2024 12:52 PM
Subject: Re: [win32ss/supermium] Getting errors on install and opening (Issue #917)
I just went head and reinstalled version 121 untill they get the newer one fixed

... And what you just did 👎 is a sure way of "your issue(s)" never getting fixed in the future ; for the time being, it is just you reporting those two issues with the installer and main executable, no-one else can replicate under a "proper" XP SP3 x86 installation, this includes the Supermium developer...
As the dev confirmed, both issues you cited shouldn't be present at all, yet you continue to be secretive about your system's "details":
I think this system has had some sort of kernel extension or wrapper applied to it, which may be causing issues.

Any comment on this speculation?
OT: I realise you (mainly) prefer e-mail as a means to post in this thread, but can you PLEASE make a small extra effort to edit out the bulk of the "----- Original Message -----" stuff in your replies? This isn't an old "mailing list" type of bug tracker, you know 😉 ...
It appears you have a poor record of following simple instructions given and posting netiquette, as demonstrated by issues you previously opened in the Mypal GitHub tracker (#509, #514); please, respect the free time of volunteers (like myself) and the extra-precious time of the maintainer when posting, by being helpful/more cooperating 😄 ...
Regards.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Can you show "Add/Remove Programs" list so we can see if there's any incompatible stuff installed.

See attachment
----- Original Message -----
From: FK2FAGHMS
To: win32ss/supermium
Cc: Methen ; Mention
Sent: Thursday, September 26, 2024 1:21 PM
Subject: Re: [win32ss/supermium] Getting errors on install and opening (Issue #917)
Can you show "Add/Remove Programs" list so we can see if there's any incompatible stuff installed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

What attachment? 😕  Can you use website rather than replying via e-mail please?

Let me try a again with different enail
see attachment
----- Original Message -----
From: FK2FAGHMS
To: win32ss/supermium
Cc: Methen ; Mention
Sent: Thursday, September 26, 2024 7:46 PM
Subject: Re: [win32ss/supermium] Getting errors on install and opening (Issue #917)
What attachment? 😕 Can you use website rather than replying via e-mail please?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

VISIT THE DAMN WEBSITE ALREADY!

----- Original Message -----
From: FK2FAGHMS
To: win32ss/supermium
Cc: Methen ; Mention
Sent: Tuesday, October 01, 2024 8:58 AM
Subject: Re: [win32ss/supermium] Getting errors on install and opening (Issue #917)
VISIT THE DAMN WEBSITE ALREADY!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

@win32ss Please tell him to use the website directly or close this issue because he is not helpfull at all.


Update README

Installation assumes that bower is installed globally. If it isn't, the user must run the command npm install --global bower (I had to run as root).

Closed by #15


[4.2 2018-04-30] [sourcekit] Pass -resource-dir when parsing driver arguments

Cherry-pick #16547 to swift-4.2 04-30

... instead of overriding it after the driver is done. This improves
the fidelity of anything that looks at the resource directory inside the
driver or frontend argument parsing.  In particular, it fixes an issue
where sourcekit requests would fail if they included the -sanitize=
option because the driver would fail to find the runtime libraries.
Even though this should be more correct for all uses, in the
interests of understanding all possible immediate effects of this
change, I manually audited all the code that looks at the resource
directory in between when it is parsed as and argument and when
createCompilerInvocation returns. I claim that the only changes are:

The sanitizer library check that we wanted to change
The DWARFDebugFlags, which are for IRGen so don't affect SourceKit
The Migrator data paths, which also don't affect SourceKit

For now, I put the -resource-dir option at the end of the arguments so
that it overrides any existing option, which mimics how it behaved
before.  We might want to move it to the beginning so that we honour a
user-provided resource directory, but that should be a separate change.
rdar://40147839

@swift-ci please nominate

Explanation: When sourcekit started using the driver to parse arguments, it inadvertantly broke all semantic functionality (code-completion, highlighting, etc.) when a runtime sanitizer is enabled (i.e. the request compiler arguments contain -sanitize=<value>), because the driver checks for the pressence of the sanitizer library inside the resource directory.  This change is to pass the -resource-dir explicitly when parsing arguments so that it is picked up early enough, which incidentally is more technically correct and future proof.
Scope: Affects sourcekit semantic requests when the compiler arguments contain -santizie=<value>.
Radar: rdar://40147839
Risk: Low. I audited the code and verified this only materially affects the sanitizer library check (see commit message for details).
Testing: Regression test added. Can be verified by enabling a runtime sanitizer -sanitize=address and trying to use code-completion. After this patch it shouldn't fail.
Reviewer: @jrose-apple

Build failed
Swift Test Linux Platform
Git Sha - da1a43c61b88ff0c9d12f916768415bc62b19a81

@swift-ci please test Linux


Forms: Add theming support

Summary of changes

Added theming support for the FeatureForm component that includes customizing the ColorScheme and Typography for most of the fields.
This theming support is built on top of Material3 to provide default values.
Added tests to ensure the color scheme and typography are being passed down and used by the appropriate field types.
Updates binary API

Details
It provides a way to customize the color scheme and typography using two classes.

FeatureFormColorScheme

EditableTextFieldColors
ReadOnlyTextFieldColors
GroupElementColors
RadioButtonFieldColors

FeatureFormTypoGraphy

EditableTextFieldTypography
ReadOnlyTextFieldTypography
GroupElementTypography
RadioButtonFieldTypography

These individual classes allow a user to fully customize the color and typography for all the fields independently.
These properties are passed down the compose tree using the LocalColorScheme and LocalLocalTypography composition local.
All these classes provide a createDefaults() factory method that can only be called from a Composable context. The createDefaults() method hydrates the individual properties of these classes from MaterialTheme. It also provides parameters with default values, so that any developer can quickly glance at what MaterialTheme values are being set as defaults.
Due to this design, the FeatureFormColorScheme and FeatureFormTypoGraphy can only be created from a Composable context, since it relies on MaterialTheme for default values. Hence, as a convenience, an object class DefaultThemeTokens is introduced which provides a default colorScheme and typography based on reasonable hardcoded values. These hardcoded defaults are adapted from the Material3.lightColorScheme and MaterialTheme.Typography.
Furthermore, the DefaultThemeTokens are also useful in providing a good default value for the LocalColorScheme and LocalLocalTypography  composition local. This is particularly helpful for compose previews.

@sorenoid I've updated this based on our new design standard and addressed some of the feedback. Please have another look!

Thanks @sorenoid, merging.


change error type for trailing commas, fixes #352

NOTE: There is one small defect with this patch. The line and column numbers that the error message reports match the position of the closing brace after the trailing comma and not the position of the trailing comma.
I plant to continue searching for the logic that determines the line and column numbers. If someone wants to speed things up and point me towards the relevant code it would be much appreciated.

There is still the problem of reporting misleading line and column numbers.

@dtolnay why are there suddenly a bunch of clippy errors in code I haven't touched? Should I make all of the suggested changes?

Clippy adds new lints occasionally. I filed https://github.com/serde-rs/json/issues/354 to follow up.


Type icon is cropped in the Site Contents header

Category

[ ] Question
[ ] Typo
[x] Bug
[ ] Additional article idea

Expected or Desired Behavior
The icon is displayed correctly
Observed Behavior
see the screenshot:

Steps to Reproduce
Open Site Contents

I have not been able to reproduce the issue in my machines, so please try to provide more information(your Browser version, OS configure and so on) so we can repro and fix it.

Hmm, it looks like it works fine now...


Make the skills go down the side on the resume page

Tightening it up might make it look a little better.

Did it, I think I should add more skills though


Implement parsing of pLink HTML output

This will let us to parse more data and looks less hacky than parsing tabular output.

Done in #10


cli: registration of ES templates

ADDS to the index init command the registration of the
ES templates, loaded from the entrypoint 'invenio_search.templates'

Signed-off-by: Dinos Kousidis<EMAIL_ADDRESS>

Otherwise it looks good 👍

Could you just update the documentation?


Unable to locate package qt4-dev-tools

Hey,
I'm trying to run the shell script which is "get_pi_requirements.sh". However, it gives me an error:
"Unable to locate package qt4-dev-tools"
As far as I know, there's a new version of the package, but not sure if it's compatible with the project.
Any idea of fixing the missing requirement?

Maybe sudo apt install qtbase5-dev
Also I was unable to get sudo apt-get -y install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev to work. I think libpng12-dev is out of date, but libpng-dev didn't work either.


一键训练step3错误

报错内容如下：

INFO:21:{'train': {'log_interval': 200, 'seed': 1234, 'epochs': 20000, 'learning_rate': 0.0001, 'betas': [0.8, 0.99], 'eps': 1e-09, 'batch_size': 1, 'fp16_run': True, 'lr_decay': 0.999875, 'segment_size': 12800, 'init_lr_ratio': 1, 'warmup_epochs': 0, 'c_mel': 45, 'c_kl': 1.0}, 'data': {'max_wav_value': 32768.0, 'sampling_rate': 40000, 'filter_length': 2048, 'hop_length': 400, 'win_length': 2048, 'n_mel_channels': 125, 'mel_fmin': 0.0, 'mel_fmax': None, 'training_files': './logs\\21/filelist.txt'}, 'model': {'inter_channels': 192, 'hidden_channels': 192, 'filter_channels': 768, 'n_heads': 2, 'n_layers': 6, 'kernel_size': 3, 'p_dropout': 0, 'resblock': '1', 'resblock_kernel_sizes': [3, 7, 11], 'resblock_dilation_sizes': [[1, 3, 5], [1, 3, 5], [1, 3, 5]], 'upsample_rates': [10, 10, 2, 2], 'upsample_initial_channel': 512, 'upsample_kernel_sizes': [16, 16, 4, 4], 'use_spectral_norm': False, 'gin_channels': 256, 'spk_embed_dim': 109}, 'model_dir': './logs\\21', 'experiment_dir': './logs\\21', 'save_every_epoch': 5, 'name': '21', 'total_epoch': 20, 'pretrainG': 'pretrained/f0G48k.pth', 'pretrainD': 'pretrained/f0D48k.pth', 'gpus': '0', 'sample_rate': '40k', 'if_f0': 1, 'if_latest': 1, 'if_cache_data_in_gpu': 0}
WARNING:21:C:\Users\ldciv\Desktop\Retrieval-based-Voice-Conversion-WebUI-main\RVC-beta\train is not a git repository, therefore hash value comparison will be ignored.
[W C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\distributed\c10d\socket.cpp:601] [c10d] The client socket has failed to connect to [localhost.sangfor.com.cn]:51545 (system error: 10049 - 在其上下文中，该请求的 地址无效。).
[W C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\torch\csrc\distributed\c10d\socket.cpp:601] [c10d] The client socket has failed to connect to [localhost.sangfor.com.cn]:51545 (system error: 10049 - 在其上下文中，该请求的 地址无效。).
INFO:torch.distributed.distributed_c10d:Added key: store_based_barrier_key:1 to store for rank: 0
INFO:torch.distributed.distributed_c10d:Rank 0: Completed store-based barrier for key:store_based_barrier_key:1 with 1 nodes.
gin_channels: 256 self.spk_embed_dim: 109
INFO:21:loaded pretrained pretrained/f0G48k.pth pretrained/f0D48k.pth
Traceback (most recent call last):
  File "C:\Users\ldciv\Desktop\Retrieval-based-Voice-Conversion-WebUI-main\RVC-beta\train_nsf_sim_cache_sid_load_pretrain.py", line 534, in
    main()
  File "C:\Users\ldciv\Desktop\Retrieval-based-Voice-Conversion-WebUI-main\RVC-beta\train_nsf_sim_cache_sid_load_pretrain.py", line 50, in main
    mp.spawn(
  File "C:\Users\ldciv\Desktop\Retrieval-based-Voice-Conversion-WebUI-main\RVC-beta\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 239, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "C:\Users\ldciv\Desktop\Retrieval-based-Voice-Conversion-WebUI-main\RVC-beta\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 197, in start_processes
    while not context.join():
  File "C:\Users\ldciv\Desktop\Retrieval-based-Voice-Conversion-WebUI-main\RVC-beta\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 160, in join
    raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException:

-- Process 0 terminated with the following error:
Traceback (most recent call last):
  File "C:\Users\ldciv\Desktop\Retrieval-based-Voice-Conversion-WebUI-main\RVC-beta\train_nsf_sim_cache_sid_load_pretrain.py", line 148, in run
    utils.latest_checkpoint_path(hps.model_dir, "D_*.pth"), net_d, optim_d
  File "C:\Users\ldciv\Desktop\Retrieval-based-Voice-Conversion-WebUI-main\RVC-beta\train\utils.py", line 206, in latest_checkpoint_path
    x = f_list[-1]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ldciv\Desktop\Retrieval-based-Voice-Conversion-WebUI-main\RVC-beta\runtime\lib\site-packages\torch\multiprocessing\spawn.py", line 69, in _wrap
    fn(i, *args)
  File "C:\Users\ldciv\Desktop\Retrieval-based-Voice-Conversion-WebUI-main\RVC-beta\train_nsf_sim_cache_sid_load_pretrain.py", line 166, in run
    net_g.module.load_state_dict(
  File "C:\Users\ldciv\Desktop\Retrieval-based-Voice-Conversion-WebUI-main\RVC-beta\runtime\lib\site-packages\torch\nn\modules\module.py", line 2041, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for SynthesizerTrnMs256NSFsid:
        Unexpected key(s) in state_dict: "dec.noise_convs.4.weight", "dec.noise_convs.4.bias", "dec.ups.4.bias", "dec.ups.4.weight_g", "dec.ups.4.weight_v", "dec.resblocks.12.convs1.0.bias", "dec.resblocks.12.convs1.0.weight_g", "dec.resblocks.12.convs1.0.weight_v", "dec.resblocks.12.convs1.1.bias", "dec.resblocks.12.convs1.1.weight_g", "dec.resblocks.12.convs1.1.weight_v", "dec.resblocks.12.convs1.2.bias", "dec.resblocks.12.convs1.2.weight_g", "dec.resblocks.12.convs1.2.weight_v", "dec.resblocks.12.convs2.0.bias", "dec.resblocks.12.convs2.0.weight_g", "dec.resblocks.12.convs2.0.weight_v", "dec.resblocks.12.convs2.1.bias", "dec.resblocks.12.convs2.1.weight_g", "dec.resblocks.12.convs2.1.weight_v", "dec.resblocks.12.convs2.2.bias", "dec.resblocks.12.convs2.2.weight_g", "dec.resblocks.12.convs2.2.weight_v", "dec.resblocks.13.convs1.0.bias", "dec.resblocks.13.convs1.0.weight_g", "dec.resblocks.13.convs1.0.weight_v", "dec.resblocks.13.convs1.1.bias", "dec.resblocks.13.convs1.1.weight_g", "dec.resblocks.13.convs1.1.weight_v", "dec.resblocks.13.convs1.2.bias", "dec.resblocks.13.convs1.2.weight_g", "dec.resblocks.13.convs1.2.weight_v", "dec.resblocks.13.convs2.0.bias", "dec.resblocks.13.convs2.0.weight_g", "dec.resblocks.13.convs2.0.weight_v", "dec.resblocks.13.convs2.1.bias", "dec.resblocks.13.convs2.1.weight_g", "dec.resblocks.13.convs2.1.weight_v", "dec.resblocks.13.convs2.2.bias", "dec.resblocks.13.convs2.2.weight_g", "dec.resblocks.13.convs2.2.weight_v", "dec.resblocks.14.convs1.0.bias", "dec.resblocks.14.convs1.0.weight_g", "dec.resblocks.14.convs1.0.weight_v", "dec.resblocks.14.convs1.1.bias", "dec.resblocks.14.convs1.1.weight_g", "dec.resblocks.14.convs1.1.weight_v", "dec.resblocks.14.convs1.2.bias", "dec.resblocks.14.convs1.2.weight_g", "dec.resblocks.14.convs1.2.weight_v", "dec.resblocks.14.convs2.0.bias", "dec.resblocks.14.convs2.0.weight_g", "dec.resblocks.14.convs2.0.weight_v", "dec.resblocks.14.convs2.1.bias", "dec.resblocks.14.convs2.1.weight_g", "dec.resblocks.14.convs2.1.weight_v", "dec.resblocks.14.convs2.2.bias", "dec.resblocks.14.convs2.2.weight_g", "dec.resblocks.14.convs2.2.weight_v".
        size mismatch for dec.noise_convs.0.weight: copying a param with shape torch.Size([256, 1, 96]) from checkpoint, the shape in current model is torch.Size([256, 1, 80]).
        size mismatch for dec.noise_convs.1.weight: copying a param with shape torch.Size([128, 1, 16]) from checkpoint, the shape in current model is torch.Size([128, 1, 8]).
        size mismatch for dec.noise_convs.2.weight: copying a param with shape torch.Size([64, 1, 8]) from checkpoint, the shape in current model is torch.Size([64, 1, 4]).
        size mismatch for dec.noise_convs.3.weight: copying a param with shape torch.Size([32, 1, 4]) from checkpoint, the shape in current model is torch.Size([32, 1, 1]).
        size mismatch for dec.conv_post.weight: copying a param with shape torch.Size([1, 16, 7]) from checkpoint, the shape in current model is torch.Size([1, 32, 7]).

操作不规范
你上个配置保存过pth，然后换了新配置，又不改实验名，就接着上次不一样的配置结构用新的结构接着训，是对不上的

操作不规范
你上个配置保存过pth，然后换了新配置，又不改实验名，就接着上次不一样的配置结构用新的结构接着训，是对不上的

所以想请教一下如何完全清除过往配置？我直接删除了logs内的内容，还需要删除其它文件嘛？先谢谢了ＴＴ

新老实验名别一样就行了

我遇到了相同的问题，我把实验目录（logs/实验名）整个删除了再做也不行吗？ @RVC-Boss

我遇到了相同的问题，我把实验目录（logs/实验名）整个删除了再做也不行吗？ @RVC-Boss

把weights目录下的同名文件也删了，然后再重新训练


KAFKA-3914: Global discovery of state stores

@guozhangwang @enothereska @mjsax @miguno  please take a look. A few things that need to be clarified

I've added StreamsConfig.USER_ENDPOINT_CONFIG, but should we have separate configs for host and port or is this one config ok?
HostState in the KIP has a byte[] field - not sure why and what it would be populated with
I've changed the API to return List<KafkaStreamsInstance> as opposed to Map<HostInfo, Set<TaskMetadata>> as i find this far more intuitive to work with.

LGTM at a high level, I still need to look more at the details next.

LGTM

@dguy you might want to merge with trunk one more time. Thanks.

Thanks @enothereska - done

I will make a more thorough pass soon. Just left some general comments.

Made one more pass.

@guozhangwang - i've made updates based on what we discussed. Please take a look

@dguy Seems the previous PR on null checking has some conflicts with this one, could you rebase?

LGTM, merged to trunk.


Lexical error in multipart request

I am trying to perform a multipart PUT request to CouchDB, but am receiving the following error.
[Sun, 26 Mar 2017 16:21:04 GMT] [debug] [<0.6514.2>] 'PUT' /couch-recliner-test/fake-id {1,1} from "<IP_ADDRESS>"
Headers: [{'Accept',"application/json"},
          {'Connection',"close"},
          {'Content-Length',"665"},
          {'Content-Type',"multipart/form-data; boundary=--------------------NODENEEDLEHTTPCLIENT"},
          {'Host',"localhost:5984"},
          {'User-Agent',"Needle/1.5.0 (Node.js v7.7.3; linux x64)"}]
[Sun, 26 Mar 2017 16:21:04 GMT] [debug] [<0.6514.2>] OAuth Params: []
[Sun, 26 Mar 2017 16:21:04 GMT] [error] [<0.6514.2>] attempted upload of invalid JSON (set log_level to debug to log it)
[Sun, 26 Mar 2017 16:21:04 GMT] [debug] [<0.6514.2>] Invalid JSON: {{error,
                                     {1,
                                      "lexical error: malformed number, a digit is required after the minus sign.\n"}},
                                    <<"----------------------NODENEEDLEHTTPCLIENT\r\nContent-Disposition: form-data; name=\"document_body\"\r\nContent-Type: application/json\r\n\r\n{\"test\":\"data\",\"hello\":22,\"deep\":{\"more\":\"hii\",\"array\":[22,33,145]},\"array\":[\"some\",\"text\",\"here\"],\"description\":\"A longer bit of text with perhaps a line break in it.\\nRight here.\",\"bool\":true,\"_attachments\":{\"fake-attachment.txt\":{\"follows\":true,\"content_type\":\"text/html\",\"length\":46}}}\r\n----------------------NODENEEDLEHTTPCLIENT\r\nContent-Disposition: form-data; name=\"file_0\"; filename=\"fake-attachment.txt\"\r\nContent-Type: text/html\r\n\r\nThis is an example attachment containing text.\r\n----------------------NODENEEDLEHTTPCLIENT--">>}
[Sun, 26 Mar 2017 16:21:04 GMT] [info] [<0.6514.2>] <IP_ADDRESS> - - PUT /couch-recliner-test/fake-id 400
[Sun, 26 Mar 2017 16:21:04 GMT] [debug] [<0.6514.2>] httpd 400 error response:
 {"error":"bad_request","reason":"invalid_json"}

The request looks approximately like this.
const mydata = {
    document_body: {
        content_type: 'application/json',
        value: '{"test":"data","hello":22,"deep":{"more":"hii","array":[22,33,145]},"array":["some","text","here"],"description":"A longer bit of text with perhaps a line break in it.\\nRight here.","bool":true,"_attachments":{"fake-attachment.txt":{"follows":true,"content_type":"text/html","length":46}}}'
    },
    file_0: {
        content_type: 'text/html',
        filename: 'fake-attachment.txt',
        buffer: mybuffer
    }
};

needle.request('PUT', url, mydata, { multipart: true, json: true }, callback);

The key part of the error seems to be.
"lexical error: malformed number, a digit is required after the minus sign.\n"
But I am unsure what it means.

Does it need to be both multipart AND json at the same time? Try without
one or the other.
On Mar 26, 2017 9:32 AM, "Kequc"<EMAIL_ADDRESS>wrote:

I am trying to perform a multipart PUT request to CouchDB, but am
receiving the following error.
[Sun, 26 Mar 2017 16:21:04 GMT] [debug] [<0.6514.2>] 'PUT' /couch-recliner-test/fake-id {1,1} from "<IP_ADDRESS>"
Headers: [{'Accept',"application/json"},
{'Connection',"close"},
{'Content-Length',"665"},
{'Content-Type',"multipart/form-data; boundary=--------------------NODENEEDLEHTTPCLIENT"},
{'Host',"localhost:5984"},
{'User-Agent',"Needle/1.5.0 (Node.js v7.7.3; linux x64)"}]
[Sun, 26 Mar 2017 16:21:04 GMT] [debug] [<0.6514.2>] OAuth Params: []
[Sun, 26 Mar 2017 16:21:04 GMT] [error] [<0.6514.2>] attempted upload of invalid JSON (set log_level to debug to log it)
[Sun, 26 Mar 2017 16:21:04 GMT] [debug] [<0.6514.2>] Invalid JSON: {{error,
{1,
"lexical error: malformed number, a digit is required after the minus sign.\n"}},
<<"----------------------NODENEEDLEHTTPCLIENT\r\nContent-Disposition: form-data; name="document_body"\r\nContent-Type: application/json\r\n\r\n{"test":"data","hello":22,"deep":{"more":"hii","array":[22,33,145]},"array":["some","text","here"],"description":"A longer bit of text with perhaps a line break in it.\nRight here.","bool":true,"_attachments":{"fake-attachment.txt":{"follows":true,"content_type":"text/html","length":46}}}\r\n----------------------NODENEEDLEHTTPCLIENT\r\nContent-Disposition: form-data; name="file_0"; filename="fake-attachment.txt"\r\nContent-Type: text/html\r\n\r\nThis is an example attachment containing text.\r\n----------------------NODENEEDLEHTTPCLIENT--">>}
[Sun, 26 Mar 2017 16:21:04 GMT] [info] [<0.6514.2>] <IP_ADDRESS> - - PUT /couch-recliner-test/fake-id 400
[Sun, 26 Mar 2017 16:21:04 GMT] [debug] [<0.6514.2>] httpd 400 error response:
{"error":"bad_request","reason":"invalid_json"}
The request looks approximately like this.
const mydata = {
document_body: {
content_type: 'application/json',
value: '{"test":"data","hello":22,"deep":{"more":"hii","array":[22,33,145]},"array":["some","text","here"],"description":"A longer bit of text with perhaps a line break in it.\nRight here.","bool":true,"_attachments":{"fake-attachment.txt":{"follows":true,"content_type":"text/html","length":46}}}'
},
file_0: {
content_type: 'text/html',
filename: 'fake-attachment.txt',
buffer: mybuffer
}
};
needle.request('PUT', url, mydata, { multipart: true, json: true }, callback);
The key part of the error seems to be.
"lexical error: malformed number, a digit is required after the minus
sign.\n"
But I am unsure what it means.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tomas/needle/issues/209, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAApThSzMXdsaVZmipqDMitookWHV6SKks5rppMjgaJpZM4MpexQ
.

Expected behaviour, I suppose would be that the data is sent in multipart and accepts a json response.

I'm not sure I understand. Did it work? What behaviour were you expecting instead?

The next issue I was coming up to was that CouchDB seems to expect a specific order to the multipart request. So I am not sure I'd be able to ensure that from a key value pair. So I had to switch away to the much larger request library.
I'm so sorry.
With regard to expected behaviour, I didn't expect the error and expected what I laid out in my second comment.

No need to say I'm sorry. We're all friends here. ;)
How should I fire a CouchDB instance in order to try out your code?
On Tue, Mar 28, 2017 at 9:25 AM, Kequc<EMAIL_ADDRESS>wrote:

The next issue I was coming up to was that CouchDB seems to expect a
specific order to the multipart request. So I am not sure I'd be able to
ensure that from a key value pair. So I had to switch away to the much
larger request library.
I'm so sorry.
With regard to expected behaviour, I didn't expect the error and expected
what I laid out in my second comment.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tomas/needle/issues/209#issuecomment-289825682, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAApTiZGiZGeSrqTHgIz1X1dVF-9XZyDks5rqTRtgaJpZM4MpexQ
.

--
Fork Ltd.
forkhq.com

I suppose just download and install it. By default the db instance runs at http://<IP_ADDRESS>:5984
https://couchdb.apache.org/

I finally took the time to set up CouchDB (v1.6.0) and try your code, and after some testing I found out:
a) that yes, your example does render a { error: 'bad_request', reason: 'invalid_json' } response,
b) that if removing the multipart: true option works (at least it does create a new record),
c) that replacing 'multipart/form-data' with 'multipart/related' seems to be the right way to get it working, but for some reason when using that header the request never finishes. This seems to be the reason why.


Suppression List - "Search for List Entries" returns a 500

Example using the Mock Server returns a 500.

since we no longer use apiary, I'm closing this one


Module parse failed for svg import

I've created an assets folder to share between all application under app/assets and started getting lots of errors related to svg assets like this

ERROR in ./app/assets/card-icon.svg
Module parse failed: user/appName/app/assets/card-icon.svg Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
|
|
|
@ ./app/components/Navigation/index.js 44:1319-1350

line referred to is
import CardIcon from 'assets/card-icon.svg' inside components/Navigation/index.js not sure what is causing this, only thing changed in webpack configs is addition of postcss-import:
// PostCSS plugins
const postcssImport = require('postcss-import')
...

  // Process the CSS with PostCSS
  postcssPlugins: [
    postcssImport({
      addDependencyTo: webpack,
      path: [path.resolve(process.cwd(), '/app')]
    }),
    cssnext({ // Allow future CSS features to be used, also auto-prefixes the CSS...
      browsers: ['last 2 versions', 'IE > 9'] // ...based on this browser list
    }),
    postcssReporter({ // Posts messages from plugins to the terminal
      clearMessages: true
    })
  ],

It seems to include images fine in dev mode through npm run start but fails at npm run build. prepending file! in the following way import CardIcon from 'file!assets/card-icon.svg' seems to fix it for build, but doesn't work in development mode anymore

I get the same error when trying to use react-icons
ERROR in ./~/react-icons/md/menu.js
Module parse failed: C:\Users\Tobias\Documents\GitHub\react-experiment\react-boilerplate\node_modules\react-icons\md\menu.js Unexpected token (8:12)
You may need an appropriate loader to handle this file type.
|     render() {
|         return (
|             <IconBase viewBox="0 0 40 40" {...this.props}>
|                 <g><path d="m5 10h30v3.4h-30v-3.4z m0 11.6v-3.2h30v3.2h-30z m0 8.4v-3.4h30v3.4h-30z"/></g>
|             </IconBase>
 @ ./app/components/NavBar/index.js 49:0-41

@dehrax I met the same problem as you. I was able to fix it, by changing the way of importing icon from react-icons library. Maybe it will work for you as well.
from this:
import { FaBeer } from 'react-icons/fa/';
to this:
import { FaBeer } from 'react-icons/lib/fa/';

This works for me and in the example app:
import Banner from './banner-metal.jpg';

<Img className={styles.logo} src={Banner} alt="react-boilerplate - Logo" />

Both .jpg and .svg files are loaded with the file-loader, so this should work perfectly fine. Do you have any more code to show?

@mxstbr I believe this is a configuration issue that is due to the react-icons library. The title of this issue is misleading, importing and handling of svg files as a static asset should not be the issue here. I explained what I have run into and seen others run into with my post in #1131
The comment I am referencing

Hi,
I'm getting the same error

ERROR in ./~/react-icon-base/index.js
Module parse failed: /home/tal/Code/WebStorm/business/neshama-client/node_modules/react-icon-base/index.js Unexpected token (3:50)
You may need an appropriate loader to handle this file type.
| import { default as React, PropTypes } from 'react'
|
| const IconBase = ({ children, color, size, style, ...props }, { reactIconBase = {} }) => {
|   const computedSize = size || reactIconBase.size || '1em'
|   return (
@ ./~/react-icons/lib/fa/500px.js 18:15-41
@ ./~/react-icons/lib/fa/index.js

when importing statement is:

import { FaBeer } from 'react-icons/lib/fa/';

or

import { FaBeer } from 'react-icons/fa';

Hi @talbenbasat, I tried to user react-icons as described in the docs and I too got the same error as you. It seems their docs simply do not work, maybe it's because of webpack 2, but I'm just guessing. I found the following to work:
import * as FontAwesome from 'react-icons/lib/fa';

<FontAwesome.FaBeer />

OR
import FaBeer from 'react-icons/lib/fa/beer';

<FaBeer />

Judging by the age of this ticket, you have either figured it out by now or moved on, so I am closing the issue, but please report back if the above works or if you found anything else that works.

Similar to #1405 #1131

If you are not using es6 compiler like babel or rollup.js, it's possible to include icons from the compiled folder ./lib. Babel by default will ignore node_modules so if you don't want to change the settings you will need to use files from ./lib
var FaBeer = require('react-icons/lib/fa/beer');

try to add a random alt prop on your img element


RuntimeError: main thread is not in main loop

🐛 Bug Report
When repeatedly loading a netCDF file into an iris CubeList, concatenating it into a cube, and plotting the first time slice of it, the error message
RuntimeError: main thread is not in main loop

is printed, and the script halts momentarily, before continuing like nothing ever happened.
How To Reproduce
These steps to reproduce the behavior works for me:
1. Download ERA5 data
Download hourly the ERA5 data file for the year 2008, the variable temperature, and the pressure levels 1000, 850, 700 and 500 using the bash command
era5cli hourly --startyear 2008 --endyear 2008 --threads 6 --hours 0 6 12 18 --levels 1000 850 700 500 --variables temperature

This should give the file era5_temperature_2008_hourly.nc.
2. Reduce the spatial and temporal resolution of the data and crop
Increase the spatial scale of the data (reduce the resolution) to 2 degrees in both latitude and longitude and crop the latitude to the interval [36, 72] degrees (resulting in 19 unique latitude values) and the longitude to [-10, 32] degrees (22 unique longitude values).
Also aggregate the data for each day by calculating the daily mean (this gives 366 unique time values, one per day).
Give the new, low resolution file the name low_res_era5_temperature_2008_hourly.nc and put it in your home folder (~). This file should be much smaller than the original one.
3. Use iris to trigger the error
Run the following code:

################################################################################
# IMPORTS
################################################################################

import matplotlib.pyplot as plt
import iris
from iris import cube
import iris.quickplot as qplt
from iris.util import equalise_attributes, unify_time_units
from datetime import datetime

################################################################################
# OPTIONS
################################################################################

should_plot_cube = True
file_path = '~/low_res_era5_temperature_2008_hourly.nc'

################################################################################
# FUNCTIONS
################################################################################

def main():
    # Load cube into a CubeList
    cube_list = iris.cube.CubeList([iris.load_cube(file_path)])

    # Concatenate years
    equalise_attributes(cube_list)
    unify_time_units(cube_list)
    print("{}: Before concatenating".format(datetime.now()))
    cube = cube_list.concatenate_cube()  # This is the function call in which the RuntimeError exception is raised
    print("{}: After concatenating".format(datetime.now()))

    # Guess bounds for dimension coords to prevent warning "Coordinate '<name>' is not bounded, guessing contiguous bounds"
    for coord in cube.coords():
        if isinstance(coord, iris.coords.DimCoord) and not coord.has_bounds():
            coord.guess_bounds()

    if should_plot_cube:
        # Plot first time slice of first height level of cube (this needs to be done for the exception to be raised)
        qplt.pcolormesh(cube[0, 0])
        plt.gca().coastlines()
        plt.show()

if __name__ == '__main__':
    while True:
        main()

Expected behaviour
For me, this plots a couple of figures before halting for about half a minute and printing error messages during the call to concatenate_cube, then continuing as normal.
Environment

OS & Version:  Red Hat Enterprise Linux, version 8.5 (Ootpa)
Iris Version: 3.2.1
IDE: PyCharm 2022.1.3 (Community Edition)
mamba 0.22.1
conda 4.12.0
Python 3.10.5
matplotlib-base 3.5.2
tk 8.6.12

Additional context
This is the output I get:
2022-07-27 09:03:51.137175: Before concatenating
2022-07-27 09:03:51.149643: After concatenating
2022-07-27 09:03:52.858487: Before concatenating
2022-07-27 09:03:52.868713: After concatenating
2022-07-27 09:03:53.635076: Before concatenating
2022-07-27 09:03:53.646487: After concatenating
2022-07-27 09:03:54.355593: Before concatenating
2022-07-27 09:03:54.367502: After concatenating
2022-07-27 09:03:54.962006: Before concatenating
2022-07-27 09:03:54.974568: After concatenating
2022-07-27 09:03:55.589351: Before concatenating
2022-07-27 09:03:55.600623: After concatenating
2022-07-27 09:03:56.213049: Before concatenating
2022-07-27 09:03:56.224121: After concatenating
2022-07-27 09:03:56.860654: Before concatenating
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Image.__del__ at 0x14ed69733880>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 4046, in __del__
    self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Image.__del__ at 0x14ed69733880>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 4046, in __del__
    self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Image.__del__ at 0x14ed69733880>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 4046, in __del__
    self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Image.__del__ at 0x14ed69733880>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 4046, in __del__
    self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Image.__del__ at 0x14ed69733880>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 4046, in __del__
    self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Image.__del__ at 0x14ed69733880>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 4046, in __del__
    self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.__del__ at 0x14ed6971c1f0>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 388, in __del__
    if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Image.__del__ at 0x14ed69733880>
Traceback (most recent call last):
  File "/home/sm_krikr/installed_software/mambaforge/envs/mldown/lib/python3.10/tkinter/__init__.py", line 4046, in __del__
    self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
2022-07-27 09:05:28.094443: After concatenating
2022-07-27 09:06:31.327562: Before concatenating
2022-07-27 09:06:31.337681: After concatenating
2022-07-27 09:06:32.311972: Before concatenating
2022-07-27 09:06:32.323198: After concatenating
2022-07-27 09:06:33.120662: Before concatenating
2022-07-27 09:06:33.131096: After concatenating
2022-07-27 09:06:33.807861: Before concatenating
2022-07-27 09:06:33.819105: After concatenating
...

Some observations:

I don't seem to get this error if I set should_plot_cube to False, so the plotting is involved in triggering this error.
I don't get this error if I set should_import_tkinter to True. I guess this may mean that either iris or matplotlib loads a different version of tkinter? I still get the error if I import tkinter; it is just delayed to a later call of concatenate_cube. Bummer; I thought I had a workaround.
I don't seem to get this error if I load the original netCDF file instead of the one with reduced resolution and spatial extension.
If I run main() in a loop it executes fine a few times after the first execution, but eventually triggers the same error (although it might be for another netCDF file).

Thanks for getting in touch @krikru. We agree this is likely a plotting issue, and probably resides within Matplotlib. Do you get the same error if you use the QtAgg Matplotlib backend?
import matplotlib
matplotlib.use("QtAgg")

Failing that: Qt5Agg instead?

Hi @trexfeathers,
Thanks for your response. Of course, now I can't reproduce the error, even without changing my code, so it seems like it occurs very sporadically. This may have something to do with the fact that I am running the scipt from a shared login node on a super computer, and that other people may or may not have been using the same node at the same time. I'm also trying to run the code from a compute node in the same computer cluster (which should be exclusively reserved for to me) but I can't seem to reproduce the error there either (and there the plot window seem to be much slower over all for some reason).
If the error ever re-appears, I will try using QtAgg or Qt5Agg and see if it helps. Although, at this point, I can't be sure whether anything I try actually works or whether it just seems to work and will stop working later (like I thought that importing tkinter worked, which it turned out later that it didn't).


LTS: 005-1-invalid-au.zip: send statement after terminated

In https://github.com/adlnet/CATAPULT/blob/main/lts/pkg/src/005-1-invalid-au/005-1-invalid-au.js#L763 we send the same Statement as in https://github.com/adlnet/CATAPULT/blob/main/lts/pkg/src/005-1-invalid-au/005-1-invalid-au.js#L345 again.
Per the xAPI spec:

An LRS MUST NOT make any modifications to its state based on receiving a Statement with a statementId that it already has a Statement for. Whether it responds with 409 Conflict or 204 No Content, it MUST NOT modify the Statement or any other Object.

We currently return a 409 Conflict but the CATAPULT Testsuite fails here.

It's inappropriate to respond to that statement as a 409, as the second statement on L763 has occurred after a valid terminate of the cmi5 session.  This means the credentials are no longer valid for the cmi5 session and the statement should never be allowed to be validated against another statement to even identify a conflict.  Probably a 401 response from your LMS is more appropriate here.

My bad, i missed the terminated in the previous step. Thanks!


SAK-29373 add the ability to create auto groups from roster

https://jira.sakaiproject.org/browse/SAK-29373
Several faculty members have requested the ability to create Auto Groups from a selected roster, just like how they can create Auto Groups from a selected role.
The linked PR introduces the same set of choices you get for Auto Groups for a role for a selected roster as well:
"Create a single group for the selected roster" (default)
"Create random groups from members in the selected roster"

If you choose the later of the two options, you get two sub-options just like with role (random number of groups with specified number of users per group, or random number of users in a specified number of groups).
I continued with the existing design in such a way that you can effectively create groups (random or not) for both sections and rosters at the same time.

Refactored according to all comments provided.

Nice job with code review and quick changes!  +1

Thanks, @ottenhoff, @plukasew and @bbailla2 for your help with the review. I'll keep this open over night just in case some other comments roll in, otherwise I'll merge it into master in the morning.


0.0.97's change isn't present in the repository

The 0.0.97 version in PyPI has "version = '0.0.97'" in setup.py, but the source code here still have "version = '0.0.96'".

NOw it's the contrary :

pypi version is 0.0.97
github version is 0.0.98 (with new requirements for the tests, among other things)


Enable 8.1.0-SNAPSHOT for CI again

Context
The synthetics E2E pipeline was failing when executing tests for 8.1.0-SNAPSHOT due to an unhealthy container: ERROR: for elastic-agent  Container "dada48cb7ab1" is unhealthy.
The reason of this issue was visible in the logs of that container:
Kibana Fleet setup failed: http POST request to http://kibana:5601/api/fleet/setup fails: Unauthorized: <nil>. Response: {"statusCode":401,"error":"Unauthorized","message":"Unauthorized"}
Issue where the agent team is working on a fix:  https://github.com/elastic/beats/issues/29603
What to do
Since we disabled 8.1.0 to avoid having the pipeline failing repeatedly. What we need to do is enable it again once the fix is ready.

Post FF Testing
LGTM: The pipeline is consistently stable over the past CI runs.
Last successful run of the time of writing https://apm-ci.elastic.co/job/apm-agent-rum/job/e2e-synthetics-mbp/job/master/80/


Test Metrics: Include error message in table

As a user I want to have error message in Test Metrics table, so when I share my report with others this helps other to figure out the issue instead of looking into log.html

Added feature as part of https://github.com/adiralashiva8/robotframework-metrics/commit/1c7942e60492bad27e5d695b3fc11fd782cc8f32 commit


Status topic

How can i get the status topic for a specific gpio? The  "status_topic: status" seems to always return running

The status topic is an MQTT LWT message. This means that the mqtt broker, not the raspberry, will update this message if/when the raspberry disconnects.
To get the status of a specific GPIO, try publishing with the retain option
digital_inputs:
  - name: inputx
    ...
    retain: yes

Then, the broker will always store the last updated state of that input, and any new subscriber will get that status.
The new subscriber should also check the LWT message from the status_topic, because if that reports that the raspberrypi is not running, then the value of the gpio topic may not be correct (and probably isn't). However, if the raspberry status_topic does say running, then the raspberry is currently connected and presumably has published a message with the latest gpio state change.


feat: Is it possible to add response.body to CapturedResponse?

What would you like to be added:
I hope to add response.body in CapturedResponse, which will allow us to get more information when writing e2e tests. As I can see, the body field is retained in the code, but it is not set in CapturedResponse
Why this is needed:
When I wrote the e2e test related to backend weight, I found that just getting the response metadata did not allow me to clearly know where the traffic went? Therefore, I could not determine the correctness of the weight configuration, I could not use other information of the response Determine the true destination of the traffic.

I changed the title to make it clearer that this is a conformance feature.


Getting started with cryptograhpy

Understanding Cryptography: A Textbook for Students and Practitioners
Handbook of Applied Cryptography

I have not read either of these. Are they available to browse online?


[970] Fix webpack-dev-server and local CSS pipeline

Context
Developing locally on this app is painful due to the fact that CSS gets recompiled on every request, and will only get more painful over time. Fixing this actually required a very involved investigation.
Changes proposed in this pull request

Expose govuk-frontend assets path directly to the public
Import main application.scss file using application.js; this seems awkward but is "normal" in frontendlandia where webpack heralds from
Remove WEBPACKER_DEV_SERVER_HOST entries in .env* files, as these were causing Rails to not progressively enhance to webpack-dev-server when it was successfully booted up in parallel
Remove webpack-dev-server entry from Procfile.dev, because foreman does not respect .nvmrc when choosing to run a specific version of node, and can blow up on a user's system if node is upgraded to current latest version
Update the webpack-dev-server version to allow it to run using https for local development

Guidance to review
TODO

[x] Fix Dan's comments the meta tags in application.html.erb
[x] Fix the tests
[ ] Update the docker compose setup so it works correctly for local development
[ ] Move application.scss and delete app/assets folder so the setup feels less weird
[ ] Refactor the commits if they feel unclear or if there's too many

How did these things slow down the asset pipeline? How many should be back-propagated into the boilerplate and support?

@benilovj see the commit messages, but the main saving was just compiling SCSS through the Rails asset pipeline which does it on every request (the entirety of govuk-frontend) instead of only when we actually make a change to the CSS. It's just switching over to webpack requires a lot of prodding due to assets.
This is still missing webpack-dev-server, which I want to push alongside bumping the version to address the spooky vulnerability message we have on the repo.
Once we figure this stuff out yeah we should port it to support and the boilerplate.

does that mean we can revisit this? https://github.com/DFE-Digital/manage-courses-support/pull/82

@defong hopefully yeah!

Docker takes 40 seconds to compile webpack. It's use for local development is discouraged.

Docker takes 40 seconds to compile webpack. It's use for local development is discouraged.

Only on mac

 Implement manage courses table in Rails frontend


feat: Enabling disconnected cluster installation

Part of #143
This PR sets the core requirements for disconnected cluster installation. This includes required variables, roles for mirroring (legacy for the platform and oc-mirror for everything else), applying oc-mirror manifests post cluster up, and corresponding changes to the rest of the playbook and docs.
# update the vars files
❯ ansible-playbook playbooks/0_setup.yaml
❯ ansible-playbook playbooks/3_setup_kvm_host.yaml
# If using in in-place registry (for testing) set this up on the plar here and bind it to the interface where the cluster will be setup. Make sure the lpar can resolve to this and then the cluster forwarder IP is set to the gateway IP of the interface Eg <IP_ADDRESS> and then patch ins reg and pull secret values accordingly. A sample script for this is provided below
❯ ansible-playbook playbooks/4_create_bastion.yaml
❯ ansible-playbook playbooks/disconnected_mirror_artifacts.yaml
❯ ansible-playbook playbooks/5_setup_bastion.yaml
❯ ansible-playbook playbooks/6_create_nodes.yaml
❯ ansible-playbook playbooks/7_ocp_verification.yaml
❯ ansible-playbook playbooks/disconnected_apply_operator_manifests.yaml

Sample script for in-place registry on the LPAR itself for NAT-based cluster setup. To be run only after the libvirt interface is created/available on lpar: https://github.com/mohammedzee1000/IBM-Ansible-OpenShift-Provisioning-TestNotes/blob/main/scripts/testing_utils/create_reg.sh

It would be nice if i could view the docs shanges in a preview website

@AmadeusPodvratnik @jacobemery open for review, PTAL

I ran tests using one s390x lpar. The same host acts as mirror host and the host for the registry.

Ran till ansible-playbook playbooks/3_setup_kvm_host.yaml,
Created registry on the host, adding networkmanager dnsmasq entry on the lpar
Update pull secrets and cert to inventory
Ran the ansible-playbook playbooks/disconnected_mirror_artifacts.yaml to mirror to the registry
Ran the rest of the playbooks as normal
Ran ansible-playbook playbooks/disconnected_apply_operator_manifests.yaml at the end.
Also,
I also ran reinstall cluster playbook once with disconnected kept enabled and again with disconnected disabled
I refreshed lpar, then started with the connected cluster setup and then reinstalled it as disconnected.

sorry for multiple force pushes, for got to provide signing when rebasing master


Cannot run CLI commands

Bug Report
Description
I get an error when I run log4brains init on a new install:
Error: Cannot find module '@hapi/hoek/assert'
Steps to Reproduce
npm i -g log4brains
log4brains init
Expected Behavior
It should not throw an error
Environment

Log4brains version: 1.0.1
Node.js version: 18.14.1
OS and its version: Windows 11
Browser information:

I have the same problem

Got the same problem!! Does anyone have a solution

+1

Is this solved in v1.1.0?


Where are the models stored?

Hi,
I installed musicgpt and downloaded some models, but I can't determine where the models are stored.
My main drive is now full and I would really like to delete those models and put them somewhere else.

Where are the models so I can delete them?
Can I reroute musicgpt to put the models somewhere else?

Thanks!

Windows: C:\Users\Your User\AppData\Roaming\gabotechs\musicgpt
MacOS: /Users/Your\ User/Library/Application\ Support/com.gabotechs.musicgpt
Linux: /home/Your \User/.config/muscigpt
I'll add it to the readme as this has already been asked before

Thank you so much!
I don't think I'm the only person who benefits from this👍


[QUESTION] No return value in the modify_guild request?

Why do you not return a value in the modify_guild request?

according to the discord documentation it will return the updated guild object

To be honest, I forgot why I type hinted it None
But looking back, I think it was just one of those tired mistakes I had making all those endpoints, but yeah it was supposed to return the updated Guild object (besides, I think this error only affects typehinting)
Thanks for pointing out though :) I'll look into it

(besides, I think this error only affects typehinting)

It would, but you also do not return anything. But if it wasn't intended I'll fix it in my PR


Support for DAX

Description
Thanks for your work, @Melchyore! Is there a plan to support DAX connections soon? From the documentation, it seems that DAX is set up differently.
I will try to contribute as well if there are no plans yet. Thank you!
Relevant Information
Dyngoose connection for DAX - https://github.com/benhutchins/dyngoose/blob/master/docs/Connections.md#dynamodb-accelerator-dax

@jsunico Hey!
From the docs, it seems that you need to pass a custom property to the decorator. It should work. Did you try anything that didn't work? Or are you expecting a new feature?

Hi @Melchyore! Thanks for the response. I'm considering configuring DAX globally in the new adonisjs app that we're starting. However, while reading the code, I believe the default would be a Dynamodb. Would there be an option to configure DAX globally?
https://github.com/Melchyore/adonis-dynamodb/blob/3de0f8a536fc31144412747222600ff79679a620/src/Client.ts#L19

@jsunico Hey!
I will work on it as soon as I have some free time (and I also need to remove the monke-patch I'm doing to set the connection).
Is it urgent?

It's not urgent for me @Melchyore. I'm still at the POC stage for our new project. Thank you so much!


Added big symbols and the Expand & Collapse title - [merged]

In GitLab by @cgutierr on Nov 14, 2022, 09:39
Merges AS_GUI_SP1_Validation -> master

In GitLab by @cgutierr on Nov 14, 2022, 09:39
requested review from @jberlin

In GitLab by @jberlin on Nov 14, 2022, 11:56
approved this merge request

In GitLab by @jberlin on Nov 14, 2022, 11:56
mentioned in commit 56573a57110a0cb2237edaed7077bfee8f78b4aa


Manually invoke signature help in a floating window with a keybinding?

Hello,  thanks for the very helpful plugin!!  I'm wondering if there is a way to manually trigger signature help into a floating window with a keybinding? Thanks.

Sorry for the late replay. You can use toggle_key to do that


Scanning for networks via rofi-network-manager works if called from script, doesn't work when called by a bindsym on i3

Hey, really like this network tool. I'm running into an issue that I don't fully understand. When I call rofi-network-manager via a bindsym, the rofi gui will show up but no networks will be listed, likely because it isn't able to scan the networks. If I just call the command from terminal, then rofi-network-manager works perfectly fine.
Completely perplexed about this. Maybe it's an issue related to permissions or local working directory with i3's bindsym?
Thanks.

I have the same problem on sway. I've made the file executable, and running it in a terminal works fine. Interestingly, I can bind keys to spawn a terminal that runs it, and that also works, but I can't just directly spawn it with bindsym. I've tried piping the output to a file when running it by itself, and I don't get anything. I can also run it with bash <path> in the terminal and it works, but the same issue occurs with bash and bindsym.

@shadowcatzero Can you confirm that you are running the most recent commit, what directory you are running the script from, and finally the version of rofi or rofi-git version you have installed ?

I realized I was using an old version of rofi, so I installed 1.7.5, and I still have the same issue. I have the latest version from the master branch. The repository is at .config/rofi/rofi-network-manager. I can run the command from wherever I want in the terminal, and it will work (I'm just calling it directly, I don't have it symlinked right now). I also just tried using swaymsg -t command to run it, and that didn't work, which checks out because it does the same thing as the keybind. I'd assume the issue is how sway (or in Dutt-A's case, i3) spawns processes. Let me know if you need any more information.

@shadowcatzero
I tried to replicate it but was unsuccessful.
But, based on what I found, it's most likely related to the path as you said. Could you please add the directory to $PATH or copy/symlink the script to /usr/bin/?
And let me know if that fixes it.

Closing due to inactivity.

Closing due to inactivity.

Closing due to inactivity.


[TB] No gradient header text in darkmode

Problem/Concern
The gradient header text in darkmode on the Color Themes atom (after the default color theme has been set) isn't legible.  Are we using the wrong CSS variable here?
Proposed Solution
The gradient header text should be visible and easily readable.

Here is a design system that shows the issue in Atoms->Color Theme
foobar-design-system.txt
To use:

Copy the contents of the file above to the clipboard
Click the "Import a Design System" button on the Your Designs page
Enter a name for the new design system
Paste clipboard into the "Design System data" field
Click the "Next" button

Then click the "Load Design System" option off of the new design system's card.

Here's what it looks like:

done


How to create calendar entries?

Hey there,
great project! We will extend it with multi-localization / i18n soon to contribute back to it. One question that we have in the meantime is how to exactly add new calendar entries from remote / via calendar invitation. We tried sending an event invite to our service account email address, but it doesn't appear on the rooms app.
Thanks in advance!

Thanks! The app assumes the service account links to a resource object in Google Apps , so that the rooms can be booked via the Room field in Google Calendar. We haven't tried any other setups.
I'm pretty sure that the resource is just another calendar with extra metadata so sending an invite to the resource should work. I'd check if the code filters unconfirmed events, which seems like the most likely explanation.
You should also take a look at the service account permissions and make sure that calendar can be accessed via API (we included a short guide in the readme). We've had a ton of trouble setting that up properly when we started building the app.


Fix projection weirdness with centroids

See #8

@mwernimont how long has this taken you so far?

Shoot, I would say 4hrs? I'll do better with other task on timekeeping.

Remaining: just need to get Alaska working and check against state polygons when those are available.

Alaska STATEFIP: 02 COUNTYFIP: 016 has coordinates landing it in Canada which causes the projection cut off the dot which throws an error in D3 and stops all dots from being projected.  A quick fix at the moment is filtering out that COUNTYFIP and correcting it when we have time.  PR here https://github.com/USGS-VIZLAB/water-use-15/pull/69

resolved by #75


Is poking opposite-endian integers byte by byte really faster than pokeStorable . byteSwap?

I got curious about some behaviour in this library and looked into it. In short, I feel the most efficient method of poking a machine integer with opposite endianness to the host should be to swap the byte order, then use host poke. It doesn't look like it makes much difference overall (unsurprised, most work is probably wrapping/unwrapping), but there appears to be a consistent marginal improvement on my 64-bit system (2%?): https://github.com/raehik/ptr-poker/commit/cf9cdbf1d362c2eb3fdcb41d4bdd28081fbb9025
I disassembled GHC's output for big endian encoding Word64s on my x86_64 system and confirmed that using byteSwap64 translates to a single "inlined" BSWAP instruction, whereas the byte-by-byte approach is a bunch of MOVs and SHRs.

Different binary serialization libraries tend to take different approaches to this.

my suggestion uses CPP to check WORDS_BIGENDIAN and uses host poke when it can. When it can't it runs byteSwapX and host pokes.
ptr-poker uses CPP to check WORDS_BIGENDIAN and uses host poke when it can. When it can't, it uses an endianness-independent, byte-by-byte poke.
store doesn't provide explicit endianness primitives.
binary, cereal use bytestring builder primitives; bytestring uses the same as my suggestion.
flatparse uses my suggestion (parse only).

Sounds absolutely reasonable! Could you make a PR?

Gladly! Cleaned up and placed at #14 .

Thanks. It's merged and released now!


Add support to enable grpc_call_invoker

Per discussion in https://github.com/GoogleCloudPlatform/google-cloud-php/pull/1146, this PR is to move the logic of enabling channel management to gax library. Another part of the changes resides in gapic-generator library: https://github.com/googleapis/gapic-generator/pull/2231

Codecov Report

Merging #207 into master will decrease coverage by 0.07%.
The diff coverage is 73.68%.

@@            Coverage Diff             @@
##           master     #207      +/-   ##
==========================================
- Coverage   84.81%   84.73%   -0.08%
==========================================
  Files          62       62
  Lines        2838     2857      +19
==========================================
+ Hits         2407     2421      +14
- Misses        431      436       +5

Impacted Files
Coverage Δ

src/ApiCore/GapicClientTrait.php
87.55% <73.68%> (-1.34%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9a8568...14873f1. Read the comment docs.


riotwatcher: python setup.py egg_info (Failed) when running: ./install/venvinstall.sh

Collecting riotwatcher (from -r pip-requirements.txt (line 30))
Using cached riotwatcher-1.3.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-eb5tuatm/riotwatcher/setup.py", line 15, in
long_description=open(descr_file).read(),
File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 8308: ordinal not in range(128)
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-eb5tuatm/riotwatcher/

It's something on your side not pajbot

Whats your **operating system**?
Did you do it after this [__Guide__](/pajlada/pajbot/wiki/Installation-Bot) or did you **change something?**

_I could install riotwatcher without any error's on a new Ubuntu 15.10_
```sh
ubuntu@ubuntu:/srv/pajbot$ sudo apt-get install python3.4-venv
ubuntu@ubuntu:/srv/pajbot$ ./install/venvinstall.sh
Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-8.1.0-py2.py3-none-any.whl#md5=c6eca6736b2b8f7280fb25e44be7c51b
Downloading pip-8.1.0-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.6
Uninstalling pip:
Successfully uninstalled pip
Successfully installed pip
Cleaning up...
Collecting riotwatcher (from -r pip-requirements.txt (line 30))
Downloading riotwatcher-1.3.2.tar.gz
Collecting requests (from riotwatcher->-r pip-requirements.txt (line 30))
Downloading requests-2.9.1-py2.py3-none-any.whl (501kB)
100% |████████████████████████████████| 501kB 2.2MB/s
Installing collected packages: requests, riotwatcher
Running setup.py install for riotwatcher ... done
Successfully installed requests-2.9.1 riotwatcher-1.3.2

Maybe try to `delete` the `myvenv` folder and run it again.

or change the **pip-requirements.txt** file, to see if its riotwatcher.

riotwatcher
to

riotwatcher

Maybe your cached `version` is just broken.

I feel like this is one of those instances where you want definite required versions. @pajlada, I'm imaging if you ran pip freeze, you wouldn't have riotwatcher v1.3.2. Is there any reason you don't enforce specific versions?

I like new stuff lol that's it. Might not be smart though
On Mar 27, 2016 04:47, "Ian C"<EMAIL_ADDRESS>wrote:

I feel like this is one of those instances where you want definite
required versions. @pajlada https://github.com/pajlada, I'm imaging if
you ran pip freeze, you wouldn't have riotwatcher v1.3.2. Is there any
reason you don't enforce specific versions?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/pajlada/pajbot/issues/239#issuecomment-201977381

Closing this issue, since there is no response from the creator. :zap: