BUG: brew not finding mesonpy

Describe your issue.
Installing SciPy in MacOS Big Sur using brew installation of Python 3.10.6, failing on
<EMAIL_ADDRESS>line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mesonpy'

(Complete trace below)
I have read the issues below and perhaps I have missed something. I've also checked some possibilities (e.g. manual installation of Meson, etc.) but despite reasonable experience with Python, this one seems to be eluding me.
I'd be grateful for any suggestions or direction.
Thanks!
Reproducing Code Example
$ pip3 install scipy

Error message
$ pip3 install scipy
Collecting scipy
  Using cached scipy-1.9.1.tar.gz (42.0 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
ERROR: Exception:
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
    status = run_func(*args)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
    return func(self, options, args)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 369, in run
    requirement_set = resolver.resolve(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
    result = self._result = resolver.resolve(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria
    if not criterion.candidates:
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in __bool__
    return bool(self._sequence)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
    return any(self)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
    candidate = func()
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in __init__
    super().__init__(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in __init__
    self.dist = self._prepare()
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare
    dist = self._prepare_distribution()
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 438, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 524, in _prepare_linked_requirement
    dist = _get_prepared_distribution(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 68, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 48, in prepare_distribution_metadata
    self._install_build_reqs(finder)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 118, in _install_build_reqs
    build_reqs = self._get_build_requires_wheel()
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 95, in _get_build_requires_wheel
    return backend.get_requires_for_build_wheel()
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/utils/misc.py", line 685, in get_requires_for_build_wheel
    return super().get_requires_for_build_wheel(config_settings=cs)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py", line 172, in get_requires_for_build_wheel
    return self._call_hook('get_requires_for_build_wheel', {
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py", line 332, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 89, in _build_backend
    obj = import_module(mod_path)
  File<EMAIL_ADDRESS>line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mesonpy'

SciPy/NumPy/Python version information

import sys, scipy, numpy; print(scipy.version, numpy.version, sys.version_info) Traceback (most recent call last):   File "", line 1, in  ModuleNotFoundError: No module named 'scipy' >>>  >>> import sys, numpy; print(numpy.version, sys.version_info) 1.23.2 sys.version_info(major=3, minor=10, micro=6, releaselevel='final', serial=0) >>>

This is interesting... pip3 install scipy is downloading an sdist, which has a pyproject.toml specifying:
[build-system]
build-backend = 'mesonpy'
requires = [
    "meson-python>=0.8.1",  # we need more fixes in meson-python, so no upper bound now
[....]

and then inside get_requires_for_build_wheel() (this is all pip internal code) it tries to import that build-backend, but fails because No module named 'mesonpy'.
I'm not really sure how something like this would ever happen, because pip should be installing the build-system.requires first... it seems like this should be a pip issue if anything.
What's your version of pip?

A quick look through the pip bugtracker pointed me at this, which sounds a lot like your issue: https://github.com/pypa/pip/issues/11275

This is interesting... pip3 install scipy is downloading an sdist, which has a pyproject.toml specifying:
[build-system]
build-backend = 'mesonpy'
requires = [
    "meson-python>=0.8.1",  # we need more fixes in meson-python, so no upper bound now
[....]

and then inside get_requires_for_build_wheel() (this is all pip internal code) it tries to import that build-backend, but fails because No module named 'mesonpy'.
I'm not really sure how something like this would ever happen, because pip should be installing the build-system.requires first... it seems like this should be a pip issue if anything.
What's your version of pip?

I think it's pretty current:
$ pip3 --version
pip 22.2.2 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)
$

Thanks for the comments. I'm still working on it.

Thanks for reporting. The sdist vs wheel is because we only build wheels for macOS 12 (Monterey). As for why pip does not install build deps I don't know yet.

A quick look through the pip bugtracker pointed me at this, which sounds a lot like your issue: pypa/pip#11275

@gregdelozier did that end up being your issue, or did you not have a pip.conf settings file?

A quick look through the pip bugtracker pointed me at this, which sounds a lot like your issue: pypa/pip#11275

@gregdelozier did that end up being your issue, or did you not have a pip.conf settings file?

I do not believe that is the issue. I did take a look at that, and appreciate you bringing it to my attention.
At the moment I have too many irons in the fire to risk an OS upgrade. It's a pity that scipy seems unavailable to ARM/MacOS 11 -- there must be more than just myself trying to get work done on such a machine. I guess when I have time I'll upgrade.
Thanks for the help.

there must be more than just myself trying to get work done on such a machine.

There are, but there are an exponential combination of platforms and versions to support and as we have limited ressources and maintainers time, we have to make choices.

Thanks for checking @gregdelozier. If that wasn't the bug, let's try and see what is actually going on. Could you run pip3 install scipy -vv so you get verbose output and we see what is actually happening? It should show things like:
$ pip3 install scipy -vv
Using pip 22.1.2 from /Users/rgommers/mambaforge/envs/scipy-dev/lib/python3.9/site-packages/pip (python 3.9)
Non-user install because site-packages writeable
...
Looking up "https://pypi.org/simple/pip/" in the cache
...
<a ton of "Found link" output that is not interesting>
....
Collecting scipy
  Created temporary directory: /private/var/folders/2m/dk_4hyc90xd2drkbqsbsjfqw0000gn/T/pip-unpack-zlc5tisj
  Looking up "https://files.pythonhosted.org/packages/db/af/16906139f52bc6866c43401869ce247662739ad71afa11c6f18505eb0546/scipy-1.9.1.tar.gz" in the cache
  No cache entry available
  Starting new HTTPS connection (1): files.pythonhosted.org:443
  https://files.pythonhosted.org:443 "GET /packages/db/af/16906139f52bc6866c43401869ce247662739ad71afa11c6f18505eb0546/scipy-1.9.1.tar.gz HTTP/1.1"<PHONE_NUMBER>8
  Downloading scipy-1.9.1.tar.gz (42.0 MB)
...
  Collecting meson-python>=0.8.1
    Downloading meson_python-0.8.1.tar.gz (30 kB)
    Installing build dependencies: started
    Running command pip subprocess to install build dependencies
    Ignoring typing-extensions: markers 'python_version < "3.8"' don't match your environment
    Collecting meson>=0.62.0
      Downloading meson-0.63.2.tar.gz (2.1 MB)
...

I ran into the same issue on Mac Bigsir 11.7 (20G817)!
python3 -m pip install scipy -vv

...see details below in the attached file including my output...

ModuleNotFoundError: No module named 'mesonpy'

Remote version of pip: 22.2.2
Local version of pip:  22.2.2
Was pip installed by pip? True

pip3.txt

Thanks @ericllazarus. I added some more of the relevant traceback from your attachment here:

  Found link https://files.pythonhosted.org/packages/db/af/16906139f52bc6866c43401869ce247662739ad71afa11c6f18505eb0546/scipy-1.9.1.tar.gz (from https://pypi.org/simple/scipy/) (requires-python:>=3.8,<3.12), version: 1.9.1
Skipping link: not a file: https://pypi.org/simple/scipy/
Given no hashes to check 69 links for project 'scipy': discarding no candidates
Collecting scipy
  Created temporary directory: /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-unpack-rbvzuc99
  Looking up "https://files.pythonhosted.org/packages/db/af/16906139f52bc6866c43401869ce247662739ad71afa11c6f18505eb0546/scipy-1.9.1.tar.gz" in the cache
  Current age based on date: 2044
  Ignoring unknown cache-control directive: immutable
  Freshness lifetime from max-age: 365000000
  The response is "fresh", returning cached response
  365000000 > 2044
  Using cached scipy-1.9.1.tar.gz (42.0 MB)
  Added scipy from https://files.pythonhosted.org/packages/db/af/16906139f52bc6866c43401869ce247662739ad71afa11c6f18505eb0546/scipy-1.9.1.tar.gz to build tracker '/private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-tracker-2t47ak54'
  Created temporary directory: /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6
  Installing build dependencies: started
  Running command pip subprocess to install build dependencies
  Using pip 22.2.2 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)
  Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64" and platform_python_implementation != "PyPy"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.9" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment
  Ignoring numpy: markers 'platform_machine == "loongarch64"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.10" and platform_system == "Windows" and platform_python_implementation != "PyPy"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.8" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64" and platform_machine != "loongarch64" and platform_python_implementation != "PyPy"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.9" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "loongarch64" and platform_python_implementation != "PyPy"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.11" and platform_python_implementation != "PyPy"' don't match your environment
  Ignoring numpy: markers 'python_version >= "3.12"' don't match your environment
  Ignoring numpy: markers 'python_version >= "3.8" and platform_python_implementation == "PyPy"' don't match your environment
  Collecting meson-python>=0.8.1
    Using cached meson_python-0.10.0-py3-none-any.whl (18 kB)
  Collecting meson==0.62.2
    Using cached meson-0.62.2-py3-none-any.whl (864 kB)
  Collecting Cython<3.0,>=0.29.21
    Using cached Cython-0.29.32-py2.py3-none-any.whl (986 kB)
  Collecting pybind11<2.11.0,>=2.4.3
    Using cached pybind11-2.10.0-py3-none-any.whl (213 kB)
  Collecting pythran<0.12.0,>=0.9.12
    Using cached pythran-0.11.0-py3-none-any.whl (4.2 MB)
  Collecting wheel<0.38.0
    Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
  Collecting numpy==1.21.6
    Using cached numpy-1.21.6-cp310-cp310-macosx_11_0_arm64.whl (12.4 MB)
  Collecting tomli>=1.0.0
    Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
  Collecting ninja
    Using cached ninja-<IP_ADDRESS>-py2.py3-none-macosx_10_9_universal2.macosx_10_9_x86_64.macosx_11_0_arm64.macosx_11_0_universal2.whl (231 kB)
  Collecting pyproject-metadata>=0.5.0
    Using cached pyproject_metadata-0.6.1-py3-none-any.whl (7.4 kB)
  Collecting ply>=3.4
    Using cached ply-3.11-py2.py3-none-any.whl (49 kB)
  Collecting beniget~=0.4.0
    Using cached beniget-0.4.1-py3-none-any.whl (9.4 kB)
  Collecting gast~=0.5.0
    Using cached gast-0.5.3-py3-none-any.whl (19 kB)
  Collecting packaging>=19.0
    Using cached packaging-21.3-py3-none-any.whl (40 kB)
  Collecting pyparsing!=3.0.5,>=2.0.2
    Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
  Installing collected packages: ply, ninja, wheel, tomli, pyparsing, pybind11, numpy, meson, gast, Cython, packaging, beniget, pythran, pyproject-metadata, meson-python
    Creating /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/ninja to 755
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/wheel to 755
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/pybind11-config to 755
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/f2py to 755
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/f2py3 to 755
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/f2py3.10 to 755
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/meson to 755
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/cygdb to 755
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/cython to 755
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/cythonize to 755
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/pythran to 755
    changing mode of /private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-viwdhap6/overlay/bin/pythran-config to 755
  Successfully installed Cython-0.29.32 beniget-0.4.1 gast-0.5.3 meson-0.62.2 meson-python-0.10.0 ninja-<IP_ADDRESS> numpy-1.21.6 packaging-21.3 ply-3.11 pybind11-2.10.0 pyparsing-3.0.9 pyproject-metadata-0.6.1 pythran-0.11.0 tomli-2.0.1 wheel-0.37.1
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Running command Getting requirements to build wheel
  Error in sitecustomize; set PYTHONVERBOSE for traceback:
  AssertionError:
  Getting requirements to build wheel: finished with status 'done'
ERROR: Exception:
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
    status = run_func(*args)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
    return func(self, options, args)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 369, in run
    requirement_set = resolver.resolve(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve
    result = self._result = resolver.resolve(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 348, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py", line 172, in _add_to_criteria
    if not criterion.candidates:
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py", line 151, in __bool__
    return bool(self._sequence)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__
    return any(self)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built
    candidate = func()
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 297, in __init__
    super().__init__(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in __init__
    self.dist = self._prepare()
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare
    dist = self._prepare_distribution()
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 308, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 438, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 524, in _prepare_linked_requirement
    dist = _get_prepared_distribution(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/operations/prepare.py", line 68, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 48, in prepare_distribution_metadata
    self._install_build_reqs(finder)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 118, in _install_build_reqs
    build_reqs = self._get_build_requires_wheel()
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/distributions/sdist.py", line 95, in _get_build_requires_wheel
    return backend.get_requires_for_build_wheel()
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_internal/utils/misc.py", line 685, in get_requires_for_build_wheel
    return super().get_requires_for_build_wheel(config_settings=cs)
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py", line 172, in get_requires_for_build_wheel
    return self._call_hook('get_requires_for_build_wheel', {
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/wrappers.py", line 332, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 89, in _build_backend
    obj = import_module(mod_path)
  File<EMAIL_ADDRESS>line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mesonpy'

Remote version of pip: 22.2.2
Local version of pip:  22.2.2
Was pip installed by pip? True
Removed scipy from https://files.pythonhosted.org/packages/db/af/16906139f52bc6866c43401869ce247662739ad71afa11c6f18505eb0546/scipy-1.9.1.tar.gz from build tracker '/private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-tracker-2t47ak54'
Removed build tracker: '/private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-tracker-2t47ak54'

So that's two reports of building from source on macOS 11.X with Homebrew failing. A build from source is triggered there because our arm64 wheels are for >= 12.0. Somehow meson-python gets installed just fine, but then cannot be imported inside the venv that is created by pip for the isolated build.
I wonder if this can be reproduced on macOS 12 with pip install scipy --no-binary :scipy: (I think that's the right command, not tested). That would make this easier to reproduce.
There is one line in the log that I'm not sure about, this looks a little odd: Error in sitecustomize; set PYTHONVERBOSE for traceback:. @ericllazarus would you mind doing export PYTHONVERBOSE and then re-running the build to see if that says anything more?

Thanks folks!
I'll just note that Eric's output was preceded by (I think) a brew install openblas, and that openblas then suggested that the newer version it installed needed to be enabled via some environmental variables. I don't think Eric tried setting those variables yet, but I was just watching the install remotely....

Thanks @nealmcb. I checked what those variables were, and this is what Homebrew does right now:
openblas is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS provides BLAS in Accelerate.framework.

For compilers to find openblas you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/openblas/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/openblas/include"

That can't explain ModuleNotFoundError: No module named 'mesonpy' though, we never arrive at the place where we need openblas.

Thanks @rgommers
$ export PYTHONVERBOSE=1
$ export LDFLAGS="-L/opt/homebrew/opt/openblas/lib"
$ export CPPFLAGS="-I/opt/homebrew/opt/openblas/include"
$ python3 -m pip install scipy -vv > /tmp/pip3-2.txt 2>&1
"ModuleNotFoundError: No module named 'mesonpy'"
pip3-2.txt

Thanks @ericllazarus. This part makes me think it's a Homebrew bug:
  Traceback (most recent call last):
    File<EMAIL_ADDRESS>line 549, in execsitecustomize
      import sitecustomize
    File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 883, in exec_module
    File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    File "/private/var/folders/vs/mn5gszv12h56c8x11y775y9w0000gn/T/pip-build-env-qen_2aat/site/sitecustomize.py", line 22, in <module>
      assert not path in sys.path
  AssertionError
  # destroy sitecustomize

There's a ton of issues related to sitecustomize.py in Homebrew, and they're doing really messy things to hide their own site-packages from sys.path:

https://github.com/Homebrew/homebrew-core/search?q=sitecustomize&type=issues.
https://github.com/Homebrew/brew/pull/8880

Could you please open a HomeBrew bug linking this one?

Thanks @rgommers. I will open the other ticket. Is there a workaround where I install without homebrew? If so, how?

You have a few options (assuming you're arm64):

Upgrade to Monterey and pip install scipy
Remain on Big-Sur, but use an x86_64 Python running via Rosetta, there are macosx_10_9_x86_64 wheels available. I'm not sure how you could setup this kind of Python. I know there are Universal and Intel installers available from here. If you install a universal build it may be possible to ask Terminal to run the x86_64 arch.
Try installing scipy via conda.
Download the appropriate macosx_12_0_arm64.whl from PyPI, change the name to macosx_11_0_arm64.whl, and install it. However, it's likely you'll run into bugs as Ralf alluded to. I don't remember the full history of why we don't make wheels for 11_0. This option isn't supported.

There have been no more reports of this, and it's not a SciPy bug. So I assume that the Homebrew issue, or whatever else caused this, has been fixed by now. So I'll close this. Thanks all.


Penetration problem in test_body_motion.

Capsules get stuck

Probably related, other shapes also block.
https://github.com/fabriceci/godot-rapier2d/assets/6397893/c244bfde-5bce-4184-9c30-fa76277321c0

The second part is related to parry removing points that it considers bad:
Disabled it here: https://github.com/appsinacup/parry/commit/ab5426d1a218eeaa4f5b08283a43eae5a709b0eb

The second part has been well corrected by Parry's modification, well done, all that's left is the first part and a jitter (probably the same problem) detailed in my commentary. #23

Closing this as its fixed


ci: do not hit the default branch protection by generating docs on pull requests

…

[x] I have read the contributing guidelines
[x] I have followed the coding guidelines
[x] I have written unit tests
[x] I have made sure that the pull request is of reasonable size and can be easily reviewed

The automatic commit is not triggering the CI because GitHub understands the push event has been generated from its actions.
Theoretically, we should checkout the repo with a PAT to make that work (not sure we want that at the moment). Read more here.


banglerun v0.05

This PR is a complete rewriting of the BangleRun app in TypeScript. Code has been separated into modules, to better handle the various features in the app. The main changes are:

New layout of the displayed information on screen
Kalman filtering on GPS and HRM input. The former fuses together position and speed readings from the GPS, significantly improving the tracking accuracy. I did two 10k runs, comparing results with two different smartphone apps (Huawei Health and Sports Tracker), and obtaining readings different by less than 1%
Logging of the activities on CSV files

I did some practical tests on somewhat long runs (distance > 10k and time > 1hr), to ensure that old bugs affecting the display of time and distance are not present in this release. The project is already configured to support unit testing with Jasmine, and I plan to write some specs in the near future.

I've got couple of questions about some minor issues that I couldn't solve:

I receive a lot of FIFO_FULL errors when pressing buttons and reading NMEA strings from the GPS-raw event. It doesn't seem to cause any malfunctioning in the app, but I was wondering if there's something I could do to avoid them
The GPS seems to take ages to lock, especially if compared to other bangle.js apps (e.g. gpstime). Is it just an impression of mine? Am I doing something wrong? Is there something I could do to improve the situation?
Is there a way to have a look at the CPU load of the watch, to make sure the app is not too computationally expensive?

I receive a lot of FIFO_FULL errors when pressing buttons and reading NMEA strings from the GPS-raw event.

Ahh - that'll happen when a line of NMEA data comes in before you finished processing the last one. It's possible your processing itself is fast enough, but maybe some other functionality (likely a screen redraw?) is taking too long to complete.
What data are you needing to extract? Maybe it could be added into the Bangle.js firmware?

It doesn't seem to cause any malfunctioning in the app
The GPS seems to take ages to lock

These could be related :) But otherwise there shouldn't be a difference - the GPS runs independently so the only difference could be if there was some issue processing the data.

Is there a way to have a look at the CPU load of the watch, to make sure the app is not too computationally expensive?

There's setBusyIndicator but it's not actually that helpful as it needs an IO pin to pulse, and about the only one that's usable is the speaker pin. You can take the back off the watch and do setBusyIndicator(D18) and then wire an LED up where the speaker is, but it's not great :)

What data are you needing to extract? Maybe it could be added into the Bangle.js firmware?

To be able to use the GPS parsed data instead of the NMEA strings, on top of latitude, longitude, altitude and speed (all of them extracted directly from the NMEA sentences, correct?), I would only need the PDOP (dilution of precision) of the GPS reading, namely field n. 15 of the GSA sentence. The field gives an estimate of the accuracy of the reading, which is one of the required inputs for the Kalman filter.


Examples

It's much easier to start using ascent (and especially its custom DSL) if there is a list of examples for both, individual language features, as well as more complete use-cases.
This PR aims to plant a first seed for such an extensive pool of examples with an initial set of …

Examples focussing on individual language features of ascent:

ascent_for_in_clause.rs
ascent_agg_clause.rs
ascent_disjunction_clause.rs
ascent_generic_program.rs
ascent_if_clause.rs
ascent_if_let_clause.rs
ascent_lattice.rs
ascent_let_clause.rs
ascent_macros_rule.rs
ascent_negation_clause.rs

Examples showcasing simple yet well-known algorithms:

fibonacci.rs
fizz_buzz.rs
transitive_graph_closure.rs

Examples showcasing real-world use-cases:

context_sensitive_flow_graph_with_records.rs
context_sensitive_flow_graph.rs
def_use_chains.rs
sequences_using_recursive_records.rs
var_points_to.rs

Happy to see this commit. This looks like a good start. We should consider adding some even larger examples, I know I recently saw an Ascent version of https://github.com/plast-lab/doop-mirror/blob/master/souffle-logic/analyses/micro/self-contained.dl, which comes complete with some sizable EDBs. It is a very small version of DOOP (not using more complex analysis features, but a suitable basis). I am also interested in adding a few more complex examples of program analyses in Ascent that we could contribute to the examples folder if this is approved.

Absolutely! The lack of available Datalog source code is a major hurdle when getting started with the language, imho.
In pretty much every other major language there is more openly available source code available than one could reasonably read in a lifetime. Yet for Datalog you're likely to reach the end (of the stuff that's easily available/discoverable) by the end of the day, unless you descend into scientific journal papers and stuff.
So every example is worth its weight in gold.

@regexident Thanks for the PR, this is great work!


Updated ubi-minimal, go-toolset, go-toolset, ubi and ose images

The issue resolved by this Pull Request:
Resolves https://github.com/opendatahub-io/data-science-pipelines-operator/issues/392
Description of your changes:
This PR updates the ubi-minimal, go-toolset, go-toolset, ubi and ose container images.
Checklist

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work

/hold

/hold

/unhold


BUG: Correcting the sell online page

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
The sell online page does not have proper alignment and i would like to correct it
Screenshots

Record

[X] I agree to follow this project's Code of Conduct
[ ] I'm a GSSOC'24 contributor
[ ] I want to work on this issue

Hi, I can solve this issue. Can you assign it to me?
Record

[ *] I agree to follow this project's Code of Conduct
[* ]  I'm a GSSOC'24 contributor
[* ]  I want to work on this issue

@Bhavishya2601 There is already someone working on this, please check properly before marking
[*] I have searched the existing issues


Resolving packages path with cobaya tools

In the current implementation of some tests, the packages_path is found either as an environmental variable or set to a temporary folder.
However, setting the environmental variable is not a mandatory action when running cobaya, while the default behavior is to create a configuration file storing the path.
Also, with no environmental variable set, the temporary folder overwrites the default configuration file. So, even when the likelihood are correctly installed, the test will not find them.
I switched to resolve_packages_path from cobaya.tools that reads the path from the configuration file. This solves multiple issues present in test_mflike, test_multi, test_lensing and test_runs causing installation-failure errors.
This PR also solves the issue #168, setting to a single letter the calibration keys.

There is still an open question: if the user installs cobaya via pip, but never runs cobaya-install something --packages-path /path/to/packages, the mentioned configuration file doesn't exist.
I must say that this case is quite unlikely in my head, however it should be fixed once we prepare a script installing all the relevant likelihoods for SOLikeT (where the user will specify where to install them).
Also, I haven't run any formatting on this, so before merging I'll do that and eventually commit again.

Flake modified quite a lot of stuff in the end.
I enforced the rules defined in setup.cfg

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 74.71%. Comparing base (1b7c793) to head (e0c0c05).

Additional details and impacted files

@@            Coverage Diff             @@
##           master     #169      +/-   ##
==========================================
+ Coverage   74.61%   74.71%   +0.09%
==========================================
  Files          33       33
  Lines        2029     2029
==========================================
+ Hits         1514     1516       +2
+ Misses        515      513       -2

Files
Coverage Δ

soliket/mflike/theoryforge_MFLike.py
83.50% <100.00%> (ø)

... and 1 file with indirect coverage changes


Add FlipInput selector

Adds a flip-style input selector widget.

@kmatch98 these look awesome! I will dive in and take a closer look at this one after a few of the prior PRs. Should get to it within the next few days.
Thanks again for churning out so many great widgets!

Thanks for the positive feedback and the detailed notes. I’ll work on adopting your suggested defaults. Also I think I should add a couple drawings to clarify some of the parameters.
A couple of things where I’d like your feedback that are more philosophical or strategic about widgets in general.

I think we should add either some debouncing logic on these, or perhaps some sort of rate limit.
If animation_time is None these trip very quickly, it becomes easier to accidentally double up when pressing the button.

This seems like a question that could raise its head in many different widgets. Generalized, the question is how much “smarts” are in the main event loop and how much resides down in the widgets. Of course there is no right answer since each way can work just fine. I think the question is “how will beginning users best be served” to use these?  Do we want a consistent expectation and strategy on how these things will behave. Or do we provide a menu of options?
A related note, I struggle sometimes how much details and structural options to put into a widget since it can feel overwhelming. The question is extended for your suggestion on response behavior, do we want options of debounce behavior to have a home inside the widget.
The second issues you raise is related to font scaling. Now we have one tool to do this with rotozoom. Do you think bitmaptools.rotozoom will be a standard we can assume exists on all boards with displays?  So far we have trained people to make the font sizes they want. This gets more complicated if we open up text scaling. I think it’s a good idea but I just don’t understand yet all the ramifications to what folks expect from label, bitmap_label and every other thing that uses text. Any thoughts and suggestions are welcome.
I’m eager to hear your thoughts, and of course we can’t predict everything but we can always try something and see where it leads us.

I resolve all issues except for the request for debouncing.  Your inputs are welcome.

I don't know exactly how the modules for different devices are chosen but I would think it's fairly safe to assume any device that has displayio is likely to have bitmaptools.rotozoom unless the size constraints don't allow for it.
It's an interesting question about how much logic to put into the object vs. the main loop. I'm not sure that I have the definite answer. One thing to consider is the adafruit_debouncer library. it could likely be used in the main loop to provide the logic for debouncing. To the extent that it does exist within the object I think it should be easy to configure or disable if user want to take more direct control of the behavior. I think offering a cool_down mechanism might be a good way to handle it. That way the user can set how slow or not they want the repeating actions to occur.

I updated per your suggestions on cool_down and adding a state variable to handle the option for cool_down < 0 requires the button to be released() before it is pressed again.  Here's the example code that I used to exercise these options.
I didn't change the simpletest example, since this is bordering into more complex areas. I can add this as a more advanced example, if desired.
# SPDX-FileCopyrightText: 2021 Kevin Matocha
#
# SPDX-License-Identifier: MIT
#############################
"""
This is a basic demonstration of a FlipInput widget.
"""

# pylint: disable=invalid-name

import time
import board
import displayio
import adafruit_touchscreen
from adafruit_bitmap_font import bitmap_font
from adafruit_displayio_layout.widgets.flip_input import FlipInput

display = board.DISPLAY  # create the display on the PyPortal,
# otherwise change this to setup the display
# for display chip driver and pinout you have (e.g. ILI9341)

# setup the touchscreen
ts = adafruit_touchscreen.Touchscreen(
    board.TOUCH_XL,
    board.TOUCH_XR,
    board.TOUCH_YD,
    board.TOUCH_YU,
    calibration=((5200, 59000), (5800, 57000)),
    size=(display.width, display.height),
)

# Select the font file for use
font_file = "fonts/DSEG14Classic-Regular-64-ModS.pcf"
my_font = bitmap_font.load_font(font_file)

my_flip1 = FlipInput(
    display,
    anchor_point=[0.0, 0.0],
    anchored_position=[50, 40],
    color=0xFF2222, # reddish orange color
    value_list=[ # list of month strings, using three characters
        "JAN",
        "FEB",
        "MAR",
        "APR",
        "MAY",
        "JUN",
        "JUL",
        "AUG",
        "SEP",
        "OCT",
        "NOV",
        "DEC",
    ],
    font_scale=5,
    horizontal=False, # use vertical arrows
    animation_time=0.0,
    cool_down=0.25, # add a little time before responding to the next touch
)

my_flip2 = FlipInput(
    display,
    anchor_point=[0.0, 0.0],
    anchored_position=[220, 40],
    color=0xFF2222, # reddish orange color
    value_list=["{0:02d}".format(x) for x in range(1, 31 + 1)],
                # use a list of strings from 01 through 31
                # use the {0:02d} format string to always use two digits (e.g. '03')
    font_scale=5,
    horizontal=False, # use vertical arrows
    animation_time=0.0,
    cool_down=-1.0, # requires button to be released prior to next activation
)

my_flip3 = FlipInput(
    display,
    anchor_point=[0.5, 1.0],
    anchored_position=[320 // 2, 240 - 10],
    color=0xFF2222, # reddish orange color
    value_list=["{}".format(x) for x in range(1985, 2022, 1)],
                # use a list with values of stringsfrom 1985 to 2022
    font=my_font,
    horizontal=True, # use horizontal arrows
    animation_time=0.8,  # add more time since the animation covers a longer distance
)

# Pick an interesting date to start
#
# You can set the value by direct integer indexes of the list or by a string
# Here are three ways to set the values:
my_flip1.value = 9  # use direct integer indexing to set the value to the 10th month
my_flip2.value = my_flip2.value_list.index("21")  # find the index yourself by
# searching the value_list
my_flip3.value = "2015"  # or set the value based on a string that is in the value_list

# Create the group to display and append the FlipInput widgets
my_group = displayio.Group(max_size=3)
my_group.append(my_flip1)
my_group.append(my_flip2)
my_group.append(my_flip3)

display.show(my_group)  # add high level Group to the display
display.auto_refresh = True

while True:

    p = ts.touch_point
    # print("touch_point p: {}".format(p)) # print the touch point

    if p:  # if touched, check if any of the widgets was triggered
        if my_flip1.contains(p):
            my_flip1.selected(p)
        else:
            my_flip1.released()

        if my_flip2.contains(p):
            my_flip2.selected(p)
        else:
            my_flip2.released()

        if my_flip3.contains(p):
            my_flip3.selected(p)
        else:
            my_flip3.released()

    else:
        my_flip1.released()
        my_flip2.released()
        my_flip3.released()

    time.sleep(0.05)  # small delay seems to improve touch response

@kmatch98 Thanks kmatch :)


freeze gql version to 7.0.11 due to MSRV incompatibility of 7.0.12>=

Closes: #1556
Release notes
In this release, we:

froze async-graphql to 7.0.11 until the SDK MSRV moves to 1.81 needed for 7.0.12 onwards.

Summary
If you build the SDK with the fuel-core-lib feature and have a dep on async-graphql you'll only be able to use the version 7.0.11 until the SDK moves its MSRV to 1.81.
Checklist

[x] All changes are covered by tests (or not applicable)
[x] All changes are documented (or not applicable)
[x] I reviewed the entire PR myself (preferably, on GH UI)
[x] I described all Breaking Changes (or there's none)

A task to remove these deps
https://github.com/FuelLabs/fuels-rs/issues/1558


Adding products & available balances in Billing RP

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[x] The title of the PR is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[x] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[x] If applicable, the PR references the bug/issue that it fixes.
[x] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x] I have read the contribution guidelines.
[x] My spec meets the review criteria:

[x] The spec conforms to the Swagger 2.0 specification.
[x] The spec follows the guidelines described in the Swagger checklist document.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

Automation for azure-sdk-for-js

Please do not merge this yet. We need this signed off for ARM deployments

Automation for azure-sdk-for-python

Automation for azure-sdk-for-node

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-java

Automation for azure-sdk-for-go

Can one of the admins verify this patch?

@ravbhatnagar Can you please add the ARM SIgned OFF label to this

Signing off from ARM side.

@sandeepnl  Please fix the errors reported at https://travis-ci.org/Azure/azure-rest-api-specs/jobs/437249972

@sandeepnl Please fix the errors reported at https://travis-ci.org/Azure/azure-rest-api-specs/jobs/437249972

Sure done. But this API is still in preview, so please add the do not merge label to this

The Model validator is failing. Link: https://travis-ci.org/Azure/azure-rest-api-specs/jobs/440777612 Please fix the errors

@sandeepnl This PR is here for a long time. WHat is the status? Are you still actively working on this? Do you want this PR to be merged?
If so, please fix the typos and model validation errors.

Automation for azure-sdk-for-net
A PR has been created for you:
https://github.com/azure/azure-sdk-for-net/pull/5471
.NET SDK Commits:
https://github.com/adxsdknet/azure-sdk-for-net/pull/5471/commits/7b628357404b2a3dfa82b46e22e063a953c540aa

startbuild

Closing this to lack of response. Author please request reopening if still needed


Link detection defunct in terminal instance

I wasn't success in verifying https://github.com/microsoft/vscode/issues/193384 until I started a new terminal.
I have  echo "/Users/jrieken/Code/vscode/src/vscode-dts/vscode.d.ts:3:5-19" and the "old" terminal is doesn't work, in the new it does. Nothing in any of the known logs
https://github.com/microsoft/vscode/assets/1794099/52729047-6258-439d-abfb-b43cccd444a8

This is a known issue, I'll link that DisposableStore issue to it /duplicate https://github.com/microsoft/vscode/issues/184046


Add a "related projects" section in the documentation

Describe the issue linked to the documentation
The dirty-cat doc has a related project section, so we might consider adding one to the skrub doc. It might also feature new projects.
Also, we currently mention it in our README.rst, but this is not reflected in the website link.
Suggest a potential alternative/fix
Removing the mention in the README.rst.

I think I prefer your suggested alternative, as those lists tend to become outdated and it is a bit difficult & arbitrary to decide what should go in the list


[Music]: Error while trying to love (or love and add to library) a song

Extension
https://raycast.com/fedevitaledev/music
Description
Command failed with exit code 1: osascript -e tell application "Music" to set loved of current track to true
28:62: execution error: Music got an error: A descriptor type mismatch occurred. (-10001)
Steps To Reproduce

In Sonoma 14.0 Beta (23A5301h) and Raycast 1.57.2
Trying to run the command "Love track"

Current Behaviour
Error: Command failed with exit code 1: osascript -e tell application "Music" to set loved of current track to true
28:62: execution error: Music got an error: A descriptor type mismatch occurred. (-10001)
at Cm (/Users/isaquepereira/.config/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/love.js:5:59)
at /Users/isaquepereira/.config/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/love.js:5:10465
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async su (/Users/isaquepereira/.config/raycast/extensions/2bfe94cd-50ab-4e48-a6cd-f1ff47a72706/love.js:5:40086)
Expected Behaviour
Love the track and show a feedback about it.

duplicate of #7852

@raycastbot close this issue


Add configurable vehicle exit side?

Thanks for the mod!
I would really really like to be able to configure the engineer to exit trains on the right side.
I have no idea how hard this would be to add.
I could possibly help some, e.g. API research.

Possible outline:

Register a callback for on_player_driving_changed_state
When the engineer exits a vehicle, teleport them to 'the right (hand) side' of the vehicle using the vehicle's direction (and some vector math).
Probably should also use can_place_entity too (before teleporting the engineer)

Good idea, and thank you for giving some possible API usage for it. I'm working on a new mod so I might be slow, but I'll look into this and see if I can do it.


Jamesser dev

This branch contains 4 primary changes.

Changes to CircleCI config.yml file which allows for testing of Azure resources
Edits to the test folder which sets up a resource group, uses that for whatever content is in the AzureTests subfolder, and then deletes it after the tests are ran.
Changes to AKSDeployment quick start guide. Made it a lot more like documentation which descriptions for what everything is doing
Addition of envsubst in requirements.txt which is critical for running the AKSDeployment file.

Other than one minor change (see above comments) this LGTM and is ready to merge

Alright, made the final changes and will perform the squash and merge. Thanks for reviewing and for your feedback.


Jam after modifying yaml file and deleting quotation marks

Type: Bug

kind: Service
apiVersion: v1
metadata:
name: dtsboot
namespace: default
labels:
app: dtsboot
annotations:
kubernetes.io/elb.class: union
kubernetes.io/elb.id: "{{elb.id}}"
kubernetes.io/elb.lb-algorithm: ROUND_ROBIN
kubernetes.io/elb.session-affinity-mode: SOURCE_IP
After I modified kubernetes. io/elb. id: "{{elb. id}}" and "{{elb. id}}" to {{elb. id}}, the app card died, and the CPU (20% - 40%) and memory (more than 10 gigabytes, entering SWAP) soared. Restart and try again.
VS Code version: Code 1.76.0 (92da9481c0904c6adfe372c12da3b7748d74bdcb, 2023-03-01T10:23:45.993Z)
OS version: Darwin x64 22.3.0
Modes:
Sandboxed: Yes

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2900)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
10, 13, 8

Memory (System)
16.00GB (9.22GB free)

Process Argv
--crash-reporter-id 15d164da-e7cd-46dd-8259-33ee00afe866

Screen Reader
no

VM
0%

Extensions (45)

Extension
Author (truncated)
Version

al-code-outline
and
3.0.41

vscode-gcode-syntax
app
0.7.7

shell
bbe
0.3.0

python-environment-manager
don
1.0.4

python-extension-pack
don
1.7.0

code-runner
for
0.12.0

shell-format
fox
7.2.5

go
gol
0.38.0

terraform
has
2.25.4

vsc-python-indent
Kev
1.18.0

kite
kit
0.147.0

vscode-docker
ms-
1.24.0

vscode-language-pack-zh-hans
MS-
1.76.2023030809

csharp
ms-
1.25.4

vscode-kubernetes-tools
ms-
1.3.11

data-workspace-vscode
ms-
0.4.0

mssql
ms-
1.17.1

sql-database-projects-vscode
ms-
0.21.0

isort
ms-
2022.8.0

python
ms-
2023.4.0

vscode-pylance
ms-
2023.3.20

jupyter
ms-
2023.2.1000592019

jupyter-keymap
ms-
1.1.0

jupyter-renderers
ms-
1.0.15

vscode-jupyter-cell-tags
ms-
0.1.6

vscode-jupyter-slideshow
ms-
0.1.5

autodocstring
njp
0.6.1

java
red
1.15.0

vscode-yaml
red
1.12.1

startanyshell
rem
0.3.1

jenkins-jack
tab
1.2.1

tabnine-vscode
Tab
3.6.41

vscode-helm
tec
0.4.0

helm-intellisense
Tim
0.14.3

shell-launcher
Tyr
0.4.1

intellicode-api-usage-examples
Vis
0.2.7

vscodeintellicode
Vis
1.2.30

vscode-java-debug
vsc
0.49.0

vscode-java-dependency
vsc
0.21.1

vscode-java-pack
vsc
0.25.8

vscode-java-test
vsc
0.38.1

vscode-maven
vsc
0.40.4

crs-al-language-extension
wal
1.5.25

txt-syntax
xsh
0.2.2

json
Zai
2.0.2

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vscaac:30438847
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30681850
azure-dev_surveyone:30548225
vsccc:30610678
pyindex848:30662994
nodejswelcome1cf:30587006
3biah626:30602489
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
6233i204:30672705
vsctsb:30677850
pythonb192:30669360

After restarting Visual app and restarting the computer, the retry will still be stuck

In the crashed file, I used --- to split multiple yamls. I don't know if it is because of deleting quotation marks

In the crashed file, I used -- to split multiple yamls. I don't know if it is because of the deletion of quotation marks that causes vscode to crash

In the crashed file, I used --- to split multiple yamls. I don't know if it is because of the deletion of quotation marks that causes vscode to crash

In the crashed file, I used --- to split multiple yamls. In this case, deleting quotation marks causes vscode to crash

Restarting vscode will crash. Restart the computer, and the vscode operation still crashes

Restarting vscode verification will crash. Restart the computer and try again. vscode still crashes

Can you provide the crash logs from latest stable 1.78 following the steps at https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-a-crash-report

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Circular longitude axis

A common issue with global data or model output is that the zonal grid boundary might cut right through a region of interest. In that case, the field must be re-wrapped/shifted such that a region in the far east of the field is placed to the left of a region in the far west.
An way of achieving this when using xray (or netCDF4) I found was to use indices for isel that start somewhere in the east and then jump to 0 and continue from there.
But this works only on data that is already loaded into memory (e.g. with .load()), as illustrated in this gist. I assume that this constraint is due to the netCDF backend (in this case netCDF4) not supporting irregular slicing. Once loaded, the operation is performed on NumPy arrays, I guess?
Now the first thing is that it took me quite a while to figure out why this worked in some cases and not in others. Perhaps the IndexError that is thrown by the backend could be caught to give more hints on this? Or add a note in the Docs about this?
It would of course be great if xray had a nice high-level function to handle circular axes. Another item for the wish list...
(By the way, in Ferret this is called Modulo Axes.)

@j08lue -

But this works only on data that is already loaded into memory (e.g. with .load()), as illustrated in this gist. I assume that this constraint is due to the netCDF backend (in this case netCDF4) not supporting irregular slicing. Once loaded, the operation is performed on NumPy arrays, I guess?

We've recently addressed this in netCDF4 (issue: https://github.com/Unidata/netcdf4-python/issues/467, PR: https://github.com/Unidata/netcdf4-python/issues/469).

Now the first thing is that it took me quite a while to figure out why this worked in some cases and not in others. Perhaps the IndexError that is thrown by the backend could be caught to give more hints on this? Or add a note in the Docs about this?

We've also added a more descriptive error message on the xray end (#593, #595).  These changes will be available in xray 0.6.1 which should be released soon (blocked by read the docs bug).
As for your actual feature request.  Maybe you could show us some sample code that does what you're looking for?

@jhamman You guys seem to be always ahead of me - which is great! (I just did not notice it this time before I raised the issue...)
But it would actually not be that hard to make selecting regions across the boundary of a circular dimension more convenient in xray.
It would of course be great if it worked with real coordinate (longitude) values:
ds.sel(lon=slice(-90, 15))

which, however, only works if the axis explicitly covers this range (e.g. has range -180E to 180E). If it ranges, say, from 0E to 360E, an empty DataArray is returned. There is no nice way of resolving this, I guess, because you would need to hard-code 360 or have it as a clumsy, non-CF-standard parameter and transform all values to some common range before trying to find the requested region.
But it should be less problematic with
ds.isel(lon=slice(-100, 200))

i.e. isel with negative slice start. As it is now, this also returns an empty DataArray for me (xray 0.6.0), which is in a way consistent with the sel behaviour. But asking for negative indices is actually a quite pythonic way of implying circular. So could this be implemented, now that netCDF4 supports non-contiguous indexing?

I think we need another way of spelling this sort of selection that clearly disambiguates it from slicing. The problem is selection with a slice object (as it currently works) always returns a view, but that's not possible for selections that wrap around a coordinate.

Alright, I see. In that case we should not create an entirely new syntax for this - unless there are more people than just me interested in this feature. I can just use my own little convenience function that generates a series of array indices that can be fed to isel, something like this:
def wrap_iselkw(ds, dim, istart, istop):
    """Returns a kw dict for indices from `istart` to `istop` that wrap around dimension `dim`"""
    n = len(ds[dim])
    if istart > istop:
        istart -= n
    return { dim : np.mod(np.arange(istart, istop), n) }

Can this be closed @shoyer ?

Yeah, let's close this. This could be worth putting in some sort of geo-specific extension but it probably doesn't make sense for core xarray.

Hi guys, have you ever implemented this feature anywhere in xarray or associated libraries?


Thoughts about implementing the "row geometric mean method" in addition to the eigenvalue method?

https://www.sciencedirect.com/science/article/pii/S0167923610000643 says :

"When selecting EM as the prioritization method, some researchers have some disputes on the use of the AIJ and the AIP. Ramanathan and Ganesh [35] observe that AIJ violates the Pareto principle of social choice theory [3], and suggest using AIP in AHP group decision making. Forman and Peniwati [23] argue that AIJ and AIP are philosophically different circumstances [8], and whether AIJ or AIP should be used depended on whether the group intends to behave as a synergistic unit or as a collection of individuals. However, when selecting RGMM as the priori- tization method, Barzilai and Golany [4] have shown the equivalence between AIJ and AIP (see Lemma 1)."

"EM" = "eigenvalue method"
"RGGM" = "row geometric mean method"
They have equations in the paper. RGGM:

I do not yet have an extremely informed opinion about the two, but I wondered if you had any thoughts about implementing RGGM?

This has sent me down a long rabbit hole! I haven't surfaced yet, but will let you know when I do. :)

AIJ and AIP are aggregation methods for Group decision making (GDM). It is used to aggregate the comparison matrices from different decision makers (DM). The difference is that AIJ aggregates after the judgment matrix, while the AIP aggregate the global weights. It would be very interesting to have GDM implemented!

Thank you for contacting Florida State University. The following person(s) you are trying to contact directly or through a distribution list are no longer with the university.
Philip Griffith @.***)
For further assistance, please contact the ITS Service Desk at 850-644-HELP (4357) or help.fsu.edu.
This is an automated notification. Replies to this mailbox are not monitored.


Documentation or text token is wrong

Message tokens section shows tokens of author and committer email are ${author.email} and ${committer.email}, but the code shows they are ${author.mail} and ${committer.mail}. One of them must be wrong...

Greetings MisLink.
Thank you for finding this. The right one is .mail in both cases. I will update this in the next version.


vue 使用 psd.js 库出现问题

Version
4.5.9
Reproduction link
http://localhost:8080/
Environment info
vue/cli 4.5.9

Steps to reproduce
1、npm install -g @vue/cli
2、vue create my-project
3、? Please pick a preset:
Default ([Vue 2] babel, eslint)
> Default (Vue 3 Preview) ([Vue 3] babel, eslint)
Manually select features
4、安装完成后
5、cd my-project
6、npm install psd
7、修改 src\components\HelloWorld.vue 文件如下：
 <script>
 var PSD = require('psd');
 export default {
     name: 'HelloWorld',
     ...
     mounted(){
         var file = "path/a.psd";
         var psd = PSD.fromFile(file);
         psd.parse();
         console.log(psd.tree().export());
     }
 }
 </script>

8、npm run serve
What is expected?
运行不通过
What is actually happening?
./node_modules/coffee-script/lib/coffee-script/register.js
Module not found: Error: Can't resolve 'module' in 'path\my-project\node_modules\coffee-script\lib\coffee-script'

Hi, thanks for your interest but Github issues are for bug reports and feature requests only.
You can use CDN.I hope it can help you

https://github.com/meltingice/psd.js/issues/138#issuecomment-547810701


Join some travis tasks

We need to decrease travis task count to improve testing performance. Now we have to wait for a long time while travis give us a testing vm because we have too much tasks

First line (runs on every PR):

Android
FF (win)
Chrome (win)
IE 11
iPhone

It would be nice to put Safari here as well if it's possible
Second line (twice a day):

Firefox (mac)
Chrome (mac)
IE9
IE10
Edge
Safari (?)

Also, we need some kind of reporting for smoke tests (badges are untrustable). Can we create an issue for cumulative test run results (functional + legacy) if they fail?

Also, we need a way to trigger any of smoke test tasks using bot command, use case: you've fixed some issue in smoke tests and you need to get PR via particular test task

I'll try to create some complex solution for this all, that connects our repo, testcafe-build-bot and CCTray farm. It can take some time.
But I suppose we should join travis tasks first to improve out working process right now, am I right?

@AlexanderMoskovkin Yeah, but at least we need some reporting as well. I'm really worried about broken smoke tasks.

Now it's on my personal attention, but sure I'll implement something for this soon

I think we should add perfomance tests for testcafe.
For example:

average time for tests with basic actions (click, type, etc).
average time for large test suite (full asp or devexteme test suite)
perfomance comparison with Selenium.
What do you think @inikulin @AlexanderMoskovkin ?

@miherlosev Not sure we should. It's not a main pain point currently. The thing that still bothers me the most in the whole framework is still hammerhead and it's endless regressions.


More customizable MockInstances

For the profiler work (#1042 and #670 for context), we need to be able to add extra middlewares and fn imports to a cosmwasm_vm::testing::MockInstance. Should add it to MockInstanceOptions and/or possibly refactor that to more of a builder pattern interface (right now, it looks like adding anything to MockInstanceOptions is technically a breaking change).

Right. The way it is used shows that typically you want all defaults and customize from there, like this:
        MockInstanceOptions {
            gas_limit,
            ..Default::default()
        },

which could turn into MockInstanceOptions::default().customize_me().

Is #[non_exhaustive] sufficient to enforce the
        MockInstanceOptions {
            gas_limit,
            ..Default::default()
        },

notation? Then we could avoid the overhead of setters.

@webmaster128 No, I think #[non_exhaustive] will prevent struct literals altogether, so then we need some (sane) way of setting the fields.

One more issue I'm trying to solve right now is that enabling cosmwasm-vm mock instances to accept extra imports isn't that simple. Constructing a wasmer::Function requires that we have a reference to the same wasmer::Store we used to compile the module. So now we might need a two-step process when constructing a mock instance - first construct the Module, and then construct the mock instance with that module.


Any working example .aasx file?

I have set up all docker containers according to the Quick Start Guide and they seem to work (containers run, UI reachable).
The final step mentioned here is to upload a shell file. However, I do not have one and there is no link to an example file. I have tried several AASX files from https://admin-shell-io.com/samples/ but they fail with the UI message "Error! Server responded with: Error: Unexpected response format"
And from the container logs in aas-env:
ÄAAS EnvironmentÅ Äio-8081-exec-10Å o.e.d.a.v.d.aasx.AASXDeserializer        : AASX contains wrong Relationship namespace. This may be related to the AASX being created with an old version of AASX Package Explorer or an old version of AAS4J. Future compatibility with the wrong namespace may not be guaranteed

I have also searched the repos for any example file and found "a.aasx" in the basyx-java-components repo. However, it also fails with the message:
ÄAAS EnvironmentÅ Änio-8081-exec-3Å v.d.x.i.d.NoEntryWrapperListDeserializer : Found empty list item (e.g., '<preferredName />' of dataSpecificationIec61360) in XML. This is most likely an error.

Can someone provide a working .aasx example file? Or did I missed something? It might also be a good idea to put a file link or additional infos in the Quick Start Guide.

Hello @emareg,
we provide an .aasx file in our examples: https://github.com/eclipse-basyx/basyx-java-server-sdk/tree/main/examples/BaSyxMinimal/aas
You can try this for now. If you need more shells for more specific examples (for example implementing standardized submodels), please write me a mail.

Thank you very much, these files work! I think it would be a good idea to provide this link in the Quick Start Guide where it says you should upload an AASX file :)

Good suggestion, I updated our wiki accordingly.


Strict Deps smart mode

We want to improve the current state of the dependency analyzer compiler plugin for strict deps,
Currently the plugin looks at which jars were loaded by the compiler, in order to assess if the target should be a direct dependency. This strategy is quite coarse-grained and over-approximates which targets are needed.
In order to improve the plugin, the proposal by @gkk-stripe is to utilize code from Zinc that analyzes source code which has much higher accuracy.
Plan is to use the zinc code callbacks mechanism to output the dependencies to a file and have a separate action that emits the relevant error messages to the user of missing dependencies

Adding a bit more detail: the plan is to take Dependency.scala from zinc and copy it to rules_scala. I think this is a great way to test the idea of using zinc's dependency analysis for strict deps implementation. However, once validated, i think the best would be to refactor zinc so it can output dependencies in its protobuf format without involving the rest of incremental compilation. The cost of maintaing a fork of Depedency.scala long term will be high: it's a very tricky logic.

When you say refactor zinc you mean pushing it upstream?
On Mon, 13 Nov 2017 at 1:50 Grzegorz Kossakowski<EMAIL_ADDRESS>wrote:

Adding a bit more detail: the plan is to take Dependency.scala from zinc
and copy it to rules_scala. I think this is a great way to test the idea of
using zinc's dependency analysis for strict deps implementation. However,
once validated, i think the best would be to refactor zinc so it can output
dependencies in its protobuf format without involving the rest of
incremental compilation. The cost of maintaing a fork of Depedency.scala
long term will be high: it's a very tricky logic.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/rules_scala/issues/335#issuecomment-343779083,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABUIF1EoKDP5g6XHBjz2uNHj20Lanc4rks5s14RWgaJpZM4QY6fV
.

Yes, refactor upstream zinc to have a mode in which only dependencies are
collected and not api objects that are expensive to compute.
On 12 November 2017 at 21:53, Ittai Zeidman<EMAIL_ADDRESS>wrote:

When you say refactor zinc you mean pushing it upstream?
On Mon, 13 Nov 2017 at 1:50 Grzegorz Kossakowski<EMAIL_ADDRESS>
wrote:

Adding a bit more detail: the plan is to take Dependency.scala from zinc
and copy it to rules_scala. I think this is a great way to test the idea
of
using zinc's dependency analysis for strict deps implementation. However,
once validated, i think the best would be to refactor zinc so it can
output
dependencies in its protobuf format without involving the rest of
incremental compilation. The cost of maintaing a fork of Depedency.scala
long term will be high: it's a very tricky logic.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/bazelbuild/rules_scala/issues/
335#issuecomment-343779083>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
ABUIF1EoKDP5g6XHBjz2uNHj20Lanc4rks5s14RWgaJpZM4QY6fV>
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/rules_scala/issues/335#issuecomment-343821100,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAQeYZ8WvQWbPHJckVOSiflClKXuZHPks5s19lVgaJpZM4QY6fV
.

--
gkk

Hi @gkk-stripe ,
I'm starting to take another look at this as I hope to try and get some headway here next week.
I'm sitting with @ittaiz and trying to refresh our memory and would appreciate your help.
We think that we need to have Dependency.scala accept a callback that we write which will only care about callback.binaryDependency and will emit the results to a file to be later processed by a different action.
Does that sound about right?
It seems that callback.binaryDependency happens for both external class files and external jars and we're not sure how to differentiate between the two, any thoughts?

Yes, it sounds right about having Dependency.scala and the callback.
In what case would you see dependencies on .class files? Everything in bazel is packaged into jars, isn't it?

I think you are correct about your statement on bazel.
So in sbt it's different?

Yes, in Sbt/Maven/etc you work with class directories. Packaging into jars
is done before publishing or building a deployment artifact.
On Sun, Mar 4, 2018 at 7:54 AM Natan Silnitsky<EMAIL_ADDRESS>wrote:

I think you are correct about your statement on bazel.
So in sbt it's different?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/bazelbuild/rules_scala/issues/335#issuecomment-370239734,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAQeSkZYnPsf_r7o6omAe38RH0zBF4pks5tbA5QgaJpZM4QY6fV
.

@gkossakowski,
I'm having some difficulty introducing the CallbackGlobal to existing setup of rules_scala plugin (as a c'tor param).
we are testing the plugin by using Global to compile sample sources.
Global in turn uses Plugin.scala code that tries to create a plugin instance by calling c'tor with Global type param and fails:
java.lang.NoSuchMethodException: third_party.plugin.src.main.io.bazel.rulesscala.dependencyanalyzer.DependencyAnalyzer.<init>(scala.tools.nsc.Global)

I've tried using toolbox to compile the sample code instead, but still get the same error:
scala.tools.reflect.ToolBoxError: reflective compilation has failed: cannot initialize the compiler due to java.lang.NoSuchMethodException: third_party.plugin.src.main.io.bazel.rulesscala.dependencyanalyzer.DependencyAnalyzer.<init>(scala.tools.nsc.Global)

Sample code here
Seems like CallbackGlobal is tightly coupled to ZincCompiler and does not work with the standard scala compiler.
am I correct?

Hi @gkk-stripe ,
For the time being I've decided to discard the callback part I've mentioned in my last comment and focus on incorporating the dependency analysis and use it synchronously.
When running rules_scala tests using the new analysis i've noticed a case where the dependency expressions is missed by the tree traversal pattern matching.
the expression is of kind: classOf[org.apache.commons.lang3.ArrayUtils]
None of the current cases (Import, Select, TypeTree) matches.
Can you please direct me to which tree type I should use to match against for this kind of expression?

Removing callback is fine. In zinc/sbt it's there to isolate the two scala versions: one used to compile and run sbt and the other one used for compiling the scala project. In bazel you have only one scala version at the time so you don't need to worry about cross-classloader boundries.
Regarding matching on classOf, it's expressed as a Literal inside of the compiler.

I just looked briefly at the zinc's source code and it seems like this is a bug in zinc. Nice catch!
It would be good to file a bug report against zinc. The fix will be very simple, though.


ERROR: Protocol initialisation failed!

Phone: Samsung J5 (Model J500FN).
Heimdall version: v1.4.2
Host OS: Arch Linux 64bit
Utilities > Download gives me the error message.
Initialising connection...
Detecting device...
Claiming interface...
Setting up interface...

Initialising protocol...
ERROR: Protocol initialisation failed!

Releasing device interface...

Strangly it ran fine the first time, but according to an article it said to run as root, when I tried this I got this error. I then tried running it again as a normal user and got the error again.

sudo heimdall print-pit --verbose
Heimdall v1.4.2

Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
      Manufacturer: "Sasmsung"
           Product: "MSM8960"

            length: 18
      device class: 2
               S/N: 0
           VID:PID: 04E8:685D
         bcdDevice: 0100
   iMan:iProd:iSer: 1:2:0
          nb confs: 1

interface[0].altsetting[0]: num endpoints = 1
   Class.SubClass.Protocol: 02.02.01
       endpoint[0].address: 82
           max packet size: 0010
          polling interval: 09

interface[1].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 0A.00.00
       endpoint[0].address: 81
           max packet size: 0200
          polling interval: 00
       endpoint[1].address: 01
           max packet size: 0200
          polling interval: 00
Claiming interface...
Setting up interface...

Initialising protocol...
ERROR: Failed to receive handshake response. Result: -7
ERROR: Protocol initialisation failed!

Releasing device interface..

potentially same issue with Samsung Galaxy S4 AT&T SGH-I337
note: it seems to be finding the device Manufacturer as "Sasmsung" .. could that be a problem?
$ sudo heimdall flash --verbose --RECOVERY recovery.img --SYSTEM system.img.ext4 --HIDDEN hidden.img.ext4 --BOOT boot.img
Heimdall v1.4.2

Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
      Manufacturer: "Sasmsung"
           Product: "MSM8960"

            length: 18
      device class: 2
               S/N: 0
           VID:PID: 04E8:685D
         bcdDevice: 0100
   iMan:iProd:iSer: 1:2:0
          nb confs: 1

interface[0].altsetting[0]: num endpoints = 1
   Class.SubClass.Protocol: 02.02.01
       endpoint[0].address: 82
           max packet size: 0010
          polling interval: 09

interface[1].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 0A.00.00
       endpoint[0].address: 81
           max packet size: 0200
          polling interval: 00
       endpoint[1].address: 01
           max packet size: 0200
          polling interval: 00
Claiming interface...
Setting up interface...

Initialising protocol...
ERROR: Failed to receive handshake response. Result: -7
ERROR: Protocol initialisation failed!

Releasing device interface...

$ sudo heimdall print-pit --verbose
Heimdall v1.4.2

Copyright (c) 2010-2017 Benjamin Dobell, Glass Echidna
http://www.glassechidna.com.au/

This software is provided free of charge. Copying and redistribution is
encouraged.

If you appreciate this software and you would like to support future
development please consider donating:
http://www.glassechidna.com.au/donate/

Initialising connection...
Detecting device...
      Manufacturer: "Sasmsung"
           Product: "MSM8960"

            length: 18
      device class: 2
               S/N: 0
           VID:PID: 04E8:685D
         bcdDevice: 0100
   iMan:iProd:iSer: 1:2:0
          nb confs: 1

interface[0].altsetting[0]: num endpoints = 1
   Class.SubClass.Protocol: 02.02.01
       endpoint[0].address: 82
           max packet size: 0010
          polling interval: 09

interface[1].altsetting[0]: num endpoints = 2
   Class.SubClass.Protocol: 0A.00.00
       endpoint[0].address: 81
           max packet size: 0200
          polling interval: 00
       endpoint[1].address: 01
           max packet size: 0200
          polling interval: 00
Claiming interface...
Setting up interface...

Initialising protocol...
ERROR: Failed to receive handshake response. Result: -7
ERROR: Protocol initialisation failed!

Releasing device interface...

thanks

I got this working by not running with sudo. Just run it as a normal user!

I got this working by not running with sudo. Just run it as a normal user!

thanks, but w/ or w/o sudo did not matter for me.  however, it might be an issue with my machine since i was able to successfully use heimdall (w/o sudo) on another GNU+Linux box.

I have this exact issue. Running without sudo didn't work.

If you run a commands with --no-reboot, remember to use --resume in latter commands.


openprediction.xyz: backend not connecting to database

Describe the bug
Attempting to navigate to openprediction.xyz/markets does not, in fact, lead to seeing any markets.
To Reproduce
Steps to reproduce the behavior:

Go to openprediction.xyz
Click on the "Markets" icon
See error

Expected behavior
Being able to see a list of created markets
Screenshots

^ when navigating from home page

^ when trying to access URL directly
Desktop

OS: Windows 11
Browser: Firefox 131.0.3

This issue is superseded by #378


LGPMA training consume unstable

While training lgpma with my own data, the memory and time consume are very unstable. Could you tell me how to improve it?

hi, @somewhat998. Could you tell me how to create your own dataset? Thanks.


ArrayIndexOutOfBoundsException

I played with the chain in the main method.
Unfortunately I get an error. But I don't know why.
Here is my code:
public class HorstlChain {
  /* ... */
  public static void main(String[] args) {
    ExamAttendance genesisExamAttendance = ExamAttendance.getRandomAttendance();
    HorstlChain chain = new HorstlChain(genesisExamAttendance);
    chain.addBlock(ExamAttendance.getRandomAttendance());
    chain.corruptChain();
  }
}

And this is the error I get:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index -2 out of bounds for length 100
	at HorstlChain.corruptChain(HorstlChain.java:67)
	at HorstlChain.main(HorstlChain.java:17)

What is happening here? I think it has something to do with the corruptChain() method... How to fix this?

Hi @jo3rn, in the corruptChain() method you initialize the local integer blockToCorrupt to the value currentIndex - 2 while the private attribute currentIndex is initialized as 0 in the class. Then since blockToCurrupt will be equal to -2, when it's used as an index it will throw an ArrayIndexOutOfBoundsException. You should initialize blockToCorrupt to the value currentIndex or currentIndex to 2.

Hey @nicolafan, good to see that you have tracked down the culprit. This issue serves as a learning example for a Java course at the University of Applied Sciences Fulda, so I will not correct the error for now. Of course you can still contribute a pull request with a solution. Ideally in such a way that corruptChain also works with a chain length < 4.
One remark:
When calling corruptChain the value of currentIndex is 1, because it is updated in the addBlock method. This means blockToCorrupt is equal to -1. That the error message nevertheless speaks of an index of -2 is due to this line:
horstlChain[blockToCorrupt - 1].getHash());

Hi @jo3rn I'm sorry for the incovenience 🙂. I'm deleting my answer. Thank you for your answer!


only using GPU?

can i run the program using the cpu? or i can fix someplace to run for cpu? thank you very much.

I do not understand what is the problem.
You can train the model without GPU but it will take too long time.

if you want to run inference on a cpu you have to remove .cuda() from these files:
./demo/picture_demo.py:model = torch.nn.DataParallel(model).cuda()
./demo/web_demo.py:model.cuda()
./evaluate/evaluation.py:    #model = torch.nn.DataParallel(model).cuda()
./evaluate/evaluation.py:    model = model.cuda()
./evaluate/coco_eval.py:    batch_var = torch.from_numpy(batch_images).cuda().float()


feat: Add topics support

Feature Request
Describe the Feature Request
Add topics support
docs: https://ydb.tech/en/docs/concepts/topic
Describe Preferred Solution

Describe Alternatives

Related Code

Additional Context

If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)

Hi there!
Is there any updates?

We are really looking forward to this feature for the Yandex Cloud UI teams for streaming telemetry events from apps to ClickHouse through YDB Topics and DataTransfer


feature(whl): add multiprocess support

Bugs or todos:

This code might only work on well on Linux
Do not support torch.compile(model)
The acc of model does not seem to be normal (very low)

PyTorch2.0 Benchmark:
A100 GPU + 4 core CPU + MNIST + CNN + batchsize=32

num_proc = 1, total time per round = 21.7s
num_proc = 2, total time per round = 14.9s
num_proc = 3, total time per round = 15.3s
num_proc = 4, total time per round = 16.5s
num_proc = 8, total time per round = 25.2s

A100 GPU + 4 core CPU + CIFAR10 + resnet8 + batchsize=32

num_proc = 1, total time per round = 45.2s
num_proc = 2, total time per round = 32.1s
num_proc = 3, total time per round = 30.1s
num_proc = 4, total time per round = 32.5s
num_proc = 8, total time per round = 40.4s


POS - SOP Converter

Enter calculator name -
POS - SOP Converter
Describe calculator functionality -
This Calculator takes the total number of different variables present in the expression. If a POS expression is provided, it converts it into an SOP and vice versa efficiently.
Under which category you wish to place it -

[ ] Computer Science
[ ] Mathematics
[ ] Physics
[ ] Chemistry
[ ] Biology
[ ] Art
[ ] Finance
[ ] Scientific
[ ] Health
[ ] Sports
[x] Let project owner decide
[x] Digital Systems Design
[x] Microprocessors & Microcontrollers
[ ] Suggest a new category - (Answer here)

@SarthakKeshari kindly assign me this issue

Hey @Satvik-Garg,
Assigned.
You may contribute your code under the folder path -
calc_for_everything\calculators\src\computer_science\pOSSOPConverter
Issue completion deadline - 22nd Oct 8:00:00 am IST
NOTE - In case the issue completion deadline is not met, the issue will be assigned to a new participant


fix: Bump form-state and fix stale AutoSaveStatusProvider imports.

Selfishly merging to unblock my other PR...


Sonoff D1 in dyi mode not recognized

Hi!
I've got Sonoff D1 device, and I'm using it in DYI mode. But my device have other UUID name in "
/custom_components/sonoff/core/devices.py" file and its not recognized as dimmer. I have to manually change it after every update.
Line 353:
    "light": [44, "SONOFF", "D1 DIY"],
to
    "diylight": [44, "SONOFF", "D1 DIY"],
I think its the same problem as in this issue: https://github.com/AlexxIT/SonoffLAN/issues/464
It says its fixed there but i think its not. Thanks for great integration btw!

Thanks!

https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.4.0


make sure we dont prompt for anonymode if not enabled

Missed a path when protecting anoymode behind an environment variable.
The path was:
wandb login
control-c
prompt for anonymode

Thanks for fixing this, @raubitsj!


Error: Failed to parse source map

Hi! Great package. I'm noticing constant error logging. I see this was previously closed, but I wanted to re-open.
Referencing previous comment:
         @danomatic Sorry for bugging you again, but I checked the compilation and while the source map files are there, the compilation still contains warnings, although a bit different.

I investigated it a bit and (if I understand correctly), the package needs its source files to be included OR the source needs to be included in the maps sourcesContent field. The latter is true for the react project I am working with, but I don't know enough about sourcemaps to tell if that's the correct way of doing it. If so, it can be enabled with compilerOptions -> inlineSources set to true
https://github.com/danomatic/react-pdf-html/blob/2b680ecd2990ce538d780e8ef0b0f9c2eda6f279/tsconfig.json#L57
Below is the full text of the new warning:
WARNING in ./node_modules/react-pdf-html/dist/tags.js
Module Warning (from ./node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from 'path/to/project/node_modules/react-pdf-html/src/tags.ts' file: Error: ENOENT: no such file or directory, open 'path/to/project/node_modules/react-pdf-html/src/tags.ts'
 @ ./node_modules/react-pdf-html/dist/render.js 56:15-32
 @ ./node_modules/react-pdf-html/dist/index.js 29:15-34
 @ ./src/components/PDFGenerator/PDFGenerator.js 12:0-34 200:37-41
 @ ./src/pages/DocumentCallPage/DocumentCallPage.js 36:0-70 602:49-61
 @ ./src/index.js 18:0-73 105:48-64

_Originally posted by @rgembalik in https://github.com/danomatic/react-pdf-html/issues/45#issuecomment-1383601132_

@walsh-super I set inlineSources  to true and published. Let me know if that's working better for you!


Upgrade DBeaver-Community to v3.4.5

Thank you for the contribution. It was merged directly as ead9b5b86c2e186c759852d5396cbfa609ed07fb to keep commit history cleaner. Your contribution is still credited to you.


Procbots should have configurable email alerts

So that relative boards can be informed when something goes wrong.
Relevant information should be supplied in the body, depending on the operation being carried out.

Something else for procbots.yml? :)

Yup! :)

This will actually now work through the SyncBot (#69).


allow to restrict multiple files

I want to restrict multiple files in single request while uploading from browser. if they upload multiples we have to restrict that multiples upload from node using formidable.  how can i do in formidable module . there is any option available on the formidable module ?

Can you be more specific in what you want to restrict? The maxFileSize option is done on a per file basis.
Do you mean that the HTML allows the user to select multiple files but you want the back-end to dis-allow it? From my limited understanding, the browser is going to take that form that allows multiple uploads, and start streaming the concatenated bytes to the server. Looking at the headers from one of these multiple-file-uploads, there's no data about how many files are incoming.
So, if you want to reject uploads that contain more than on file, I would say your best bet is to count how many "fileBegin" events occur on the IncomingForm object. The second time you get a fileBegin event you could abort the upload.
But, I am not a maintainer, just a happy user.

Yes there is a way to restrict multiple file uploads.
Here's a snippet:
let form = new formidable.IncomingForm();
form.multiples = false;

Hi @villan106, could you please answer to the question of @jazzyjackson ?
If you are about disallowing multiple files, then @georgeben's way is correct, and we can close the issue as "solved".
If you are about limiting the amount of files in single request (when form.multiples = true), then @jazzyjackson's way seems to be the right way for current version. If you want to have a config which limits the amount in library-level, then we can make it feature request and consider in next version.
Waiting for your response, to see what to determine what to do further with the ticket.
Thanks.

Closing, becasue there's no response for a long time. More info is always welcome.


Twitter Login Page Clone

Description 📜
Added Twitter Login Page Clone
Fixes #603

Type of change 📝
Please delete options that are not relevant.And in order to tick the check box just but x inside them for example [x] like this

[X] Add a new project

Domain of Contribution 📊
Please delete options that are not relevant.And in order to tick the check box just but x inside them for example [x] like this

[X] Project using only HTML & CSS

Checklist ✅
Please delete options that are not relevant.And in order to tick the check box just but x inside them for example [x] like this

[X] I have performed a self-review of my own code or work.
[X] I have commented my code, particularly in hard-to-understand areas.
[X] My changes generates no new warnings.
[X] I'm GSSoC'22 contributor

Screenshots / Gif (Optional) 📸

@khushi-purwar , Resolved conflicts

@khushi-purwar , Please check

your files changed into binary, better to make a new PR

Okay

Resolved please check

Resolved please check

Jra wait kre, abhi soke uthe h krte h check

ha ha ..bud me vi koroge to chalega

@gurjeetsinghvirdee @khushi-purwar , changes are done...please check

@gurjeetsinghvirdee @khushi-purwar , changes are done...please check

Me filal apne conflicts thik kr ra hu jaise tere the, pta ni kha se aajate h daily🥲

@gurjeetsinghvirdee @khushi-purwar , changes are done...please check

Me filal apne conflicts thik kr ra hu jaise tere the, pta ni kha se aajate h daily🥲

yehi repo me ata hai sirf daily...bki o me think rahta hain

@gurjeetsinghvirdee  @khushi-purwar  please merge this


Console output disappears on Terminal-Normal mode after switching from other buffer

Steps to reproduce

Launch vim.$ vim -u NONE

Open a terminal buffer by some command.:terminal ++curwin bash

Press <C-\><C-n> to escape to Terminal-Normal mode.
:set bufhidden=hide to prevent the buffer from getting deleted.
:e some-file to switch to another buffer.
:bn to get back to the terminal buffer opened before.
Press i to switch to Terminal-Job mode again.
Then press <C-\><C-n> to escape to Terminal-Normal mode again.

Actual result
The output of the terminal buffer is cleared up.
Nothing can be copied.
Pressing i again to switch to Terminal-Job mode shows the output again.
Expected result
The output of the terminal buffer is kept.
It can be copied by the yank commands.
Screencast

My environment
The result of :version (excerpt):
VIM - Vi IMproved 8.1 (2018 May 18, compiled Mar 17 2019 01:24:47)
MS-Windows 64 ビット コンソール 版
適用済パッチ: 1-1010

I think this is the same issue as #4126, and fixed by 8.1.1018.
(Cannot reproduce on 8.1.1048.)

Oh, sorry for filing a duplicate issue. I'll close.


How do you actually use the language server?

I compiled the server following the instructions. Just running glslls gives me a message
saying it started a web server on port 61313. When I go to localhost:61313 in my browser, the request just hangs. glslls --stdin just gives me a hanging prompt.
It's not clear to me how to actually use the language server to get diagnostics from a shader file.
I also tried setting up a custom lsp server for neovim lspconfig using this, but had little success. However, I figure I should probably understand how to actually use it from the command line before trying to make a custom lspconfig server.
So, how do you actually use this thing?

Well, you're not really supposed to interact with it as a user. You should set it up as a language server in your editor of choice. It's mostly compliant and so should just work as other LS.

Thanks for the response. I did indeed try to set it up for neovim, but the server doesn't connect when I open a .glsl file or even when I try to manually start it. Everything looks okay when I execute the LspInfo command and I get no error messages.
I realise now this is probably not actually an issue with the server but rather I must have made a mistake trying to set lspconfig up to use it. I guess I just have to get good and figure out how to properly add a new custom server to neovim because clearly I messed something up.
I will post my setup code here just in case you might be able to see what's wrong, but I understand you probably can't unless you just so happen to use neovim too.
-- Set up glslls for glsl
if not configs.glslls then
    configs.glslls = {
        default_config = {
            cmd = {'/usr/local/bin/glslls'};
            filetypes = {'glsl', 'fs', 'vs'};
            root_dir = function(fname)
                return lspconfig.util.find_git_ancestor(fname)
            end;
            settings = {},
            },
        }
end

local servers = { 'pyright', 'tsserver', 'clangd', 'gdscript', 'rust_analyzer', 'glslls'}
for _, lsp in ipairs(servers) do
 require'lspconfig'[lsp].setup {
    on_attach = on_attach,
    flags = {
      debounce_text_changes = 150,
    }
  }
end

Running LspInfo from neovim gives me this:
     Language client log: /home/negosaki/.cache/nvim/lsp.log
     Detected filetype:   glsl

     0 client(s) attached to this buffer:

     Other clients that match the filetype: glsl

     Config: glslls
        filetypes:         glsl, fs, vs
        root directory:    /home/negosaki/coding/graphics
        cmd:               /usr/local/bin/glslls
        cmd is executable: true
        autostart:         true
        custom handlers:

I'm not familiar with your particular config type (using nvim coc myself) but this:
     0 client(s) attached to this buffer:

     Other clients that match the filetype: glsl

seems like there's no clients being started?

Indeed, it doesn't seem to connect, even though autostart is set to true. Other servers start up automatically when I open a file with the relevant file type. And it does detect my config for glslls and detects that it matches the filetype, but for some reason it just doesn't start, even when I try to manually start it. Can you perhaps share your coc config so I can look through it?

I am having a similar trouble setting it up for Helix. The editor is recognising the server, but it isn't starting for .glsl files.

Ah, yes actually I think we had a very similar issue before here: https://github.com/svenstaro/glsl-language-server/issues/13

Does that work fine for you @christofferaakre?

@svenstaro sorry, I should have reread the readme. I guess I'll just have to figure out how to disable completion for my server config then. Thanks!


fix: Avoid error if a label contains numbers

The following error occurred when specifying a string containing numbers for the --label flag of the newrelic utils terraform dashboard command.
-> % echo '{}' | newrelic utils terraform dashboard --label label_01
...
FATA[0000] resource label must be formatted with snake case: label_01

So, I fixed internal/utils/command_terraform.go to avoid error even if a label contains numbers.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Timer for each question needed

To avoid cheating in form  of contestants looking up the answer. 15-20 seconds should suffice, but some questions are very long. Consider using two different lengths – one for definition type questions and and on for the rest.

Done in commit 0c1b9d02cdd90dba66f9e6663df3da775f2f56a1.


Add validateset values to add azsplantooffer cmdlet

I was having a hard time finding out what are the accepted values for PlanLinkType parameter so I am adding them in now as based on the Swagger code and the documentation: https://docs.microsoft.com/en-us/rest/api/azurestack/offers/link#planlinktype
Also fixing Offer parameter in the example to match actual parameter which is OfferName.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azurestackps-1.3.0/Azs.Subscriptions.Admin/Add-AzsPlanToOffer.md
:white_check_mark:Succeeded
View (azurestackps-1.3.0)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.