After compile DCNv2 successful, still can not import DCN

(CenterTrack) ccv@SYS-4029GP-TRT:/media/data/CenterTrack-master/src$ python demo.py tracking --load_model ../models/coco_tracking.pth --demo ../data/ --gpus 2
import DCN failed
Import DCN failed
import DCN failed
import DCN failed
/home/ccv/miniconda3/envs/CenterTrack/lib/python3.6/site-packages/sklearn/utils/linear_assignment_.py:22: FutureWarning: The linear_assignment_ module is deprecated in 0.21 and will be removed from 0.23. Use scipy.optimize.linear_sum_assignment instead.
FutureWarning)
Running tracking
Using tracking threshold for out threshold! 0.3
Fix size testing.
training chunk_sizes: [32]
input h w: 512 512
heads {'hm': 80, 'reg': 2, 'wh': 2, 'tracking': 2}
weights {'hm': 1, 'reg': 1, 'wh': 0.1, 'tracking': 1}
head conv {'hm': [256], 'reg': [256], 'wh': [256], 'tracking': [256]}
Creating model...
Using node type: (<class 'model.networks.dla.DeformConv'>, <class 'model.networks.dla.DeformConv'>)
Warning: No ImageNet pretrain!!
Traceback (most recent call last):
File "demo.py", line 118, in
demo(opt)
File "demo.py", line 23, in demo
detector = Detector(opt)
File "/media/ccv/data/CenterTrack-master/src/lib/detector.py", line 33, in init
opt.arch, opt.heads, opt.head_conv, opt=opt)
File "/media/ccv/data/CenterTrack-master/src/lib/model/model.py", line 28, in create_model
model = model_class(num_layers, heads=head, head_convs=head_conv, opt=opt)
File "/media/ccv/data/CenterTrack-master/src/lib/model/networks/dla.py", line 611, in init
node_type=self.node_type)
File "/media/ccv/data/CenterTrack-master/src/lib/model/networks/dla.py", line 564, in init
node_type=node_type))
File "/media/ccv/data/CenterTrack-master/src/lib/model/networks/dla.py", line 526, in init
proj = node_type[0](c, o)
File "/media/ccv/data/CenterTrack-master/src/lib/model/networks/dla.py", line 513, in init
self.conv = DCN(chi, cho, kernel_size=(3,3), stride=1, padding=1, dilation=1, deformable_groups=1)
TypeError: 'NoneType' object is not callable

i am also facing same problem , any solution ?

@devendraswamy
I have no ideas.

I tried with torch =0.4.1 but no use
On Thu 7 May, 2020, 14:24 cs-heibao<EMAIL_ADDRESS>wrote:

@devendraswamy https://github.com/devendraswamy
I have no ideas.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/xingyizhou/CenterTrack/issues/53#issuecomment-625122792,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALLD6LRLEBNJXOQ5FAGGW7LRQJZNBANCNFSM4M26NFJA
.

I've tried pytorch==1.0.0/1.4.0/1.3.1 and torchvision==0.4.2/0.2, also can not run.

Could you try with torch==0.4.0 ? If not try with that one once.
On Thu 7 May, 2020, 15:18 cs-heibao<EMAIL_ADDRESS>wrote:

I've tried pytorch==1.0.0/1.4.0/1.3.1 and torchvision==0.4.2/0.2, also can
not run.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/xingyizhou/CenterTrack/issues/53#issuecomment-625149431,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALLD6LUXUADYL4GYE6KCJMLRQJ7WBANCNFSM4M26NFJA
.

It should work with torch >= 1.0. Can you un-comment the try/ except in the import dcnvs line and see what's the error message?

compile DCNv2 and add this to demo.py
import sys
sys.path.append("./lib/model/networks/DCNv2")

It should work with torch >= 1.0. Can you un-comment the try/ except in the import dcnvs line and see what's the error message?

Here is the error message:
Traceback (most recent call last):
  File "demo.py", line 13, in <module>
    from detector import Detector
  File "/content/drive/My Drive/CenterTrack/src/lib/detector.py", line 13, in <module>
    from model.model import create_model, load_model
  File "/content/drive/My Drive/CenterTrack/src/lib/model/model.py", line 10, in <module>
    from .networks.dla import DLASeg
  File "/content/drive/My Drive/CenterTrack/src/lib/model/networks/dla.py", line 18, in <module>
    from .DCNv2.dcn_v2 import DCN
  File "/content/drive/My Drive/CenterTrack/src/lib/model/networks/DCNv2/dcn_v2.py", line 13, in <module>
    import _ext as _backend
ImportError: /content/drive/My Drive/CenterTrack/src/lib/model/networks/DCNv2/_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass

It should work with torch >= 1.0. Can you un-comment the try/ except in the import dcnvs line and see what's the error message?

Here is the error message:

Traceback (most recent call last):

  File "demo.py", line 13, in <module>

    from detector import Detector

  File "/content/drive/My Drive/CenterTrack/src/lib/detector.py", line 13, in <module>

    from model.model import create_model, load_model

  File "/content/drive/My Drive/CenterTrack/src/lib/model/model.py", line 10, in <module>

    from .networks.dla import DLASeg

  File "/content/drive/My Drive/CenterTrack/src/lib/model/networks/dla.py", line 18, in <module>

    from .DCNv2.dcn_v2 import DCN

  File "/content/drive/My Drive/CenterTrack/src/lib/model/networks/DCNv2/dcn_v2.py", line 13, in <module>

    import _ext as _backend

ImportError: /content/drive/My Drive/CenterTrack/src/lib/model/networks/DCNv2/_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass

If you are on Colab have a look at this
[https://github.com/xingyizhou/CenterTrack/issues/49#issuecomment-623953678]

compile DCNv2 and add this to demo.py
import sys
sys.path.append("./lib/model/networks/DCNv2")

tried but failed

I try https://github.com/xingyizhou/CenterTrack/blob/master/readme/INSTALL.md again from step 2
,then can import dcn
maybe this step did not succeed last time
cd $CenterTrack_ROOT/src/lib/model/networks/
# git clone https://github.com/CharlesShang/DCNv2/ # clone if it is not automatically downloaded by `--recursive`.
cd DCNv2
./make.sh

but now I met
The NVIDIA driver on your system is too old (found version 10010).
Please update your GPU driver by downloading and installing a new
version from the URL: http://www.nvidia.com/Download/index.aspx
Alternatively, go to: https://pytorch.org to install
a PyTorch version that has been compiled with your version
of the CUDA driver.

 ❯ conda uninstall pytorch                                                                              [03:56:28]
Solving environment: done

==> WARNING: A newer version of conda exists. <==
  current version: 4.4.10
  latest version: 4.8.3

Please update conda by running

    $ conda update -n base conda

## Package Plan ##

  environment location: /root/anaconda3

  removed specs:
    - pytorch

The following packages will be REMOVED:

    pytorch:     1.0.0-py3.6_cuda10.0.130_cudnn7.4.1_1 pytorch [cuda100]
    torchvision: 0.2.1-py_2                            pytorch

❯ python                                                                                [04:17:17]
Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 17:14:51)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.__version__)
1.5.0

after conda uninstall pytorch，I install pytorch:
conda install pytorch==1.0.0 torchvision==0.2.1 cuda100 -c pytorch
Now :
import DCN failed
Import DCN failed
import DCN failed
import DCN failed
['/root/t/src/lib', '/root/t/src', '/root/anaconda3/lib/python36.zip', '/root/anaconda3/lib/python3.6', '/root/anaconda3/lib/python3.6/lib-dynload', '/root/anaconda3/lib/python3.6/site-packages', '/root/t/src/lib/model/networks/DCNv2', 'asdf']
Running tracking
Using tracking threshold for out threshold! 0.3
Fix size testing.
training chunk_sizes: [32]
input h w: 512 512
heads {'hm': 80, 'reg': 2, 'wh': 2, 'tracking': 2}
weights {'hm': 1, 'reg': 1, 'wh': 0.1, 'tracking': 1}
head conv {'hm': [256], 'reg': [256], 'wh': [256], 'tracking': [256]}
Creating model...
Using node type: (<class 'model.networks.dla.DeformConv'>, <class 'model.networks.dla.DeformConv'>)
Warning: No ImageNet pretrain!!
Traceback (most recent call last):
  File "demo.py", line 120, in <module>
    demo(opt)
  File "demo.py", line 25, in demo
    detector = Detector(opt)
  File "/root/t/src/lib/detector.py", line 33, in __init__
    opt.arch, opt.heads, opt.head_conv, opt=opt)
  File "/root/t/src/lib/model/model.py", line 28, in create_model
    model = model_class(num_layers, heads=head, head_convs=head_conv, opt=opt)
  File "/root/t/src/lib/model/networks/dla.py", line 611, in __init__
    node_type=self.node_type)
  File "/root/t/src/lib/model/networks/dla.py", line 564, in __init__
    node_type=node_type))
  File "/root/t/src/lib/model/networks/dla.py", line 526, in __init__
    proj = node_type[0](c, o)
  File "/root/t/src/lib/model/networks/dla.py", line 513, in __init__
    self.conv = DCN(chi, cho, kernel_size=(3,3), stride=1, padding=1, dilation=1, deformable_groups=1)
TypeError: 'NoneType' object is not callable
(base)
 ✘ ⚡ root@c8078b8b9e17  ~/t/src   master ⁝ ✱ 
 ❯ python demo.py tracking --load_model ../models/coco_tracking.pth --demo ~/d/aic/AIC20_track3/train/S01/c001/vdo.avi
import DCN failed
Import DCN failed
import DCN failed
import DCN failed
['/root/t/src/lib', '/root/t/src', '/root/anaconda3/lib/python36.zip', '/root/anaconda3/lib/python3.6', '/root/anaconda3/lib/python3.6/lib-dynload', '/root/anaconda3/lib/python3.6/site-packages', '/root/t/src/lib/model/networks/DCNv2']
Running tracking
Using tracking threshold for out threshold! 0.3
Fix size testing.
training chunk_sizes: [32]
input h w: 512 512
heads {'hm': 80, 'reg': 2, 'wh': 2, 'tracking': 2}
weights {'hm': 1, 'reg': 1, 'wh': 0.1, 'tracking': 1}
head conv {'hm': [256], 'reg': [256], 'wh': [256], 'tracking': [256]}
Creating model...
Using node type: (<class 'model.networks.dla.DeformConv'>, <class 'model.networks.dla.DeformConv'>)
Warning: No ImageNet pretrain!!
Traceback (most recent call last):
  File "demo.py", line 120, in <module>
    demo(opt)
  File "demo.py", line 25, in demo
    detector = Detector(opt)
  File "/root/t/src/lib/detector.py", line 33, in __init__
    opt.arch, opt.heads, opt.head_conv, opt=opt)
  File "/root/t/src/lib/model/model.py", line 28, in create_model
    model = model_class(num_layers, heads=head, head_convs=head_conv, opt=opt)
  File "/root/t/src/lib/model/networks/dla.py", line 611, in __init__
    node_type=self.node_type)
  File "/root/t/src/lib/model/networks/dla.py", line 564, in __init__
    node_type=node_type))
  File "/root/t/src/lib/model/networks/dla.py", line 526, in __init__
    proj = node_type[0](c, o)
  File "/root/t/src/lib/model/networks/dla.py", line 513, in __init__
    self.conv = DCN(chi, cho, kernel_size=(3,3), stride=1, padding=1, dilation=1, deformable_groups=1)
