The kernel failed to start due to the missing module ''...'

Applies To

[X] Notebooks (.ipynb files)
[x] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
Hi all,
I am connected on a server using Remote SSH v0.78
On the server I have a basic python3.10 environment created with conda, in which I only installed ipykernel installed (with conda).
IPython works properly.
When opening a notebook in  VSCode or trying to run a cell I get the following error in red beneath the cell:
The kernel failed to start due to the missing module ''numpy''. Consider installing this module.

View Jupyter [log](command:jupyter.viewOutput) for further details.

Note that I tried with another environment with several other installed packages and the missing module was msvcrt, not numpy
If I install jupyter/jupyterlab in my environment I have no issue running jupyter in the browser but same error in vscode.
I tried a couple other versions of Jupyter extension with no luck.
Thanks for your help
VS Code Version
Version: 1.66.1 Commit: 8dfae7a5cd50421d10cd99cb873990460525a898 Date: 2022-04-06T14:49:47.400Z (6 days ago) Electron: 17.2.0 Chromium: 98.0.4758.109 Node.js: 16.13.0 V8: <IP_ADDRESS>-electron.0 OS: Darwin x64 19.6.0
Jupyter Extension Version
v2022.3.1000901801
Jupyter logs
Info 12:40:29: Execute Cells request 0
Info 12:40:29: Execute Cell 0 ~/projects/ecephys/ecephys/units/example.ipynb
Info 12:40:29: Starting Notebook in kernel.ts id = .jvsc74a57bd0490ceddc62b74534fb609617b3a61fa04e4a00d7e135c84747e97ad6c1b1875e./home/tbugnon/miniconda3/envs/jupyter/python./home/tbugnon/miniconda3/envs/jupyter/python.-m#ipykernel_launcher for ~/projects/ecephys/ecephys/units/example.ipynb
Info 12:40:29: Creating raw notebook for ~/projects/ecephys/ecephys/units/example.ipynb
Info 12:40:29: Getting preferred kernel for ~/projects/ecephys/ecephys/units/example.ipynb
Info 12:40:29: Computing working directory ~/projects/ecephys/ecephys/units/example.ipynb
Info 12:40:29: Starting raw kernel jupyter (Python 3.10.4) for interpreter ~/miniconda3/envs/jupyter/bin/python
Info 12:40:29: Kernel launching with ports 9061,9062,9063,9064,9065. Start port is 9000
Info 12:40:30: Process Execution: > ~/miniconda3/envs/jupyter/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
> ~/miniconda3/envs/jupyter/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
Info 12:40:30: Adding env Variable PYTHONNOUSERSITE to ~/miniconda3/envs/jupyter/bin/python
Info 12:40:30: Process Execution: > ~/miniconda3/envs/jupyter/bin/python -m ipykernel_launcher --ip=<IP_ADDRESS> --stdin=9064 --control=9062 --hb=9061 --Session.signature_scheme="hmac-sha256" --Session.key=b"604cf390-9c98-4fb6-ae92-006936ccb906" --shell=9063 --transport="tcp" --iopub=9065 --f=/tmp/tmp-3795732geL9umyTFuSm.json
> ~/miniconda3/envs/jupyter/bin/python -m ipykernel_launcher --ip=<IP_ADDRESS> --stdin=9064 --control=9062 --hb=9061 --Session.signature_scheme="hmac-sha256" --Session.key=b"604cf390-9c98-4fb6-ae92-006936ccb906" --shell=9063 --transport="tcp" --iopub=9065 --f=/tmp/tmp-3795732geL9umyTFuSm.json
Info 12:40:30: Process Execution: cwd: ~/projects/ecephys/ecephys/units
cwd: ~/projects/ecephys/ecephys/units
Warn 12:40:30: StdErr from Kernel Process Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 69, in <module>
    import msvcrt

Warn 12:40:30: StdErr from Kernel Process ModuleNotFoundError: No module named 'msvcrt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/connect.py", line 8, in <module>
    from subprocess import Popen, PIPE
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 75, in <module>
    import select
  File "/home/tbugnon/projects/ecephys/ecephys/units/select.py", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'

Error 12:40:30: Disposing kernel process due to an error [o [Error]: The kernel died. View Jupyter [log](command:jupyter.viewOutput) for further details.
Error: Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 69, in <module>
    import msvcrt
ModuleNotFoundError: No module named 'msvcrt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/connect.py", line 8, in <module>
    from subprocess import Popen, PIPE
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 75, in <module>
    import select
  File "/home/tbugnon/projects/ecephys/ecephys/units/select.py", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'...
	at ChildProcess.<anonymous> (/home/tbugnon/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:512309)
	at ChildProcess.emit (node:events:402:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/tbugnon/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/temp/jupyter/kernels/python3104jvsc74a57bd0490ceddc62b74534fb609617b3a61fa04e4a00d7e135c84747e97ad6c1b1875e/kernel.json',
      interpreterPath: '/home/tbugnon/miniconda3/envs/jupyter/bin/python',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3104jvsc74a57bd0490ceddc62b74534fb609617b3a61fa04e4a00d7e135c84747e97ad6c1b1875e',
      argv: [Array],
      language: 'python',
      path: 'python',
      display_name: "Python 3.10.4 ('jupyter')",
      metadata: [Object],
      env: {},
      interrupt_mode: undefined
    },
    interpreter: {
      id: '/home/tbugnon/miniconda3/envs/jupyter/bin/python',
      sysPrefix: '/home/tbugnon/miniconda3/envs/jupyter',
      envType: 'Conda',
      envName: 'jupyter',
      envPath: '/home/tbugnon/miniconda3/envs/jupyter',
      path: '/home/tbugnon/miniconda3/envs/jupyter/bin/python',
      architecture: 3,
      sysVersion: '3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0]',
      version: [Object],
      companyDisplayName: 'Anaconda, Inc.',
      displayName: "Python 3.10.4 ('jupyter')",
      detailedDisplayName: "Python 3.10.4 ('jupyter': conda)"
    },
    id: '.jvsc74a57bd0490ceddc62b74534fb609617b3a61fa04e4a00d7e135c84747e97ad6c1b1875e./home/tbugnon/miniconda3/envs/jupyter/python./home/tbugnon/miniconda3/envs/jupyter/python.-m#ipykernel_launcher'
  },
  exitCode: 1,
  stdErr: 'Traceback (most recent call last):\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 69, in <module>\n' +
    '    import msvcrt\n' +
    "ModuleNotFoundError: No module named 'msvcrt'\n" +
    '\n' +
    'During handling of the above exception, another exception occurred:\n' +
    '\n' +
    'Traceback (most recent call last):\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 196, in _run_module_as_main\n' +
    '    return _run_code(code, main_globals, None,\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 86, in _run_code\n' +
    '    exec(code, run_globals)\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel_launcher.py", line 15, in <module>\n' +
    '    from ipykernel import kernelapp as app\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/__init__.py", line 2, in <module>\n' +
    '    from .connect import *\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/connect.py", line 8, in <module>\n' +
    '    from subprocess import Popen, PIPE\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 75, in <module>\n' +
    '    import select\n' +
    '  File "/home/tbugnon/projects/ecephys/ecephys/units/select.py", line 1, in <module>\n' +
    '    import numpy as np\n' +
    "ModuleNotFoundError: No module named 'numpy'\n"
}
Error 12:40:30: Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 69, in <module>
    import msvcrt
ModuleNotFoundError: No module named 'msvcrt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/connect.py", line 8, in <module>
    from subprocess import Popen, PIPE
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 75, in <module>
    import select
  File "/home/tbugnon/projects/ecephys/ecephys/units/select.py", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'

Info 12:40:30: Dispose Kernel process
Error 12:40:30: Failed to connect raw kernel session: Error: The kernel died. View Jupyter [log](command:jupyter.viewOutput) for further details.
Error: Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 69, in <module>
    import msvcrt
ModuleNotFoundError: No module named 'msvcrt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/connect.py", line 8, in <module>
    from subprocess import Popen, PIPE
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 75, in <module>
    import select
  File "/home/tbugnon/projects/ecephys/ecephys/units/select.py", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'...
