🐛 problems with building the site

Describe the bug
Unable to render the site
To Reproduce
update to the latest release
run Hugo server
will get:
ERROR render of "section" failed: "blowfish/layouts/_default/list.html:20:7": execute of template failed: template: _default/list.html:20:7: executing "main" at <partial "article-meta/list.html" (dict "context" . "scope" "single")>: error calling partial: "themes/blowfish/layouts/partials/article-meta/list.html:17:32": execute of template failed: template: partials/article-meta/list.html:17:32: executing "partials/article-meta/list.html" at <partial "meta/views.html" .>: error calling partial: "themes/blowfish/layouts/partials/meta/views.html:7:25": execute of template failed: template: partials/meta/views.html:7:25: executing "partials/meta/views.html" at <.File.Path>: error calling Path: runtime error: invalid memory address or nil pointer dereference
Built in 348 ms
Error: error building site: render: failed to render pages: render of "section" failed: "themes/blowfish/layouts/_default/list.html:20:7": execute of template failed: template: _default/list.html:20:7: executing "main" – File is nil; wrap it in if or with: {{ with partial "article-meta/list.html" (dict "context" . "scope" "single")>: error calling partial: "blowfish/layouts/partials/article-meta/list.html:17:32": execute of template failed: template: partials/article-meta/list.html:17:32: executing "partials/article-meta/list.html" at <partial "meta/views.html" .>: error calling partial: "/blowfish/layouts/partials/meta/views.html:7:25": execute of template failed: template: partials/meta/views.html:7:25: executing "partials/meta/views.html" at <.File }}{{ .Path }}{{ end }

Expected behavior
It should render site
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: macos
Browser: chrome,

Hugo & Blowfish versions
hugo 124
blowfish 2.63
Additional context
I think the issue is the same as the pr https://github.com/nunocoracao/blowfish/pull/1359/files.
we need to change likes.html  and view.html as well.
Thanks for your help in advance!

@cauliyang as you can imagine I have several sites running with Blowfish using those versions that were not broken - aka the latest and greatest live version is working as well as 5 other sites I manage.
Can you point me to the repo with your code so that I can try to reproduce this locally?
Also, are you using any override layouts?

hi @nunocoracao, I do not have any override layout and use one customized comment layout. I already tried to comment out all its code and build the site, but I still got the error.
I think the code should be changed are https://github.com/nunocoracao/blowfish/blob/92c13bdc8514fa9e8c0238d14e9d2e71a2ebe4a5/layouts/partials/meta/likes.html#L7
and https://github.com/nunocoracao/blowfish/blob/92c13bdc8514fa9e8c0238d14e9d2e71a2ebe4a5/layouts/partials/meta/views.html#L7
Thanks for your help!

@cauliyang I need more details in order to reproduce this.

Can you point me to the repo with your code so that I can try to reproduce this locally?

@cauliyang I had a similar issue yesterday. I solved it by updating the latest version of Hugo

hi @BabaRagnarok, thanks for the suggestion! but I already tried the latest version of Hugo.

@nunocoracao, here is the first time of failing to build a website: https://github.com/cauliyang/cauliyang.github.io/actions/runs/8348613511/job/22850946205
Finally, I fixed the bug by changing views.html and likes.html:

    {{ if eq .Kind "taxonomy" }}

    {{ else if eq .Kind "term" }}

    {{ else }}
        {{ $translations := .AllTranslations }}
        {{ with .File }}
            {{ $path := .Path }}
            {{range $translations}}
                {{ $lang := print "."  .Lang  ".md" }}
                {{ $path = replace $path $lang ".md" }}
            {{end}}

        {{ end }}
    {{ end }}
        class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="views">loading
    {{ partial "icon.html" "eye" }}

{{- /* Trim EOF */ -}}

and

    {{ if eq .Kind "taxonomy" }}

    {{ else if eq .Kind "term" }}

    {{ else }}
        {{ $translations := .AllTranslations }}
        {{ with .File }}
            {{ $path := .Path }}
            {{range $translations}}
                {{ $lang := print "."  .Lang  ".md" }}
                {{ $path = replace $path $lang ".md" }}
            {{end}}

        {{ end }}
    {{ end }}
        class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="likes">loading
    {{ partial "icon.html" "heart" }}

{{- /* Trim EOF */ -}}

@cauliyang I'll have a look. However, I need to be able to reproduce the bug before accepting a fix for it. Again, I'm deploying multiple sites with Blowfish and didn't run into any problems.

@nunocoracao, yep, I highly agree with you. Thanks for your help!

Hey @cauliyang was not able to reproduce. It seems that your CI error was not on the latest version of Blowfish at the time. Still think the changes make sense so I "stole" them and included them in the dev branch. Will be available in the next release. Thanks

Hi @nunocoracao, yep the version of Blowfish in the CI error is not the latest. I update the latest version on my local device and try to fix the bug. However,   the bug still exists. I do not know what makes the issue not reproducible. But the issue was gone after I changed that. Thanks for your great help!


Need support for Vulkan VK_NV_linear_color_attachment

Description
We have a game that relies on VK_NV_linear_color_attachment for screenshots.   The screenshot is rendered into that, and then encoded afterwards, since it has a linear instead of serpentine pattern to the pixels.  But when running the game under RenderDoc this extension seems to be suppressed.
https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_NV_linear_color_attachment.html
This extension is a different list of linearTiling and optimalTiling settings in a 64-bit uint.   I guess Vulkan ran out of bits.   And Nvidia only supports linearTiling in isolation.  So can do MRT, but then all targets must be linear, or optimal tiling.   Nvidia hardware basically breaking the Vulkan spec.   AMD/Intel just support mixing linear and optimal tiling.
Steps to reproduce
The capture is from a shipping game, but probably wouldn't help here.  We are just told the extension is unsupported, so disable our screenshot button.
Environment

RenderDoc version: 1.29
Operating System: Win 10
Graphics API: Vulkan
Gpu: Nvidia 3070
Driver: 5<IP_ADDRESS> (0x86434000)

I'm not quite clear on this, is this a feature request or a bug report? It seems like a feature request for VK_NV_linear_color_attachment and your description doesn't seem to detail any kind of bug but you've used the bug report template. I'm going to file this as a feature request for now but please let me know if I've misunderstood.

Yes, that’s fine.  I wasn’t sure if it was a bug that this extension wasn’t appearing, or that RenderDoc is filtering the extension due to a missing feature.

Also would be nice to know when an extension is suppressed by enabling RenderDoc_capture.   Wasn't expecting that to alter the extensions so drastically.   And it's always present on Win/Android, but the dll isn't.  So we can disable the extension only when RenderDoc is running the app on most of our platforms.

I don't really understand what you mean by "it's always present". There's no need for a separate query for RenderDoc though, supported extensions are reported through the normal vulkan enumeration functions and an application can react to the available extensions without needing to special-case anything for RenderDoc, the same way as it does for different drivers.

The issue is that the capture extension is always present for RenderDoc.  Maybe because I have RenderDoc installed.  But I’ve had to add tests for platforms that we know have a particular extension, since when we activate the capture extension many of the unsupported Nv extensions disappear from the list.
Right now I search for the DLL and if present then I activate the capture extension, but only.  I’m using this to identify that the app was launched from RenderDoc.

I don't know what you mean by a capture extension so I'm afraid I still don't understand. Do you mean VK_EXT_debug_utils the debug extension? That shouldn't have any relation to this.
When you launch your program from RenderDoc you'll run under RenderDoc's environment. It behaves as-if it were a driver with different capabilities so you don't need any special case code you can just run your normal logic to handle different drivers.

This is what I have to do to disable renderDoc, but I'd like to leave the support enabled in our debug builds.  But since it modifies the extension list, that's not good.  So right now, I have to comment out the second line to test with RenderDoc.  On some platforms, I'm detecting the renderdoc dll but that doesn't work on all.
       bool hasRenderDocExtension =  m_debugLayers.IsAvailable( "VK_LAYER_RENDERDOC_Capture" );

	// Since this disables many NV extensions (checkpoints and linear_color_attachment), then leave
	// this off unless this is manually ocmmented out.  Need a way to detect app is being run
	// from RenderDoc.
	hasRenderDocExtension = false;

Layers are not the same things as extensions but you seem to be using the terms interchangeably.  If you are enabling it by hand then that is definitely wrong and there is nowhere in any documentation or instructions that tells you to do that.
I'm still not entirely sure what you're doing, but as I said above you do not need to make any modifications to your program to 'disable' RenderDoc. Run your program from RenderDoc when you want to use it and allow RenderDoc to work as normal, if you try to interfere with how it works then you may create problems for yourself as it sounds like you are doing or get unwanted behaviour.

Thanks, we build up a list of the debug layers, then query them for extensions.  I can try just not adding in that into our array of debug layers, and see if that helps.


Open Mailto links in nativefied Inbox/Gmail

Description
I want to be able to open mailto URLs in my Inbox and/or Gmail browser.
Steps to reproduce issue
Sent terminal command: open -a 'Google Inbox.app'<EMAIL_ADDRESS>Expected result: Open compose window
Actual result: app comes to front, nothing else happens
Details
Creation string:
nativefier --counter -i /Users/nik/Desktop/inbox.png --internal-urls ".inbox.google.com.|^mailto:.*" --single-instance -n "Google Inbox" --inject "/Users/nik/Desktop/ginbox-inject.js" "https://inbox.google.com/"
Running on MacOS X.

@nikjft thanks for the feedback. Closing as duplicate of https://github.com/jiahaog/nativefier/issues/405


standard dockerfile

removed old docker resources (build directory)
added standard docker files (created using new docker init command)

@daabr to approve


Pelican container not compatible with arm

Trying to build or work with the Pelican Docker container that comes pre-bundled with things like OA4MP and the scitokens-oauth2-server is very painful for people on ARM. In particular, trying to build the docker container on ARM immediately fails because of the line:
FROM hub.opensciencegrid.org/sciauth/scitokens-oauth2-server:release AS scitokens-oauth2-server

Do we have the ability to poke these upstream dependencies and have them built for arm as well?

Didn't we hit this before?  I see the following in dev.Dockerfile:
# We specify the platform as scitokens-oauth2-server didn't publish arm version and we don't want to
# fail on building this container on arm machine
FROM --platform=linux/amd64 hub.opensciencegrid.org/sciauth/scitokens-oauth2-server:release AS scitokens-oauth2-server

The files we pull from the scitokens Docker container are all Java (and hence the amd64 version is fine for all platforms).


Nit: fixing styling of "npm".

:smile:
This matches the officially preferred way of referring to the software.

Thank you, @nickheiner-usds :)