TypeError: 'NoneType' object is not callable

I tried with cuda 10.2 and pytorch 0.4, 1.0 but same error
On Wed 13 May, 2020, 10:44 Curiosity<EMAIL_ADDRESS>wrote:

after conda uninstall pytorch，I install pytorch:
conda install pytorch==1.0.0 torchvision==0.2.1 cuda100 -c pytorch
Now :
import DCN failed
Import DCN failed
import DCN failed
import DCN failed
['/root/t/src/lib', '/root/t/src', '/root/anaconda3/lib/python36.zip', '/root/anaconda3/lib/python3.6', '/root/anaconda3/lib/python3.6/lib-dynload', '/root/anaconda3/lib/python3.6/site-packages', '/root/t/src/lib/model/networks/DCNv2', 'asdf']
Running tracking
Using tracking threshold for out threshold! 0.3
Fix size testing.
training chunk_sizes: [32]
input h w: 512 512
heads {'hm': 80, 'reg': 2, 'wh': 2, 'tracking': 2}
weights {'hm': 1, 'reg': 1, 'wh': 0.1, 'tracking': 1}
head conv {'hm': [256], 'reg': [256], 'wh': [256], 'tracking': [256]}
Creating model...
Using node type: (<class 'model.networks.dla.DeformConv'>, <class 'model.networks.dla.DeformConv'>)
Warning: No ImageNet pretrain!!
Traceback (most recent call last):
File "demo.py", line 120, in
demo(opt)

File "demo.py", line 25, in demo
detector = Detector(opt)

File "/root/t/src/lib/detector.py", line 33, in init
opt.arch, opt.heads, opt.head_conv, opt=opt)

File "/root/t/src/lib/model/model.py", line 28, in create_model
model = model_class(num_layers, heads=head, head_convs=head_conv, opt=opt)

File "/root/t/src/lib/model/networks/dla.py", line 611, in init
node_type=self.node_type)

File "/root/t/src/lib/model/networks/dla.py", line 564, in init
node_type=node_type))

File "/root/t/src/lib/model/networks/dla.py", line 526, in init
proj = node_type[0](c, o)

File "/root/t/src/lib/model/networks/dla.py", line 513, in init
self.conv = DCN(chi, cho, kernel_size=(3,3), stride=1, padding=1, dilation=1, deformable_groups=1)

TypeError: 'NoneType' object is not callable
(base)
✘ ⚡ root@c8078b8b9e17  ~/t/src   master ⁝ ✱ 
❯ python demo.py tracking --load_model ../models/coco_tracking.pth --demo ~/d/aic/AIC20_track3/train/S01/c001/vdo.avi
import DCN failed
Import DCN failed
import DCN failed
import DCN failed
['/root/t/src/lib', '/root/t/src', '/root/anaconda3/lib/python36.zip', '/root/anaconda3/lib/python3.6', '/root/anaconda3/lib/python3.6/lib-dynload', '/root/anaconda3/lib/python3.6/site-packages', '/root/t/src/lib/model/networks/DCNv2']
Running tracking
Using tracking threshold for out threshold! 0.3
Fix size testing.
training chunk_sizes: [32]
input h w: 512 512
heads {'hm': 80, 'reg': 2, 'wh': 2, 'tracking': 2}
weights {'hm': 1, 'reg': 1, 'wh': 0.1, 'tracking': 1}
head conv {'hm': [256], 'reg': [256], 'wh': [256], 'tracking': [256]}
Creating model...
Using node type: (<class 'model.networks.dla.DeformConv'>, <class 'model.networks.dla.DeformConv'>)
Warning: No ImageNet pretrain!!
Traceback (most recent call last):
File "demo.py", line 120, in
demo(opt)

File "demo.py", line 25, in demo
detector = Detector(opt)

File "/root/t/src/lib/detector.py", line 33, in init
opt.arch, opt.heads, opt.head_conv, opt=opt)

File "/root/t/src/lib/model/model.py", line 28, in create_model
model = model_class(num_layers, heads=head, head_convs=head_conv, opt=opt)

File "/root/t/src/lib/model/networks/dla.py", line 611, in init
node_type=self.node_type)

File "/root/t/src/lib/model/networks/dla.py", line 564, in init
node_type=node_type))

File "/root/t/src/lib/model/networks/dla.py", line 526, in init
proj = node_type[0](c, o)

File "/root/t/src/lib/model/networks/dla.py", line 513, in init
self.conv = DCN(chi, cho, kernel_size=(3,3), stride=1, padding=1, dilation=1, deformable_groups=1)

TypeError: 'NoneType' object is not callable
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/xingyizhou/CenterTrack/issues/53#issuecomment-627750640,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALLD6LQZPX45PJNQCOEQOLLRRIUEBANCNFSM4M26NFJA
.

It should work with torch >= 1.0. Can you un-comment the try/ except in the import dcnvs line and see what's the error message?

You mean here? https://github.com/xingyizhou/CenterTrack/blob/04fe46ca61f2b029249c33516241028b0dfb0b6f/src/lib/model/networks/dla.py#L18
but it has already been un-commented by you.

Cannot understand why there are so many installation errors. Did the authors try their posted instructions? We are exactly following your posted instructions, while so many compatible errors coming. It really wastes a lot of time.

Cannot understand why there are so many installation errors. Did the authors try their posted instructions? We are exactly following your posted instructions, while so many compatible errors coming. It really wastes a lot of time.

After installing pytorch 1.4, I can run demo.py successfully.

I have installed pytorch 1.4 I can not run demo.py what is wrong ?
my conda environment is :
_libgcc_mutex             0.1                        main    defaults
_pytorch_select           0.2                       gpu_0    defaults
attrs                     19.3.0
backcall                  0.2.0
blas                      1.0                         mkl    defaults
bleach                    3.1.5
ca-certificates           2020.1.1                      0    defaults
cachetools                4.1.0
certifi                   2<IP_ADDRESS>               py36_0    defaults
cffi                      1.14.0           py36he30daa8_1    defaults
cudatoolkit               10.0.130                      0    defaults
cudnn                     7.6.5                cuda10.0_0    defaults
cycler                    0.10.0
Cython                    0.29.1
decorator                 4.4.2
defusedxml                0.6.0
descartes                 1.1.0
easydict                  1.9
entrypoints               0.3
flake8                    3.8.3
flake8-import-order       0.18.1
freetype                  2.9.1                h8a8886c_1    defaults
importlib-metadata        1.6.1
intel-openmp              2020.1                      217    defaults
ipykernel                 5.3.0
ipython                   7.15.0
ipython-genutils          0.2.0
ipywidgets                7.5.1
jedi                      0.17.0
Jinja2                    2.11.2
joblib                    0.15.1
jpeg                      9b                   h024ee3a_2    defaults
jsonschema                3.2.0
jupyter                   1.0.0
jupyter-client            6.1.3
jupyter-console           6.1.0
jupyter-core              4.6.3
kiwisolver                1.2.0
ld_impl_linux-64          2.33.1               h53a641e_7    defaults
libedit                   3.1.20181209         hc058e9b_0    defaults
libffi                    3.3                  he6710b0_1    defaults
libgcc-ng                 9.1.0                hdf63c60_0    defaults
libgfortran-ng            7.3.0                hdf63c60_0    defaults
libpng                    1.6.37               hbc83047_0    defaults
libstdcxx-ng              9.1.0                hdf63c60_0    defaults
libtiff                   4.1.0                h2733197_1    defaults
llvmlite                  0.32.1
lz4-c                     1.9.2                he6710b0_0    defaults
MarkupSafe                1.1.1
matplotlib                3.2.0
mccabe                    0.6.1
mistune                   0.8.4
mkl                       2020.1                      217    defaults
mkl-service               2.3.0            py36he904b0f_0    defaults
mkl_fft                   1.0.15           py36ha843d7b_0    defaults
mkl_random                1.1.1            py36h0573a6f_0    defaults
more-itertools            8.3.0
motmetrics                1.2.0
nbconvert                 5.6.1
nbformat                  5.0.7
ncurses                   6.2                  he6710b0_1    defaults
ninja                     1.9.0            py36hfd86e86_0    defaults
notebook                  6.0.3
numba                     0.49.1
numpy                     1.18.1           py36h4f9e942_0    defaults
numpy-base                1.18.1           py36hde5b4d6_1    defaults
nuscenes-devkit           1.0.3
olefile                   0.46                       py_0    defaults
opencv-python             <IP_ADDRESS>
openssl                   1.1.1g               h7b6447c_0    defaults
packaging                 20.4
pandas                    1.0.4
pandocfilters             1.4.2
parso                     0.7.0
pexpect                   4.8.0
pickleshare               0.7.5
pillow                    7.1.2            py36hb39fc2d_0    defaults
pip                       20.0.2                   py36_3    defaults
pluggy                    0.13.1
progress                  1.5
prometheus-client         0.8.0
prompt-toolkit            3.0.5
ptyprocess                0.6.0
py                        1.8.1
py-cpuinfo                5.0.0
pycocotools               2.0
pycodestyle               2.6.0
pycparser                 2.20                       py_0    defaults
pyflakes                  2.2.0
Pygments                  2.6.1
pyparsing                 2.4.7
pyquaternion              0.9.5
pyrsistent                0.16.0
pytest                    5.4.3
pytest-benchmark          3.2.3
python                    3.6.10               h7579374_2    defaults
python-dateutil           2.8.1
pytorch                   1.4.0           py3.6_cuda10.0.130_cudnn7.6.3_0    file:///home/yin/下载
pytz                      2020.1
PyYAML                    5.3.1
pyzmq                     19.0.1
qtconsole                 4.7.4
QtPy                      1.9.0
readline                  8.0                  h7b6447c_0    defaults
scikit-learn              0.22.2
scipy                     1.4.1
Send2Trash                1.5.0
setuptools                47.1.1                   py36_0    defaults
Shapely                   1.7.0
six                       1.15.0                     py_0    defaults
sqlite                    3.31.1               h62c20be_1    defaults
terminado                 0.8.3
testpath                  0.4.4
threadpoolctl             2.1.0
tk                        8.6.8                hbc83047_0    defaults
torchvision               0.5.0                py36_cu100    file:///home/yin/下载
tornado                   6.0.4
tqdm                      4.19.9
traitlets                 4.3.3
wcwidth                   0.2.4
webencodings              0.5.1
wheel                     0.34.2                   py36_0    defaults
widgetsnbextension        3.5.1
xmltodict                 0.12.0
xz                        5.2.5                h7b6447c_0    defaults
zipp                      3.1.0
zlib                      1.2.11               h7b6447c_3    defaults
zstd                      1.4.4                h0b5b093_3    defaults
(CenterTrack) yin@hai:~/CenterTrack/src$ python demo.py tracking,ddd --load_model ../models/nuScenes_3Dtracking.pth --dataset nuscenes --pre_hm --track_thresh 0.1 --demo ../videos/nuscenes_mini.mp4 --test_focal_length 633
import DCN failed
Import DCN failed
import DCN failed
import DCN failed
/home/yin/anaconda3/envs/CenterTrack/lib/python3.6/site-packages/sklearn/utils/linear_assignment_.py:22: FutureWarning: The linear_assignment_ module is deprecated in 0.21 and will be removed from 0.23. Use scipy.optimize.linear_sum_assignment instead.
FutureWarning)
Running tracking
Using tracking threshold for out threshold! 0.1
Fix size testing.
training chunk_sizes: [32]
input h w: 448 800
heads {'hm': 10, 'reg': 2, 'wh': 2, 'tracking': 2, 'dep': 1, 'rot': 8, 'dim': 3, 'amodel_offset': 2}
weights {'hm': 1, 'reg': 1, 'wh': 0.1, 'tracking': 1, 'dep': 1, 'rot': 1, 'dim': 1, 'amodel_offset': 1}
head conv {'hm': [256], 'reg': [256], 'wh': [256], 'tracking': [256], 'dep': [256], 'rot': [256], 'dim': [256], 'amodel_offset': [256]}
Creating model...
Using node type: (<class 'model.networks.dla.DeformConv'>, <class 'model.networks.dla.DeformConv'>)
Warning: No ImageNet pretrain!!
Traceback (most recent call last):
File "demo.py", line 128, in
demo(opt)
File "demo.py", line 26, in demo
detector = Detector(opt)
File "/home/yin/CenterTrack/src/lib/detector.py", line 33, in init
opt.arch, opt.heads, opt.head_conv, opt=opt)
File "/home/yin/CenterTrack/src/lib/model/model.py", line 28, in create_model
model = model_class(num_layers, heads=head, head_convs=head_conv, opt=opt)
File "/home/yin/CenterTrack/src/lib/model/networks/dla.py", line 611, in init
node_type=self.node_type)
File "/home/yin/CenterTrack/src/lib/model/networks/dla.py", line 564, in init
node_type=node_type))
File "/home/yin/CenterTrack/src/lib/model/networks/dla.py", line 526, in init
proj = node_type[0](c, o)
File "/home/yin/CenterTrack/src/lib/model/networks/dla.py", line 513, in init
self.conv = DCN(chi, cho, kernel_size=(3,3), stride=1, padding=1, dilation=1, deformable_groups=1)
TypeError: 'NoneType' object is not callable