Error 12:40:30: failed to create INotebook in kernel, UI Disabled = false [o [Error]: The kernel died. View Jupyter [log](command:jupyter.viewOutput) for further details.
Error: Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 69, in <module>
    import msvcrt
ModuleNotFoundError: No module named 'msvcrt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/connect.py", line 8, in <module>
    from subprocess import Popen, PIPE
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 75, in <module>
    import select
  File "/home/tbugnon/projects/ecephys/ecephys/units/select.py", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'...
	at ChildProcess.<anonymous> (/home/tbugnon/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:512309)
	at ChildProcess.emit (node:events:402:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/tbugnon/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/temp/jupyter/kernels/python3104jvsc74a57bd0490ceddc62b74534fb609617b3a61fa04e4a00d7e135c84747e97ad6c1b1875e/kernel.json',
      interpreterPath: '/home/tbugnon/miniconda3/envs/jupyter/bin/python',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3104jvsc74a57bd0490ceddc62b74534fb609617b3a61fa04e4a00d7e135c84747e97ad6c1b1875e',
      argv: [Array],
      language: 'python',
      path: 'python',
      display_name: "Python 3.10.4 ('jupyter')",
      metadata: [Object],
      env: {},
      interrupt_mode: undefined
    },
    interpreter: {
      id: '/home/tbugnon/miniconda3/envs/jupyter/bin/python',
      sysPrefix: '/home/tbugnon/miniconda3/envs/jupyter',
      envType: 'Conda',
      envName: 'jupyter',
      envPath: '/home/tbugnon/miniconda3/envs/jupyter',
      path: '/home/tbugnon/miniconda3/envs/jupyter/bin/python',
      architecture: 3,
      sysVersion: '3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0]',
      version: [Object],
      companyDisplayName: 'Anaconda, Inc.',
      displayName: "Python 3.10.4 ('jupyter')",
      detailedDisplayName: "Python 3.10.4 ('jupyter': conda)"
    },
    id: '.jvsc74a57bd0490ceddc62b74534fb609617b3a61fa04e4a00d7e135c84747e97ad6c1b1875e./home/tbugnon/miniconda3/envs/jupyter/python./home/tbugnon/miniconda3/envs/jupyter/python.-m#ipykernel_launcher'
  },
  exitCode: 1,
  stdErr: 'Traceback (most recent call last):\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 69, in <module>\n' +
    '    import msvcrt\n' +
    "ModuleNotFoundError: No module named 'msvcrt'\n" +
    '\n' +
    'During handling of the above exception, another exception occurred:\n' +
    '\n' +
    'Traceback (most recent call last):\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 196, in _run_module_as_main\n' +
    '    return _run_code(code, main_globals, None,\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 86, in _run_code\n' +
    '    exec(code, run_globals)\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel_launcher.py", line 15, in <module>\n' +
    '    from ipykernel import kernelapp as app\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/__init__.py", line 2, in <module>\n' +
    '    from .connect import *\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/connect.py", line 8, in <module>\n' +
    '    from subprocess import Popen, PIPE\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 75, in <module>\n' +
    '    import select\n' +
    '  File "/home/tbugnon/projects/ecephys/ecephys/units/select.py", line 1, in <module>\n' +
    '    import numpy as np\n' +
    "ModuleNotFoundError: No module named 'numpy'\n"
}
Warn 12:40:30: Kernel Error [o [Error]: The kernel died. View Jupyter [log](command:jupyter.viewOutput) for further details.
Error: Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 69, in <module>
    import msvcrt
ModuleNotFoundError: No module named 'msvcrt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel_launcher.py", line 15, in <module>
    from ipykernel import kernelapp as app
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/connect.py", line 8, in <module>
    from subprocess import Popen, PIPE
  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 75, in <module>
    import select
  File "/home/tbugnon/projects/ecephys/ecephys/units/select.py", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'...
	at ChildProcess.<anonymous> (/home/tbugnon/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:512309)
	at ChildProcess.emit (node:events:402:35)
	at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)] {
  category: 'kerneldied',
  kernelConnectionMetadata: {
    kind: 'startUsingPythonInterpreter',
    kernelSpec: {
      specFile: '/home/tbugnon/.vscode-server/extensions/ms-toolsai.jupyter-2022.3.1000901801/temp/jupyter/kernels/python3104jvsc74a57bd0490ceddc62b74534fb609617b3a61fa04e4a00d7e135c84747e97ad6c1b1875e/kernel.json',
      interpreterPath: '/home/tbugnon/miniconda3/envs/jupyter/bin/python',
      isRegisteredByVSC: 'registeredByNewVersionOfExt',
      name: 'python3104jvsc74a57bd0490ceddc62b74534fb609617b3a61fa04e4a00d7e135c84747e97ad6c1b1875e',
      argv: [Array],
      language: 'python',
      path: 'python',
      display_name: "Python 3.10.4 ('jupyter')",
      metadata: [Object],
      env: {},
      interrupt_mode: undefined
    },
    interpreter: {
      id: '/home/tbugnon/miniconda3/envs/jupyter/bin/python',
      sysPrefix: '/home/tbugnon/miniconda3/envs/jupyter',
      envType: 'Conda',
      envName: 'jupyter',
      envPath: '/home/tbugnon/miniconda3/envs/jupyter',
      path: '/home/tbugnon/miniconda3/envs/jupyter/bin/python',
      architecture: 3,
      sysVersion: '3.10.4 (main, Mar 31 2022, 08:41:55) [GCC 7.5.0]',
      version: [Object],
      companyDisplayName: 'Anaconda, Inc.',
      displayName: "Python 3.10.4 ('jupyter')",
      detailedDisplayName: "Python 3.10.4 ('jupyter': conda)"
    },
    id: '.jvsc74a57bd0490ceddc62b74534fb609617b3a61fa04e4a00d7e135c84747e97ad6c1b1875e./home/tbugnon/miniconda3/envs/jupyter/python./home/tbugnon/miniconda3/envs/jupyter/python.-m#ipykernel_launcher'
  },
  exitCode: 1,
  stdErr: 'Traceback (most recent call last):\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 69, in <module>\n' +
    '    import msvcrt\n' +
    "ModuleNotFoundError: No module named 'msvcrt'\n" +
    '\n' +
    'During handling of the above exception, another exception occurred:\n' +
    '\n' +
    'Traceback (most recent call last):\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 196, in _run_module_as_main\n' +
    '    return _run_code(code, main_globals, None,\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/runpy.py", line 86, in _run_code\n' +
    '    exec(code, run_globals)\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel_launcher.py", line 15, in <module>\n' +
    '    from ipykernel import kernelapp as app\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/__init__.py", line 2, in <module>\n' +
    '    from .connect import *\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/connect.py", line 8, in <module>\n' +
    '    from subprocess import Popen, PIPE\n' +
    '  File "/home/tbugnon/miniconda3/envs/jupyter/lib/python3.10/subprocess.py", line 75, in <module>\n' +
    '    import select\n' +
    '  File "/home/tbugnon/projects/ecephys/ecephys/units/select.py", line 1, in <module>\n' +
    '    import numpy as np\n' +
    "ModuleNotFoundError: No module named 'numpy'\n"
}
Info 12:40:30: Process Execution: > ~/miniconda3/envs/jupyter/bin/python -c "import ipykernel"
> ~/miniconda3/envs/jupyter/bin/python -c "import ipykernel"
Info 12:40:30: ipykernel version 6.9.1 for ~/miniconda3/envs/jupyter/bin/python
Info 12:40:30: ipykernel location ~/miniconda3/envs/jupyter/lib/python3.10/site-packages/ipykernel/__init__.py for ~/miniconda3/envs/jupyter/bin/python
Info 12:40:30: Dispose kernel file:///home/tbugnon/projects/ecephys/ecephys/units/example.ipynb
Info 12:40:30: Process Execution: > ~/miniconda3/envs/jupyter/bin/python -c "import ipykernel"
> ~/miniconda3/envs/jupyter/bin/python -c "import ipykernel"

Coding Language and Runtime Version
Python v3.10.4
Language Extension Version (if applicable)
v2022.4.1
Anaconda Version (if applicable)
4.11.0
Running Jupyter locally or remotely?
Remote

Thanks for the issue.
We don't actually use jupyter to launch a kernel but rather launch it directly. So our startup is slightly different.
I believe this is the root cause though:
    '  File "/home/tbugnon/projects/ecephys/ecephys/units/select.py", line 1, in <module>\n' +
    '    import numpy as np\n' +
    "ModuleNotFoundError: No module named 'numpy'\n"

You have a module named 'select.py' which is messing up the loading of the kernel. This code exists in subprocess.py:
try:
    import msvcrt    <-- This fails (as expected)
    import _winapi
    _mswindows = True
except ModuleNotFoundError:
    _mswindows = False
    import _posixsubprocess
    import select   <-- This is importing your module instead of the builtin select.
    import selectors

You should rename your 'select.py' to something else.
This likely works in Jupyter because the current working directory is different.

Thanks for the lightning fast response. Moving the notebook elsewhere or renaming select.py does the trick. That was sneaky ha
Best


Misc UX edits

Questions

the user guide looks weird - with lists embedding on themselves - just merge 14?
what should we do with community.datajoint.org? its linked on outreach and contribution guidelines
Should community/partners move to elements/partners?

In this PR, I...

Add grey stroke to mermaid.
Check/update every internal link
make minor edits to data types table to add to instead of - for ranges - visually confusion with adjacent negatives
update expired slack links to permanent one

Thanks @CBroz1.

Questions

the user guide looks weird - with lists embedding on themselves - just merge 14?

I will review #14 next.

what should we do with community.datajoint.org? its linked on outreach and contribution guidelines

We can remove links to community.datajoint.io.

Should community/partners move to elements/partners?

For now lets leave community/partners in the current location since it also relates to Works.


Implemented stop/start/IsRunning for grpool, it is now possible to suspend the grpool instead of recreating after shutdown

Implemented stop/start/IsRunning for grpool, it is now possible to suspend the grpool instead of recreating after shutdown
Because there may be a lot of data in the queue, it will be inconvenient to restart loading data after stopping
These features are not implemented for the default grpool as it may be used in multiple places and may behave unexpectedly if stopped

Codecov Report
Patch coverage: 72.22% and no project coverage change.

Comparison is base (15eaac3) 78.88% compared to head (02b15b1) 78.89%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #2702    +/-   ##
========================================
  Coverage   78.88%   78.89%
========================================
  Files         631      632     +1
  Lines       51661    51893   +232
========================================
+ Hits        40753    40939   +186
- Misses       8894     8927    +33
- Partials     2014     2027    +13

Flag
Coverage Δ

go-1.15-386
78.92% <72.22%> (?)

go-1.15-amd64
78.90% <72.22%> (?)

go-1.16-386
78.90% <72.22%> (-0.01%)
:arrow_down:

go-1.16-amd64
78.91% <72.22%> (+0.02%)
:arrow_up:

go-1.17-386
78.89% <72.22%> (?)

go-1.17-amd64
78.91% <72.22%> (?)

go-1.18-386
78.85% <72.22%> (+0.01%)
:arrow_up:

go-1.18-amd64
78.85% <72.22%> (-0.02%)
:arrow_down:

go-1.19-386
78.91% <72.22%> (-0.01%)
:arrow_down:

go-1.19-amd64
78.90% <72.22%> (+<0.01%)
:arrow_up:

go-1.20-amd64
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

os/grpool/grpool_supervisor.go
60.00% <0.00%> (+26.66%)
:arrow_up:

os/grpool/grpool.go
94.56% <86.66%> (-1.78%)
:arrow_down:

... and 2 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

@hinego Any updates？

@hinego Any updates？

update..

@hinego Any updates?

@hinego any updates?


Refactor colorbar into an ipywidgets subclass.