New bug button

We need to have a "New bug" button on the log page:
https://ts-factory.io/bublik/v2/log/1805893?focusId=1808994&mode=treeAndinfoAndlog&rowState={"<IP_ADDRESS>.2.2"%3A{"rowId"%3A"<IP_ADDRESS>.2.2"%2C"referenceDiffRowId"%3A"1808994"}}
probably top right?
The bug should include:

Link (the above)
(ideally):

Full path of the test
Parameters

Revisions (DPDK_ETHDEV_TS: 00ad4413
DPDK: fbba6db3
TE: 9a768b77
TSCONF: b1dbe598
TSRIGS: eb94ca81)
Important tags
Configuration (if exists)

The question you might ask is how do we "submit" things. Ideal world is to:

have "New Bug" button
by default it opens what was configured in the project parameters
but also pops (similar to History pop-up) me a choice of formats:

markdown
jira

and when clicked it "copies" the resulting text into the buffer.

I've seen it in the new release
Could you also add New bug with scenario button that includes something like:

#Scenario
#T:verdict

BTW: I also think that #Scenario in the log must include #T:verdict. Do you want a seprate issue for that?


[BUG]Still not working, there is an error (TypeError: unsupported opera type (s) for//: 'NoneType' and 'int') when running Python playground. py

Hello, there is an error (TypeError: unsupported operator type (s) for//: 'NoneType' and 'int') running Python playground.py
Operating system: ubuntu 20.04
Python 3.9.18
Other parameters: Same as MiniGPT-5/requirements. txt
All three ckpt files are located in MiniGPT-5/config. The configuration files have all been changed. The weight used is Vicuna-7b-v1.1. However, the following error still occurred.
Run "Python playground. py --stage1_weight /root/MiniGPT-5/config/stage1_cc3m.ckpt --test_weight /root/MiniGPT-5/config/stage2_vist.ckpt" The following error occurred during command execution:
Seed set to 42
Loading VIT
Traceback (most recent call last):
File "/root/MiniGPT-5/examples/playground.py", line 40, in
minigpt5 = MiniGPT5_Model.load_from_checkpoint(stage1_ckpt, strict=False, map_location="cpu", encoder_model_config=model_args, **vars(training_args))
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/lightning/pytorch/core/module.py", line 1552, in load_from_checkpoint
loaded = _load_from_checkpoint(
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/lightning/pytorch/core/saving.py", line 89, in _load_from_checkpoint
model = _load_state(cls, checkpoint, strict=strict, kwargs)
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/lightning/pytorch/core/saving.py", line 156, in _load_state
obj = cls(_cls_kwargs)
File "/root/MiniGPT-5/model.py", line 68, in init
self.model = MiniGPT5.from_config(minigpt4_config.model_cfg)
File "/root/MiniGPT-5/minigpt4/models/mini_gpt4.py", line 247, in from_config
model = cls(
File "/root/MiniGPT-5/minigpt4/models/mini_gpt5.py", line 46, in init
super().init(*args, **kwargs)
File "/root/MiniGPT-5/minigpt4/models/mini_gpt4.py", line 53, in init
self.visual_encoder, self.ln_vision = self.init_vision_encoder(
File "/root/MiniGPT-5/minigpt4/models/blip2.py", line 65, in init_vision_encoder
visual_encoder = create_eva_vit_g(
File "/root/MiniGPT-5/minigpt4/models/eva_vit.py", line 416, in create_eva_vit_g
model = VisionTransformer(
File "/root/MiniGPT-5/minigpt4/models/eva_vit.py", line 259, in init
self.patch_embed = PatchEmbed(
File "/root/MiniGPT-5/minigpt4/models/eva_vit.py", line 190, in init
num_patches = (img_size[1] // patch_size[1]) * (img_size[0] // patch_size[0])
TypeError: unsupported operand type(s) for //: 'NoneType' and 'int'

this is my pip list:
accelerate                0.24.1
aiofiles                  23.2.1
aiohttp                   3.8.4
aiosignal                 1.3.1
altair                    5.2.0
annotated-types           0.6.0
antlr4-python3-runtime    4.9.3
anyio                     3.7.1
appdirs                   1.4.4
argon2-cffi               23.1.0
argon2-cffi-bindings      21.2.0
arrow                     1.3.0
asttokens                 2.4.1
async-lru                 2.0.4
async-timeout             4.0.2
attrs                     22.2.0
Babel                     2.13.1
backoff                   2.2.1
beautifulsoup4            4.12.2
bleach                    6.1.0
blessed                   1.20.0
blis                      0.7.11
boto3                     1.33.2
botocore                  1.33.2
braceexpand               0.1.7
catalogue                 2.0.10
cchardet                  2.1.7
certifi                   2023.11.17
cffi                      1.16.0
chardet                   5.1.0
charset-normalizer        3.3.2
click                     8.1.7
cmake                     3.27.7
comm                      0.2.0
confection                0.1.4
contourpy                 1.0.7
croniter                  1.4.1
cycler                    0.11.0
cymem                     2.0.8
dateutils                 0.6.12
debugpy                   1.8.0
decorator                 5.1.1
decord                    0.6.0
deepdiff                  6.7.1
defusedxml                0.7.1
diffusers                 0.23.1
docker-pycreds            0.4.0
exceptiongroup            1.2.0
executing                 2.0.1
fastapi                   0.104.1
fastjsonschema            2.19.0
ffmpy                     0.3.1
filelock                  3.9.0
fonttools                 4.38.0
fqdn                      1.5.1
frozenlist                1.3.3
fsspec                    2023.10.0
ftfy                      6.1.3
gitdb                     4.0.11
GitPython                 3.1.40
gradio                    3.50.0
gradio_client             0.6.1
h11                       0.14.0
httpcore                  1.0.2
httpx                     0.25.2
huggingface-hub           0.19.4
idna                      3.6
importlib-metadata        6.8.0
importlib-resources       5.12.0
inquirer                  3.1.4
iopath                    0.1.10
ipykernel                 6.27.1
ipython                   8.18.1
isoduration               20.11.0
itsdangerous              2.1.2
jedi                      0.19.1
Jinja2                    3.1.2
jmespath                  1.0.1
joblib                    1.3.2
json5                     0.9.14
jsonpointer               2.4
jsonschema                4.20.0
jsonschema-specifications 2023.11.1
jupyter_client            8.6.0
jupyter_core              5.5.0
jupyter-events            0.9.0
jupyter-lsp               2.2.1
jupyter_server            2.11.1
jupyter_server_terminals  0.4.4
jupyterlab                4.0.9
jupyterlab_pygments       0.3.0
jupyterlab_server         2.25.2
kiwisolver                1.4.4
langcodes                 3.3.0
lightning                 2.0.9.post0
lightning-cloud           0.5.55
lightning-utilities       0.10.0
linkify-it-py             2.0.2
lit                       17.0.6
llvmlite                  0.41.1
markdown-it-py            2.2.0
MarkupSafe                2.1.3
matplotlib                3.7.0
matplotlib-inline         0.1.6
mdit-py-plugins           0.3.3
mdurl                     0.1.2
mistune                   3.0.2
mpmath                    1.3.0
multidict                 6.0.4
murmurhash                1.0.10
nbclient                  0.9.0
nbconvert                 7.11.0
nbformat                  5.9.2
nest-asyncio              1.5.8
networkx                  3.2.1
nltk                      3.8.1
notebook                  7.0.6
notebook_shim             0.2.3
numba                     0.58.1
numpy                     1.26.2
nvidia-cublas-cu11        <IP_ADDRESS>
nvidia-cublas-cu12        <IP_ADDRESS>
nvidia-cuda-cupti-cu11    11.7.101
nvidia-cuda-cupti-cu12    12.1.105
nvidia-cuda-nvrtc-cu11    11.7.99
nvidia-cuda-nvrtc-cu12    12.1.105
nvidia-cuda-runtime-cu11  11.7.99
nvidia-cuda-runtime-cu12  12.1.105
nvidia-cudnn-cu11         <IP_ADDRESS>
nvidia-cudnn-cu12         <IP_ADDRESS>
nvidia-cufft-cu11         <IP_ADDRESS>
nvidia-cufft-cu12         <IP_ADDRESS>
nvidia-curand-cu11        <IP_ADDRESS>
nvidia-curand-cu12        <IP_ADDRESS>
nvidia-cusolver-cu11      <IP_ADDRESS>
nvidia-cusolver-cu12      <IP_ADDRESS>
nvidia-cusparse-cu11      <IP_ADDRESS>
nvidia-cusparse-cu12      <IP_ADDRESS>
nvidia-nccl-cu11          2.14.3
nvidia-nccl-cu12          2.18.1
nvidia-nvjitlink-cu12     12.3.101
nvidia-nvtx-cu11          11.7.91
nvidia-nvtx-cu12          12.1.105
omegaconf                 2.3.0
open-clip-torch           2.23.0
opencv-python             <IP_ADDRESS>
ordered-set               4.1.0
orjson                    3.9.10
overrides                 7.4.0
packaging                 23.0
pandas                    2.1.3
pandocfilters             1.5.0
parso                     0.8.3
pathy                     0.10.3
peft                      0.6.2
pexpect                   4.9.0
Pillow                    10.1.0
pip                       23.3.1
platformdirs              4.0.0
portalocker               2.8.2
preshed                   3.0.9
prometheus-client         0.19.0
prompt-toolkit            3.0.41
protobuf                  4.25.1
psutil                    5.9.4
ptyprocess                0.7.0
pure-eval                 0.2.2
pycocoevalcap             1.2
pycocotools               2.0.6
pycparser                 2.21
pydantic                  1.10.13
pydantic_core             2.4.0
pydub                     0.25.1
Pygments                  2.17.2
PyJWT                     2.8.0
pynndescent               0.5.11
pyparsing                 3.0.9
python-dateutil           2.8.2
python-editor             1.0.4
python-json-logger        2.0.7
python-multipart          0.0.6
pytorch-fid               0.3.0
pytorch-lightning         2.1.2
pytz                      2023.3.post1
PyYAML                    6.0
pyzmq                     25.1.1
readchar                  4.0.5
referencing               0.31.0
regex                     2022.10.31
requests                  2.31.0
rfc3339-validator         0.1.4
rfc3986-validator         0.1.1
rich                      13.7.0
rouge                     1.0.1
rpds-py                   0.13.1
s3transfer                0.8.1
safetensors               0.4.1
scikit-learn              1.3.2
scipy                     1.11.4
semantic-version          2.10.0
Send2Trash                1.8.2
sentence-transformers     2.2.2
sentencepiece             0.1.99
sentry-sdk                1.37.1
setproctitle              1.3.3
setuptools                68.0.0
six                       1.16.0
smart-open                6.4.0
smmap                     5.0.1
sniffio                   1.3.0
soupsieve                 2.5
spacy                     3.5.1
spacy-legacy              3.0.12
spacy-loggers             1.0.5
srsly                     2.4.8
stack-data                0.6.3
starlette                 0.27.0
starsessions              1.3.0
sympy                     1.12
tenacity                  8.2.2
terminado                 0.18.0
thinc                     8.1.12
threadpoolctl             3.2.0
timm                      0.6.13
tinycss2                  1.2.1
tokenizers                0.13.3
tomli                     2.0.1
toolz                     0.12.0
torch                     2.0.1
torch-fidelity            0.3.0
torchmetrics              1.2.0
torchvision               0.15.2
tornado                   6.3.3
tqdm                      4.64.1
traitlets                 5.14.0
transformers              4.31.0
triton                    2.0.0
typer                     0.7.0
types-python-dateutil     <IP_ADDRESS>
typing_extensions         4.8.0
tzdata                    2023.3
uc-micro-py               1.0.2
umap-learn                0.5.5
uri-template              1.3.0
urllib3                   1.26.18
uvicorn                   0.24.0.post1
wandb                     0.16.0
wasabi                    1.1.2
wcwidth                   0.2.12
webcolors                 1.13
webdataset                0.2.48
webencodings              0.5.1
websocket-client          1.6.4
websockets                11.0.3
wheel                     0.41.2
xformers                  0.0.22
yarl                      1.8.2
zipp                      3.14.0

this is my Weight files:

this is my minigpt4.yaml:
model:
arch: minigpt5
model_type: pretrain_vicuna
freeze_vit: True
freeze_qformer: True
max_txt_len: 160
end_sym: "###"
prompt_path: ""
prompt_template: '###Human: {} ###Assistant: '
ckpt: '/root/MiniGPT-5/config/prerained_minigpt4_7b.pth'
using_lora: True
datasets:
cc_sbu_align:
vis_processor:
train:
name: "blip2_image_eval"
image_size: 224
text_processor:
train:
name: "blip_caption"
run:
task: image_text_pretrain
optimizer
lr_sched: "linear_warmup_cosine_lr"
init_lr: 3e-5
min_lr: 1e-5
warmup_lr: 1e-6
weight_decay: 0.05
max_epoch: 5
iters_per_epoch: 200
batch_size_train: 12
batch_size_eval: 12
num_workers: 4
warmup_steps: 200
seed: 42
output_dir: "output/minigpt4_stage2_finetune"
amp: True
resume_ckpt_path: null
evaluate: False
train_splits: ["train"]
device: "cuda"
world_size: 1
dist_url: "env://"
distributed: True

this is my minigpt4.yaml:
model:
arch: mini_gpt4
vit encoder
image_size: 224
drop_path_rate: 0
use_grad_checkpoint: False
vit_precision: "fp16"
freeze_vit: True
freeze_qformer: True
Q-Former
num_query_token: 32
Vicuna
llama_model: "/root/vicuna-7b-v1.1"
generation configs
prompt: ""
preprocess:
vis_processor:
train:
name: "blip2_image_train"
image_size: 224
eval:
name: "blip2_image_eval"
image_size: 224
text_processor:
train:
name: "blip_caption"
eval:
name: "blip_caption"

this is my  /root/vicuna-7b-v1.1,  The following figure：

I'm trying to help. According to your error record:
File "/root/MiniGPT-5/minigpt4/models/eva_vit.py", line 190, in init
num_patches = (img_size[1] // patch_size[1]) * (img_size[0] // patch_size[0])
TypeError: unsupported operand type(s) for //: 'NoneType' and 'int'

where Img_size is None when the model is loaded.
But according to your config file, you have set img_size: 224 in /root/MiniGPT-5/minigpt4/configs/models/minigpt4.yaml. Then, I'm confused. Can you check the minigpt4_config.model_cfg.image_size after line 67?

May I ask which file has line 67？/root/MiniGPT-5/model.py   67 line?

Yes

Yes

Please wait a moment, I need to set up a debugging environment

File "/root/MiniGPT-5/model.py", line 68, in init
print('minigpt4_config.model_cfg.image_size' + str(minigpt4_config.model_cfg.image_size))
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/omegaconf/dictconfig.py", line 355, in getattr
self._format_and_raise(
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/omegaconf/base.py", line 231, in _format_and_raise
format_and_raise(
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/omegaconf/_utils.py", line 899, in format_and_raise
_raise(ex, cause)
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/omegaconf/_utils.py", line 797, in _raise
raise ex.with_traceback(sys.exc_info()[2])  # set env var OC_CAUSE=1 for full trace
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/omegaconf/dictconfig.py", line 351, in getattr
return self._get_impl(
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/omegaconf/dictconfig.py", line 442, in _get_impl
node = self._get_child(
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/omegaconf/basecontainer.py", line 73, in _get_child
child = self._get_node(
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/omegaconf/dictconfig.py", line 480, in _get_node
raise ConfigKeyError(f"Missing key {key!s}")
omegaconf.errors.ConfigAttributeError: Missing key image_size
full_key: model.image_size
object_type=dict
Seems unable to:  print('minigpt4_config.model_cfg.image_size' + str(minigpt4_config.model_cfg.image_size))

Then, can you check the self.args.cfg_path in line 27 of minigpt4/common/config.py and model_config_path in line 71 of minigpt4/common/config.py

File "/root/MiniGPT-5/minigpt4/models/eva_vit.py", line 190, in init
num_patches = (img_size[1] // patch_size[1]) * (img_size[0] // patch_size[0])
TypeError: unsupported operand type(s) for //: 'NoneType' and 'int'
Because these errors were executed first, an error was reported before reaching "minipt4/common/config. py".
Here are the modifications I made, but the program has not yet been executed here。

We are currently creating the environment and will use 'pycharm' to debug once it is ready

This is weird. According to your error:
Traceback (most recent call last):
File "/root/MiniGPT-5/examples/playground.py", line 40, in
minigpt5 = MiniGPT5_Model.load_from_checkpoint(stage1_ckpt, strict=False, map_location="cpu", encoder_model_config=model_args, **vars(training_args))
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/lightning/pytorch/core/module.py", line 1552, in load_from_checkpoint
loaded = _load_from_checkpoint(
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/lightning/pytorch/core/saving.py", line 89, in _load_from_checkpoint
model = _load_state(cls, checkpoint, strict=strict, kwargs)
File "/root/anaconda3/envs/minigpt5/lib/python3.9/site-packages/lightning/pytorch/core/saving.py", line 156, in _load_state
obj = cls(_cls_kwargs)
File "/root/MiniGPT-5/model.py", line 68, in init
self.model = MiniGPT5.from_config(minigpt4_config.model_cfg)
File "/root/MiniGPT-5/minigpt4/models/mini_gpt4.py", line 247, in from_config
model = cls(
File "/root/MiniGPT-5/minigpt4/models/mini_gpt5.py", line 46, in init
super().init(*args, **kwargs)
File "/root/MiniGPT-5/minigpt4/models/mini_gpt4.py", line 53, in init
self.visual_encoder, self.ln_vision = self.init_vision_encoder(
File "/root/MiniGPT-5/minigpt4/models/blip2.py", line 65, in init_vision_encoder
visual_encoder = create_eva_vit_g(
File "/root/MiniGPT-5/minigpt4/models/eva_vit.py", line 416, in create_eva_vit_g
model = VisionTransformer(
File "/root/MiniGPT-5/minigpt4/models/eva_vit.py", line 259, in init
self.patch_embed = PatchEmbed(
File "/root/MiniGPT-5/minigpt4/models/eva_vit.py", line 190, in init
num_patches = (img_size[1] // patch_size[1]) * (img_size[0] // patch_size[0])
TypeError: unsupported operand type(s) for //: 'NoneType' and 'int'

Your error starts from File "/root/MiniGPT-5/model.py", line 68, but we are testing line 67. The error should be after config. Also, you already tried to print minigpt4_config.model_cfg.image_size before and you did not receive any error in line 67.

This is weird. According to your error:
Traceback (most recent call last):

Your error starts from File "/root/MiniGPT-5/model.py", line 68, but we are testing line 67. The error should be after config. Also, you already tried to print minigpt4_config.model_cfg.image_size before and you did not receive any error in line 67.

yes,Start the next call with "self. model=MiniGPT5. from configuration (minipt4_config. model_cfg)". Before this, there were no errors reported。
About errors：“(img_size[1] // patch_size[1]) * (img_size[0] // patch_size[0])”
I once discovered that img_ Size [1] and img_size[0]     The value of these two objects is none

Because img_size[1]=None  and  img_size[0]=None, an error of "TypeError: unsupported operand type(s) for //: 'NoneType' and 'int'" occurred

I'm trying to help. According to your error record:
File "/root/MiniGPT-5/minigpt4/models/eva_vit.py", line 190, in init
num_patches = (img_size[1] // patch_size[1]) * (img_size[0] // patch_size[0])
TypeError: unsupported operand type(s) for //: 'NoneType' and 'int'

where Img_size is None when the model is loaded.
But according to your config file, you have set img_size: 224 in /root/MiniGPT-5/minigpt4/configs/models/minigpt4.yaml. Then, I'm confused. Can you check the minigpt4_config.model_cfg.image_size after line 67?

Same like I said here. img_size should not be none and the all print I asked above is to check the reason about why it is None here.

img_size in minigpt4_config.datasets_cfg.cc_sbu_align.vis_processor.train.  is not minigpt4_config.model_cfg

But it should be also inside model_cfg

But it should be also inside both model_cfg and dataset_cfg.

Is there a problem with my 'minigpt4.yaml' file or did I read the wrong file? Could you please take a look at the address and content of the 'minigpt4.yaml' file in my reply above

this is my /root/MiniGPT-5/minigpt4/configs/models/minigpt4.yaml:
model: arch: mini_gpt4
vit encoder
image_size: 224 drop_path_rate: 0 use_grad_checkpoint: False vit_precision: "fp16" freeze_vit: True freeze_qformer: True
Q-Former
num_query_token: 32
Vicuna
llama_model: "/root/vicuna-7b-v1.1"
generation configs
prompt: ""
preprocess: vis_processor: train: name: "blip2_image_train" image_size: 224 eval: name: "blip2_image_eval" image_size: 224 text_processor: train: name: "blip_caption" eval: name: "blip_caption"

I didn't see the wrong config in your file. To check whether you read the correct file. You should check the model_config_path at line 71 of minigpt4/common/config.py file first.

An error occurred before running to 'self.tokenizer = self.model.llama_tokenizer'.
The following error is in 'eva_vit.py', please analyze it.      Please take a look at the breakpoint debugging results

I made a breakpoint here, but I didn't come in。

I think that's maybe the reason. You have multiple minigpt4 folder under your python path. Therefore, the python loads minigpt4 from the wrong path/folder. You can step in the line 67 to see where Config(MiniGPT4Args) leads to.

restart。    /root/minigpt555/minigpt4/common/config.py  27  line.    minigpt4.yaml  is OK.

/root/minigpt555/minigpt4/common/config.py  71  line.    minigpt4.yaml  is OK.

/root/minigpt555/model.py 67 line.   minigpt4.yaml  is OK.

They all point to the path: /root/MiniGPT-5/config/minigpt4.yaml

Please check the function default_config_path in Line 79 of minigpt4/models/base_model.py to see why you obtain the wrong path.

Thank you, the problem has been resolved.
But a new error has occurred:
Raise LocalEntryNotFoundError（
Hugging face_ Hub. utils_ Errors LocalEntryNotFoundError: An error occurred while trying to locate the file on the Hub and we cannot find the requested files in the local cache Please check your connection and try again or make sure your Internet connection is on
I wonder if I want to download 'https://huggingface.co/julien-c/EsperBERTo-small/resolve/main/pytorch_model.bin'. The network environment here is not good, so I want to download 'pytorch_model.bin' first and put it in a local folder. But I don't know which folder is better to put it in, please let me know, thank you.
If it's not this file, please tell me the other file names so that I can download it and place it locally.

I have now cloned 'stablityai/table diffusion 2-1-base', should I also put it in the/root/MiniGPT-5 directory? Where exactly is it placed?

You can place it anywhere you want. Just change sd_model_name at line 73 of model.py to your local path.

I have now cloned 'stablityai/table diffusion 2-1-base', should I also put it in the/root/MiniGPT-5 directory? Where exactly is it placed?

You can place it anywhere you want. Just change sd_model_name at line 73 of model.py to your local path.

Now the models are all installed. Result error: CUDA out of memory.
File "/root/anaconda3/envs/minigpt555/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/root/minigpt555/minigpt4/models/modeling_llama.py", line 140, in forward
return self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))
File "/root/anaconda3/envs/minigpt555/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/root/anaconda3/envs/minigpt555/lib/python3.9/site-packages/torch/nn/modules/linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 86.00 MiB (GPU 0; 21.99 GiB total capacity; 21.38 GiB already allocated; 17.00 MiB free; 21.66 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
python-BaseException

Regarding the error:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 128.00 MiB (GPU 0; 21.99 GiB total capacity; 21.42 GiB already allocated; 107.00 MiB free; 21.57 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
I once tried to reduce the video memory fragment to 32MB, but it still failed, and I reported the same error. I estimate we need you to find another way to help solve it:
export PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:32


Send Log statements to log Topic for Java Functions

Motivation
Currently logTopic directive only works for Python functions. This pr brings that functionality to Java Functions as well.
Modifications
Describe the modifications you've done.
Result
After your change, what will change.

@sijie @merlimat

retest this please


Fix Undefined Behavior in check_len

Comparison between pointers that do no reference the same array (or 1-past the end of the array) is undefined behavior. Quoting the Rust documentation:

If any of the following conditions are violated, the result is Undefined Behavior:

Both the starting and resulting pointer must be either in bounds or one byte past the end of the same allocated object.
The computed offset, in bytes, cannot overflow an isize.
The offset being in bounds cannot rely on “wrapping around” the address space. That is, the infinite-precision sum must fit in a usize.

Likewise, quoting the LLVM Language Reference:

This value only has defined behavior when used as an operand to the ‘indirectbr’ or ‘callbr’instruction, or for comparisons against null. Pointer equality tests between labels addresses results in undefined behavior — though, again, comparison against null is ok, and no label is equal to the null pointer. This may be passed around as an opaque pointer sized value as long as the bits are not inspected. This allows ptrtoint and arithmetic to be performed on these values so long as the original value is reconstituted before the indirectbr or callbr instruction.

Therefore, the following code is undefined behavior. This should likely justify a new version release once this is published.
https://github.com/aldanor/fast-float-rust/blob/ec1b7d4ff98dc177b1f507e53c0f39a611542811/src/common.rs#L76-L79

Thanks for detailed investigation and the fix - this was UB indeed (perhaps not immediately obvious).


Format "group-by DIV" like "templateResult" from select2

Hi,
In Select2, the callback formatResultat (now templateResult in v4.0.0), can be use to format ALL the list elements, even the "group-by" ones if an array with children is provided.
This kind of code works well to put a flag just before the "group-by" text :
formatResult : function (e)
{
	if( e.children != undefined )
		return "<img class='flag' src='http://something.net/" + e.img + ".png'/>" + e.text;
	else
		return e.text;
},

How can do this with ui-select ? I can't find a way.
Thank you.

+1

This seems like a nice to have, which is generally not a great idea in a library. The reason is because a lot of users won't want such a feature, which then results in feature bloat in a library, and more code that each consumer has to load.
Closing this as a won't implement.


[AutoPR web/resource-manager] typo: Fix Microsoft.Web/CommonDefinitions.json

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/4504

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/3362


OrderedClassElementsFixer - PHP8.1 readonly properties support

Coverage decreased (-0.009%) to 93.101% when pulling<PHONE_NUMBER>a4fedf89d955027f773dab1e3caa8c on SpacePossum:master_PHP81_OrderedClassElementsFixer into 98d86c42ba05b3d5b0dcbcfb9919b342d20d1293 on FriendsOfPHP:master.


RedisCloud doesn't permit EVALSHA

When trying to run on RedisCloud, I get the below error.
The error makes not of using EVAL instead of EVALSHA.
I'm not familiar with the lua capabilities, nor the internals of RMA, so I'm not sure if it is feasible to fall back to using EVAL if EVALSHA fails?
Any suggestions?
rma -s <host> -p <port> -d 0 -a <password>
Match *:   0%|                                           | 0/331 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 2694, in __call__
    return client.evalsha(self.sha, len(keys), *args)
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 1944, in evalsha
    return self.execute_command('EVALSHA', sha, numkeys, *keys_and_args)
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 573, in execute_command
    return self.parse_response(connection, command_name, **options)
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 585, in parse_response
    response = connection.read_response()
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/connection.py", line 582, in read_response
    raise response
redis.exceptions.NoScriptError: No matching script. Please use EVAL.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/adamgriffiths/.anaconda/envs/systema3/bin/rma", line 11, in <module>
    sys.exit(main())
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/rma/cli/rma_cli.py", line 92, in main
    app.run()
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/rma/application.py", line 106, in run
    for v in scanner.scan(limit=self.limit):
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/rma/scanner.py", line 85, in scan
    for key_tuple in self.batch_scan():
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/rma/scanner.py", line 53, in batch_scan
    yield from self.resolve_types(ret)
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/rma/scanner.py", line 61, in resolve_types
    raise e
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/rma/scanner.py", line 58, in resolve_types
    key_with_types = msgpack.unpackb(self.resolve_types_script(ret))
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 2699, in __call__
    return client.evalsha(self.sha, len(keys), *args)
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 1944, in evalsha
    return self.execute_command('EVALSHA', sha, numkeys, *keys_and_args)
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 573, in execute_command
    return self.parse_response(connection, command_name, **options)
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 585, in parse_response
    response = connection.read_response()
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/connection.py", line 582, in read_response
    raise response
redis.exceptions.ResponseError: Error running script (call to f_b89215e5d8808de13e1c715aaedbb744ce4536e7): @user_script:5: @user_script: 5: This Redis command is not allowed from scripts

Try this as fast workaround (in scanner.py line 28:
self.pipeline_mode = True

Now we switch to pipeline mode only on CROSSSLOT error. Looks like we should do this with NoScriptError` error too.

New error trace with self.pipeline_mode = True
Match *:   0%|                                           | 0/326 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/home/adamgriffiths/.anaconda/envs/systema3/bin/rma", line 9, in <module>
    load_entry_point('rma', 'console_scripts', 'rma')()
  File "/media/sf_shared/Workspace/systema/systema-profiler/redis-memory-analyzer/rma/cli/rma_cli.py", line 92, in main
    app.run()
  File "/media/sf_shared/Workspace/systema/systema-profiler/redis-memory-analyzer/rma/application.py", line 106, in run
    for v in scanner.scan(limit=self.limit):
  File "/media/sf_shared/Workspace/systema/systema-profiler/redis-memory-analyzer/rma/scanner.py", line 86, in scan
    for key_tuple in self.batch_scan():
  File "/media/sf_shared/Workspace/systema/systema-profiler/redis-memory-analyzer/rma/scanner.py", line 54, in batch_scan
    yield from self.resolve_types(ret)
  File "/media/sf_shared/Workspace/systema/systema-profiler/redis-memory-analyzer/rma/scanner.py", line 66, in resolve_types
    key_with_types = self.resolve_with_pipe(ret)
  File "/media/sf_shared/Workspace/systema/systema-profiler/redis-memory-analyzer/rma/scanner.py", line 78, in resolve_with_pipe
    key_with_types = [{'type': x, 'encoding': y} for x, y in chunker(pipe.execute(), 2)]
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 2626, in execute
    return execute(conn, stack, raise_on_error)
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 2567, in _execute_pipeline
    self.raise_first_error(commands, response)
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 2574, in raise_first_error
    raise r
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 2562, in _execute_pipeline
    self.parse_response(connection, args[0], **options))
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 2584, in parse_response
    self, connection, command_name, **options)
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/client.py", line 585, in parse_response
    response = connection.read_response()
  File "/home/adamgriffiths/.anaconda/envs/systema3/lib/python3.5/site-packages/redis/connection.py", line 582, in read_response
    raise response
redis.exceptions.ResponseError: Command # 2 (OBJECT ENCODING b'rq:job:0071800e-0908-48af-9e0a-59a2e21cba20') of pipeline caused error: command 'OBJECT' is not allowed

Perhaps RedisLabs is just too strict/paranoid to run this code?

I can understand why EVAL may be disabled but OBJECT looks like much of paranoia. I am afraid this tool cant work without OBJECT ENCODING support :( Please, could you check is DEBUG OBJECTcommand is allowed? If yes, i can write some fallback logic to use it instead ofOBJECT`.

How would I go about that?
I haven't used Redis in depth, only for key/value, no Lua scripting.
I've written a script to manually iterate keys and get info, it's not great but it does what I need for now.
As such, I don't need this fixed (although it would be nice).
I'm happy to run some code if you want me to, but I also don't want to take up your time chasing down an issue that isn't really yours, it's RedisLabs.
I don't know if you just want to close the issue. I'll leave it up to you.

The issue with EVAL should be fixed, so tnx for it anyway. Can you run in redis cli command 'DEBUG OBJECT anyKeyYouWant' ?

> DEBUG OBJECT rma_test_key
(error) ERR command 'DEBUG OBJECT' is not allowed

Looks like RedisLabs is locked down big time =(
However, thanks for your time looking into this, its appreciated =)


Can i export edge model feature with this library?

To the best of my knowledge, we have to used cmd line, in order to export trained model to an edge model. Is it will be good if this library can export an edge model? So it will be completely automate development cycle and allow us to take benefit of rich daat from edge device.
Best regards.

Oh, i just realized that client.exportModel works as expected and answered my question. Sorry for not verify this method before asking (i believed there is not in your examples).
Thank you for your hard work.
Best regards.

What is this assigned means? maybe just some mistake? I have never be contributor before.


File provider parsing errors should be contained to the file in question

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
I was experimenting with go templates in dynamic configuration using the file provider. In my test instance of Traefik, I have one dynamic config file for Traefik API/Dashboard routes (conf/dynamic/traefik_api.yml), and another that I was using to experiment with template syntax (conf/dynamic/test_proxy.yml). I don't know Go, so I was making a lot of mistakes in test_proxy.yml's template syntax that rendered this file unparseable.
By using multiple dynamic config files, I expected that if one file were to enter an invalid state, other config files would still be read and their configuration would still be applied so long as those configurations did not have a dependency on the invalid file. I believe this mirrors the behavior of the Docker provider, since invalid labels on one container do not disrupt the configuration for other containers.
What did you see instead?
I discovered that when I deployed invalid template syntax in test_proxy.yml, my dashboard and API would become unreachable. By turning on insecure dashboard from static config, I was able to see that all of my file configuration (including traefik_api.yml was disabled when test_proxy.yml failed to parse. Parsing errors could be seen in error log output.
What version of Traefik are you using?
Version:      2.6.3
Codename:     rocamadour
Go version:   go1.17.8
Built:        2022-03-29T13:09:27Z
OS/Arch:      linux/amd64

What is your environment & configuration?
traefik.yml
providers:
  file:
    directory: /etc/traefik/conf/dynamic

docker-compose.yml
  traefik:
    image: traefik:v2.6
    container_name: traefik
    command: --configFile=/etc/traefik/conf/traefik.yml
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /var/local/docker/traefik:/etc/traefik/conf:ro
      - traefik_acme:/etc/traefik/acme

I am running Traefik as a docker container with deployed with docker-compose. The /etc/traefik/conf directory in the container is mapped from the host, and the deployment process may deploy files to the host directory without restarting the container.
If applicable, please paste the log output in DEBUG level
Template parsing errors are usually of the form Error occurred during watcher callback, like the following examples:
time="2022-03-31T02:57:18Z" level=error msg="Error occurred during watcher callback: /etc/traefik/conf/dynamic/test_proxy.yml: unsupported simple value type: invalid" providerName=file
time="2022-03-31T03:06:34Z" level=error msg="Error occurred during watcher callback: /etc/traefik/conf/dynamic/test_proxy.yml: template: :19:36: executing \"\" at <.Key>: can't evaluate field Key in type bool" providerName=file
I asked about this behavior on the community forum to see if there were any initial opinions. My post received one like:
https://community.traefik.io/t/should-a-failure-to-parse-a-single-dynamic-yaml-file-result-in-all-files-being-rejected/13995
Happy to provide a concise and targeted practical repro of the behavior, but wanted to see whether this would indeed be accepted as a bug first.

hello @NReilingh
Thank you for using Traefik and opening the issue.
We have discussed the issue you are facing and seems that it is not a bug. The configuration files that are stored in the directory in a few separate files are merged by Traefik to the one resulting file. The file is then loaded and processed by Traefik. In case of finding any error in those files, Traefik will not process any of the configuration files, so the behavior you described works as it was initially designed.
This is done in that way to prevent Traefik from loading incomplete configuration. By giving the example. a  middleware has incorrect syntax and that middleware is being used in a router. It will lead to the situation that the router will be affected by the incorrect configuration of the middleware and the router will be completly unusable.
For now, it works in that way, however we consider to implement a different approach to process configuration files in the file provider.

Hi @jakubhajek,
Thank you for the analysis and report on the current design. It appeared to me that Go template parsing was causing more serious errors than YAML syntax issues, but I may have had an incorrect sense about this. Knowing that the files are merged before being processed (including Go template rendering) is interesting, and suggests that one could create a pseudo-DSL out of template blocks perhaps, if the ordering is consistent.
I came across a Traefik config file parser/validator project a few days ago so it sounds like my best bet would be to investigate that project further and see if I can integrate it into my CI so that I prevent deploying invalid YAML files.
Thanks again for the attention!


Enable CreateUser field in Identities

Replacing User placeholder with the API provided createUser field.
Related to https://github.com/konveyor/tackle2-hub/pull/103 but can be merged before it (the field would be empty until Hub API provides the username).
https://issues.redhat.com/browse/TACKLE-424

Example screenshot:

Current solution supports username only (admin in this case), which is part of auth token and doesn't require model Keycloak user in Tackle2 database.

@aufi Do you mind adding the createdBy field to the filter categories as a part of this change?

Yes, is it possible add it in follow-up PR?

Great - thanks!


Add vivo to karmada adopters

Signed-off-by: zhangrong<EMAIL_ADDRESS>What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:

/lgtm /approve
/hold I see you are using the email with the suffix @vivo.com, I guess you haven't put this email to [GitHub Emails], so GitHub can't recognize you and can't count your contributions.
Putting your email to GitHub is not a requirement, just a reminder.

Thanks, I updated my email on GitHub.

/hold cancel
Thank you!!!!


Returning false status for correct emails ids also...

Hi,
Thanks for the awesome gem... But in some cases it is returning false for correct email ids also.
Do we need to add any additional support to this gem to support latest data ??
If so, kindly let me know...
Thanks,
Mallikarjuna

in my case , its returning true for even wrong email ids!! i have same issues and ques. related to its working.


Making it more clear that install-conda-env.sh does not work alone

Making it more clear that install-conda-env.sh does not work on its own as an action

Closed with https://github.com/GoogleCloudPlatform/dataproc-initialization-actions/commit/62d4a1c7a3fc5fc60629ba5283698d1b94d8475f


Adding mousemove event to panel | Springroll

I was trying to add mousemove event to panel, Event was not triggering.
this.panel.addEventListener("mousemove", function (evt) {
alert("hi");
});

EaselJS doesn't provide a mousemove event, but mouseover, mouseout, and pressmove: http://www.createjs.com/docs/easeljs/classes/DisplayObject.html#event_pressmove


In-tree kernel module replacement (#354)

This PR implements in-tree kernel module replacement per user request:

Add a boolean flag to KernelMapping and to Container definition
In case KernelMapping's field is defined, it takes precedence over
Container field
In case the boolean flag is defined, the PostStart command will now
first try to remove in-tree kernel module, and only after that will try
to insert the kernel module stored in the container image
unit-test

/lgtm
Closes #535


Design 3: MiniCluster CRD

This is a simplified design that has one CRD, a minicluster, which is a set of configs and a batch job to run pods (containers), and they can all be associated with the single CRD to better track state to coincide with cluster state!

Note that we want to get a dummy case of this working before merge - locally I've updated to use an Indexed Job and we have a container automated build ready in #14 that we can use for a more realistic entrypoint.

Okay we are at a good merge point (we have too many TODO bugs to work on review just yet I think). The updates here include using an Indexed job, and our new packages for running demo MPI :partying_face: https://github.com/flux-framework/flux-operator/pkgs/container/demo-lammps-mpi
We have enough scoped TODOs now that @zekemorton ping me when you are back from vacation to join in on the fun!


is there a way to play a video underneath the ui?

Describe your problem here.
basically, i want to make a song that instead of using sprites, a bg and stuff, uses just a .mp4 video for graphics, with the ui on top of the video.
Like this: (mockup in krita)

(yeah its an smg4 mod)
Is there any way to do this? source code or lua based, any way is appreciated
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
I'm using psych engine Extra keys by tposejank

Videos are added a childs so they are always above the game regardless

do i need to change the extension to lua?

yes

Is there a way to make the video appear at a certain curStep?

Is there a way to make the video appear at a certain curStep?

function onUpdatePost(elapsed)     if curStep == int then         playVideo('video')     end end
i think its that youll have to double check with others bc i just started coding
yes ik this is old but i js had to

how exactly does the curStep part work?

it plays at a specific step of a song

if i want it to play at step 100, then you would put:
function onUpdatePost(elapsed) if curStep == 100 then playVideo('video') end end


ValidateStringType error

Hi there,
This is more of a question than an issue but I thought you might have encounter the same problem at some point.
I took the code of the ValidateStringType to create a custom scalar type. Well, I tried just for having an id of 24 characters. And as soon as I use it in a query as an input, I get this:
[TypeError: Cannot read property 'test' of undefined]

I didn't manage to test anything but printing the IdType object. After that, it seems like nothing is executed, neither the query resolve function neither any of the parseValue, parseLiteral, serialize functions.
Any idea of what it could be ?

Ok big mistake with a refactor(that explained the fact that I couldn't get any console.log and made it seems like nothing was executed) and the fact that I didn't use any regex. I would suggest to replace the if (regex !== null) by if (!!regex) to make it easier for other dummies like me that just ignore the regex param :)


Bug: Null config values don't get passed to plugins, preventing Mappers from working as expected

Trying to replicate the behavior here
https://sdk.meltano.com/en/latest/stream_maps.html
{
    "stream_maps": {
        "customers": {
            // exclude these since we're capturing them in the pii stream
            "email": null,
            "full_name": null
        },
        "customers_pii": {
            "__source__": "customers",
            // include just the PII and the customer_id
            "customer_id": "customer_id",
            "email": "email",
            "full_name": "full_name",
            // exclude anything not declared
            "__else__": null,
        },
    },
}

So if you have a meltano.yml like
config:
  stream_maps:
    customers_pii:
      "email": "email"
      __else__: null

And then run meltano invoke --dump=config tap-name the else token will not exist.
It's not clear that this is a bug as I did some digging here and as a part of https://gitlab.com/meltano/meltano/-/issues/2334 (more specifically https://gitlab.com/meltano/meltano/-/merge_requests/1898 ) it looks like passing null values was removed as it was causing a different issue
UPDATE (AJ, 2022-08-30)
As noted below in https://github.com/meltano/meltano/issues/6382#issuecomment-1208353612, the bug is that Meltano excludes/removes config input values if they are null.

I can confirm this is still the behavior
visch@visch-ubuntu:~/git/tap-abc$ meltano --version
meltano, version 2.4.0

      config:
        stream_maps:
          customers_pii:
            "email": "email"
            __else__: null

visch@visch-ubuntu:~/git/tap-abc$ meltano invoke --dump=config tap-abc
{
  "stream_maps": {
    "customers_pii": {
      "email": "email"
    }
 }

@visch can you confirm this is still a bug? @edgarrmondragon have you seen this?

@visch can you confirm this is still a bug? @edgarrmondragon have you seen this?

@tayloramurphy One solution might be to implement what Douwe proposed in the old GitLab issue:

Have Meltano not set oauth_credentials if none of its subproperties are none-null

It seems like there's some conflict between how different plugins treat null config values. For some, like the SDK in its stream_maps, null is a value with special meaning, while for others there's no distinction between null and missing.
Douwe's comment on the old GitLab issue:

This issue has come up again in #2368 (closed), where https://github.com/datamill-co/target-snowflake's target_s3 setting should either be unset, null, an empty object {}, or an object containing nested aws_access_key_id, aws_secret_access_key, bucket and key_prefix properties with non-null values.
Right now, Meltano would generate a nested object with those 4 keys and null values if none of the target_s3.* settings are set, instead of omitting the target_s3 key entirely or giving it a null value.
Our best bet appears to be to omit keys with null values from config.json entirely, so that there will be no target_s3.* keys to unflatten into a target_s3: {...} object at all if none of the nested properties have values.

@visch can you confirm this is still a bug? @edgarrmondragon have you seen this?

I can confirm this is still the behavior
visch@visch-ubuntu:~/git/tap-abc$ meltano --version
meltano, version 2.4.0

      config:
        stream_maps:
          customers_pii:
            "email": "email"
            __else__: null

visch@visch-ubuntu:~/git/tap-abc$ meltano invoke --dump=config tap-abc
{
  "stream_maps": {
    "customers_pii": {
      "email": "email"
    }
 }

I haven't taken a deep dive here into the solution but my gut feeling is https://gitlab.com/meltano/meltano/-/issues/2334 was caused by discovery already containing the settings. If discovery already contains the setting then you have to make a choice between returning a null key/value or not having the config.
If my assumption above is the case then I think it makes sense to not return a key/value pair when a setting is defined but there's no config provided, and to return a null when someone explicitly provides a null for that setting (this doesn't happen today as this is the bug we're talking about here)
I'm trying to use the terms config/setting as setting being the "spec" (basically a JSON Schema) for the .config.json for the tap/target as defined by Meltano, and config as the value provided by a config value via (env variables, .env file, meltano.yml, db) while settings shouldn't return anything unless there's a specific default value given. I don't' have better words for this right now. https://docs.meltano.com/guide/configuration#configuration-layers references config , setting, properties maybe we should define these words more clearly?

@edgarrmondragon @aaronsteers ping on this to get your take. Seems like we may want to have some configurable behavior on whether or not to drop nulls. Could this be an option for capabilities?

@tayloramurphy and @edgarrmondragon - I don't see a great fix for this. The capabilities workaround could work, but it feels pretty hacky and bespoke imo. What I don't have good visiblity into is where Meltano may be relying on this behavior of dropping values or excluding them based on a null value, and how pervasive that is in the invocation and configuration codebase.
I think the two options I would prefer would be to add something equivalent to the null value in the SDK mapping/mapper capability that just allows a non-null expression to be equivalent to how we are using null today. For instance: we could accept something like'NULL', remove(), exclude() or '__' - or we could create a __exclude__ dunder operator that replaces the existing null assignments.
So this sample...
{
    "stream_maps": {
        "customers": {
            // exclude these since we're capturing them in the pii stream
            "email": null,
            "full_name": null
        },
        "customers_pii": {
            "__source__": "customers",
            // include just the PII and the customer_id
            "customer_id": "customer_id",
            "email": "email",
            "full_name": "full_name",
            // exclude anything not declared
            "__else__": null,
        },
    },
}

Would become something like:
{
    "stream_maps": {
        "customers": {
            // exclude these since we're capturing them in the pii stream
            "__exclude__": ["email", "full_name"]
        },
        "customers_pii": {
            "__source__": "customers",
            // include just the PII and the customer_id
            "customer_id": "customer_id",
            "email": "email",
            "full_name": "full_name",
            // exclude anything not declared
            "__exclude_unmapped__": true
        },
    },
}

@aaronsteers is there potentially a fourth option where we have a check per plugin on whether or not an env_var is set? I'm thinking:
environments:
  - name: prod
    config:
      plugins:
        extractors:
          - name: tap-github
            env:
              NULL_KEEP: true

this would keep nulls for tap-github but if I had it for
environments:
  - name: dev
    env:
      NULL_KEEP: true

it would keep it for everything?
I propose this b/c my only hesitation with the feature flag option is that it's global and I can see users wanting to configure this behavior for specific plugins.
Long-term I like updating the SDK to use something other than null.

@tayloramurphy - I'm not sure honestly. We'd have to dig in deeper to know how this would actually handle.
For all the trouble this creates in the Meltano codebase, and potential complexities/risks it raises, I'm inclined to just add 'NULL' as an alias for null in the SDK - and then instruct Meltano users to send an allcaps string while we work on our longterm solve...

Verified that this works with mappers but not taps (Really hard to just get the config for mappers but here we go)
meltano.yml
version: 1
default_environment: dev
environments:
- name: dev
- name: staging
- name: prod
project_id: 8339108a-ba30-48ae-9dcc-8c50702ff803
plugins:
  extractors:
  - name: tap-csv
    variant: meltanolabs
    pip_url: git+https://github.com/MeltanoLabs/tap-csv.git
    config:
      stream_maps:
        customers_pii:
          email: email
          __else__:
      files:
        - entity: "in"
          path: "in.csv"
          keys: ["id"]
          delimiter: ","
  loaders:
  - name: target-jsonl
    variant: andyh1203
    pip_url: target-jsonl
  mappers:
  - name: transform-field
    variant: transferwise
    pip_url: pipelinewise-transform-field
    executable: transform-field
    mappings:
    - name: pipedrive-exclude-custom-fields
      config:
        stream_maps:
          activities:
            id: id
            deal_title: deal_title
            __else__:
        transformations:
          - field_id: "commit"
            tap_stream_name: "commits"
            field_paths: ["author/email", "committer/email"]
            type: "HASH"

meltano run tap-csv pipedrive-exclude-custom-fields target-jsonl
(monkey patch in a sleep in target-jsonl)
}visch@visch-ubuntu:~/git/meltano-projects/test_null_key_with_tap/.meltano/run/transform-field$ ls
mapper.90aa6695-2412-4909-975c-f1901713d331.config.json
visch@visch-ubuntu:~/git/meltano-projects/test_null_key_with_tap/.meltano/run/transform-field$ cat mapper.90aa6695-2412-4909-975c-f1901713d331.config.json
{
  "stream_maps": {
    "activities": {
      "id": "id",
      "deal_title": "deal_title",
      "__else__": null
    }
  },
  "transformations": [
    {
      "field_id": "commit",
      "tap_stream_name": "commits",
      "field_paths": [
        "author/email",
        "committer/email"
      ],
      "type": "HASH"
    }
  ]

Now that this merged, I think we can lower priority on this issue. Meltano will still purge null values from mappers' config, but users may now instead send __NULL__ to provide that null behavior.
https://github.com/meltano/sdk/pull/1262
In the long run, it's still worth trying to unwind that null handling behavior, but at a lower priority.

@sbalnojan - understood. This is not as of now prioritized and I'm not clear if (once prioritized) it would land in DevRel or Engineering:

https://github.com/meltano/meltano/issues/6412

To the point of this here issue, my point is only that sdk#1262 reduces the relative priority of this issue.

@tayloramurphy logging here that we had another user (and myself too) get stuck on this bug in slack today https://meltano.slack.com/archives/C01TCRBBJD7/p1671134681823139.
From my view mappers and stream maps are a differentiating meltano feature that gives flexibility and allows users to hack around broken taps/targets, especially since we are constantly recommending it in slack. It feels like we're very close to something super powerful if it was cleaned up and documented.
After skimming this issue I see that its a challenge to fix in meltano but it is really a meltano bug 😄 . It helps if its fixed in the SDK but all taps/targets need to be upgraded to get support back, even though it already works today and meltano's bug causes the null values to disappear.

The SDK docs mention:

To sync the stream as if it did not contain a primary key, simply set __key_properties__ to null.

We may want to update that: https://github.com/meltano/sdk/issues/2420


 :)
I don't think this is a bug, but I want to know what is happening.
I am using Nukihub for a while now, however I have never used it to open the door. Only to lock and unlock
Since a week I am using lock.open within HomeAssistant (lock is connected through Mosquitto MQTT, ssl encrypted) and I noticed that quite often the lock opens twice or even three times in a row (like 5-8 seconds in between). This is definitely not desirable, since my door physically opens once the lock opens.
I went through my settings and saw that I had these settings set, because I wanted to be sure the lock locks and unlocks at given events.
Number of retries if command failed: 2
Delay between retries (milliseconds): 100
This could explain the behaviour, but I would like to know how I can troubleshoot what is happening:

How can I debug if a command failed?
Is there a way to log every lock.open state? So far HomeAssistant is only logging lock.lock and lock.unlock

I can imagine that 100ms is to fast to even check if the command failed.
Otherwise I have a feature request:

Enable retries for lock.lock and lock.unlock seperate from lock.open

I am currently running on these versions:
Nuki lock: 3.7.7
Nukihub: 8.28

I use this config, never had any repetition issue operating the lock through Home Assistant.
Make sure you don't have any automation for the lock that is interfering. Regarding the debugging: the lock is operated through autodiscovery, that means through MQTT, so the only way is using HA debugging features and monitoring the MQTT broker topics (through MQTT Explorer).

You should enable MQTT logging to see more information on what's going wrong.

I use this config, never had any repetition issue operating the lock through Home Assistant.
Make sure you don't have any automation for the lock that is interfering. Regarding the debugging: the lock is operated through autodiscovery, that means through MQTT, so the only way is using HA debugging features and monitoring the MQTT broker topics (through MQTT Explorer).

Thanks for your reaction. I have set the same settings as you and then it is possible that the door opens three times in a row.

You should enable MQTT logging to see more information on what's going wrong.

Also thanks for the reply! For now I have disabled the number of retries, by putting it to zero and I have never faced a moment it didn't went through.
For me it seems like it's retrying even if it mostly succeeds.

It does not do that normally, so we would need the logs to see what's going wrong in your setup. (Alternatively you could log using the serial connection, but that is usually more cumbersome.)

I have set the same settings as you and then it is possible that the door opens three times in a row.

I don't understand: you applied my settings, and what happened? It retried 3 times?
I'm pretty confident that you have another app/sw/automation that is doing strange things. Make sure the Nuki Hub is the ONLY controller of the lock. You are not using the Nuki Bridge, are you?

It does not do that normally, so we would need the logs to see what's going wrong in your setup. (Alternatively you could log using the serial connection, but that is usually more cumbersome.)

I had to find time to reproduce. Meanwhile I have updated my lock to 8.31. Just enabled MQTT logging and was able to catch an event where my lock opened three times. One time the first action and then two retries.

I use this config, never had any repetition issue operating the lock through Home Assistant.
Make sure you don't have any automation for the lock that is interfering. Regarding the debugging: the lock is operated through autodiscovery, that means through MQTT, so the only way is using HA debugging features and monitoring the MQTT broker topics (through MQTT Explorer).

Thanks for the reply. To make troubleshooting clean I have set my settings to exactly the same as you: 3/300. Unfortunately I have had the same issues (as expected). I can guarantee you that there is no other automation interfering. I used only lock.lock and lock.open and disabled lock.open for the test. I have added the time-out from the MQTT logging.

I have set the same settings as you and then it is possible that the door opens three times in a row.

I don't understand: you applied my settings, and what happened? It retried 3 times?
I'm pretty confident that you have another app/sw/automation that is doing strange things. Make sure the Nuki Hub is the ONLY controller of the lock. You are not using the Nuki Bridge, are you?

Agree to disagree. I am pretty confident that the retry isn't working perfectly fine. I don't own an orriginal nuki hub and my bluetooth of my phone is always off.
I have attached what is happening. It seems that nukihub thinks the command failed, then retries. Unfortunately in real life the command doesn't fail. This results for me in a door which is opening multiple times.

It's not a matter of disagreeing, it's Computer Science, so we need to understand what's going on. :)
From what I know, if Nuki Hub reports this:

It means the lock replied with an error. But it's better if @technyon confirms this. I don't know if it's just a timeout expiring or an error returning from the lock via BT.
Once we know that, we can try to understand WHY this happens.

Yes it means an error occured, could be either a timeout or the lock reporting a problem.

It's a timeout, it says "Lock action result: timeout", that's 10 seconds.
Since this seems to be a problem in communication I'd start to check there. Is the ESP placed close enough to the lock?

Sorry...I missed that on the phone, I only saw the failed command message. My bad.
So indeed it's a communication issue. @Caros2017 check your BT...how far is the hub from the lock? Please provide the BT RSSI value...

Yes it means an error occured, could be either a timeout or the lock reporting a problem. It tried twice to send the command failed, then the third time it worked.

What I don't understand it says that the third time it worked, but actually it worked three times in a row. My door opened at first command, first retry and second retry.

@Caros2017: what's the BT RSSI value? I suspect BT connection with the lock is not very good.

The lock is in direct sight of the ESP. They are less then two meters apart.

What I don't understand it says that the third time it worked, but actually it worked three times in a row. My door opened at first command, first retry and second retry.

If the lock doesn't return a valid ACK to the command, the Hub retries...
So it seems the lock received the command, it executes it, but fails to return the ACK before timeout expires.
@technyon can you check the retry mechanism and make sure that timeout is not too strict, and also, before retry, can you check the state of the lock to make sure it's in the state we expect it? This way we would know if the state transitioned.

What I don't understand it says that the third time it worked, but actually it worked three times in a row. My door opened at first command, first retry and second retry.

If the lock doesn't return a valid ACK to the command, the Hub retries...
So it seems the lock received the command, it executes it, but fails to return the ACK before timeout expires.
@technyon can you check the retry mechanism and make sure that timeout is not too strict, and also, before retry, can you check the state of the lock to make sure it's in the state we expect it? This way we would know if the state transitioned.

But nukihub received the ack. In the above screenshots you can see that at 8:08:21 it sends unlatch and receives the ack at the same second.

But nukihub received the ack

to which unlatch command? the first/second or third? ;)
The log should be more verbose, and specify retry # etc.

If I look at the timestamps, it has to be the first one. It seems to be the actual timestamp.
8:08:21 -> Unlatch -> ACK

If I look at the timestamps, it has to be the first one. It seems to be the actual timestamp.
8:08:21 -> Unlatch -> ACK

I'm not sure...I think the timeout (300ms it seems) maybe it's too strict in some cases. Timestamps only show the seconds, we need milliseconds timestamps to understand precisely what's going wrong. And also the retry # when it retries.

I have faced the same problems (multiple retries) when I set the timeout at 5000ms (5 seconds).

You set it to 300ms now?

You set it to 300ms now? What ESP device are you using?

For the example logging above I uses indeed 300ms delay, retries 3.
For now I have disabled retries, since it's almost unusable. Most of the times I open the door it opens again one or two times..

Can you set it to 3000 and retry please? If it retries, it means the timeout logic is not working, or the ack is not understood, or there's a bug. But it doesn't happen to us. :)

I can confirm that's the case. I already experienced that. Do you need logging with that? If so I need to find some time and am wondering what you need :)

That number is about how long to wait between the delays. The actual timeout is hardcoded and is 10 seconds. I've enabled logging for the NUKI library, but that will result in a crazy amount of information is quite hard to read. I didn't write the library, so it's hard to read for me too, let's see how far we get. Also, this is serial logs, not MQTT since the logging is outside of my code. You can use for example HTERM and set it to 115200 baud.
nuki_hub-8.32-dbg-1.zip

Thanks. I need to find time to be able to do the debugging. Unfortunately it's not going to be coming week(s).
Short term solution for me: I have set retries to zero and made a flow in node red with checks the required state and solves it if it doesn't match.
Result: I have never experienced any difference between the desired state and the actual state.

Does that mean you still get the timeout error in the log, yet the lock opens?

That's exactly the case.

That's strange. So it seems that indeed the lock received and executed the command, but somehow the ESP didn't receive the confirmation. It's hard to say why that happens, so far you're the only one who reported this. Which lock are you using, and is your lock firmware up to date?

That's strange. So it seems that indeed the lock received and executed the command, but somehow the ESP didn't receive the confirmation. It's hard to say why that happens, so far you're the only one who reported this. Which lock are you using, and is your lock firmware up to date?

Type: Nuki 3.0 Pro
Nuki lock version: 3.7.7
Nukihub version: 8.28
I have never noticed it, since I haven't used the open command earlier. Other commands that repeat multiple times are no problem.
For now I have solved this in my flows. I just check if the current state equals the requested state. So far this hasn't been off. So probably the retry isn't nescessary for me, since it gives me more problems than it solves :)

Workarounds are ok, but there is indeed a problem: your Nuki receives commands but we don't know why it doesn't send ACKs. But the strange thing is that the rest is working, I mean status updates etc.
It's really weird, and nobody else has ever reported an issue like that.
Did you try another ESP device?

Did you try another ESP device?

No I haven't. I bought multiple ESP's, but they where either ESP-S3 or ESP2866. Then I realized ESP-S3 are not supported :( So this is the only one I have for this project, which I had laying around (M5Stack Atom Lite)

I'm also thinking this: tasmota devs told me (talking about other projects) that for the ESP32, doing bridging of BT+Wifi and also MQTT is a very heavy task. When these tiny cpus are stressed, power stability becomes very important. How are you powering the Atom? I use only Atoms here...I like M5Stack products.

@Caros2017 I'm sorry I can't fix this on ESP side, but I can't reproduce this. Since you found a workaround, I'm closing here for now.


Add progress bar while redesigning room or building

After clicking on the button to redesign a room or a building, this process could take a while.
It could be convenient to add a spinner or a progress bar.

Hello, I would like to try to resolve this issue.

hi @Sarrez this task is already assigned to @belenwebdev
Please pick an issue that's unassigned.
If you don't find any issue that interests you then let me know and I will be happy to help you pick one


Reduce payload sizes

I think we can shave off 100kb or so by using zlib to deflate the loo data bundle as a brotli compressed base64 encoded string.
Before we resort to that there are some more fundamental things we can do:

Map each id (example: 9844d4b07d20802345eda8d4) to a sequential number (mongoid??).
We could alternatively use the creation date/time timestamp to reference the toilet. That's 13 bytes instead of the current 24 bytes
OR! We could run a migration across our mongodb database so that all of our loos use small ids: https://github.com/ai/nanoid/#security
See if we can represent the location of each toilet in another way. Perhaps look into using "quadkeys" to represent the tile at a specific zoom level that the toilet resides in (https://github.com/joekarl/binary-quadkey#space-comparison)

Q: is this accurate enough?

I think we can shave off 100kb or so by using zlib to deflate the loo data bundle as a brotli compressed base64 encoded string.
I think before we resort to that there are some more fundamental things we can do:

Map each id (example: 9844d4b07d20802345eda8d4) to a sequential number (mongoid??).
See if we can represent the location of each toilet in another way. Perhaps look into using "quadkeys" to represent the tile at a specific zoom level that the toilet resides in (https://github.com/joekarl/binary-quadkey#space-comparison)

Q: is this accurate enough?

superceded by https://github.com/public-convenience-ltd/toiletmap/issues/1452


deleteNodeFarm(nodeId) : works for older nodes, not for newer nodes

A farmer of the TF Forum has trouble with the function deleteNodeFarm(nodeId) here https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftfchain.grid.tf#/extrinsics
source: https://forum.threefold.io/t/node-deletion-failed-closed/2897/16

Will be fixed with 2.2.0 release

Verified
Created a new node on devnet (Node ID 71) and was able to delete using function deleteNodeFarm(nodeId).

and was deleted successfully.


Improve performance of circuit_to_instruction for circuits without parameters

Summary
The performance of circuit_to_instruction is important for many operations involving the QuantumCircuit. We improve performance by avoiding an internal copy of the circuit when no parameters are present.
Details and comments
Benchmark:
from qiskit.circuit import QuantumCircuit

qc=QuantumCircuit(1)
qc.h(0)
qc.x(0)
%timeit qc.to_instruction()

Main: 127 µs ± 16.1 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)
PR: 68.1 µs ± 9.11 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)

If you're relying heavily on the performance of this method, you'll likely find it faster to build up custom Instruction instances yourself directly - you'll be able to skip all the copying / rewriting by building up the definition in the correct form from the start, and then not mutating it.  For example, you can do
from qiskit.circuit import QuantumCircuit, Instruction

defn = QuantumCircuit(1)
defn.h(0)
defn.x(0)
instr = Instruction("my_instruction", 1, 0, [])
instr.definition = defn

and it'll have zero cost other than the initial construction of the circuit.
You'll not be able to do that if you

can't rely on the definition circuit being built with flat registers
can't rely on the definition circuit not containing conditionals
need to mutate the definition circuit after you've created it (it'd also modify the instruction).

All that said, there's no harm in accepting the PR.  We could consider going further, and give QuantumCircuit.to_instruction and circuit_to_instruction (and similar for to_gate) a copy argument that can be set to False to do the simple definition-bind I described above, at the cost of taking ownership of the circuit object.

@jakelishman The exact location where the circuit_to_instruction() is used, is https://github.com/Qiskit-Extensions/qiskit-experiments/blob/6a06e7489dba5a84ae263d134622962d906beaf7/qiskit_experiments/library/randomized_benchmarking/clifford_utils.py#L140
A copy argument would work even better, as (needs to be checked) we can borrow the circuit argument. There would have to be a check on the conditionals and flat registers though (not sure how to do that)

That code in Experiments could probably be made a whole bunch faster on their side.  It's worth considering whether they want to do:
@lru_cache(maxsize=11520)
def _clifford_2q_int_to_gate(
    num: Integral, basis_gates: Optional[Tuple[str]]
) -> Gate:
    out = Gate(f"clifford2q_{num}", 2, [])
    out.definition = CliffordUtils.clifford_2_qubit_circuit(num, basis_gates)
    return out

which has eager synthesis and is cached at the module level, or whether they'd prefer to re-apply the @lru_cache decorator to CliffordUtils.cliff_2_qubit_circuit and instead do
def _clifford_2q_int_to_gate(num, basis_gates):
    out = Gate(f"clifford2q_{num}", 2, [])
    out._define = functools.partial(CliffordUtils.clifford_2_qubit_circuit(num, basis_gates))
    return out

which has lazy but cached synthesis.  Both would avoid all cost from conversion to instruction (though in the second case, you might want to check I got the pickling behaviour correct).
Again, that's not to say we shouldn't also improve circuit_to_instruction and circuit_to_gate on our side as well.


Legion_USE_OpenMP cmake condition not exported

I am trying to use a Legion CMake condition Legion_USE_OpenMP similar to this cmake condition to append the Legion OpenMP flags but looks like Legion_USE_OpenMP  condition is not being exported to its target.

If you're on master, please update to<PHONE_NUMBER>87885c3d704278eba5f414ab2cab57 and try again.

Please clone from our internal mirror here: https://gitlab.com/StanfordLegion/legion

Thank you, it works now.


Having QRScanner in View

What's happening?

How can we include QRScanner in flex. I am trying to put the QR Scanner showing on the middle only.
How can it be reproduced?

Build details?

This is a React Native styling issue and not a good fit for issues on this repo. Please take a look at the examples for default styling and more.


Always pings my server

Does anyone also experience what I've been experiencing for the past 3 days? Upon running my localtunnel, it always ping my server which makes my machine super slow.

Public service no longer active.


fix fix ip nullable param without check

What problem does this PR solve?
if we use ipv6_cidr_to_range function with nullable func which with invalid ipv6 will make be core
mysql> select id, ipv6_cidr_to_range(nullable(''), 32) from fn_test_ip_nullable order by id;

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
        - [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
    - [ ] Yes. <!-- Add document PR link here. eg: https://github.com/apache/doris-website/pull/1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->

run buildall

run buildall


Add nightly check for Syft update and automatically generate PR

We need a better way of keeping a pinned version of Syft up to date. After some discussion, it was agreed upon to have a periodic check that creates a PR when new versions of Syft are released.

Hopefully the last set of changes for this: https://github.com/anchore/sbom-action/pull/226


termscp: init at 0.7.0

Motivation for this change
Termscp is a feature rich terminal file transfer and explorer, with support for SCP/SFTP/FTP/S3. So basically is a terminal utility with an TUI to connect to a remote server to retrieve and upload files and to interact with the local file system.
https://github.com/veeso/termscp
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 142018 run on x86_64-linux 1

1 package built:

termscp


Move inquiries API path from /exp to /v1

It's time to move inquries from /exp to /api/v1.
API has not changed for months, and we have no short-medium term plans for changing it.
Time to move it to production path, which also resolves issues such as
https://github.com/StackStorm/st2/issues/4186

Hi, I'm not found /st2client/tests/base.py file, I have the following base.py files:
/opt/stackstorm/st2/lib/python2.7/site-packages/st2api/controllers/base.py
/opt/stackstorm/st2/lib/python2.7/site-packages/st2tests/base.py
I use ST2 2.10.0

@ivanmpk what is it that you're trying to do?

Hi I try modify files to inquiry works with environment variable, like this:
https://github.com/StackStorm/st2/pull/4495/files/b0936677d2cb1e625d5ee57dc252a7b41a85eff2
I use ST2 2.9.2 over OpenShift and API URL is not <IP_ADDRESS> and when execute st2 inquiry list get connection refused to host <IP_ADDRESS>

If you're trying to apply this patch manually on your system, why are you looking for a file named st2client/tests/base.py? I don't see any changes to that file in this PR.
It wouldn't matter anyway - the tests content is for unit tests. Are you trying to run those unit tests on your system? Or are you just trying to manually apply the actual code changes to your system?

Hi @LindsayHill thanks for your quickly answer, I'm not found this file on my system:
https://github.com/StackStorm/st2/blob/b0936677d2cb1e625d5ee57dc252a7b41a85eff2/st2api/tests/base.py
I try apply manually this changes on my system.

You don't need those /tests directories on a running system. Those are unit tests.


[WIP][BitSail][Connector] Migrate jdbc legacy source connector to V1 interface

Signed-off-by:
Pre-Checklist
Note: Please complete ALL items in the following checklist.

[x] I have read through the CONTRIBUTING.md documentation.
[x] My code has the necessary comments and documentation (if needed).
[x] I have added relevant tests.

Purpose

Some description about what this PR wants to do.
Approaches

Some description about how this PR achives the purpose.
Related Issues

e.g. Close #796
New Behavior (screenshots if needed)

N/A

It seems that it has not been updated for a while, and I look forward to your continuous contribution. @liugddx