Check the directory where you cloned DCN and make sure it is in %cd $CenterTrack_ROOT/src/lib/model/networks/

compile DCNv2 and add this to demo.py
import sys
sys.path.append("./lib/model/networks/DCNv2")

This worked

i met the same problem
i re_compile it ,it worked

so terrible README ，I'm confused about which version of these modules on earth!

@cs-heibao  I tried on pytorch=1.4 torchvision=0.5.0 cudatoolkit=10.1 CUDA=10.2. I also met the same problem.

I encountered all the above problems and tried all the methods. After analysis, the torch version of the compiled DCNv2 must be the same as the torch version finally used before it can run. I re-used torch==1.4.0+cu100 and deleted the build folder of DCNv2 and recompiled DCNv2.Finnally,it works.

If you build Docker container according to this pull request https://github.com/xingyizhou/CenterTrack/pull/176, you don't need to recompile DCNv2.

After compiling DCNv2, change all:
from .DCNv2.dcn_v2 import DCN, to:
from dcn_v2 import DCN

Remove previous python, and remove installed DCNv2, then installed your required python version
Clone python version compatible DCNv2 and build it. Worked for me. Could worked for you as well.

git clone https://github.com/lbin/DCNv2 -b pytorch_1.5
cd DCNv2
./make.sh

(CenterTrack) ccv@SYS-4029GP-TRT:/media/data/CenterTrack-master/src$ python demo.py tracking --load_model ../models/coco_tracking.pth --demo ../data/ --gpus 2
import DCN failed
Import DCN failed
import DCN failed
import DCN failed
/home/ccv/miniconda3/envs/CenterTrack/lib/python3.6/site-packages/sklearn/utils/linear_assignment_.py:22: FutureWarning: The linear_assignment_ module is deprecated in 0.21 and will be removed from 0.23. Use scipy.optimize.linear_sum_assignment instead.
FutureWarning)
Running tracking
Using tracking threshold for out threshold! 0.3
Fix size testing.
training chunk_sizes: [32]
input h w: 512 512
heads {'hm': 80, 'reg': 2, 'wh': 2, 'tracking': 2}
weights {'hm': 1, 'reg': 1, 'wh': 0.1, 'tracking': 1}
head conv {'hm': [256], 'reg': [256], 'wh': [256], 'tracking': [256]}
Creating model...
Using node type: (<class 'model.networks.dla.DeformConv'>, <class 'model.networks.dla.DeformConv'>)
Warning: No ImageNet pretrain!!
Traceback (most recent call last):
File "demo.py", line 118, in
demo(opt)
File "demo.py", line 23, in demo
detector = Detector(opt)
File "/media/ccv/data/CenterTrack-master/src/lib/detector.py", line 33, in init
opt.arch, opt.heads, opt.head_conv, opt=opt)
File "/media/ccv/data/CenterTrack-master/src/lib/model/model.py", line 28, in create_model
model = model_class(num_layers, heads=head, head_convs=head_conv, opt=opt)
File "/media/ccv/data/CenterTrack-master/src/lib/model/networks/dla.py", line 611, in init
node_type=self.node_type)
File "/media/ccv/data/CenterTrack-master/src/lib/model/networks/dla.py", line 564, in init
node_type=node_type))
File "/media/ccv/data/CenterTrack-master/src/lib/model/networks/dla.py", line 526, in init
proj = node_type[0](c, o)
File "/media/ccv/data/CenterTrack-master/src/lib/model/networks/dla.py", line 513, in init
self.conv = DCN(chi, cho, kernel_size=(3,3), stride=1, padding=1, dilation=1, deformable_groups=1)
TypeError: 'NoneType' object is not callable

i had tha same error. I first thought i compiled DCNv2 correctly and in my case it was not. so I ran 'python setup.py build develop' command mannualy inside my DCNv2 folder and it compiled DCNv2 successfully. It solved the problem and I got rid of the error. hope this helps.

From my experience,  you shold import DCNv2 package under certain folder which named "DCNv2";

cd $CenterTrack_ROOT/src/lib/model/networks/
git clone https://github.com/CharlesShang/DCNv2/ # clone if it is not automatically downloaded by --recursive.
cd DCNv2
./make.sh
=>>>>>>
RuntimeError: Error compiling objects for extension

=1.4 torchvision=0.5.0 cudatoolkit=10.1 CUDA=10.2.

Do you need change pytorch version when compile DCNv2？ which means use 2 different package lists

@cs-heibao I think I sovled this problem. I tried on pytorch=1.4 torchvision=0.5.0 cudatoolkit=10.1 CUDA=10.2. I also met the same problem. If you reinstall your pytorch, torchvision,cudatoolkit or CUDA, you must compile DCNv2 again like your first action. And the problem may be solved! The results is shown below.

Do you need change pytorch version when compile DCNv2？ which means use 2 different package lists


'R-Group Label Tool' and 'Shape Eclipse' buttons should not be expanded

'R-Group Label Tool' and 'Shape Eclipse' buttons are expanded when screen height is 931 px and more. All tools that in the drop-down list of those buttons became separate buttons.
'R-Group Label Tool' and 'Shape Eclipse' buttons should not be expanded at any screen height.
Steps to reproduce:

Launch Ketcher
Change the screen size to 1200 x 931.

Actual result:
'R-Group Label Tool' and 'Shape Eclipse' buttons are expanded.
Expected result:
'R-Group Label Tool' and 'Shape Eclipse' buttons are not expanded.

Release/2.4 The issue is verified and closed.


Fails if any invalid semver tags

It would be helpful if the tool had an option to report but ignore invalid semver tags in a repo instead of failing.

Hi 👋
I'll look into this. Do you have any invalid semver tag in particular? An error message? A repository name that you tried but failed to download due to invalid version ?

For tag examples, the following failed:

A tag that is just completely not semver, used for other purposes, nipkg-feed
A tag that is incorrect semver (and I think fine if ignored), v<IP_ADDRESS>