@naschmitz Thank you for working on this. I will test it later this week.

@naschmitz The refactor causes a bug in the vertical colorbar. I have fixed it. I also added the new map_widgets to docs.


Large URLs

Describe the bug
The max URL field length is 400 characters is there a way to change this without manually going into the database and altering it.
Steps to reproduce

Attempt to use on a URL which as more than 400 characters
Will result in an database error

Craft CMS version
4.8.0
Plugin version
4.0.0
Multi-site?
No response
Additional context
No response

Updated in 4.0.1

My mistake, should be fixed in 4.0.2


GPT To Submit: DaVinci Resolve Assistant

https://chat.openai.com/g/g-suSgYbcpa-davinci-resolvetm-assistant
DaVinci Resolve™ Assistant provides expert AI support for DaVinci Resolve™, Blackmagic Design Fusion™, and Fairligh™ products.
By Igor Riđanović, www.metafide.com

Please raise a pull request for the same


doc: remove pytest-playwright as it is part of playwright-pytest now

https://github.com/mxschmitt/pytest-playwright/ moved to https://github.com/microsoft/playwright-pytest#readme which is actually https://github.com/microsoft/playwright-pytest

Lets link to https://github.com/microsoft/playwright-pytest instead?


Optimize product search and update dependencies

Modified DbInitializer in ProductDataContext.cs to add 100 products instead of 500.
Optimized ProductEndpoints in ProductEndpoints.cs by using EF.Functions.Like for better performance.
Updated Products.csproj to use newer versions of several NuGet packages and added System.Formats.Asn1.
Added a new HTTP GET request for searching products with the term "outdoor" in Products.http.
Disabled automatic browser launch in launchSettings.json for all profiles.
Uncommented the elapsed time display in Search.razor.

This pull request includes several changes to the Products project, focusing on improving performance, updating dependencies, and modifying launch settings. The most important changes are summarized below:
Performance Improvements:

Refactored the product search endpoint to use EF.Functions.Like for more efficient querying. (src/00 demo/Products/Endpoints/ProductEndpoints.cs)

Dependency Updates:

Updated various package references to newer versions in the Products.csproj file. (src/00 demo/Products/Products.csproj)

Launch Settings Modifications:

Disabled browser launch for all profiles in launchSettings.json. (src/00 demo/Products/Properties/launchSettings.json) [1] [2] [3]

Additional Changes:

Adjusted the product initialization to add 100 products instead of 500. (src/00 demo/Products/Data/ProductDataContext.cs)
Added a new HTTP request example for searching products by keyword. (src/00 demo/Products/Products.http)
Uncommented the elapsed time display in the Search.razor component. (src/00 demo/Store/Components/Pages/Search.razor)


CI: check for outdated usage documentation

As discussed in this PR, the usage documentation is updated manually through the script gen-usage-docs.go (and something similar happens for the CLI).
This could be integrated to the CI to automatically check for outdated documentation and force an update before merging. This mechanism should be documented in the contribution guidelines (#1091).

This has been implemented a while ago.


types issue

https://commandkit.js.org/guide/validation-file-setup then using the ValidationProps. Then if you use interaction.reply(...) it will throw an error. Version: 0.1.10

Hi. Can you please share the exact error you're facing. Thanks

When using ValidationProps type, and using .reply you are getting an type error.

I was able to reproduce the issue:
import type { ValidationProps } from 'commandkit';

export default function ({ interaction, commandObj, handler }: ValidationProps) {
    interaction.reply('This does not work.'); // Property 'reply' does not exist on type 'ChatInputCommandInteraction<CacheType> | ContextMenuCommandInteraction<CacheType> | AutocompleteInteraction<...>'.
}

Reason
With version 1.10, validations also support autocomplete. This is a new feature in command files.
With this new update, the interaction object can now also be of type AutocompleteInteraction alongside the previous ChatInputCommandInteraction and ContextMenuCommandInteraction.
Fix
Since you can't "reply" to the AutocompleteInteraction type (you can only "respond" with autocomplete), you need to add a check in your validation to ensure that the interaction type you're handling is of either ChatInputCommandInteraction, or ContextMenuCommandInteraction.
import type { ValidationProps } from 'commandkit';

export default function ({ interaction, commandObj, handler }: ValidationProps) {
    if (interaction.isAutocomplete()) return;

    interaction.reply('This now works!');
}

Gonna leave this open for now for feedback

Arr alright thanks for the help :) keep up the good work!


Release v1.3.0

Hi @nim65s,
In this release, we have done the following tasks:

Minor improvement in state-base class (enabling limits once we define only one component).
Added functions to print the active/inactive status of costs, contacts and impulses.
Running computations in the contact / impulse dynamics using the active number of contacts / impulses, respectively.
Used NumPy Array in examples / notebooks.
Initial integration of Meshcat viewer and used in notebooks.
Improved efficiency of Jdiff, Jintegrate in multibody state.
Added an extra operator in Jintegrate signature (state classes)
Added an extra function parallel transport in the state class (i.e. JintegrateTransport)
Added functions to retrieve the inactive costs, contacts and impulses.
Fixed target_link_libraries use
Improved efficiency of few activation models.
Added the action-base class for code generation + unittest.
Added codegen bench for 4 dof arm and biped
Renamed all bench files.
Updated dependency versions for Pinocchio and example-robot-data.
Fixed bug in the impulse dynamics that appears in multiple threads.
Fixed various issues regarding data alignment.
Added doxygen file with the documentation state-base class.
Fixed an issue when we updates reference in frame-placement and frame-rotation costs.
Fixed an issue with Python3 compatibility in few examples.
Proper display of friction cones + do not display when the contact / impulse is inactive/
Extended the computation of impulses derivatives.
Added a friction cost for impulse dynamics.

Note that I have created the branch as we used to do: release/v1.2.0. Additionally, @proyan and I have decided to follow your suggestion (i.e. defining the master branch as default). I would handle this task once these stuffs are released in robotpkg.
Yours,
Carlos

Thanks. This is holliday here, so I'll handle that on Monday :)

Thanks. This is holliday here, so I'll handle that on Monday :)

Sounds good! I hope you're enjoying your holidays!

Thank you @nim65s :)


[AutoComplete] Allow to replace searchText after item selected

After an item is selected, the value of the selected item is automatically set as the displayed text (aka searchText). There is no easy way to change that value if needed.
For example, one use-case to change this default behavior is if we wanted to clear the text after an item is selected.

Yes, please!

This should be very helpful and is almost a "must have" for my use case 👍

@amirlazarovich Thanks for this PR. Actually, your issue should have been closed by https://github.com/callemall/material-ui/pull/4817.

Hey, why not these changes in the source code in version 0.16.0??

Because I belive that the issue was solved by #4817.

but how? these amendments do not have here.
https://github.com/callemall/material-ui/blob/master/src/AutoComplete/AutoComplete.js#L259

but how?

By defering the call of onNewRequest.


Add Cloudformation support for Events

During a serverless deploy (cloudformation) with a schedule (Events::Rule) the following log was raised: No Moto CloudFormation support for AWS::Events::Rule
It's an easy problem to reproduce: use cloudformation to create an Event Rule.
I'm using the latest version of moto (from moto-ext).

Hello @bblommers , thanks for your fast reply. I was working in a solution and it looks like our Rule model requires a Name property. The docs doesn't require one as it can be automatically generated. If that's all true, are you okay with a single PR containing those two features (we still need to open a new issue) ?

PR's are always welcome, @gmcrocetti! An implementation with some features missing is better than no implementation :)

Closed with #2833

Hi @bblommers. I was trying this new feature today (after moto-ext release) and looks like the implementation in #2833 is missing a feature:

I'm able to solve this new problem but right now I'm not very confident if we need something else. Are we missing something else besides get_cfn_attribute ?

Hi @gmcrocetti - your example works for me, but I guess there's another CF resource that tries to get the ARN of ScheduleSendEmailEventsRuleSchedule1.
Implementing get_cfn_attribute on the Rule-object definitely fixes that - looks like the ARN is the only attribute that has to be implemented (according to the docs)
As far as I can see, the only other property that's missing from  the implementation is physical_resource_id. It's a non-mandatory property, but good practice to implement anyway. We can just use the name of the Rule, similar to how this is implemented in AWS Lambda.

Smallest test that that I can reproduce this with:
@mock_cloudformation
@mock_events
@mock_ec2
def test_stack_events_create_rule_with_target():
    events_template = {
        "AWSTemplateFormatVersion": "2010-09-09",
        "Resources": {
            "my-security-group": {
                "Type": "AWS::EC2::SecurityGroup",
                "Properties": {"GroupDescription": {"Fn::GetAtt": ["Event", "Arn"]}},
            },
            "Event": {
                "Type": "AWS::Events::Rule",
                "Properties": {
                    "State": "ENABLED",
                    "ScheduleExpression": "rate(5 minutes)",
                },
            }
        },
    }
    cf_conn = boto3.client("cloudformation", "us-west-2")
    cf_conn.create_stack(
        StackName="test_stack", TemplateBody=json.dumps(events_template),
    )

    rules = boto3.client("events", "us-west-2").list_rules()
    rules["Rules"][0]["Name"].should.contain("test_stack-Event-")
    #
    # TODO: Assert that the SecurityGroup has the correct description


Excess colors in keynote-generated pdf

This pdf: http://www.ccs.neu.edu/home/samth/osu-march-2011.pdf shows excess colors in the background of the blue and red boxes on page 34.  This is with Firefox nightly, on Ubuntu.

This is with pdf.js 0.2.324.


Score for Prediction and refinement

Hi Yongzhi,
I couldnt find a score for prediction and refinement in test_vivo.py . I think I am again missing something there. How do we calculate the score for both predictions and icp refinements?
Thanks in advance

Hi,
Sorry, I cannot get your question well.
Our score is from the 2D detection, not related to the pose. If this line reports an error. You can just replace it with scores.append(1)
Best,
Yongzhi

You are right, I wasnt clear. I wanted to mean that is it possible to get somehow a 3D Pose Score.
If it is not, Is there any code in the repository to show rendered 2d image on real image so that we can compare how good estimation pose and refinement pose are.
thanks in advance

Hi,
In this repository, we don't have the 3D pose score. To visualize the predicted pose, you can render the images using the bop toolkit with the generated .csv file.

Thank you very much Yongzhi, I will try that
I really deeply aprreciated.
Best Regards


Add logging to DefinePlugin

Feature request

What is the expected behavior?
DefinePlugin should be able to log which of the strings got replaced and with what they got replaced. Also, it should be able to log which of the strings didn't get replaced. For example, let's suppose that we have the following configuration:
new webpack.DefinePlugin({
    'process.env.BACKEND_URL': 'someurl',
    'process.env.NICE_FEATURE': JSON.stringify(true),
    'process.env.UNUSED_VAR: 'somevalue',
}),
new webpack.DefinePlugin({
    'process.env.SOME_SECRET': 'secret',
}),

There should be some logs regarding the success and failure of the replacement, something along the following lines:
DefinePlugin: replaced 'process.env.BACKEND_URL' with 'someurl' in file `backendClient.jsx` at line 11.
DefinePlugin: replaced 'process.env.NICE_FEATURE' with 'true' in file `homepage.jsx` at line 35.
DefinePlugin: replaced 'process.env.SOME_SECRET' with [OBFUSCATED] in file `api.jsx` at line 24.
...
DefinePlugin: The following provided strings were not found during bundling: `process.env.UNUSED_VAR`.

What is motivation or use case for adding/changing the behavior?
This will help with the visibility of the env var usage, thus being able to see if there are any secret leaks or if there are redundant variables in our configurations that are not getting replaced. Currently, the only way to see if the strings got replaced or not is to run a text search on the output bundle.
How should this be implemented in your opinion?
DefinePlugin should accept an options parameter which should feature a debug flag (or something that enables logging). The debug flag could have 2 different values: normal, for logging the full value of the replaced string and obfuscate, for logging an obfuscated value of the string. A proposed usage example would look like this:
new webpack.DefinePlugin({
    'process.env.BACKEND_URL': 'someurl',
    'process.env.NICE_FEATURE': JSON.stringify(true),
    'process.env.UNUSED_VAR: 'somevalue',
}, {
    debug: 'normal',
}),
new webpack.DefinePlugin({
    'process.env.SOME_SECRET': 'secret',
}, {
    debug: 'obfuscate',
}),

The actual logging could be implemented here (link).
Are you willing to work on this yourself?
yes

redundant variables in our configurations that are not getting replaced

I think warning in this case should be enough..

looks like this was solved with a very aggressive fix. Now all I see is that log when I build something.


Deprecate Qobj and assemble

Summary
Deprecating assemble and Qobj.
Detailed aspects
The main approach was to rename assemble  (as public API) to _assemble. Ditto for assemble_circuits.
Because Aer is using some of the deprecated functionality, the warnings are catched by few warnings.catch_warnings().
There are several follow ups, because GenericBackendV2 still uses deprecated functionality for pulse.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

118 of 119 (99.16%)  changed or added relevant lines in 19 files are covered.
659 unchanged lines in 25 files lost coverage.
Overall coverage increased (+0.05%) to 89.796%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/assembler/assemble_circuits.py
30
31
96.77%

Files with Coverage Reduction
New Missed Lines
%

crates/qasm2/src/expr.rs
1
94.02%

qiskit/circuit/library/standard_gates/rxx.py
1
97.56%

qiskit/transpiler/passes/routing/commuting_2q_gate_routing/pauli_2q_evolution_commutation.py
1
97.92%

qiskit/circuit/library/standard_gates/rzx.py
1
97.56%

qiskit/assembler/assemble_circuits.py
1
98.01%

qiskit/circuit/library/standard_gates/rz.py
2
95.83%

qiskit/circuit/library/standard_gates/ryy.py
2
95.12%

qiskit/circuit/library/standard_gates/rzz.py
2
94.74%

qiskit/circuit/library/standard_gates/ry.py
2
95.95%

qiskit/circuit/library/standard_gates/rx.py
2
96.05%

Totals

Change from base Build<PHONE_NUMBER>:
0.05%

Covered Lines:
64578

Relevant Lines:
71916

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

118 of 119 (99.16%)  changed or added relevant lines in 19 files are covered.
647 unchanged lines in 23 files lost coverage.
Overall coverage increased (+0.07%) to 89.815%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/assembler/assemble_circuits.py
30
31
96.77%

Files with Coverage Reduction
New Missed Lines
%

qiskit/circuit/library/standard_gates/rxx.py
1
97.56%

qiskit/transpiler/passes/routing/commuting_2q_gate_routing/pauli_2q_evolution_commutation.py
1
97.92%

qiskit/circuit/library/standard_gates/rzx.py
1
97.56%

qiskit/assembler/assemble_circuits.py
1
98.01%

qiskit/circuit/library/standard_gates/rz.py
2
95.83%

qiskit/circuit/library/standard_gates/ryy.py
2
95.12%

qiskit/circuit/library/standard_gates/rzz.py
2
94.74%

qiskit/circuit/library/standard_gates/ry.py
2
95.95%

qiskit/circuit/library/standard_gates/rx.py
2
96.05%

qiskit/circuit/library/standard_gates/p.py
3
96.55%

Totals

Change from base Build<PHONE_NUMBER>:
0.07%

Covered Lines:
64591

Relevant Lines:
71916

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

118 of 119 (99.16%)  changed or added relevant lines in 19 files are covered.
693 unchanged lines in 27 files lost coverage.
Overall coverage increased (+0.1%) to 89.844%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/assembler/assemble_circuits.py
30
31
96.77%

Files with Coverage Reduction
New Missed Lines
%

qiskit/circuit/library/standard_gates/rxx.py
1
97.56%

qiskit/transpiler/passes/routing/commuting_2q_gate_routing/pauli_2q_evolution_commutation.py
1
97.92%

qiskit/circuit/library/standard_gates/rzx.py
1
97.56%

qiskit/assembler/assemble_circuits.py
1
98.01%

qiskit/quantum_info/operators/symplectic/clifford.py
1
91.87%

qiskit/circuit/library/standard_gates/rz.py
2
95.83%

qiskit/circuit/library/standard_gates/ryy.py
2
95.12%

crates/accelerate/src/synthesis/permutation/utils.rs
2
97.94%

crates/qasm2/src/lex.rs
2
92.62%

qiskit/circuit/library/standard_gates/rzz.py
2
94.74%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
65116

Relevant Lines:
72477

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

124 of 126 (98.41%)  changed or added relevant lines in 19 files are covered.
10 unchanged lines in 3 files lost coverage.
Overall coverage increased (+0.004%) to 89.848%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/assembler/assemble_circuits.py
30
31
96.77%

qiskit/providers/fake_provider/fake_backend.py
8
9
88.89%

Files with Coverage Reduction
New Missed Lines
%

qiskit/assembler/assemble_circuits.py
1
98.01%

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

crates/qasm2/src/parse.rs
6
97.61%

Totals

Change from base Build<PHONE_NUMBER>:
0.004%

Covered Lines:
65215

Relevant Lines:
72584

💛  - Coveralls

I made PR to remove qobj from Aer https://github.com/Qiskit/qiskit-aer/pull/2187
Aer has been deprecated qobj and standalone since 0.14 released 3 month ago, so we can remove them

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

122 of 124 (98.39%)  changed or added relevant lines in 19 files are covered.
4 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.03%) to 89.955%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/assembler/assemble_circuits.py
30
31
96.77%

qiskit/providers/fake_provider/fake_backend.py
8
9
88.89%

Files with Coverage Reduction
New Missed Lines
%

qiskit/assembler/assemble_circuits.py
1
98.01%

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

Totals

Change from base Build<PHONE_NUMBER>1:
0.03%

Covered Lines:
66059

Relevant Lines:
73436

💛  - Coveralls

You are right, they are not necessary. I think I removed them all. However, CI was flooding so I have to silent them in globally. Hopefully, they can be return to default once Aer releases.

If there are no specific reasons to leave those filters in, once they are removed, I am happy to approve :)

Nope.. Just overlooked them. Removed in b69bdf96b5663ddb6bb8ffb367398701df515cef


Export animation to .mp4 or .gif

Hello, is there a way of exporting gemini animation to video or gif?

I noticed that there is a gif button in gemini-editor, any ideas how we can use that feature to produce gifs?


Function of comments for motions

function should be enabled/disabled

Done in current master - for 2.1.


[FEATURE]: Add Privacy Policy page

Is your feature request related to a problem? Please describe.
A privacy policy protects users' personal data and comply with privacy regulations.
Describe the solution you'd like
A responsive Privacy Policy page solves this issue.
Additional context
None
@Harshdev098 Please assign this issue to me and add 'hacktoberfest', 'gssoc-ext' and 'level3' labels to it.

@Harshdev098 ??

@Harshdev098 Please correct me if I'm wrong, but isn't this a level 3 issue?

@Harshdev098 ??


Add test workflow

Part of #3
This PR would...

[x] add a test.yml that runs on each pr against main AND each commit to main directly BUT ONLY if it affects the src or test folders (or any top-level config files)
[x] add a non-failing npm test command to package.json (just an echo)

If you want to be "hip" and "cool"  😎 you can rename the master branch to main since that's what everyone seems to use nowadays 😁 https://github.com/github/renaming

@jcbhmr I've renamed the main branch. And looks like there's a merge conflict

Resovled! 😊


Replace Log with stdlib logger

Closes #127

Upon further reading, should I change the loggers to all print to a single fd to also fix #121?

Upon further reading, should I change the loggers to all print to a single fd to also fix #121?

No. That's more of a "let's look into the interleaving and make sure its not a bug".

This looks good aside from needing some documentation for the corral logging package and a couple of the "trickier" formatter usages.