Hello @rajsite
Thanks for reporting the issue. This has been fixed, as of v1.1.8 😉
Wrong semver versions will be coersed to the closest semver versions (and thus won't be ignored).


Create Unit test suite

Test:

That sl-input-based mixin is mixed in
That sl-tooltip-enabled mixin is mixed in
Default values
all methods
properties observed by computed property

@notmessenger please assign me this as most of my issues are waiting for final pr review or done.


util: refactor comp

comp produces a variadic tuple of callables, rather than two fixed callables as before
no functional changes

Codecov Report

Merging #6 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
+ Coverage    98.8%   98.83%   +0.02%
==========================================
  Files         115      116       +1
  Lines        1595     1628      +33
==========================================
+ Hits         1576     1609      +33
  Misses         19       19

Impacted Files
Coverage Δ

zug/compat/apply.hpp
100% <ø> (ø)
:arrow_up:

zug/compat/invoke.hpp
100% <ø> (ø)
:arrow_up:

test/transducer/unzip.cpp
100% <ø> (ø)
:arrow_up:

test/util.cpp
100% <100%> (ø)

zug/util.hpp
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

We are still on C++14! But point taken...

I dreamed we were talking about Lager.  Dumb me.

It is looking great :+1:  Some minor changes I'd suggest:

Rename detail::compose -> detail::invoke_composition_impl
Instead of taking a integral constant and the tuple as an template arguent, make it take two std::size_t (the current index and the tuple size, initialized to <0, std::tuple_size<...>::value> by invoke_composition itself). This shall remove some of the boiler-plate and make the type instatiations smaller.

I think once those changes are in we are ready to merge!

Oh, one thing: the last change also means you have to add Fns as a template argument to apply(), this is a good thing though, since it allows you to use forwarding there.

That's beautiful code! Let's merge once it get green on Travis :+1:

:tada:


Force Media RM to always have 1 primary record

to always ensure 1 record is primary

if current record is primary, unset others
if current is not primary, set other as primary
if no other record is primary, current will be primary
after delete, if no primary record, set other as primary

Just thinking, would this sort of thing be better off in an observer/listener, since media can be changed without the panel this code will never fire.

Just thinking, would this sort of thing be better off in an observer/listener, since media can be changed without the panel this code will never fire.

That is very true, and I have considered that. But why I didn’t implement as observer is because of bulk delete, it will trigger for all.
I can implement as observer to be inline with default flag as other model.

Yeah we have something similar here https://github.com/lunarphp/lunar/blob/1.x/packages/core/src/Observers/UrlObserver.php if that was what you was referring to?

Yeah we have something similar here https://github.com/lunarphp/lunar/blob/1.x/packages/core/src/Observers/UrlObserver.php if that was what you was referring to?

Yup

@alecritson I've updated the implementation to use observer

Thanks @wychoong it would be good to have a few test assertions for this as it's quite complex

Thanks @wychoong it would be good to have a few test assertions for this as it's quite complex

Added the test.
should the observer apply to:
a. all collections
b. or only the one configured in config('lunar.media.collection')
c. or all collections only if the media is with custom_properties.primary = true


Fixes loaderURL inspector setting.

In the inspector, the loaderURL got broken -- fixing that. Trivial.
(Regression after ee841054353386e947a93001848cd45ac91fd0c3)

/botio test


Wrong coverage using the example Github Workflows in the documentaiton

Do the checklist before filing an issue:

[x] Is this related to the actions-rs Actions?
If you think it's a problem related to Github Actions in general, use GitHub Community forum instead: https://github.community
[ ] You've read the Contributing section about bugs reporting: https://github.com/actions-rs/.github/blob/master/CONTRIBUTING.md#reporting-bugs
[ ] Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.

Description
Using a Github Workflow like the one suggested in the documentation, macro invocation is considered as not covered by tests, although it is.
Workflow code
  test:
    name: Test
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
        with:
          lfs: true

      - uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
          override: true

      - uses: actions-rs/cargo@v1
        with:
          command: test
        args: --all-features
        env:
          CARGO_INCREMENTAL: '0'
          RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests -Cinstrument-coverage'
          RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests -Cinstrument-coverage'

      - uses<EMAIL_ADDRESS>        id: coverage
        name: Generate code coverage

      - name: Upload to codecov.io
        uses: codecov/codecov-action@v3
        with:
          files: ${{ steps.coverage.outputs.report }}
          token: ${{ secrets.CODECOV_TOKEN }}

Expected behavior
This code of the thiserror macro be covered, instead it is not:
#[derive(Error, Debug, PartialEq, Eq)]
pub enum EncodingFormatParsingError {
    #[error("Unexpected encoding {0}")] // line not covered
    UnexpectedEncoding(String),
}

See #141 if Rust stable works better for you


Static build contains invalid URLs referencing the /src/ directory

When using your template repo without any modifications and running a build, the resulting file dist/static/index.html contains two errors:

One of the CSS styles looks like this: background:url(/src/components/TropicalPhotoButton/gunayala.jpg).
The expected URL here would be something like /assets/gunayala.f6132071.jpg.
The favicon also contains an invalid URL: <link data-rh="" rel="icon" type="image/png" href="/src/layouts/favicon.png"/>
The expected URL here would be something like /assets/favicon.1be1fd30.png.

The errors seem to be caused by module imports not being converted to the correct output URLs during build.
Not sure if it's relevant, but I'm running the build on Windows 10.

Thanks for the report, I see the same thing. I'll take a look!

This was introduced in v10.0.0, specifically the switch to vite.ssrLoadModule for the build.
Turns out using ssrLoadModule doesn't result in transformed URLs and isn't recommended for production builds 🙁
I've tried to find an easy way around this, but type="module" seems to foil all my attempts. I think I'm going to have to switch back and solve #28 and #35 another way

Thanks again for reporting this @rutzfutz, it should be fixed in https://github.com/bensmithett/tropical/releases/tag/v10.1.0.
Getting the fix should be a simple merge of upstream changes


Design high fidelity wire-frames

As referenced in #1 , I am going to design the app using Affinity Designer. I will prepare few different designs to chose from.

This is the first version of the app design. Grey scale only to keep our focus on information flow and user experience. I'm also working on creating some user stories, will post them later.
Comments and feedback welcome.

Good job i like the tone and simplicity. I believe you will come out with the desktop version as well

User Stories
As a user, I want to create a new ToDo:

see the welcome screen
click on New ToDo button
screen changes to New ToDo screen
type the new ToDo
press enter or tap the 'plus' button
ToDo is added to the list below

As a user, I want to add some information about a ToDo:

select the ToDo by clicking or tapping
screen changes to ToDo Options
click or tap on 'add deadline', phone's native calendar app opens to select a date/time
click or tap on 'add description', type a description of the ToDo
click or tap on 'Save' to save

As a user, I want to make ToDo as completed:

select the tick on the left of the ToDo by clicking or tapping
tick becomes green, ToDo's becomes grey
ToDo is automatically removed by the end of the day

As a user, I want to cancel a ToDo:

select the cross on the right of the ToDo by clicking or tapping
cross becomes red, ToDo is striked through
ToDo is automatically removed by the end of the day

As a user, I want to create a new Project

see the welcome screen
click on New Project button
screen changes to New Project screen
click or tap on 'add description' to add description of the project
click or tap on 'Create' to create a new project

or

see the welcome screen
click or tap on the hamburger menu button on the top right of the screen
click or tap on New Project
screen changes to New Project screen
click or tap on 'add description' to add description of the project
click or tap on 'Create' to create a new project

As a user, I want to create a new group Project

see the welcome screen
click on New Project button
screen changes to New Project screen
click or tap on 'add description' to add description of the project
click or tap on the 'email' input field to add an email of another user
click or tap on the 'plus' button to add user
repeat to add additional users
click or tap on 'Create' to create a new project

As a user, I want to access the statistics of a group ToDo

see the welcome screen
click or tap on the hamburger menu button on the top right of the screen
see a list of all available Projects
select the project
screen changes to the Project screen
click or tap on the 'Statistics' button on the lower part of the screen
statistics about the project is displayed

As a user, I want to access the information about a group ToDo

see the welcome screen
click or tap on the hamburger menu button on the top right of the screen
see a list of all available Projects
select the project
screen changes to the Project screen
click or tap on the 'Project Info' button on the lower part of the screen
details about the project are displayed

As a user, I want to add new ToDo to a group ToDo

see the welcome screen
click or tap on the hamburger menu button on the top right of the screen
see a list of all available Projects
select the project
screen changes to the Project screen
click or tap on 'New ToDo'
type the new ToDo
press enter or tap the 'plus' button
ToDo is added to the list below

As a user, I want to change details or add users to a group ToDo

see the welcome screen
click or tap on the hamburger menu button on the top right of the screen
see a list of all available Projects
select the project
screen changes to the Project screen
click or tap on the 'Project Info' button on the lower part of the screen
lick or tap on the 'Edit' button
screen changes to 'Edit Project' screen
click or tap to edit description
click or tap on the 'plus' button to add user
click or tap the 'Save' button to save

As a user, I want to change user settings

see the welcome screen
click or tap on the hamburger menu button on the top right of the screen
click or tap on 'Settings'
screen changes to User Settings
click or tap on 'Name' input field to add/change user name
click or tap on 'Email' input field to add/change user email address
click or tap on 'Twitter' input field to add/change user Twitter handle
click or tap on 'Facebook' input field to add/change user Facebook name
click or tap on 'Save' to save new settings

I have created a mock-up for the desktop version. The layout would be pretty much the same as on the mobile app, it would just be centered on the larger screen.
I have few possible colour palettes - they are just an example, I can use any other. I'm also experimenting with background pattern for the top part of the app - I'll add it once I have something half decent.

Really like these new concepts. Personally I prefer the plain colours and gradients but as you say this could be a user preference anyway. A lot of detail in the user stories too---they should provide guidance as we develop the app.

Thank you @thornecc . I also added another variation (last image), when the button will be the same colour as the background. That will be the same for the rest of the app as well, once we (or the user) decide on the colour, it will be consistent through the app.
I can start coding this up, if you're happy with it? Will give few more days to anyone else to comment on it first, though.

Cool design @zk433 , I like the colours and the simplicity.
I have concerns about the behaviour of toDo Tasks.

According to the user stories, I understand if the user want to cancel a toDo, he will press the cross. Then a red stroke appear on the tasks that would be removed by the end of the day. For me I would prefer cancelled task should be vanished from the list or moved to a bin?
Tick means the task is finished. But cross could refer to both delete or unfinished. Maybe replaced with a trash can as following?

Hi @owenip , thank you for the feedback.
Do you mean that once cancelled, the task should immediately dissapear? Or is it just about the icon?
I was thinking of leaving the task there (crossed) for the rest of the day in case the user decided to 'bring it back to life'. But it's definitely possible to remove straight away (in which case the 'trash can' icon would be more suitable.
We can also introduce a message that will ask the user for a confirmation, whether they really want to delete the todo.

I would prefer the task immediately disappear after cancelled. Perhaps cancelled tasks can be moved to bin (basically a project that being cleaned by the end of the day). So users could retrieve them if needed.
And yes, a confirmation before deleting would be helpful.

I can definitely implement this. I could add the Bin to the main menu and the confirmation message could include info like "deleted messages will be stored in the Bin for the 24 hours".
@thornecc , what do you think?

This seems reasonable. Perhaps something like Google Inbox, where deleting an item creates a notification with an "Undo" button for a few seconds.

I'll change the icon to a trash can and add this to the user stories.
If there is a 'undo' button, then the confirmation message would be redundant, no?

The undo button is inside the confirmation. Like in Wittr when an updated service worker is waiting there was an update notification with Reload and Dismiss buttons.

Oh yes, I get it now. Changes are on their way.

Mockup has been updated with new trash can icon (see above) and the User Stories have been updated accordingly.


Updated sharding for QK layernorm due to Github Issue.

https://github.com/google/maxtext/issues/41
(Holding off on merging until confirmed fixed)

Fix is confirmed by customer.


ProcesseException : process “E:\tarladan_eve\hello\helloo\android\gradlew.bat” exited abnormally:

<

Help me please

Hi @husnusezer
can you please provide your updated  flutter doctor -v
and your flutter run --verbose?
Also, to better address the issue, would be helpful
if you could post  a minimal code sample
or the steps to reproduce the problem.
Please refrain from posting pictures if not necessary.
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v'  please.
All system setups can be slightly different so its always better to open new issues and reference related issues.


training performance of intrinsic module different from mlagents icm module

Hello,
I used the example code provided: https://github.com/yuanmingqi/rl-exploration-baselines/blob/main/examples/ppo_re3_bullet.py
to compute intrinsic rewards using ICM module. I found the results were different from what I have got from running mlagents icm module. This is against the custom unity game wrapped in gym wrapper. Can you please let me know what could be different that I must be missing? Thank you so much for the help. I can also share the code.

Hello! We've published a big update that provides more reasonable implementations of these intrinsic rewrads.
Now you may get the same performance of the ICM.
If you have any other questions, please don't hesitate to ask here.
@mchivuku

Thank you. I will work on taking the update and applying it on my problem.


Log warning if SENTRY_DSN is not set

If the DSN is not configured for the client, no warning or message gets logged indicating that there is a problem. Compared to the python version of the raven library, a message DOES get logged indicating that the SENTRY_DSN has not been set in the codebase or environment variable.
To help users debug configuration issues, a message should be logged when raven-go does not get configured with a DSN.

This is fair. I can add this in.

So looking at what we do in python, we log when things are configured.
And I'm hesitant to add logging into raven-go, strictly because there's no concept of log levels or filtering logs in your application. Whereas in python, there's a lot of control around logging and how things can be silenced if you don't want them ending up in stderr/stdout.
What if I added a IsConfigured() bool method to the Client? That seems like something that'd make a bit more sense imo.

The client's SetDSN method returns an error - if the passed dsn is empty, it returns nil.
I'm having a very hard time to see that this could be desired behaviour - effectively, the client fails setting up, yet a nil instead of an actual error is returned.
I'm not even talking about not logging this - I think it should fail (i.e. return an error) right then and there.

Hmm - is it because of how a client can be set up both by supplying a dsn and by automatically reading an environment variable?

It’s because an empty DSN is a valid value. An empty DSN means to have a working Client, but it doesn’t send anything. It’s just a way to noop. It’s also possible to setup as noop, then later call client.SetDSN to enable it, etc.

Ah, I see - cool, thanks for the info!


Wrong arguments interpretation by CommonsChunkPlugin ctor

For example, CommonsChunkPlugin('entry', null, null, Infinity) seems to erroneously miss Infinity argument. There could be more problems as well.
At least it should be fixed to work correctly if all 4 arguments are specified. But in general, it has too messy mix of optional arguments.
Also, you should know "recipes" for combining these args for very different purposes, such as extracting vendor libs or moving common code to parent chunk.
Perhaps it would be better to provide several goal-oriented factories that would hide this complexity under the hood.

But in general, it has too messy mix of optional arguments.

true...

You can use CommonsChunkPlugin('entry', null, Infinity) as workaround

yep, I do, thx )