@rkallos this will need to be rebased as it now has conflicts with changes in cmd_update.pony

Rebased :smiley:

Looks like you have compilation errors after the rebase.

Note to self: Run tests locally after rebasing.

@rkallos ping me after you've had time to add the documentation/comments and I'll have another look.

I left some more docs comments. I think what is really missing is, particularly at the package level is...
Written for someone who is coming in to modify logging, add new functionality.
Description of how logging is done and works.
How formatters interact with one another.
What each formatter does.
Basically what you need to be aware of to make changes.
I hope that makes sense. Not sure if it does.

I had to run an errand... that lead to a thought.
For the documentation, there are two audiences.
People who want to enhance/change the logging that exists.
People who are going to add logging to new parts of corral.
The basic informational needs of both groups should be met.

Upon further reflection, I think my approach with LevelLogFormatter is incorrect. It prepends the same log level to all log messages, regardless of user intent:
let logger = StringLogger(Info, env.err, LevelLogFormatter(Info))
logger(Error) and logger.log("some error message")
// logs "INFO: some error message"

To fix this, I think I will introduce a new primitive that accepts a log level and a string and does the prepending there. The resulting code should look like this:
let logger = StringLogger(Info, env.err)
logger(Error) and logger.log(LogMsg(Error, "some error message"))
// logs "ERRR: some error message"

This avoids the downside of having Log be a sort of wrapper class around Logger (not being able to save on work via short-circuiting) while also removing the need for LevelLogFormatter.
Alternately, this might make a compelling argument for adding a log_level argument to the LogFormatter interface in the standard library, though that would require a great deal of care; it seems like it would be a breaking change.

@rkallos This is a good real world use case for the standard library logger. I think it might have highlighted a need for the inclusion of Log Level in the LogFormatter stdlib interface.
Would you be up to opening an RFC to make that change? It's small but we need to run it by people. I'm fully in support of it.
This PR could then be updated so that it would be a small change to finish off and merge once the standard library has been updated.

New RFC

Now that 0.36.0 is out, work on this can continue. It'd probably be best if I started over, as a lot of the details are now lost to me.


Frameit: Add option to Framefile.json to skip adding frame ie. ONLY add text

New Issue Checklist

[X ] Updated fastlane to the latest version
[X ] I have read the Contribution Guidelines

Issue Description
I'd like to be able to define in my Framefile.json (in the "data" section) that certain screens ONLY have the text added to the top -- the frames don't get added. This is because it is popular to create screens that show multiple devices, ie. the frames are already in the screenshot (custom, not full size). But then there's the issue of adding 10 languages' of text to these... currently I have to do this manually. It seems like it would be simple for fastlane to just skip the framing part and still do the part that adds the text at the top.
Example Framefile.json showing "skipFraming" (my imaginary new option) for the first screen:
{
  "default": {
    "keyword": {
      "color": "#00C7C7",
      "fonts": [
        {
          "font": "./NotoSansCJKsc-Regular.otf",
          "supported": ["zh-Hans"]
        },
        {
          "font": "NotoSansCJKtc-Regular.otf",
          "supported": ["zh-Hant"]
        },
        {
          "font": "./OpenSans-Regular.ttf",
          "supported": ["de-DE", "en-US", "es-ES", "fr-FR", "it", "sv"]
        }
      ]
    },
    "title": {
      "color": "#000000",
      "fonts": [
        {
          "font": "./NotoSansCJKsc-Regular.otf",
          "supported": ["zh-Hans"]
        },
        {
          "font": "NotoSansCJKtc-Regular.otf",
          "supported": ["zh-Hant"]
        },
        {
          "font": "./OpenSans-Regular.ttf",
          "supported": ["de-DE", "en-US", "es-ES", "fr-FR", "it", "sv"]
        }
      ]
    },
    "background": "./background.jpg",
    "padding": 35,
    "show_complete_frame": false
  },

  "data": [
    {
      "filter": "FirstScreen",
      "skipFraming": "true",
      "title": {
        "color": "#00C7C7"
      }
    },
    {
      "filter": "Connected",
      "title": {
        "color": "#FC375B"
      }
    },
    {
      "filter": "ShowingPhoto",
      "title": {
        "color": "#27282D"
      }
    },
    {
      "filter": "ShowingAlert",
      "title": {
        "color": "#00C7C7"
      }
    }
  ]
}

@xaphod Thanks for reaching out. Right now this isn't possible as you've noted. I've made this a feature request. Are you interested in working on this as a PR? Thanks!

@TKBurner at the moment i'm slammed, but in a month or two I might be able to, who knows.

@xaphod Thanks for following up. I'll leave this open for the time being.


Different ipcInfo cookie value set dotco footer component & legacy ibm.com script (v18)

Description
When i use language switcher on the IBM home page (https://www.ibm.com/us-en/) (Non-carbon version) to change the language to for example Russian federation - Russian
The ipcInfo cookie value set to
cc%3Dru%3Blc%3Dru%3Bac%3Dall
when I parse the value using queryString.parse(ipcInfo.replace(/;/g, '&')) it became this object
{ ac: 'all', cc: 'ru', lc: 'ru' }
Now using dotcom footer component, when do the same thing the cookie value is
cc%253Dru%253Blc%253Dru
and after parsing it the object looks like
{ 'cc=ru;lc=ru': null }
Component(s) impacted
This is causing the issue, the cookie value set by non-carbon is not compatible with the carbon dotcom version and vice versa.
Impacting the globalization part for the whole app.
Browser
Chrome
Carbon for IBM.com version
v1.25.0-rc.0
Severity
Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.
Application/website
httpw://www.ibm.com
Package
@carbon/ibmdotcom-utilities
CodeSandbox example
NA
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate issues

Closing this issue based on the Sept 23, 2021 Slack conversation with Jeff.


Check package version in ci/cd

Currently, we are not verifying whether a new commit introduces a new version in our CI/CD pipeline. It's crucial that we implement a check for this to ensure version consistency and integrity.

thanks @semihcavdar <3


cross platform build issue

build on macOS: 10.13.1
target OS: redhat 7.4
With the provided build.sh, I tried to build on my mac to a linux host using:
$./build.sh -t linux -a amd64
[DEBUG] Building via go version go1.12.6 darwin/amd64
# github.com/github/orchestrator/vendor/github.com/mattn/go-sqlite3
vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:18:10: undefined: SQLiteConn
vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:26:10: undefined: SQLiteConn
vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:27:17: undefined: namedValue
vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:29:13: undefined: namedValue
vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:35:10: undefined: SQLiteConn
vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:36:17: undefined: namedValue
vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:44:10: undefined: SQLiteConn
vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:49:10: undefined: SQLiteConn
vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:54:10: undefined: SQLiteStmt
vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:63:10: undefined: SQLiteStmt
vendor/github.com/mattn/go-sqlite3/sqlite3_go18.go:36:17: too many errors
find: build/bin/orchestrator: No such file or directory
Failed to generate orchestrator binary

Followed instructions on sqlite3 README about cross compiling, I installed cross gcc, and prefixed CGO_ENABLED=1 CC=/usr/local/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-gcc to the go build command, which stopped the above error and build.sh exited successfully.
My default gcc info:
$gcc -v
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-9<IP_ADDRESS>)
Target: x86_64-apple-darwin17.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

After copying the resulting rpm to the target linux host, Im getting error rpm is intended for a different operating system when installing. It seems fpm needs explicitly to be told the target os, with --rpm-os linux, so I added those to the build script and finally able to get it up running on the linug host.
fpm version: 1.11.0
Not sure if I missed something when building that the above steps are not necessary, if yes could you please let me know what it is so I can add to our docs?  Thanks

To build for Linux under MacOS, I advise (and should reflect that in the docs) to use the Docker builds. e.g. run

docker build . -f Dockerfile -t orchestrator && docker run --rm -it -P 3000:3000 orchestrator:latest
docker build . -f Dockerfile.packaging -t orchestrator-packaging && docker run --rm -it orchestrator-packaging:latest

The first will build and run the orchestrator binary. The second will build distribution packages (.deb, .rpm) and place them in /tmp/orchestrator-release within the docker image.

thanks for getting back, that helps.


chore: yamllint all the things

This adds the same yamllint config that we use in Kepler and adds a Github Workflow to ensure checked in YAML has been correctly linted. Also fixes some minor syntax issues with the GitHub Templates.

Could you please check prometheus-k8s yaml due to the error in this line The Role "prometheus-k8s" is invalid: rules[0].apiGroups: Required value: resource rules must supply at least one api group?

Is this duplicated with https://github.com/sustainable-computing-io/kepler-model-server/pull/429?


Sort PIE/Editor amiguity + Audio Components mess

Made progress, it no longer crashes but there are still issues:

preview in editor doesn't work
when stopping PIE session the EUW loses reference to the SceneManager, this is shown by the notes all turning gray, the workaround is to reconnect to the scene manager after stopping PIE, needs to be fixed.


Are "TODOs" really "Issues" ?

Create a new stagehand package-simple.
Run pub get.
Open Atom for that new package.
Notice how there is one red Issue. Scary! Click it, and you're taken to a TODO. Not so scary.
How much control do we have over what's an "Scary Red Issue" ?

Personally, I feel this should be scoped beyond just TODO's, and also include other non-show-stopping issues like deprecation warnings and unused imports/variables.

Partly addressed here: https://github.com/dart-atom/dartlang/pull/260. Will probably need to submit PRs to linter fix fix the scary red issue.


not supported meross device

Hi,
at first thx. for your Homebridge plugin. It works very good in combination with some Meross MSS310.
But i have some issues with my two new power strips. I hope, that you can help me to fix this problem.
Here some Informations about my system and also the given error messages:
[7/18/2023, 6:48:20 PM] [Meross] [Strom Couch rechts] is not supported, do create a github issue https://bit.ly/hb-meross-issues with info:
{"uuid":"2209264259477454030148e1e9axxxx","onlineStatus":1,"devName":"Strom Couch rechts","devIconId":"device001","bindTime":1687281034,"deviceType":"mss425fc","subType":"eu","channels":[{},{"type":"Switch","devName":"Bose Surround links","devIconId":"device001"},{"type":"Switch","devName":"Bose Surround rechts","devIconId":"device001"},{"type":"Switch","devName":"Couch LED","devIconId":"device001"},{"type":"Switch","devName":"…frei…","devIconId":"device001"},{"type":"USB","devName":"USB","devIconId":"device001"}],"region":"eu","fmwareVersion":"7.2.4","hdwareVersion":"7.0.0","userDevIcon":"","iconType":1,"domain":"mqtt-eu-3.meross.com","reservedDomain":"mqtt-eu-3.meross.com","cluster":3,"hardwareCapabilities":[],"firmware":"7.2.4","hbDeviceId":"2209264259477454030148e1e9axxxxx","model":"MSS425FC"}
[7/18/2023, 6:48:20 PM] [Meross] [Strom Couch links] is not supported, do create a github issue https://bit.ly/hb-meross-issues with info:
{"uuid":"2209269846534754030148e1e9axxxx","onlineStatus":1,"devName":"Strom Couch links","devIconId":"device001","bindTime":1686844789,"deviceType":"mss425fc","subType":"eu","channels":[{},{"type":"Switch","devName":"Headset Workshop","devIconId":"device001"},{"type":"Switch","devName":"Notebook Workshop","devIconId":"device001"},{"type":"Switch","devName":"Logitech HUB","devIconId":"device001"},{"type":"Switch","devName":"Ventilator","devIconId":"device001"},{"type":"USB","devName":"USB","devIconId":"device001"}],"region":"eu","fmwareVersion":"7.2.4","hdwareVersion":"7.0.0","userDevIcon":"","iconType":1,"domain":"mqtt-eu-3.meross.com","reservedDomain":"mqtt-eu-3.meross.com","cluster":3,"hardwareCapabilities":[],"firmware":"7.2.4","hbDeviceId":"2209269846534754030148e1e9axxxxx","model":"MSS425FC"}
Docker Installation with Ubuntu Focal Fossa (20.04.6 LTS) on QNAP-NAS (TVS-672XT)
Homebridge v.1.6.1
Node.js Version	v18.16.1
I anonymized the last 4 chars of the UUIDs, and i hope, that you got all needed Informations.
Many thx for your great work and help.
Alex

Hi @0elfinger
Please update to the beta version of the plugin
https://github.com/bwp91/homebridge-meross/wiki/Beta-Version
You should find this device starts working :)

Hi @bwp91
Works like Magic ;)
Many thx for your Support


Preview images for Twitter/Facebook

Twitter and Facebook links are not appearing with preview images, as expected.

Pasting a Vizor.io link into Twitter should use Twitter cards and result in a preview image appearing.

Pasting the link now only shows a link: https://www.dropbox.com/s/8ygn9jj8eeylqch/Screen Shot 2016-04-13 at 12.28.23.png?dl=0

I'm not sure how Facebook determines preview images, but pasting a Vizor.io link there now results in only a text link: https://www.dropbox.com/s/24vun31vyhu0liu/Screen Shot 2016-04-13 at 12.29.00.png?dl=0

after a couple of seconds however it became this

so Facebook catches up eventually, but the first share would go out without the image :|
The png in question is 730kb, so we might need to look into serving a smaller "fast-food" version or from a CDN. We might anticipate such "internet-weather" issues on Twitter too.


[BUG] By default user can access all data streams messages

Describe the bug
User, only has own_index role, can perform search/delete actions on data streams in cluster.
To Reproduce
Steps to reproduce the behavior:

Create user has no roles mapped (I've created it from Opensearch Dashboards)
Create index template with data_stream attribute, e.g:
PUT _index_template/logs-template
{
"index_patterns": [
"logs-*"
],
"data_stream": {},
"priority": 100
}
Send logs to logs- data stream
Log in to Opensearch dashboards with this user
Send request GET logs-* or DELETE logs-*

Expected behavior
Plugin have to restrict access to data streams for user without permissions for this data streams.
Plugins enabled
opensearch-node1 opensearch-alerting             <IP_ADDRESS>
opensearch-node1 opensearch-anomaly-detection    <IP_ADDRESS>
opensearch-node1 opensearch-asynchronous-search  <IP_ADDRESS>
opensearch-node1 opensearch-index-management     <IP_ADDRESS>
opensearch-node1 opensearch-job-scheduler        <IP_ADDRESS>
opensearch-node1 opensearch-knn                  <IP_ADDRESS>
opensearch-node1 opensearch-notebooks            <IP_ADDRESS>
opensearch-node1 opensearch-performance-analyzer <IP_ADDRESS>
opensearch-node1 opensearch-reports-scheduler    <IP_ADDRESS>
opensearch-node1 opensearch-security             <IP_ADDRESS>
opensearch-node1 opensearch-sql                  <IP_ADDRESS>
Screenshots

Host/Environment (please complete the following information):

OS: Windows + WSL2 + Docker
Version [<IP_ADDRESS>,<IP_ADDRESS>]

@peternied: is the problem reported by @sastorsl the one you fixed in #1999 or is this yet another problem (and maybe still unresolved)?

@sastorsl Could check if this scenario is resolved in the recent 2.2.0 release?  If you still see a vulnerability please contact<EMAIL_ADDRESS>and CC me<EMAIL_ADDRESS>so we can investigate further.

@rursprung Thanks for noticing this, I'm not sure based on the report if it is the same issue or a different issue without knowing more about the system configuration.


use normal conversion + fix tests

Overview

Checklist

[ ] New and updated code has appropriate documentation
[ ] New and updated code has new and/or updated testing
[ ] Required CI checks are passing
[ ] Visual proof for any user facing features like CLI or documentation updates
[ ] Linked issues closed with keywords

Closing this, at it was just a PoC.


fix: automatic contrasting colors for texts when using color override

Add automatic contrasting colors to texts on overrided background colors.
After @ivan-lednev asked to use getTextColorWithEnoughContrast over @bogdansalyp 's proposal #480 , I tried to implement it. First time with Svelte, but I think I did it right.
May resolve #481

Any chance of merging this? It would be great. Tell me if I can help anyway else.

Closing this as stale. I've already fixed this myself.


Inconsistent behavior between FactoryVec and FactoryVecDeque

I'm trying to create a widget that adds and removes an arbitrary number of children at the position before some hard-coded widgets. I tried modifying the factory example like so:
        gtk::ApplicationWindow {
            set_default_width: 300,
            set_default_height: 200,
            set_child = Some(&gtk::Box) {
                set_orientation: gtk::Orientation::Vertical,
                set_margin_all: 5,
                set_spacing: 5,
                factory!(model.counters),
                append = &gtk::Button {
                    set_label: "Add",
                    connect_clicked(sender) => move |_| {
                        send!(sender, AppMsg::Add);
                    }
                },
                append = &gtk::Button {
                    set_label: "Remove",
                    connect_clicked(sender) => move |_| {
                        send!(sender, AppMsg::Remove);
                    }
                },
                append = &gtk::Button {
                    set_label: "I'M LAST",
                },
            }
        }

If I use FactoryVec for my storage, the new widgets are added and removed at the last position (after the "I'M LAST" label). However, if I use FactoryVecDeque for my storage, the widgets are added at the first position (before the "Add" button). The latter behavior happens to be what I want, but I wanted to open this issue to see if this is something I can rely on, or if there's a better way to accomplish what I want.

The reason why this happens is because there are different traits used behind the scenes. FactoryView is used by both but FactoryListView is only required by FactoryVecDeque to enable more flexibility. That's because a Vec can only push and pop at the end whereas the VecDeque needs to take care about positioning. Since not all widgets support arbitrary positions both traits exist to at least allow FactoryVec to be used.
This also causes FactoryVec to use append to insert widgets and FactoryVecDeque uses insert_after unless it's the first widget. Of course it's better to use a separate container only for your factory but I'm pretty sure that this behaviour won't change anytime soon.

Of course it's better to use a separate container only for your factory

Agreed, but in this case I need the children to all be children of the same widget (a PanelPaned from libpanel).

I'd suggest then to document the current behaviour. Any change to this (which is not very likely to happen anyway) would then be avoided or at least considered a breaking change.

The behavior is now documented: https://aaronerhardt.github.io/docs/relm4/relm4/factory/collections/index.html


Style inconsistency when text wraps and with multi-line entries

When text is long enough to wrap on to a new line, the wrapped lines are misaligned slightly to the left. In the screenshot of current behaviour, this can be seen at bullets 6 & 7 where the wrapped text beginning "tempor.." is shifted to the left.
You'll notice that the text at line 9 (which is part of bullet 7, but after new-lines have been added) is aligned correctly, even when the text wraps onto the next line.
This behaviour also seems to cause a break in the vertical lines that indicate the indentation level. This can be seen in the screenshot of current behaviour where the expected vertical line between bullets 6 & 7 is missing; similarly the "tempor..." line at bullet 7 causes a gap in the vertical line, but the line reappears for lines 8 & 9.
Screenshot of current behaviour

I have created a mock-up of what I believe the expected behaviour should be. Hopefully you can see the changes that I have made, but I can explain if necessary.
Mock-up of expected behaviour

Desktop (please complete the following information):

OS: MacOS
Obsidian Version: 0.12.12
Outliner Version: 1.3.1

Just wanted to add that I love the plugin. Keep up the good work.

@thenobody14  Thank you for your feedback! Should be fixed after 2.0 release. Could you please check that everything is ok?

Closed due to inactivity. If you are still experiencing the problem, please create a new issue.

Apologies for not responding sooner. Life got in the way. Have opened issue #251 as a continuation.


Available to set SMTP Local name

Feature Description

Please add SMTP Local Name, e.g. SMTP_LOCALNAME, to .env, because mail.v2 package sends EHLO command with localhost in default configuration but some mail hosts reject such a  connection. See below:
Oct 12 14:05:00 db server[957190]: {"level":"debug","msg":"SMTP Failed: gomail: could not send email 1: 450 4.7.1 \u003clocalhost\u003e: Helo command rejected: Host not found","time":"2022-10-12T21:05:00Z"}

Describe the solution you'd like

Set Dialer.LocalName before DialAndSend func. Refer https://pkg.go.dev/gopkg.in/gomail.v2?utm_source=godoc#Dialer
Describe alternatives you've considered

None.
Additional context

@mzch thank you for putting it up.
I will add it in upcoming release

@mzch I have added support for Dialer.LocalName in 1.1.22


(refactor) Engine validation now relies on utility functions + new va…

…lidTarget call
Signed-off-by: Jerome Simeon<EMAIL_ADDRESS>

Coverage increased (+0.5%) to 98.862% when pulling 22e4fea724a1324ad9842e77fe0496384f8aeb6e on jeromesimeon:js-refactor-validate into 60ae38468a2d1f440f9526efa00149e3afaf524e on accordproject:master.


Spike: Rewrite vaccines endpoint using RTK Query

Description

This is a proof of concept PR to show how we might rewrite our API calls using RTK Query. I will flesh details out in a Notion doc.
As part of this, we would delete VaccineApiClient.ts and VaccineService.ts.
Note: CircleCI test stage is failing for some reason, but it does work in local environment. Not sure how useful those particular failing tests are in any event, but have left them in for now, for completeness.

On what platform have you tested the change?

[ ] Android - Emulator
[ ] Android - Physical device
[x] iOS - Emulator
[ ] iOS - Physical device

Out of scope and potential follow-up
Screenshots
Checklist (for submission)

[ ] Analytics/tracking events have been added (if relevant)
[ ] Added new screen(s) to src/features/screens.ts and new Redux slice(s) to mocks/mockedInitialState.ts (if relevant)

Checklist (for reviewers)

[ ] Checked against Figma designs (if relevant)
[ ] Checked that data has been successfully saved to the backend (if relevant)

Checklist (for merger)

[ ] Make sure the right merge strategy is chosen, commit merge into master and squash merge into develop.

Closing PR - can revisit later :)