In python, support unsigned integers from numpy

In GitLab by @jbigot on Mar 4, 2021, 14:27

In GitLab by @ksiero on Mar 17, 2021, 09:21
mentioned in commit e63f7ac09c9b50832c4b2e43f957756e3796d9e7


Feat: updates dependencies

Updates for the latest aind-data-transfer and the (more recent) version of aind-data-schema that is required by aind-data-transfer. If we want to upgrade to aind-data-schema==1.0.0, we will need to update aind-data-transfer as well. I did not do that since that repository is deprecated and no longer actively maintained. Perhaps others have thoughts on this.
I tested the n5tozarr converter, but did not test the other functionality. Would appreciate if someone else could test it, otherwise I would be happy to if someone can point me to a test dataset and their capsule.

tagging @d-v-b for visibility since I could not add you as a reviewer


Automated Package Upgrade

:tada: This PR is included in version 6.0.79 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Clean up section on translated cyclers

Big changes:

Algorithm 3: Change "abs(offset) $<$ distanceL" to "abs(offset) $\leq$ distanceL". The old version looks incorrect.
Algorithm 3: Change a condition to "(...).value != (...).value". Also add \newline to make the line look nicer.

Smaller changes:

Section 3 intro: Remove the link to #59,090,563 because Figure 3 already has a link to #59,090,563.
Lemma 3.3: The "Furthermore" sentence seems out of place in the lemma statement. I moved this sentence to the proof.
Improve spelling / grammar / clarity.

Thumbs up from me.

Looks great, thank you for your work!


Adding image via link does not seem to work

Again, thanks for a great editor and awesome response time here!
I perhaps found a glitch:
I open up the dialog to add an image via link, add the url in the input field and apply but nothing is inserted. Drag and drop works although (now same image seem to work via link too). Also image upload works.
Is there something in config I need to consider?

Hi, @MRB60
Can you tell me please to the more detail?

Perhaps I have misunderstood the function.
I open "Insert image" dialog and select "Link" (Instead of "Image"). In "URL to link" I insert an URL to an external image and submit.
What is expected to happen? I see nothing changing in textarea.

"link" tab is image's link url.
[a:src="url" [img]]
The image address must be entered in the "Image URL" input.

I add the following string in the input field:
https://placekitten.com/200/300
and expected that a link is created in my textarea. I do not see this.
Is this the wrong format? I get no error message.


fixed  the footer to perfect

##what does the PR do?
The PR change the footer to perfect size and add some color  to it.
##issue #86

This branch has conflicts that must be resolved

Check the files it has conflicts


(QUESTION) What protocol does the device agent use to communicate with the gateway?

I checked the documentation and haven't seen any issues on this matter (apologies if I've missed something).
Many company networks have heavy restrictions on outgoing ports and protocols (i.e. I commonly see UDP communication blocked across the board). What ports/protocol does the agent use?

I checked the documentation and haven't seen any issues on this matter (apologies if I've missed something).
Many company networks have heavy restrictions on outgoing ports and protocols (i.e. I commonly see UDP communication blocked across the board). What ports/protocol does the agent use?

All communication is done via HTTP/WebSocket between agent and gateway


English Chat

Followed the instructions on https://dev.to/memochou1993/chat-with-ai-using-line-app-6o5. It works in Chinese so I added OPENAI_COMPLETION_INIT_LANG: en within the Environment Variables on vercel.com and redeployed.
ChatGPT still answers in Chinese within LINE. What is wrong?

@NiyashoChan
Hi!
Thanks for your feedback.
Please check the latest documentation here!
The post on dev.to is also updated!

Works perfectly! THANK YOU


promql: Clean up parser struct

The parser struct used two have two somewhat misused fields:
peekCount int
token     [3]item
By reading the code carefully one notices, that peekCount always has the value 0 or 1 and that only the first element of token is ever accessed.
To make this clearer, this commit replaces the token array with a single variable and the peekCount int with a boolean.
Signed-off-by: Tobias Guggenmos<EMAIL_ADDRESS>

Thanks!


Start tracking the initial ardana packages

The list of packages is not yet complete because packages are still missing.

Should do you want to add the 'do not merge' label or do you plan on merging this for now and then add the missing packages in a follow-up?

Should do you want to add the 'do not merge' label or do you plan on merging this for now and then add the missing packages in a follow-up?

I would like to get this merged and add the other packages when available.

can we avoid adding every ardana packages to 3 exclude lists all the time?
also, wasn't the plan to create an ardana-openstack package that wraps all the git repos?

also, wasn't the plan to create an ardana-openstack package that wraps all the git repos?

There was that idea. But Charles did ardana-neutron (and you accepted it) so I would say we go for a package per repo for now. we can create a pattern to be able to install everything with one command...

sorry, even if its painful, we should avoid the triple exclude list update.. can we maybe create a separate job for it?

it is not painful. Done.

I can't think of any negative impact it had when we combined the crowbar packages.

Me neither. But merging the git repos into one seems currently not doable without refactoring a lot of things in the ardana CI. So we can use tarscm to combine the sources. But I'm not sure how - all repos in a single one? Not sure if there is something like crowbar-core....

@toabctl Having a package for each openstack component is a total nightmare. This will coast us so much time when submitting the packages to the SUSE namespace (legal review) and later during maintenance. In maintenance we have to think about all the possible dependencies and this just will cause earlier or later problems.

I'm not sure I understand, but it's good thing that we have to think about dependencies, so that our customers don't have to.  Are you really proposing having all OpenStack components in a single package?  That sounds like it would cause huge nightmares for customers doing updates.  It would be impossible to fix a bug in one component without risking destabilising all others.  Not to mention the huge bloat.

Basically we do the same mistake again we did with crowbar

No, splitting git repos and splitting packages are two separate things.

I can't think of any negative impact it had when we combined the crowbar packages.

Looks like it is a separate job now?

Yes. And moved the actual builder code to a macro so we can reuse that for the cloud-trackupstream and ardana-trackupstream job

I'm not sure I understand, but it's good thing that we have to think about dependencies, so that our customers don't have to. Are you really proposing having all OpenStack components in a single package? That sounds like it would cause huge nightmares for customers doing updates. It would be impossible to fix a bug in one component without risking destabilising all others. Not to mention the huge bloat.

@aspiers This is about the Ardana packages (ansible roles), not OpenStack itself. Basically the same we did with Crowbar (we had crowbar-neutron, crowbar-keystone, ... and now we have just crowbar-openstack). Maybe you misunderstood this?

@rsalevsky so any suggestion how to solve this (given that we can not merge the git repos currently)? I tried tar_scm but failed (I don't know how to set Version: in the spec and also I don't know to which value this should be set - @aspiers any idea maybe?).

@aspiers This is about the Ardana packages (ansible roles), not OpenStack itself. Basically the same we did with Crowbar (we had crowbar-neutron, crowbar-keystone, ... and now we have just crowbar-openstack).

Yeah, merging the Ardana packages into one or two might be possible but I think it would require a fundamental change in how Ardana works ... which will be required anyway, because currently Ardana uses Ansible to collect all the Ansible (etc.) repos together and then distribute them to the deployer via ansible.tgz inside a huge tarball called something like hos-5.5.0-20170627T165550Z.tar.  I think we are going to have to replace that whole build/deploy process with something based on packages and ISOs built by OBS.

I don't know how to set Version: in the spec

That's what the set_version source service is for.

I don't know to which value this should be set

I haven't heard any team discussions around version strategy yet, but our existing strategy with Crowbar etc. has been working fine AFAIK, so I'd suggest keeping that.

@rsalevsky updated the list of packages. Could you please review again?

I've created packages for ALL ardana/* repos as listed in http://git.suse.provo.cloud/cgit EXCEPT for below packages:
ardana-dev-tools (discussed not to make package for this)
ardana-opsconsole-server (no LICENSE)
ardana-opsconsole-ui (no LICENSE)
ardana-qa-tests (no executable script)
ardana-swiftlm (no executable script)
ardana-extensions-dcn (no hp/opensource branch)
ardana-extensions-example (no hp/opensource branch)
ardana-extensions-genswitch (no hp/opensource branch)
ardana-extensions-odl (no hp/opensource branch)
ardana-zzz-rebranding (discussed not to make package for this)
Detail error log can be found here: https://build.suse.de/project/show/home:charleswang007007:branches:Devel:Cloud:8