[VS Code] Joining collaboration session: Connection got disposed.

<!--
For Visual Studio problems/feedback, please use the Report

Can you attach the liveshare logs, you can find them by running "Liveshare: Export logs" command from command palette


date/time selector

It would be nice if the new silence dialog could support a date/time selector such as https://www.jqueryscript.net/images/Lightweight-jQuery-Date-Input-Picker.jpg
This would make it easier to select now() or next monday.

Closed via https://github.com/prometheus/alertmanager/pull/2262


Wrong Example for setting runtime hooks

Version
nuxt-security: 1.1.0
nuxt: 3.9.3
I'm afraid there is a small error within the recommended runtime hook configuration.
I've tried
export default defineNitroPlugin((nitroApp) => {
    nitroApp.hooks.hook('nuxt-security:ready', () => {
        nitroApp.hooks.callHook('nuxt-security:headers', '/**' ,{
            contentSecurityPolicy: {
                "script-src": ["'self'", "'unsafe-inline'"],
            },
            xFrameOptions: false
        })
    })
})

but this results in an error. The Hook arguments seem to be incorrect.
TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)

By proving all args as an object it seems to work just fine
nitroApp.hooks.hook('nuxt-security:ready', () => {
    nitroApp.hooks.callHook('nuxt-security:headers', {
      route: '/**',
      headers: {
        contentSecurityPolicy: {
            "script-src": ["'self'", "'unsafe-inline'"],
        },
        xFrameOptions: false
      },
    })
  })

Hey @marcel-wtfoxtrot
Thanks for reporting this issue.
Would you be interested in fixing it? I can provide all help needed :)

Also @huang-julien coukd you take a look at it?

oops 🤦♂  i forgot to update the docs when i refactored the pr following harlan's suggestion. Want me to fix it ?

Please do!
I can then merge it and publish the new documentation fix for that :)

Thank you @huang-julien so much! 💚


xmlto: 0.0.26 -> 0.0.28

Things done:

[x] Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

IIRC I tried updating xmlto a few days ago, but it broke some packages. Let's see what travis says.

Travis failed fetching some sources.
As a note. If this PR is merged: Please pick the commit into staging and not master.

Pushed to staging at e5aaefd7b9fc1aeb770038d901c54acc7eabd3b8

@joachifm Have you checked that this change does not break things? Staging is meant for non-breaking changes.

On Sun, Mar 27, 2016, at 11:19 PM, Pascal Wittmann wrote:

@joachifm Have you checked that this change does not break things?
Staging is meant for non-breaking changes.
 I shall revert post haste. Thanks.

On Mon, Mar 28, 2016, at 12:07 AM<EMAIL_ADDRESS>wrote:

On Sun, Mar 27, 2016, at 11:19 PM, Pascal Wittmann wrote:

@joachifm Have you checked that this change does not break things?
Staging is meant for non-breaking changes.
 I shall revert post haste. Thanks.

I will of course take of this and push it when it is ready, I apologize
for the mess.


v2.2.0

This issue is to increment version in documentation and installation files in preparation for release.
Before merge :

[x] Merge #216
[x] Increment version
[x] Update dependencies
[ ] Review pygfunction documentation

After merge :

[ ] Create release tag
[ ] Upload pdf documentation
[ ] Update default version page on readthedocs
[ ] Upload to Pypi

In #139, we proposed to follow the Anaconda distribution for package versions.
This necessitates the following changes in the requirements:

numpy: 1.20.1 -> 1.21.5
scipy: 1.6.2 -> 1.7.3
sphinx: 4.0.1 -> 4.4.0
numpydoc: 1.1 -> 1.2
pytest: 6.2.3 -> 7.1.1
pytest-cov: 3.0.0 (no change)

Latest version of dependencies not in the anaconda distribution are the following:

CoolProp: 6.4.1 (no change)
tox: 3.24.5 -> 3.25.1
recommonmark: 0.6.0 -> 0.7.1

Unless the last two are needed to support the other changes, I don't see a reason to update the versions.

Docs for this issue are temporarily available here.

In pdf format: pygfunction.pdf.

The build is uploaded to testpypi : https://test.pypi.org/project/pygfunction/2.2.0rc0/
Install using pip install -i https://test.pypi.org/simple/ pygfunction==2.2.0rc0

The documentation builds without warnings with sphinx 4.4.0 and numpydoc 1.2.0 after 03a142a.

pygfunction v2.2.0 is now available through pip:
pip install pygfunction


Remove Font-awesome (again) from distribution

Try to use composer to install font awesome, bootstrap. Get rid of jQuery if possible.

All web vendors are excluded from repository.


Named index route issues

How do you make a named route for the homepage?
I have tried:
routes.add('home', '/')

But that results in Client pings, but there's no entry for page: /home.
In some situations you want a index route with the name the same as an existing page file.
// When pages/sellers.js exists
routes.add('sellers', '/')

It automatically renders pages/sellers.js instead of pages/index.js.
Are these bugs? Is there a way to use all the parameters somehow to workaround the issues?

If no page is given as the third argument, it uses the name from the first argument as the page to render. So if you name it index, it will render that page. If you use a different name and it should render index, do this:
routes.add('sellers', '/', 'index')

Thanks, your tip worked.


Azure Document Intelligence failed. ---Bad Request

Please provide us with the following information:

This issue is for a: (mark with an x)
- [ X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Follow the document to run azd up

Any log messages given by the failure

Splitting 'test4.pdf' into sections
Uploading blob for whole file -> test4.pdf
Traceback (most recent call last):
File "/workspaces/azure-search-openai-demo/./scripts/prepdocs.py", line 310, in
loop.run_until_complete(main(file_strategy, azd_credential, args))
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/workspaces/azure-search-openai-demo/./scripts/prepdocs.py", line 160, in main
await strategy.run(search_info)
File "/workspaces/azure-search-openai-demo/scripts/prepdocslib/filestrategy.py", line 76, in run
await search_manager.update_content(sections, blob_image_embeddings)
File "/workspaces/azure-search-openai-demo/scripts/prepdocslib/searchmanager.py", line 170, in update_content
embeddings = await self.embeddings.create_embeddings(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure-search-openai-demo/scripts/prepdocslib/embeddings.py", line 118, in create_embeddings
return await self.create_embedding_batch(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure-search-openai-demo/scripts/prepdocslib/embeddings.py", line 89, in create_embedding_batch
async for attempt in AsyncRetrying(
File "/workspaces/azure-search-openai-demo/scripts/.venv/lib/python3.11/site-packages/tenacity/_asyncio.py", line 71, in anext
do = self.iter(retry_state=self._retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure-search-openai-demo/scripts/.venv/lib/python3.11/site-packages/tenacity/init.py", line 314, in iter
return fut.result()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/workspaces/azure-search-openai-demo/scripts/prepdocslib/embeddings.py", line 96, in create_embedding_batch
emb_response = await client.embeddings.create(model=self.open_ai_model_name, input=batch.texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure-search-openai-demo/scripts/.venv/lib/python3.11/site-packages/openai/resources/embeddings.py", line 198, in create
return await self._post(
^^^^^^^^^^^^^^^^^
File "/workspaces/azure-search-openai-demo/scripts/.venv/lib/python3.11/site-packages/openai/_base_client.py", line 1542, in post
return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure-search-openai-demo/scripts/.venv/lib/python3.11/site-packages/openai/_base_client.py", line 1316, in request
return await self._request(
^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure-search-openai-demo/scripts/.venv/lib/python3.11/site-packages/openai/_base_client.py", line 1368, in _request
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError:

Bad Request

Bad Request
    Error parsing headers: 'limit request headers fields size'

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Linux cc45c391c6c7 <IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 GNU/Linux
azd version?

run azd version and copy paste here.

azd version 1.5.1 (commit 3856d1e98281683b8d112e222c0a7c7b3e148e96)

Mention any other details that might be useful

Thanks! We'll be in touch soon.

Thanks for reporting this - we'll investigate.
In the meantime - can you try using key-based authentication? If you add --formrecognizerkey YOUR_DOCUMENT_INTELLIGENCE_KEY to the prepdocs command line, let us know if that works

Hi @toby080508050805 ,
can you please let us know

Are you using OpenAI embeddings, or Azure OpenAI embeddings?
Did you customize your data or use the existing sample data

Hi Matt,
Thanks for your reply.
1.If you add --formrecognizerkey YOUR_DOCUMENT_INTELLIGENCE_KEY to the prepdocs command line, let us know if that works  <== May I know how to do it ??

I followed the instruction from readme.md  to create the docker and did not change anything.

Start Docker Desktop (install it if not already installed)
Open the project: Open in Dev Containers
In the VS Code window that opens, once the project files show up (this may take several minutes), open a terminal window
Run azd auth login
Now you can follow the instructions in Deploying from scratch below
3.I apply the sample data have the issue so I create my own test data which only have few lines to test.

I add the parameter you mention at very end of prepdocs.sh but it still not work.
--formrecognizerkey "e55d4b6b1******************9d9b3"  \

Hi @toby080508050805 ,
can you please let us know
Are you using OpenAI embeddings, or Azure OpenAI embeddings?
Did you customize your data or use the existing sample data

@mattgotteiner I have the same issue here,

I downloaded the repository with docker,
I have not modified the data folder,
I am using Azure openai embeddings.

This is my first time that I do azd up after that the gpt4 with vision was introduced previously this repo was working like a charm, this is the problem:
Packaging services (azd package)
up to date, audited 260 packages in 1s
found 0 vulnerabilities
|=======| Packaging service backend

<EMAIL_ADDRESS>build
tsc && vite build

|     ==| Packaging service backendvite v4.5.1 building for production...
✓ 4200 modules transformed.
../backend/static/index.html                             0.76 kB │ gzip:   0.38 kB
../backend/static/assets/github-fab00c2d.svg             0.96 kB │ gzip:   0.52 kB
../backend/static/assets/OneShot-daa12333.css            0.83 kB │ gzip:   0.39 kB
../backend/static/assets/index-54ce2544.css              7.28 kB │ gzip:   2.25 kB
../backend/static/assets/NoPage-ea4b1efc.js              0.18 kB │ gzip:   0.18 kB │ map:     0.35 kB
../backend/static/assets/OneShot-efb8c1be.js             4.87 kB │ gzip:   2.06 kB │ map:    20.88 kB
../backend/static/assets/fluentui-icons-e67e11a4.js      5.67 kB │ gzip:   2.56 kB │ map: 4,322.77 kB
../backend/static/assets/index-67467094.js              24.98 kB │ gzip:   8.86 kB │ map:    97.05 kB
../backend/static/assets/fluentui-react-63b3d3f8.js    337.68 kB │ gzip:  95.09 kB │ map: 1,480.88 kB
../backend/static/assets/vendor-7810ac01.js          1,687.91 kB │ gzip: 535.84 kB │ map: 5,151.39 kB
(!) Some chunks are larger than 500 kBs after minification. Consider:

Using dynamic import() to code-split the application
Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 13.41s
(✓) Done: Packaging service backend

Package Output: /tmp/azure-search-openai-demo-backend-azddeploy-1704791032.zip
Checking if authentication should be setup...
Loading azd .env file from current environment...
AZURE_USE_AUTHENTICATION is not set, skipping authentication setup.

Provisioning Azure resources (azd provision)
Provisioning Azure resources can take some time.
Subscription: Azure subscription 1 (7db609df-53d4-4345-857e-68d76c86f557)
Location: France Central
? Enter a value for the 'openAiResourceGroupLocation' infrastructure parameter:  4. (Europe) France Central (francecentral)
? Save the value in the environment for future use No
You can view detailed progress in the Azure Portal:
https://portal.azure.com*******************************
(✓) Done: Resource group: rg-***************
(✓) Done: Storage account: st3***************
(✓) Done: Search service: gptkb-37***************
(✓) Done: App Service plan: plan-37***************
(✓) Done: Log Analytics workspace: log-37***************
(✓) Done: Azure OpenAI: cog-37***************
(✓) Done: Application Insights: appi-37***************
(✓) Done: Form recognizer: cog-fr-37***************
(✓) Done: Portal dashboard: dash-37k***************
(✓) Done: App Service: app-backend-37k***************
Loading azd .env file from current environment...
Creating Python virtual environment "scripts/.venv"...
Installing dependencies from "requirements.txt" into virtual environment (in quiet mode)...
Not updating authentication.
Loading azd .env file from current environment...
Creating Python virtual environment "scripts/.venv"...
Installing dependencies from "requirements.txt" into virtual environment (in quiet mode)...
Running "prepdocs.py"
Processing files...
Using local files in ./data/*
Ensuring search index gptkbindex exists
Creating gptkbindex search index
Extracting text from './data/GPT4V_Examples/Financial Market Analysis Report 2023.pdf' using Azure Document Intelligence
Splitting 'Financial Market Analysis Report 2023.pdf' into sections
Uploading blob for whole file -> Financial Market Analysis Report 2023.pdf
Traceback (most recent call last):
File "/workspaces/azure_with_vision/./scripts/prepdocs.py", line 310, in
loop.run_until_complete(main(file_strategy, azd_credential, args))
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/workspaces/azure_with_vision/./scripts/prepdocs.py", line 160, in main
await strategy.run(search_info)
File "/workspaces/azure_with_vision/scripts/prepdocslib/filestrategy.py", line 76, in run
await search_manager.update_content(sections, blob_image_embeddings)
File "/workspaces/azure_with_vision/scripts/prepdocslib/searchmanager.py", line 170, in update_content
embeddings = await self.embeddings.create_embeddings(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure_with_vision/scripts/prepdocslib/embeddings.py", line 118, in create_embeddings
return await self.create_embedding_batch(texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure_with_vision/scripts/prepdocslib/embeddings.py", line 89, in create_embedding_batch
async for attempt in AsyncRetrying(
File "/workspaces/azure_with_vision/scripts/.venv/lib/python3.11/site-packages/tenacity/_asyncio.py", line 71, in anext
do = self.iter(retry_state=self._retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure_with_vision/scripts/.venv/lib/python3.11/site-packages/tenacity/init.py", line 314, in iter
return fut.result()
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/workspaces/azure_with_vision/scripts/prepdocslib/embeddings.py", line 96, in create_embedding_batch
emb_response = await client.embeddings.create(model=self.open_ai_model_name, input=batch.texts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure_with_vision/scripts/.venv/lib/python3.11/site-packages/openai/resources/embeddings.py", line 198, in create
return await self._post(
^^^^^^^^^^^^^^^^^
File "/workspaces/azure_with_vision/scripts/.venv/lib/python3.11/site-packages/openai/_base_client.py", line 1542, in post
return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure_with_vision/scripts/.venv/lib/python3.11/site-packages/openai/_base_client.py", line 1316, in request
return await self._request(
^^^^^^^^^^^^^^^^^^^^
File "/workspaces/azure_with_vision/scripts/.venv/lib/python3.11/site-packages/openai/_base_client.py", line 1368, in _request
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError:

Bad Request

Bad Request
    Error parsing headers: 'limit request headers fields size'

@mattgotteiner
Update: the issue disappear when I use openai api key instead of azure openai. In our organization, the only person that is able to run the repo with azure openai is the owner of the entire azure system, all the other people have the previous error.


Add end-to-end tests for sdk and experimental-sdk commands

Previously these commands weren't covered with end-to-end tests. Now we verify that installation/listing/removal of a fixture Swift SDK succeeds, and also verify that experimental-sdk invocations issue a deprecation warning.

@swift-ci test


How to select specific GPUs to for each Habitat-sim instance created in a multi-GPU machine?

I am trying to create multiple habitat-sim instances on a node with multiple GPUs using EGL. I have tried setting EGL_DEVICE_ID and CUDA_VISIBLE_DEVICES environment variables. Setting EGL_DEVICE_ID has no effect at all (setting it to 1 yet all simulators are created on GPU 0). Setting CUDA_VISIBLE_DEVICES to 1 works, resulting in all simulations being created on GPU 1 instead of 0. However, when setting CUDA_VISIBLE_DEVICES to 0,1,2, all simulations were still created on GPU 0 even after GPU memory is full. Setting CUDA_VISIBLE_DEVICES to 0 at first and chaning it to 1 after a few simulators are created also did not work, as all simulators are still created on GPU 0.
I saw from other issues they have output like found 2 EGL devices, choosing EGL device 0 for CUDA device 0. It seems to come from Habitat-lab, but I am using Habitat-sim only.
I also saw from #1038, so my attemps with setting CUDA_VISIBLE_DEVICES mentioned above were done by creating habitat-sim simulators before using CUDA in PyTorch.
By the way, I am creating all habitat-sim simulators from the same process and the same thread. Others seems to make this work with multiple threads. Is creating one simulator per thread the only solution, or was I simply not correctly setting CUDA_VISIBLE_DEVICES with my attempts?

You can set gpu_device_id on the config (https://aihabitat.org/docs/habitat-sim/habitat_sim.sim.SimulatorConfiguration.html#gpu_device_id).

By the way, I am creating all habitat-sim simulators from the same process and the same thread.

This won't work. We don't support multiple simulator instances in the same process/thread.

Setting gpu_device_id works for using multiprocessing. However, I previously successfully created multiple habitat-sim simulators in the same process and I wasn't using any multiprocessing/multithreading; this is only for using habitat-sim built from source (it did not work with habitat-sim installed with conda)

Setting gpu_device_id works for using multiprocessing

Great! That's the supported way to do what you want.

However, I previously successfully created multiple habitat-sim simulators in the same process

This isn't something that is supported.