When importing Pretender from a webpack build, RouteRecognizer constructor lookup fails.

When these lines run in a webpack build, https://github.com/pretenderjs/pretender/blob/master/pretender.js#L8-L9
RouteRecognizer and FakeXMLHttpRequest point to the module, not the default export.
Monkey patching it with this code makes it work:
  RouteRecognizer = RouteRecognizer.default || RouteRecognizer;
  FakeXMLHttpRequest = FakeXMLHttpRequest.default || FakeXMLHttpRequest;

Not sure what the long term solution is though.

I just submitted PR #216. My bad for not seeing #209 already fixes this, though you might prefer to merge #216, as the getModuleDefault function can be reused for more future requires.


cargo build tries to download packages

When issuing
cargo build

It will install packages from the internet. From my very slow internet connection, that is no good.

If you have dependencies, this is expected behavior, yes. Otherwise, how would you get them?
If you've already downloaded said dependencies, though, it should not.

Yeah as @steveklabnik mentioned this is expected behavior because the dependencies need to come from somewhere, so I'm going to close this as working as intended.

Perhaps I wasn't clear? I asked cargo to build not to download. If it needs to download, I expect that to be another command.

Ah yeah there are a number of other issues in the repo about intentionally telling Cargo to not touch the network, such as https://github.com/rust-lang/cargo/issues/2111

I think the way that git does it is quite good. There is an explicit command to download (and sync) anything. I feel that cargo does too much with the commands. For instance, I might not care that the up-streams have released new versions - why then should cargo check for it?

For instance, I might not care that the up-streams have released new versions - why then should cargo check for it?

It doesn't. I think you may be conflating a few different behaviors here.
If you don't have the requirements to build, cargo build will go get them. Yes, in theory, we could make it two commands, but that introduces friction for the majority case at the expense of the minority case.
If you do have the requirements, then it shouldn't check the network. There may be bugs, and they should be fixed.

Yes, I may have been bitten by previous bugs. I just remember the network being off-line, I had all the files in the registry already, yet still I couldn't build because cargo tried to sync to the latest. I'll check it again.


Add a way to indicate success and failure ranges

Dice notation should include success and failure ranges if the chances for these should be calculated.
Some information which would help:

Target value (and if the result should be equal, higher or lower)
If instead of a target value this is a roll vs roll, then both rolls should be indicated
Critical success/failure values (if they matter, as they do on roll vs roll)

Beyond the current scope of the project.


Updating OpenLogic commercial support description

Change to Commercial Support page, update offering for OpenLogic.

Hi -- apologies, it seemed to fit with the other entries on the page.  What would need to change?

I think this "OpenLogic is the only vendor that can provide comprehensive support, consultative guidance, and training for your entire open source infrastructure stack" can be removed.

No problem, we are editing -- thank you!

That makes perfect sense, thank you! We're editing the copy now and will post it here for preview before issuing another PR.

This is the new suggestion:  "OpenLogic by Perforce has a team of Camel experts ready to help you. We provide 24/7 support for troubleshooting issues and outages, consulting on architecture and design, and instructor-led, hands-on training. https://www.openlogic.com/solutions/support-activemq-apache-camel-kafka#apache-camel[Learn more about OpenLogic's Camel support]"  If that verbiage is alright, let me know and I'll send another PR -- thanks for the support and patience!


PDF417 encoding problem with ASCII character '0x1E' or 'RS'

I'm having problem generating PDF417 2D barcode with a string that has the value '0x1E' in it.
Here is an example string: 40 0d 0a 1e 0d 0a 41 4e 53 49
I generated a PDF417 2D barcode, using either binary or ASCII encoding, the scanned output is this: 00 00 1e 0a 41 4e 53 49
If I changed the input '0x1e' to something else, like '0x0a', then the output PDF417 2Dbarcode will be correct.
Could this be a bug in the encoding code?
Thanks for your help.

If there is an issue with the 'old' PDF417 encoder, it will likely not get fixed. There is a new libzint based writer back-end that most certainly will not have this issue. Please have a look at https://github.com/zxing-cpp/zxing-cpp/discussions/739.
To configure your build to use the new API and backend pass -DZXING_WRITERS=NEW -DZXING_EXPERIMENTAL_API=ON -DZXING_USE_ZINT=ON to your cmake configure command line.

Did switching to the new zint backend solve your problem?

Closed for lack of feedback from the OP.


dns/ddclient: missing Cloudflare

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[X]  I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[X]  I have searched the existing issues and I'm convinced that mine is new.
[X]  When the request is meant for an existing plugin, I've added its name to the title.

Is your feature request related to a problem? Please describe.
The UI for ddclient is missing the option to configure Cloudflare  accounts.
Describe the solution you'd like
Add a Cloudflare option for account creation.

we could conclude that point 2 (is new) isn't the case https://github.com/opnsense/plugins/issues/2772

Oops, sorry! Was checking for open issues only

Hey, so when is this updated in the live OPNsense? I just removed the DynDNS due to the warning it will be removed. So I thought to move over to DDclient right away, But since Cloudflare isn't in the services I can't.

@thetruetype Probably in the next minor version. Meanwhile, your could use opnsense-patch to apply the patchset for Cloudflare integration. See this for commit SHA references.
opnsense-patch -c plugins c970a82d15dcd1a3c68d03296bebd4e8e67da40b
opnsense-patch -c plugins af2ec65aa0aeabb0d222c0c3e20eab3fc59d43a6
opnsense-patch -c plugins 8ee15ced75b5c554c0b7f3ee70dc32f7a5f6b14a

If this goes south, revert using opnsense-revert -r 22.1 ddclient, or by reapplying patches (see above) in reverse order.

I had issues applying 8c1759abbc1ac32a6288ab8a57dcdbd23937914d so I just went and copied the ddclient folder from masters head. That is pretty dirty, though, wouldn't recommend doing that in a prod environment.


Badge not updating and no notification when app is closed

I have followed all the instructions for setting up on android. Notifications come through when the app is running in the background. The notification count doesnt appear on the app icon. When the app is closed nothing comes up. Is this an error or is there something I have missed?

Android doesn't support badge count (not impossible - but requires native workarounds as I remember)

Thanks for the package @raix . Now android support badges, is package able to do so?


Torrents Not Being Displayed While Sorting

It seems that when sorting by seeders or leechers, torrents that have no seeders or leechers (respectively) are not displayed.
Search for Lostorage, English Translated; no sorting:

Search for Lostorage, English Translated; sorted by seeders

SELECT * FROM torrents WHERE deleted_at IS NULL AND category = '3' AND sub_category = '5' AND seeders IS NOT NULL AND torrent_name LIKE '%Lostorage%' ORDER BY seeders desc LIMIT 50 OFFSET 0
Looks like if there are no seeders it will not display them, this should be fixed.

Was unable to reproduce it on latest dev, was it fixed already?

Queries look like this:
SELECT count(*) FROM "torrents"  WHERE (deleted_at IS NULL AND category = '3' AND sub_category = '5' AND torrent_name LIKE '%Lostorage%')

and
SELECT * FROM torrents WHERE deleted_at IS NULL AND category = '3' AND sub_category = '5' AND torrent_name LIKE '%Lostorage%' ORDER BY seeders desc LIMIT 50 OFFSET 0

It should be fixed in my previous commit


a11y: handle keyboard navigation in array fields

Description
This fixes the following issues found for ArrayField:

The field disappears when moving focus back via keyboard (shift+tab)
No chance to know current row while using screen reader when a field gets active
Unclear focus behavior when pressing "Add new" button: focus stays on the button
Multiple fields have the same id

The PR introduces the following changes to fix issues above:

Remove field removal on blur because it works unstable. Instead disable "Add new" button until the previous field recieves the value, and remove any empty field in-between fields with values when adding a new empty field
Add a region role to array fields with clear aria-label and make the region focusable
Place focus on the region when creating a new field via keyboard (focus is not visible when clicking "Add new" via mouse)
Add an index to array field ids, so every field has a different id

Task Item

VSTS 70458

Screenshots

#minor

Coverage increased (+0.003%) to 55.959% when pulling 8bf8f0cbdc810da84146405971d7287a93a15fcf on OEvgeny:a11y/array-field into 749e553266ffdeaa45c275d8a4cac603671ba5d6 on microsoft:main.


chore: rename aliases to bin-aliases

Pushed additional renames, including the field in the install receipt.

oh nooo.
what foul merge conflicts hath i wrought


Fix update-version script

Updates the update-version.sh for a couple changes.
Skipping CI since this file is not testing by CI.

/merge


Adding a check in get.sh to ensure SDKDIR is clean break build story with sdk grabbed from upstream artifacts

#1425 will break all test builds which grab the sdk from upstream artifact - currently AdoptOpenJDK test build story ( not by artifactory url). In this situation SDK is downloaded before the get.sh is called.
https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1012/console

If our long term goal is to grab all artifacts from artifactory server this won't be a problem.
Also as @ShelleyLambert  mentioned before we are going to  separate the download of the binaries from the download of TKG and test material to make the story more clean less confusing. getBinaryOpenjdk() function may also separate into download and unjar parts. For now I will just  limit the check to upstream case to avoid the break.


Great work

Your plugin is the first of its kind and a gamechanger
Few comments
simple improvements:

Adding headers inside the summary (ex: ##map ##otherdata )before and after the leaflet map would allow to embed the map inside daily note
Less complicated subfolder names would simplify creating links refering to the activity

Less simple:

Possibility to import straight inside of daily note instead of dedicated folder and subfolders
More visual layout of the data?

Anyway thanks for sharing your work!

Thank you @bthollet for your kind words, coffee, and suggestions!
I will release the minor improvement early next week and will propose a simplified folder structure.
I like your idea of having activities inside the daily note. Upon quick investigation, it doesn't seem straightforward to identify a daily note file in Obsidian e.g., there is no frontmatter in a daily note. Think a templated daily note might do but I have to investigate further. I also plan to add more visuals, like graphs and charts down the road. Suggestions are highly welcome!

Hello,
For me, the possibility to quickly embed activities (i might have several
in the day as i cycle to work) or parts of them (map, maybe some basic
stats) would be good enough. For example, being able to quicly add
![[Strava/YYYY-MM-DD/activityXX#Map]]. A more elegant yet not too
complicated option could be having a command that adds the map of every
activity done today?
About the daily note I believe the daily note/periodic note plugins store
the daily note path somewhere so I guess your plugin could retrieve this
variable somehow... but I am no programmer.
Also i had a quick look at the API docs but it seems the api cannot output
images which would've been a practical way to import graphs... Since i have
not used graphs in obsidian yet i cannot make any suggestions
Le sam. 30 sept. 2023 à 02:51, Saad Saif @.***> a
écrit :

Thank you @bthollet https://github.com/bthollet for your kind words,
coffee, and suggestions!
I will release the minor improvement early next week and will propose a
simplified folder structure.
I like your idea of having activities inside the daily note. Upon quick
investigation, it doesn't seem straightforward to identify a daily note
file in Obsidian e.g., there is no frontmatter in a daily note. Think a
templated daily note might do but I have to investigate further. I also
plan to add more visuals, like graphs and charts down the road. Suggestions
are highly welcome!
—
Reply to this email directly, view it on GitHub
https://github.com/saadsaifse/strava-obsidian/issues/1#issuecomment-1741609179,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXFIWYMJ6ARHC4WGDR35DDTX45UHLANCNFSM6AAAAAA5NBRLEI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hello @saadsaifse I just noticed your new release. I deleted the old plugin folder and the Strava folder and re-set up. I cannot notice a difference? Could you add a # Map  and a # Data title inside the summaries to allow easy map transclusion please?

Hi @bthollet, I finally got the bandwidth to work on them today. Stay tuned!

Hi @bthollet Good news! Just released a new version with insert activity commands and headers. Hope you like it and please let me know if it improves your workflow. Thanks!


irmin-pack: add an (unsafe) option to bypass data integrity checks on reads

(on top of #1153)

Rebased (even if GH doesn't show it...)


Laravel 5.3 Notification

How to create notification like https://laravel.com/docs/5.3/notifications  in your modules?

Just like the documentation explains.
There is also a scaffold command to help, as per the docs:
php artisan module:make-notification InvoicePaid

tried php artisan module:make-notification UserCreated core Core is my module name, it shows the following error:
 [Symfony\Component\Console\Exception\CommandNotFoundException]
  Command "module:make-notification" is not defined.

Not sure this is tagged, so use dev-master.

did you mean dev-master branch? sorry i did not get it

in composer.json changed to "nwidart/laravel-modules": "dev-master", will let you know if worked

it worked 👍


Return to ongoing visualization if already running.

Currently you need to terminate, clone, and rerun task. Add a new icon for this?
(for vizer and tagger)

should be fixed in 455ab85, should've been merged as a PR too 😑


Scheduling option does not copy Powershell script to selected folder

The scheduling option throws the following error when attempting to copy the Powershell service script to the correct folder:
Copy-Item : Cannot find path 'C:\Program Files\MSEndpointMgr\Driver Automation Tool\Run-DriverAutomationToolSvc.ps1' because it does not exist.
At line:20244 char:4
+             Copy-Item (Join-Path (Get-ScriptDirectory) Run-DriverAuto ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program File...tionToolSvc.ps1:String) [Copy-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

I know this is old, but check C:\Program Files\MSEndpointMgr\Driver Automation Tool to see if the PS1 file exists.


expand test learner

This test shows the learner concept currently doesn't work.
I think it's been broken for a very long time.
A fix will come later (in another PR).

closing, see https://github.com/openvstorage/arakoon/pull/145


FFImageLoading works on Emulater but not on actual device? IOS project

Hello all I'm loading several images from a HTTPS server. Testing on an emulator works fine with the place holder loading first then the image. When testing on an actual device i get the error image.
Sometime the placeholder image would display for a split second then jump back to the error image - but the actual image never displays. Any ideas what i'm doing wrong?

Here is the log i get with the error if it helps -
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003b] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:185
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:156
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/TaskAwaiter.cs:128
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0xf34728 + 0x00023> in :0
at FFImageLoading.Cache.DownloadCache+d__9.MoveNext () [0x0022d] in :0

I was able to fix this issue- I had the wrong system.http.net file
Thsnks


change log level from info to debug for timeline gc messages

because it is quite noisy

Noticed it recently too.

I changed severity for one message in checkpoint internals too


TypeError: Singleton array array(<xgboost.core.DMatrix object at xxx>, dtype=object) cannot be considered a valid collection

Use xgboost for grid search, the code is in below:
from sklearn.model_selection import GridSearchCV, train_test_split
from xgboost.sklearn import XGBClassifier
import xgboost as xgb

X_train, y_train, X_test, y_test = train_test_split(X, y, test_size=0.3)
d_train = xgb.DMatrix(X_train)

param_list = {'gamma': [0.05, 0.1]}
xgbc = XGBClassifier()
gsearch = GridSearchCV(estimator=xgbc, param_grid= param_list, scoring='roc_auc')

gsearch.fit(d_train, y_train)

But in the last step, the error occured: TypeError: Singleton array array(<xgboost.core.DMatrix object at xxx>, dtype=object) cannot be considered a valid collection.
the package version:
xgboost=0.82
sklearn=0.20.3
scipy=1.2.1

Hi, if you are using the sklearn interface, then you don't need to construct DMatrix object.


Declarative deployments - blog post

@ddobrin The only thing we'll still need is your bio (in the content/team/dan-dobrin/_index.md file). If you could add a title, general location, and a short bio, I think we're in good shape. Thanks!


Python does not recognise "serial.SerialTimeoutExeption"

Bug -> Python does not recognize serial.SerialTimeoutExeption
Error ->
Traceback (most recent call last):
  File "C:\Users\rohan\AppData\Local\Programs\Python\Python38-32\lib\multiprocessing\process.py", line 315, in _bootstrap
    self.run()
  File "C:\Users\rohan\AppData\Local\Programs\Python\Python38-32\lib\multiprocessing\process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "c:\Users\rohan\Documents\GitHub\the-knights\backend\src\app.py", line 49, in run_serial
    serial_loop()
  File "c:\Users\rohan\Documents\GitHub\the-knights\backend\src\app.py", line 21, in serial_loop
    except serial.SerialTimeoutExeption:
**AttributeError: module 'serial' has no attribute 'SerialTimeoutExeption'**

The bug is located here:

# Serial loop for reading serial port data
def serial_loop():
    print("Entering serial loop...")
    while True:
        # why is there a question mark??
        #? Serial port reading
        try:
            #TODO implement actual data handling
            data = json.dumps(ser.readline())
        except serial.SerialTimeoutExeption:
            print("Data could not be read (serial timeout)")

Fixed issue with lasted commit.


Google Calendar integration

Add support for a Calendar card with Google Calendar integration. Hopefully there's some sort of calendar API.

Hey, thanks for stopping by.
I'm not sure about this whole service integration thing.
Because I feel like cardboard could be integrated with almost anything in the world. The problem is that it would make the code big and slow. Besides it means that I have to update cards that rely on third party services which could break APIs.
Finally I kind of think it's redundant to implement this sort of things in a new tab page. Chrome notifications, Android/iOS notifications, widgets whatever. People have a lot of ways to check for a calendar appointment.
This new tab page is for Chrome. and this is a "new tab page" not Google Now or a hub for all your services. I want to keep it simple.
Last but not least I'm the only one to update the application and the more cards and services I have to take care of, the slower the updates for a unique experience.
I want to bring to Chrome things that hasn't been done before. And weather, calendar and stuff are not one of them.
So maybe the solution would be to implement a kind of platform to allow people to create and plug in their own cards but I feel it does not belong into the core application.
I hope you understand my view and you can of course comment on that.


Multiple print area

Please allow to set more than one print area to XLS.
See example:
https://www.youtube.com/watch?v=RvTic9lT4Lw
I tried to set SetPrintArea with two or three comma delimited references e.g.  wb->SetPrintArea(0, "$A$1:$C$5,$E$6:$F$9"),
according to: https://stackoverflow.com/a/35478242/13983849
But it didn´t work in NPOI 2.5.5.
This worked well in NPOI 1.2.3
I am reporting it as an issue, because I didn't got any answer in discusion:
https://github.com/nissl-lab/npoi/discussions/730

NPOI 1.2.3? Are you talking about the forked branch of NPOI? It's actually NPOI 2.1.x.
If it's not working in latest version. This may be a regression bug.

I tried all version from the latest NPOI 2.5.5 down to 1.2.3 and the oldest one was the only version, where multiple print area was working properly.
I installed it as a NuGet package in Visual studio.
See pictures:
NPOI 1.2.3 package
[cid:392b862d-a1b4-49b6-b0ac-5dccecf269b9]
NPOI 2.5.5 package
[cid:3070136a-76c8-42c1-b522-0532db60770d]

Od: Tony Qu @.>
Odoslané: štvrtok 20. januára 2022 21:12
Komu: nissl-lab/npoi @.>
Kópia: acts432 @.>; Author @.>
Predmet: Re: [nissl-lab/npoi] Multiple print area (Issue #734)
NPOI 1.2.3? Are you talking about the forked branch of NPOI? It's actually NPOI 2.1.x.
If it's not working in latest version. This may be a regression bug.
—
Reply to this email directly, view it on GitHubhttps://github.com/nissl-lab/npoi/issues/734#issuecomment-1017881246, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXJFHOZXVUPAXIVOVEI4BX3UXBUDHANCNFSM5MMVFZZQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID: @.***>

NPOI 1.2.3? Are you talking about the forked branch of NPOI? It's actually NPOI 2.1.x.

No. I am talking about version 1.2.3 installed in MS Visual studio as NuGet package.
The version is listed here:

If it's not working in latest version. This may be a regression bug.

Yes, it's regression bug.

If NPOI 2.1.x is just working as expected, why do you prefer upgrading to the latest version? There may be some interface changes, which may break your existing system.

As I said, it's not 2.1.x
Is's 1.2.3
I was creating a new implementation of system using the latest NPOI 2.5.5
During finishing and testing created XLS I found out, that multiple print area didn't work. So I had to downgrade to version 1.2.3 and rewrite existing code to be working with this version.

It's a big surprise that you are using a NPOI version released 10 years ago.

Unfortunately there was no other way for me.

Have you tested early release like NPOI 2.4.1? I'd like to narrow down the version.

Yes, I tested all versions listed in VS21019 NuGet Package Manager from the latest 2.5.5 down to the oldest 1.2.3
(specifically 2.5.5, 2.5.4, 2.5.3, 2.5.2, 2.5.1, 2.4.1, 2.3.0, 2.2.1, <IP_ADDRESS>, 2.1.3, 2.0.6, 1.2.5, 1.2.4, 1.2.3)
And the last one 1.2.3 was the only one, where with multiple print area worked for me (function SetPrintArea).

Looks your company is using NPOI. Can you contribue your use case to https://github.com/nissl-lab/npoi/issues/705 ?

Looks your company is using NPOI. Can you contribue your use case to #705 ?

Looks your company is using NPOI. Can you contribue your use case to #705 ?

done

https://bz.apache.org/bugzilla/show_bug.cgi?id=46664

No.
We need XLS.


[SwiftSyntax] Ensure SyntaxRewriter respects nil children when rewriting

This patch fixes a nasty bug in SyntaxRewriter. Previously, when visiting each child of a node, it would use .children, which skips nil children. Then, it would construct a new raw layout that didn't include the children that were nil.
This broke the contract that every node is shaped the same, and caused accessors to have sudden off-by-one errors.

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci please smoke test


Merged governance jobs into main project

Hi @erwinvanhunen, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;


Add default config for popular sources

The goal is to improve the initial experience for users by providing
sane defaults. The user may need to update the paths depending on their
environment and configuration. No, or very minimum. parsing is done
today.
Limitations:

Paths may not be accurate for all environments
Parsing may be required
Multiline support is not configured and may be required for some
sources
File rotation not configured so wildcard source paths may not work as
expected

My only concern is that the td-agent user/group will require permissions to access these sources if they exist.  Is this something we should handle (i.e. in the installer script), or something that the user should handle themselves?

@jchengsfx I think we have three options:

attempt to use https://docs.fluentd.org/deployment/linux-capability
attempt to add to relevant groups
leave it to the user

@jchengsfx I believe your concern is addressed -- PTAL


config to use mongodb ext instead of mongo ext?

config to use mongodb ext instead of mongo ext?

The new extension is not supported yet.


license file formatting is off (Windows)

5.4.0-alpha.0

5.4.0-beta.0, on windows still has a problem:

That is because the sync cron job has not run again. If will run in the morning.

That is because the sync cron job has not run again. If will run in the morning.

ah, ok, I'll confirm then reclose this

Still seeing the same problem when running Lens+Setup+5.4.0-beta.0.20220203.1.exe

The license file is embedded within the executable, so this cannot be verified until we make a new release.

all good in 5.4.0-beta.1


OAuth2 not working with Nextcloud

Bug description
Setting up OAuth2 authentication with Nextcloud as a backend does not work. The OAuth2 handshake completes up to the point where Portainer retrieves user data and this error is logged:
2019/10/08 07:47:47 [DEBUG] - OAuth authentication error: Unable to authenticate user via OAuth:oauth2: cannot fetch token: 200 OK
Response: {"ocs":{"meta":{"status":"ok","statuscode":200,"message":"OK"},"data":{"enabled":true,"storageLocation":"\/storage\/path","id":"karim","lastLogin":1234,"backend":"Backend","subadmin":["Some", "Groups"],"quota":{"free":1,"used":2,"total":3,"relative":0.4,"quota":-3},"email":"my@e.mail","phone":"012345","address":"123, My Address, Withdrawn","website":"https:\/\/my.site","twitter":"@followme1","groups":["admin","duh"],"language":"fr","locale":"fr_FR","backendCapabilities":{"setDisplayName":true,"setPassword":true},"display-name":"Karim Vergnes"}}}

Expected behavior
Portainer completes the OAuth2 handshake, extracts the user ID and logs me in.
Steps to reproduce the issue:

Enable OAuth2 authentication with the following settings

Authorization URL: https://nextcloud/apps/oauth2/authorize
Token URL: https://nextcloud/apps/oauth2/api/v1/token
Resource URL: https://nextcloud/ocs/v2.php/cloud/user?format=json
User ID: ocs.data.id

Create a user which matches the user ID under OAuth (karim)
Try to use the "Login using OAuth" button

Technical details:

Portainer version: 1.22.0
Docker version (managed by Portainer): 4.19.68
Platform (windows/linux): linux
Command used to start Portainer (docker run -p 9000:9000 portainer/portainer):
Browser: Firefox

Additional context
OAuth2 extension enabled, Portainer and Nextcloud are on the same machine and all connections are encrypted in HTTPS using a reverse proxy.

If that is, in any wAy what nextcloud is returning in response to an /ouath2/api/v1/token call, it looks like the problem is on nextcloud’s side not portainer’s.

Thing is, I have determined that the handshake is already complete by packet inspection. This is in fact what Nextcloud returns from /ocs/v2.php/cloud/user?format=json

The exact same issue with Azure AD.

take a look at https://documentation.portainer.io/v2.0/auth/oauth/ as we have a screenshot of a known working configuration for Azure AD.

@ncresswell Man Thank you so much.
You simply saved my life!

After further investigation, I presume that Portainer cannot parse nested JSON elements, and expects the ID to be in the first level.

Any updates on this?
I do have the same problem with Mailcow as OAuth2 provider...
OAuth authentication error: oauth2: cannot fetch token: 200 OK
But retrieving all user data seems to be okay...

I'm joining, any update? I'm heaving problem with GitHub. I have followed:

https://documentation.portainer.io/v2.0/auth/oauth/
https://documentation.portainer.io/v2.0-be/auth/oauth-github/

I'm using free, not enterprise version portainer-ce 2.6.0.
2021/07/09 08:09:57 [DEBUG] - OAuth authentication error: oauth2: cannot fetch token: 200 OK

@JiangHongTiao
User identifier needs to be login
Check the example in our documentation here

Hi @samdulam ,
thanks a lot! I've misunderstood that it's static string, not a variable :-) It works now.

@Thesola10 , just wondering if you ended up finding a solution to this?
I've got the exact same issue.

@Thesola10 , just wondering if you ended up finding a solution to this?
I've got the exact same issue.

I just stopped using Portainer, my containers are declared in my NixOS config now.

I just stopped using Portainer, my containers are declared in my NixOS config now.

Thanks for the prompt reply and glad you found an alternative! Wonder if anyone else came up with a solution to this problem.
It does appear to be as you investigated that Portainer cannot parse nested JSON elements. Hope they fix it soon. :)

take a look at https://documentation.portainer.io/v2.0/auth/oauth/ as we have a screenshot of a known working configuration for Azure AD.

@ncresswell, you don't happen to have a quote for NextCloud also by any chance? ;)

I'm not familiar with the Nextcloud as an identity provider, but looking at that url to obtain the userinfo object isn't exactly standard for OIDC (https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse). So maybe they've only implemented OAuth2, whereas Portainer is relying on OIDC.
Interesting discussion going on here as well:
https://help.nextcloud.com/t/oauth2-userinfo-api/70556/2
To get an idea of the body that's being returned:
https://github.com/owncloud/product/issues/181

Using the Solid integration app's user info endpoint, which is OIDC-compliant, might be a fair workaround for this issue.

The ocs.data.id seems to be the problem for me and I couldn't fix it. The error is OAuth authentication error: failed to extract username from oauth resource. How do you specify this right for nextcloud?


Standalone publisher editorial plugins interfering

editorial plugins were interfering with other families
adding "clip" family to better filter editorial instances

closes #579

@mkolar it is check on client project and working well now

@mkolar i was commiting from client machine with your user on it.. sry


Add ellipse to primitives-fill-macros demo

Hi! Thank you for helping out with Embedded Graphics development! Please:

[x] Check that you've added passing tests and documentation
[x] Add a simulator example(s) where applicable
[x] Add a CHANGELOG.md entry in the Unreleased section under the appropriate heading (Added, Fixed, etc) and appropriate crate (embedded-graphics, simulator, tinytga, tinybmp) if your changes affect the public API
[x] Run rustfmt on the project
[x] Run ./build.sh (Linux/macOS only) and make sure it passes. If you use Windows, check that CI passes once you've opened the PR.

PR description
Adds egellipse usage to mirror the primitives-fill output.
I considered moving the style definitions into variables like primitives-fill to reduce duplication, but it might be useful to leave them inline to demonstrate style =  usage in the macros.
Closes #345

Thanks!


swift source compat suite

Add Swinject to the swift source compat suite https://github.com/apple/swift-source-compat-suite

Closing this for dup of #260.


Error Widget is always showing

Is there an existing issue for this?

[X] I have searched the existing issues

Package/Plugin version
9.1.1
Platforms

[X] Android
[X] iOS
[ ] Linux
[ ] MacOS
[ ] Web
[ ] Windows

Flutter doctor
[✓] Flutter (Channel stable, 3.13.1, on macOS 13.5.2 22G91 darwin-arm64, locale en-NP)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.83.0)
[✓] Connected device (3 available)
! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached
with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• No issues found!
Minimal code example
   FormBuilderTextField(
          name: 'login',
          initialValue: widget.initialValue,
          inputFormatters: widget.inputFormat,
          style: const TextStyle(
            fontSize: Dimens.text_size_default,
            textBaseline: TextBaseline.alphabetic,
          ),
          onSaved: widget.onSaved,
          textAlign: widget.textAlign ?? TextAlign.start,
          textCapitalization: widget.textCapitalization,
          autofocus: widget.autoFocus,
          obscureText: widget.obscureText,
          autovalidateMode: widget.autovalidateMode,
          validator: FormBuilderValidators.compose(validators!.isNotEmpty
              ? [
                  ...validators!,
                ]
              : []),
          onChanged: widget.onChanged,
          onTap: widget.onTap,
          readOnly: widget.readOnly,
          enabled: widget.enabled,
          controller: widget.controller,
          focusNode: widget.focusNode,
          onEditingComplete: () {
            FocusScope.of(context).requestFocus(widget.nextNode);
          },
          maxLines: widget.maxLines,
          maxLength: widget.maxLength,
          textInputAction: widget.textInputAction,
          keyboardType: widget.textInputType,
          decoration: InputDecoration(
            hintStyle: Theme.of(context).textTheme.bodySmall,
            counterText: '',
            contentPadding: const EdgeInsets.all(Dimens.spacing_large),
            prefixIcon: widget.prefixIcon == null
                ? null
                : IconButton(
                    icon: Icon(widget.prefixIcon),
                    onPressed: widget.onPrefixPressed,
                  ),
            suffixIcon: widget.suffixIcon == null
                ? null
                : IconButton(
                    icon: Icon(widget.suffixIcon),
                    onPressed: widget.onSuffixPressed,
                  ),
            hintText: widget.hintText,
            border: _generateBorder(widget.borderColor ?? AppColors.gray_light),
            focusedBorder: _generateBorder(AppColors.gray_dark),
            enabledBorder:
                _generateBorder(widget.borderColor ?? AppColors.gray_light),
            errorBorder: _generateBorder(AppColors.error),
            focusedErrorBorder: _generateBorder(AppColors.error),
            error: Row(
              children: [Text('icon'), Text('text')],
            ),

          ),
        ),

Current Behavior
Even there is no error..the error widget is always shown.
Expected Behavior
Show error widget only if there is error.
Steps To Reproduce

Open App
Try to login
Donot type aything
Error widget is already there

Aditional information
when you delete the text and if text field is empty getting this error.

Without a minimal example code, I can't reproduce the error. Please, try modify the example code to reproduce your error. Thanks