order_market_buy: binance.exceptions.BinanceAPIException: APIError(code=-1104): Not all sent parameters were read; read '5' parameter(s) but was sent '6'.

Hi, I'm trying to place order by market price for XRPUSDT pair:
buy_order = client.order_market_buy(symbol='XRPUSDT', quanityt=100)

sell_order = client.order_market_sell(symbol='XRPUSDT', quanityt=100)

but it keeps firing errors from client.py module
Traceback (most recent call last):
  line 29, in <module>
  File "C:\Users\chaum\AppData\Local\Programs\Python\Python38\lib\site-packages\binance\client.py", line 1325, in order_market_buy
    return self.order_market(**params)
  File "C:\Users\chaum\AppData\Local\Programs\Python\Python38\lib\site-packages\binance\client.py", line 1299, in order_market
    return self.create_order(**params)
  File "C:\Users\chaum\AppData\Local\Programs\Python\Python38\lib\site-packages\binance\client.py", line 1164, in create_order
    return self._post('order', True, data=params)
  File "C:\Users\chaum\AppData\Local\Programs\Python\Python38\lib\site-packages\binance\client.py", line 225, in _post
    return self._request_api('post', path, signed, version, **kwargs)
  File "C:\Users\chaum\AppData\Local\Programs\Python\Python38\lib\site-packages\binance\client.py", line 191, in _request_api
    return self._request(method, uri, signed, **kwargs)
  File "C:\Users\chaum\AppData\Local\Programs\Python\Python38\lib\site-packages\binance\client.py", line 186, in _request
    return self._handle_response()
  File "C:\Users\chaum\AppData\Local\Programs\Python\Python38\lib\site-packages\binance\client.py", line 215, in _handle_response
    raise BinanceAPIException(self.response)
binance.exceptions.BinanceAPIException: APIError(code=-1104): Not all sent parameters were read; read '5' parameter(s) but was sent '6'.

not sure why but aren't only 2 parameters required?

Hello, I am writing a bot now, I encountered the same error, here is a request to buy and sell, if it is still relevant, I am happy to help)))
`from binance.client import Client
from binance.enums import * # Import this, otherwise order placement won't work
api_key = 'XsZAaUwuwf1KWRhdolC20TbdjcwgSwLlCSLHNMHrUd7zmd8rD5D2taTAq7uG2l7b'
api_secret = 'XR5HNq2poJ8Cq5bEhH3uhNaGvnKD3TyHbFJ92Nvg4G1tNRxoGKIfZqFbTWHqmyEf'
client = Client(api_key, api_secret)
order = client.create_order(
symbol='XRPUSDT', # Currency pair
side=SIDE_SELL, # Buy USDT for XRP (29 pcs), if you want to buy XRP for USDT, write SIDE_BUY instead of SIDE_SELL
type=ORDER_TYPE_MARKET, # Sell at market price
quantity=29) # XRP amount`
Rewrite the code carefully, or copy it better, otherwise I misspelled the word 'quantity' and I got your error)

Hi, excuse me@NeoBreedZ  you should delete your bot api strings values from here, dude

Is there any fixes for order_market_buy function? Or we have to use @NeoBreedZ as temporary solution?


PYTHON=python3 ./compile.sh  error

I looked at the problem in the issues column, but I didn't find the reason for the error.
ubuntu server 18.04
cuda 9.0.176
cudnn 7.0.5
pytorch 0.4.1
gcc 5.5.0    g++ 5.5.0
python 3.6
I have joined the environment variable by ：
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64
export PATH=$PATH:/usr/local/cuda-9.0/bin
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-9.0
Listed below is the compilation process：（The error is at the bottom）
Building roi align op...
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
running build_ext
building 'roi_align_cuda' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/TH -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c src/roi_align_cuda.cpp -o build/temp.linux-x86_64-3.6/src/roi_align_cuda.o -DTORCH_EXTENSION_NAME=roi_align_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
/usr/local/cuda/bin/nvcc -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/TH -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c src/roi_align_kernel.cu -o build/temp.linux-x86_64-3.6/src/roi_align_kernel.o -DTORCH_EXTENSION_NAME=roi_align_cuda -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options '-fPIC' -std=c++11
creating build/lib.linux-x86_64-3.6
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/src/roi_align_cuda.o build/temp.linux-x86_64-3.6/src/roi_align_kernel.o -L/usr/local/cuda/lib64 -lcudart -o build/lib.linux-x86_64-3.6/roi_align_cuda.cpython-36m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.6/roi_align_cuda.cpython-36m-x86_64-linux-gnu.so ->
Building roi pool op...
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
running build_ext
building 'roi_pool_cuda' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/TH -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c src/roi_pool_cuda.cpp -o build/temp.linux-x86_64-3.6/src/roi_pool_cuda.o -DTORCH_EXTENSION_NAME=roi_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
/usr/local/cuda/bin/nvcc -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/TH -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c src/roi_pool_kernel.cu -o build/temp.linux-x86_64-3.6/src/roi_pool_kernel.o -DTORCH_EXTENSION_NAME=roi_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options '-fPIC' -std=c++11
creating build/lib.linux-x86_64-3.6
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/src/roi_pool_cuda.o build/temp.linux-x86_64-3.6/src/roi_pool_kernel.o -L/usr/local/cuda/lib64 -lcudart -o build/lib.linux-x86_64-3.6/roi_pool_cuda.cpython-36m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.6/roi_pool_cuda.cpython-36m-x86_64-linux-gnu.so ->
Building nms op...
rm -f .so
echo "Compiling nms kernels..."
Compiling nms kernels...
python3 setup.py build_ext --inplace
running build_ext
building 'cpu_nms' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/power/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -c cpu_nms.cpp -o build/temp.linux-x86_64-3.6/cpu_nms.o -Wno-unused-function -Wno-write-strings
In file included from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from cpu_nms.cpp:658:
/home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^~~~~~~
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/cpu_nms.o -o /home/power/mmdetection/mmdet/ops/nms/cpu_nms.cpython-36m-x86_64-linux-gnu.so
building 'cpu_soft_nms' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/power/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -c cpu_soft_nms.cpp -o build/temp.linux-x86_64-3.6/cpu_soft_nms.o -Wno-unused-function -Wno-write-strings
In file included from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from cpu_soft_nms.cpp:658:
/home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^~~~~~~
cpu_soft_nms.cpp: In function ‘PyObject __pyx_pf_12cpu_soft_nms_cpu_soft_nms(PyObject*, PyArrayObject*, float, float, float, unsigned int)’:
cpu_soft_nms.cpp:2491:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
__pyx_t_10 = ((__pyx_v_pos < __pyx_v_N) != 0);
^
cpu_soft_nms.cpp:3002:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
__pyx_t_10 = ((__pyx_v_pos < __pyx_v_N) != 0);
^
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/cpu_soft_nms.o -o /home/power/mmdetection/mmdet/ops/nms/cpu_soft_nms.cpython-36m-x86_64-linux-gnu.so
building 'gpu_nms' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/power/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -c gpu_nms.cpp -o build/temp.linux-x86_64-3.6/gpu_nms.o -Wno-unused-function -Wno-write-strings
In file included from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from gpu_nms.cpp:660:
/home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^~~
nvcc -I/home/power/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -c nms_kernel.cu -o build/temp.linux-x86_64-3.6/nms_kernel.o -c --compiler-options -fPIC
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h(436): error: identifier "nullptr" is undefined
/usr/lib/gcc/x86_64-linux-gnu/6/include/stddef.h(436): error: expected a ";"
/usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h(205): error: expected a ";"
/usr/include/c++/6/exception(63): error: expected a ";"
/usr/include/c++/6/exception(69): error: expected a ";"
/usr/include/c++/6/exception(77): error: expected a ";"
/usr/include/c++/6/exception(85): error: expected a ";"
/usr/include/c++/6/exception(95): error: expected a "{"
/usr/include/c++/6/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr"
/usr/include/c++/6/bits/exception_ptr.h(64): error: expected a "{"
/usr/include/c++/6/bits/exception_ptr.h(71): error: namespace "std" has no member "rethrow_exception"
/usr/include/c++/6/bits/exception_ptr.h(81): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(83): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(84): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(86): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(88): error: declaration is incompatible with previous "std::current_exception"
(64): here
/usr/include/c++/6/bits/exception_ptr.h(88): error: use of a local type to declare a function
/usr/include/c++/6/bits/exception_ptr.h(88): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(89): error: use of a local type to declare a function
/usr/include/c++/6/bits/exception_ptr.h(92): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(94): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(97): error: incomplete type is not allowed
/usr/include/c++/6/bits/exception_ptr.h(97): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(118): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(128): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(145): error: use of a local type to declare a function
/usr/include/c++/6/bits/exception_ptr.h(146): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(149): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(154): error: use of a local type to declare a function
/usr/include/c++/6/bits/exception_ptr.h(155): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(158): error: use of a local type to declare a function
/usr/include/c++/6/bits/exception_ptr.h(159): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(162): error: use of a local type to declare a function
/usr/include/c++/6/bits/exception_ptr.h(163): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(171): error: expected a ";"
/usr/include/c++/6/bits/exception_ptr.h(197): error: expected a ";"
/usr/include/c++/6/bits/move.h(47): error: expected a ";"
/usr/include/c++/6/type_traits(71): error: identifier "constexpr" is undefined
/usr/include/c++/6/type_traits(71): error: template parameter "_Tp" may not be redeclared in this scope
/usr/include/c++/6/type_traits(71): error: expected a ";"
/usr/include/c++/6/type_traits(72): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name
/usr/include/c++/6/type_traits(73): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name
/usr/include/c++/6/type_traits(74): error: identifier "constexpr" is undefined
/usr/include/c++/6/type_traits(79): error: identifier "constexpr" is undefined
/usr/include/c++/6/type_traits(79): error: "value_type" has already been declared in the current scope
/usr/include/c++/6/type_traits(79): error: expected a ";"
/usr/include/c++/6/type_traits(84): error: identifier "constexpr" is undefined
/usr/include/c++/6/type_traits(84): error: "_Tp" is not a function or static data member
/usr/include/c++/6/type_traits(93): error: expected a declaration
/usr/include/c++/6/type_traits(93): error: expected a ";"
/usr/include/c++/6/type_traits(126): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(242): error: identifier "char16_t" is undefined
/usr/include/c++/6/type_traits(246): error: identifier "char32_t" is undefined
/usr/include/c++/6/type_traits(246): error: class "std::__is_integral_helper<>" has already been defined
/usr/include/c++/6/type_traits(344): error: identifier "__float128" is undefined
/usr/include/c++/6/type_traits(460): error: expected a ">"
/usr/include/c++/6/type_traits(464): error: expected a ">"
/usr/include/c++/6/type_traits(472): error: expected a ">"
/usr/include/c++/6/type_traits(476): error: expected a ">"
/usr/include/c++/6/type_traits(484): error: expected a ">"
/usr/include/c++/6/type_traits(488): error: expected a ">"
/usr/include/c++/6/type_traits(496): error: expected a ">"
/usr/include/c++/6/type_traits(500): error: expected a ">"
/usr/include/c++/6/type_traits(508): error: expected a ">"
/usr/include/c++/6/type_traits(512): error: expected a ">"
/usr/include/c++/6/type_traits(520): error: expected a ">"
/usr/include/c++/6/type_traits(524): error: expected a ">"
/usr/include/c++/6/type_traits(532): error: expected a ">"
/usr/include/c++/6/type_traits(536): error: expected a ">"
/usr/include/c++/6/type_traits(544): error: expected a ">"
/usr/include/c++/6/type_traits(548): error: expected a ">"
/usr/include/c++/6/type_traits(558): error: namespace "std" has no member "nullptr_t"
/usr/include/c++/6/type_traits(579): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(585): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(592): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(599): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(609): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(635): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(745): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(759): error: expected a ";"
/usr/include/c++/6/type_traits(774): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(784): error: expected a ")"
/usr/include/c++/6/type_traits(795): error: an explicit template argument list is not allowed on this declaration
/usr/include/c++/6/type_traits(795): error: expected a type specifier
/usr/include/c++/6/type_traits(795): error: function returning function is not allowed
/usr/include/c++/6/type_traits(795): error: expected a ";"
/usr/include/c++/6/type_traits(801): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(802): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(832): error: function call is not allowed in a constant expression
/usr/include/c++/6/type_traits(832): error: function call is not allowed in a constant expression
/usr/include/c++/6/type_traits(832): error: this operator is not allowed in a template argument expression
/usr/include/c++/6/type_traits(843): error: an explicit template argument list is not allowed on this declaration
/usr/include/c++/6/type_traits(843): error: expected a type specifier
/usr/include/c++/6/type_traits(843): error: function returning function is not allowed
/usr/include/c++/6/type_traits(843): error: expected a ";"
/usr/include/c++/6/type_traits(849): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(850): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator)
/usr/include/c++/6/type_traits(875): error: function returning function is not allowed
/usr/include/c++/6/type_traits(886): error: an explicit template argument list is not allowed on this declaration
/usr/include/c++/6/type_traits(886): error: expected a type specifier
Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_00007900_00000000-6_nms_kernel.cpp1.ii".
Compilation terminated.
error: command 'nvcc' failed with exit status 1
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 1
Looking forward to your reply！

The compiling error seems to be related to you gcc version. You may installed multiple gcc versions but the higher version is found during compiling.
Have you tried the solution in your referred issue?

The compiling error seems to be related to you gcc version. You may installed multiple gcc versions but the higher version is found during compiling.
Have you tried the solution in your referred issue?

In fact, I don't know where to add the command "-DCUDA_HOST_COMPILER=/usr/bin/gcc-5" about my  referred issue to your setup.py file. I don't know how to add it.

https://github.com/open-mmlab/mmdetection/blob/master/mmdet/ops/nms/setup.py#L14 seems what you can have a try.

https://github.com/open-mmlab/mmdetection/blob/master/mmdet/ops/nms/setup.py#L14 seems what you can have a try.

By constantly trying to uninstall and install gcc, it seems that I solved the problem of gcc, but there is a problem with nvcc.
Unable to execute ':/usr/local/cuda-9.0:/usr/local/cuda-9.0/bin/nvcc': No such file or directory
Error: command ':/usr/local/cuda-9.0:/usr/local/cuda-9.0/bin/nvcc' failed with exit status 1
I don't know why, if I install CUDA9.0 or CUDA9.2 successfully, the nvcc --version command is always displayed as "Cuda compilation tools, release 9.1, V9.1.85". If CUDA10.0 is installed, it will display correctly. I don't know if the issue of nvcc is related to these. In addition, I checked the nvcc executable file in the path /usr/local/cuda-9.0/bin.
The following is the compilation process:
power@ubuntu:~/mmdetection$ PYTHON=python3 ./compile.sh
Building roi align op...
running build_ext
building 'roi_align_cuda' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/TH -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/THC -I:/usr/local/cuda-9.0:/usr/local/cuda-9.0/include -I/usr/include/python3.6m -c src/roi_align_cuda.cpp -o build/temp.linux-x86_64-3.6/src/roi_align_cuda.o -DTORCH_EXTENSION_NAME=roi_align_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
:/usr/local/cuda-9.0:/usr/local/cuda-9.0/bin/nvcc -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/TH -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/THC -I:/usr/local/cuda-9.0:/usr/local/cuda-9.0/include -I/usr/include/python3.6m -c src/roi_align_kernel.cu -o build/temp.linux-x86_64-3.6/src/roi_align_kernel.o -DTORCH_EXTENSION_NAME=roi_align_cuda -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options '-fPIC' -std=c++11
unable to execute ':/usr/local/cuda-9.0:/usr/local/cuda-9.0/bin/nvcc': No such file or directory
error: command ':/usr/local/cuda-9.0:/usr/local/cuda-9.0/bin/nvcc' failed with exit status 1
Building roi pool op...
running build_ext
building 'roi_pool_cuda' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/TH -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/THC -I:/usr/local/cuda-9.0:/usr/local/cuda-9.0/include -I/usr/include/python3.6m -c src/roi_pool_cuda.cpp -o build/temp.linux-x86_64-3.6/src/roi_pool_cuda.o -DTORCH_EXTENSION_NAME=roi_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
:/usr/local/cuda-9.0:/usr/local/cuda-9.0/bin/nvcc -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/TH -I/home/power/.local/lib/python3.6/site-packages/torch/lib/include/THC -I:/usr/local/cuda-9.0:/usr/local/cuda-9.0/include -I/usr/include/python3.6m -c src/roi_pool_kernel.cu -o build/temp.linux-x86_64-3.6/src/roi_pool_kernel.o -DTORCH_EXTENSION_NAME=roi_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 --compiler-options '-fPIC' -std=c++11
unable to execute ':/usr/local/cuda-9.0:/usr/local/cuda-9.0/bin/nvcc': No such file or directory
error: command ':/usr/local/cuda-9.0:/usr/local/cuda-9.0/bin/nvcc' failed with exit status 1
Building nms op...
rm -f .so
echo "Compiling nms kernels..."
Compiling nms kernels...
python3 setup.py build_ext --inplace
running build_ext
building 'cpu_nms' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/power/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -c cpu_nms.cpp -o build/temp.linux-x86_64-3.6/cpu_nms.o -Wno-unused-function -Wno-write-strings
In file included from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from cpu_nms.cpp:658:
/home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^~~~~~~
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/cpu_nms.o -o /home/power/mmdetection/mmdet/ops/nms/cpu_nms.cpython-36m-x86_64-linux-gnu.so
building 'cpu_soft_nms' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/power/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -c cpu_soft_nms.cpp -o build/temp.linux-x86_64-3.6/cpu_soft_nms.o -Wno-unused-function -Wno-write-strings
In file included from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from cpu_soft_nms.cpp:658:
/home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^~~~~~~
cpu_soft_nms.cpp: In function ‘PyObject __pyx_pf_12cpu_soft_nms_cpu_soft_nms(PyObject*, PyArrayObject*, float, float, float, unsigned int)’:
cpu_soft_nms.cpp:2491:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
__pyx_t_10 = ((__pyx_v_pos < __pyx_v_N) != 0);
^
cpu_soft_nms.cpp:3002:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
__pyx_t_10 = ((__pyx_v_pos < __pyx_v_N) != 0);
^
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/cpu_soft_nms.o -o /home/power/mmdetection/mmdet/ops/nms/cpu_soft_nms.cpython-36m-x86_64-linux-gnu.so
building 'gpu_nms' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/power/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -c gpu_nms.cpp -o build/temp.linux-x86_64-3.6/gpu_nms.o -Wno-unused-function -Wno-write-strings
In file included from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821:0,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from gpu_nms.cpp:660:
/home/power/.local/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^~~
nvcc -I/home/power/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -c nms_kernel.cu -o build/temp.linux-x86_64-3.6/nms_kernel.o -c --compiler-options -fPIC
x86_64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.6/gpu_nms.o build/temp.linux-x86_64-3.6/nms_kernel.o -o /home/power/mmdetection/mmdet/ops/nms/gpu_nms.cpython-36m-x86_64-linux-gnu.so

You cannot specify CUDA_HOME with export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-9.0. It should be a single path, use export CUDA_HOME=/usr/local/cuda-9.0 instead.

You cannot specify CUDA_HOME with export CUDA_HOME=$CUDA_HOME:/usr/local/cuda-9.0. It should be a single path, use export CUDA_HOME=/usr/local/cuda-9.0 instead.

It works!!! I don't know how to express my gratitude to you now. I am so excited. I have been troubled for more than 20 days and I can continue to do so. Thank you again.

Hi @stevenDW, The root cause of my first problem may be that the compilation process incorrectly called a later version of gcc-6. After uninstalling gcc-6 with the command "sudo apt-get remove gcc-6", the problem about nvcc occurs. After the guidance of Dr. Chen Kai, I changed the command "export PATH=$PATH:/usr/local/cuda-9.0/bin" to "export CUDA_HOME=/usr/local/cuda-9.0" when configuring environment variables. Successfully solved the problem and compiled it.

export CUDA_HOME=/usr/local/cuda-9.0

where should i put this instruction ? shall i run it directly on the terminal on the env (open-mmlab) or put it in the config file ?
I faced the same error ..


Use prefix to allow exceed Windows MAX_PATH

By using this prefix, you can exceed the Windows MAX_PATH limit.
See: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN#win32-file-namespaces
Related to #2524, #2220.

Does this mean the FileNotFoundError that avoids infinite loop can be removed?

Yes, I think so...

Or maybe we could leave it in case a relative path exceeds the MAX_PATH limit...

Or maybe we could leave it in case a relative path exceeds the MAX_PATH limit?

What about converting relative paths to absolute?

Nice ! Have you had a chance to test it on a windows machine with the max path limit enabled ? Afaik the CI doesn't have the path limit

Sure @lhoestq: I've tested on my machine... And this fixes most of the tests... 😅


Airport auto populate breaks randomly

Describe the bug
When using the "Airport example" on the docsite, the auto fill feature randomly breaks and does not auto select the matching menu option. This is issue happens randomly.
To Reproduce
Steps to reproduce the behavior:

Go to https://auro.alaskaair.com/components/auro/combobox
Navigate to the Airports example
Quickly type 'pdx' into the input field
If the input field gets auto filled with a matching menu option, refresh the page and repeat step 3 until only the letters 'pdx' are inside of the input field with a menu option showing. (See attached recording to see the issue. The issue can be noticed at the end of the video. The expected behavior can be seen throughout the video until the very end when it breaks.)

Expected behavior
After inputing 'pdx' inside of the field should ALWAYS auto populate the input box with the matching menu option.
Screenshots/Video recording of Issue
https://user-images.githubusercontent.com/7931018/235256897-6c837640-ae44-4f02-9b8e-6ab5ae7af9df.mov
Desktop (please complete the following information):

OS: iOS 12.6 Monterey
Browser: Chrome
Version: 112.0.5615.137

Additional context
Another issue concerning the Airport Example, but not sure if they are related. #119

@marnel-mangrubang I am unable to repro this issue as you describe. Watching the video I surmise that what is happening is that you started to type into the field before all the resources were loaded.
A few things to keep in mind. The docsite is using all examples from a CDN, so as a performance issue, the Auro docsite is an example for how NOT to do things in prod. We do this for ease of maintenance.
But when trying to repro your issue, if I let all resources load, the element performs as expected.

Closing this issue as the solution will be to not display the the content component until it has fully loaded all of its dependencies.


delete blank project and fix issues 161, 164, 165

fix issues:
now when logged in successfully, it will show Logged in as {accountId} with public key {public-key (ed25519:CV16URecQ1jshXQxzBRZStywfFBCuAVFyFYk39ngohuh)} successfully
user can copy correct public keys and not copy from url.
also reformat the code in bin/near.js and index.js into more clear format.
rewrite readme to lastest version of near-shell

test is not passing. WIP for tests

now readme is like this:
Commands
For account:
  near login                                   # create a developer account
  near create_account <accountId>              # create a developer account with masterAccount, publicKey and initialBalance
  near view <accountId>                        # view account state
  near keys <accountId>                        # view account public keys
  near send <sender> <receiver> <amount>       # send tokens to given receiver
  near stake <accountId> <publicKey> <amount>  # create staking transaction (base58 encoded)
  near delete <accountId> <beneficiaryId>      # delete an account and transfer funds to beneficiary account

For smart contract:
  near build                                   # build your smart contract
  near deploy                                  # deploy your smart contract
  near call <contractName> <methodName>        # schedule smart contract call which
  [args]                                       # can modify state
  near view <contractName> <methodName>        # make smart contract call which can
  [args]                                       # view state
  near clean                                   # clean the build environment

For transactions:
  near tx-status <hash>                        # lookup transaction status by hash

Options

Option
Description
Type
Default

--help
Show help
[boolean]

--version
Show version number
[boolean]

--nodeUrl, --node_url
NEAR node URL
[string]
"http://localhost:3030"

--networkId, --network_id
NEAR network ID for different keys by network
[string]
"default"

--helperUrl
NEAR contract helper URL
[string]

--keyPath
Path to master account key
[string]

--homeDir
Where to look for master account
[string]
"~/.near"

--accountId, --account_id
Unique identifier for the account
[string]  [required]

--masterAccount
Account used to create requested account.
[string]  [required]

--publicKey
Public key to initialize the account with
[string]  [required]

--initialBalance
Number of tokens to transfer to newly account
[string]  [required]

In readme, for staking, create staking transaction (base58 encoded) is a bit confusing. It is not clear whether it is saying that the transaction is base58 encoded or the key is base58 encoded. Also what does near clean do exactly? Maybe the comment could be more clear on what is cleaned.


Use tags to preserve handbook history

I was considering how your handbook might grow & change over time both as the number of employees at your company grows and as some of your employees gain tenure. It might be interesting to add tags to the repo to mark certain company milestones (e.g. "10-30 employees", "1 year in business"). This might let future startups more easily look back at versions of your policies that worked well for you when Clef was smaller/younger, and in the future might let you reflect on how your policies have changed as you became a larger company.

I'm rusty with Github -- @jessepollak how feasible is this / how would we do it?

Absolutely possible. We'll definitely tag before we start working on the post-seed version and there may be other milestones before then that we can also tag. Also adding a tag for initial launch right now, thanks!


add transformers modifications to boost performance on inference

@pommedeterresautee I think it is ready for review

ran locally the code and got that error:
Start test without transformers modifications
batch-0: Process 8 samples in 3.60 seconds
batch-1: Process 8 samples in 3.58 seconds
batch-2: Process 8 samples in 2.72 seconds
batch-3: Process 8 samples in 2.73 seconds
batch-4: Process 8 samples in 2.21 seconds
Finish the processing of 40 samples with the speed 2.32 samples/second. Full time: 17.23916006088257
Start test with transformers modifications
Traceback (most recent call last):
  File "/home/geantvert/workspace/fast_transformer/demo/generative-model/fastseq_test.py", line 219, in <module>
    modify_transformers = True
  File "/home/geantvert/workspace/fast_transformer/demo/generative-model/fastseq_test.py", line 140, in transformers_modifications_test
    # warmup model:
  File "/home/geantvert/workspace/fast_transformer/demo/generative-model/fastseq_test.py", line 46, in _generate
    # Generate Summary
  File "/home/geantvert/.local/share/virtualenvs/fast_transformer/lib/python3.9/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "/home/geantvert/.local/share/virtualenvs/fast_transformer/lib/python3.9/site-packages/transformers/generation_utils.py", line 1354, in generate
    return self.beam_search(
  File "/home/geantvert/.local/share/virtualenvs/fast_transformer/lib/python3.9/site-packages/transformers/generation_utils.py", line 2277, in beam_search
    model_kwargs["past"] = self._reorder_cache(model_kwargs["past"], beam_idx)
  File "<string>", line 24, in updated_reorder_cache
AssertionError

Process finished with exit code 1

@pommedeterresautee I didn't get this error. I'll try to reproduce it. (are you sure you have the last version of this branch ? )

Everything is up to date.
Do you try with up to date Transformers (v.4.20.1)?

I'm testing with the last version: 4.20.1 and no error. This is the expected output:
Start test without transformers modifications
batch-0: Process 8 samples in 3.72 seconds
batch-1: Process 8 samples in 3.90 seconds
batch-2: Process 8 samples in 3.84 seconds
batch-3: Process 8 samples in 3.93 seconds
batch-4: Process 8 samples in 3.33 seconds
Finish the processing of 40 samples with the speed 1.69 samples/second. Full time: 23.705780506134033
Start test with transformers modifications
batch-0: Process 8 samples in 2.47 seconds
batch-1: Process 8 samples in 2.48 seconds
batch-2: Process 8 samples in 2.55 seconds
batch-3: Process 8 samples in 2.65 seconds
batch-4: Process 8 samples in 2.23 seconds
Finish the processing of 40 samples with the speed 2.70 samples/second. Full time: 14.797889947891235

Ok, seems I had an issue with transformers on my side. Cleaning it made the code work as expected.
Can you add the assert thing, it's still a good idea :-)
It may look something like that:
assert new_code in function_code, f"Failed to update function {function.__name__} in module {module_name}"

@pommedeterresautee : Assertion is added :100:


Syntax highlighting for .config files too

Tested this locally with the latest package on Atom and it seems to work quite well :) Hopefully, added it in the right place @pditommaso

Not sure about this. The config syntax is not the same as the DSL syntax. This can create more confusion.

Closing w/o merging. A workaround consists on selecting manually nextflow as the language in bottom bar (on the right).

Ok. Thanks @pditommaso 👍 Apologies for the delay in responding. Basic highlighting with the Nextflow syntax is working fine for me.

No pb. I agree that could be an approximation but cannot promote it as "official" solution.


Bash Opens, then Immediately Closes

Your Windows build number:  Version 10.0.14393

What you're doing and what's happening:  Attempting to run Bash.exe through start menu or cmd prompt opens bash window for a split second, before automatically closing.

What's wrong / what should be happening instead: Bash window is crashing/does not remain open.

Full text: I have been using bash on this computer for the better part of a year, however starting 2 weeks ago when I run bash.exe, the window will open and then instantly close. I have tried disabling the Linux subsystem, restarting, removing the xlss folder, and then turning the subsystem back on to no avail. The xlss folder is still missing from my computer, yet when I type "bash" into my start menu the option to run "Bash on Ubuntu on Windows" is still there. I have also tried switching from developer mode to allow side-loading apps, and back to developer mode again. Any ideas? I'm thinking the error began after an update. On 9/13 (around when the error began), I installed the following updates:

2017-09 Cumulative Update for Windows 10 Version 1607 for x64-based Systems (KB4038782)
Windows Malicious Software Removal Tool for Windows 8, 8.1, 10 and Windows Server 2012, 2012 R2, 2016 x64 Edition - September 2017 (KB890830)
2017-09 Security Update for Adobe Flash Player for Windows 10 Version 1607 for x64-based Systems (KB4038806)

Try bash -c sh, does that work? The fact that you see the bash window appear means there's a good chance it's not the lxss subsystem.

Open cmd.exe and type bash there. It should tell you what's happening. You probably need to disable Legacy Mode on cmd Properties.

The error code I am given when typing bash, or bash -c sh is: 0x80070490

same error as #735 and #1362

Any idea on how to recover the xlss file? I'm not seeing it in my local AppData and it isn't in my recycle bin.

@awallace689 - The lxss directory is marked as hidden and system, you should be able to see in in cmd.exe or powershell.

When I click on bash.exe it opens and then closes right away.
I tried disabling and enabling Windows Subsystem for Linux did not worked.
Please help!!

i think i changed the profle
On Sun, May 26, 2019 at 6:25 PM Jay Shankar Gupta<EMAIL_ADDRESS>wrote:

When I click on bash.exe it opens and then closes right away.
I tried disabling and enabling Windows Subsystem for Linux did not worked.
Please help!!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/2520?email_source=notifications&email_token=AJN7CN3EKIXS64CJKR5S2WTPXKTV5A5CNFSM4D4GSGA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWIH53A#issuecomment-496008940,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJN7CN6DC2KBCKTMZL7PRHLPXKTV5ANCNFSM4D4GSGAQ
.

--
<EMAIL_ADDRESS>054 848 2245
http://www.kollelklal.org/

For those encountering this issue, Windows Bash now needs to be installed from the Microsoft Store. Opening bash alone is no longer sufficient.

open cmd terminal -> properties -> uncheck Use legacy console in ...

It is because Windows Subsystem for Linux has no installed distributions on your PC/Laptop.
Distributions can be installed by visiting the Microsoft Store or via this link and you can choose the Linux distribution you want.
After that, you will simply be able to open your bash window normally.

Almost two and a half years ago I opened this ticket and have received many notification e-mails since. Just install ubuntu from the windows store and enjoy. Peace.

@awallace689 And yet it took you two and half years to post the solution :)

@awallace689 better late than never. 😄

@awallace689 better late than never. 😉

i am having same issue , any solution still?

I think it was the configuration file
Yishai Rasowsky
kollelklal.org
On Tue, Nov 2, 2021, 10:19 brokeneyes1 @.***> wrote:

i am having same issue , any solution still?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/2520#issuecomment-957193236, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AJN7CN4GYCRDXRHZNKCSKCLUJ6NKHANCNFSM4D4GSGAQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

If you have a distro installed and it still fails, check your default distribution using wsl --list This issue occured for me due to my default distro being set to 'docker-desktop-data' You can change it with wsl --setdefault <distro_name>

Thank you so much this was the issue I was facing was going crazy hhhh


Switch Java discovery samplegen to MVVM

I've included a few baselines diffed against master, PTAL.

@saicheems: Before we merge, please implement in a separate PR the equivalent of #542, but for MVVM
@tcoffee-google tcoffee: Your close scrutiny of the baseline changes here will be extremely valuable

I'd prefer to do so immediately after, as the media stuff depends on changes to apiary config
Otherwise I'll wait for him to merge that PR and make another followup

#542 has been merged.

@saicheems Let's do the media stuff first, so we have no expected regressions when we switch over.

Well, I can't view adexchangebuyer and compute on Github, so I'll have to format my comments separately. Stay tuned :-).

sample.snip:8: Looks like this switch could be an if.
It could be, but the switch is cleaner IMO.

sample.snip:48: Looks like example values for special patterns are missing.
I assume you're referring to values for zone... it's tricky, I'm not actually sure how to do it in MVVM...
Right now we're hardcoding the names of the APIs where there is a zone field to insert extra documentation. I have ideas around overrides, but the way this whole thing is designed to handle special fields like that one is to use overrides to specify them.

Theoretically, that could mean a sample() field in FieldInfo, but those would have to be manually specified (or tool-assisted), and I assume that there will be negative feedback for that approach.
TLDR; I don't know how to do it nicely without manually specifying it
(If I had infinite power, I would change the API to include the sample in the docstring)

sample.snip:48: Looks like example values for special patterns are missing.
They're there - defaultValue is populated with path template patterns if they're available.

I think we're talking about different things --- I'm talking about the additional comments currently implemented by getDefaultString in DiscoveryContext.java for date-times and the like.

With exception of preceding comment, I've made all follow-ups on #556.

OK, everything was addressed in #556 - rebased and ready for review.

Rebased and re-ready

If the compilecheck passes with this new flow, then LGTM--but please wait for @tcoffee-google's LGTM as well.

Sorry, one more nit: now that the "Assign values to desired fields of requestBody" comment appears above the requestBody variable declaration, let's end this comment with a colon instead of a period.
Otherwise LGTM.

Current coverage is 82.17% (diff: 100%)

Merging #548 into master will increase coverage by 3.29%

@@             master       #548   diff @@
==========================================
  Files           254        254
  Lines          9569       9576     +7
  Methods           0          0
  Messages          0          0
  Branches       1265       1265
==========================================
+ Hits           7548       7869   +321
+ Misses         1695       1376   -319
- Partials        326        331     +5

Powered by Codecov. Last update 28a0dfa...4a9b17d


Fixes and Improvements for README.md

Fix "tested with" and "Credits" headings
Specify language for the snippets

Thanks @foohyfooh for the PR.
:100:


[DRAFT] Summarization Sync/Streaming API

Data Plane API - Pull Request
Design doc, hero scenarios and core concepts
https://microsoft.sharepoint.com/:p:/t/TextAnalyticsTeam/EaHfvJU41pFAvcTSfHrEXcYBLS4XOOMquE6s1zngQZhJJA?e=hM2IOQ
API Info: The Basics
Most of the information about your service should be captured in the issue that serves as your engagement record.

Link to engagement record issue:

Is this review for (select one):

[x] a private preview
[ ] a public preview
[ ] GA release

Change Scope
This section will help us focus on the specific parts of your API that are new or have been modified. Please share a link to the design document for the new APIs, a link to the previous Open API document (swagger) if applicable, and the root paths that have been updated.

Design Document:
Previous Open API Doc:
Updated paths:

❔Got questions? Need additional info?? We are here to help!

 Contact us!
The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

💬 Teams Channel
💌 email

Click here for links to tools, specs, guidelines & other good stuff
Tooling

Open API validation tools were run on this PR. Go here to see how to fix errors
Spectral Linting
Open API Hub

Guidelines & Specifications

Azure REST API Guidelines
OpenAPI Style Guidelines
Azure Breaking Change Policy

Helpful Links

Azure DevTools Wiki

fix https://github.com/Azure/azure-rest-api-specs/issues/22181

/azp run


updates about apps and themes

This small update adds the 'themes' settings and updates the information about the url structure for nodes with alternative languages.

Pull Request Test Coverage Report for Build 243218061

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 72.275%

Totals

Change from base Build 199327401:
0.0%

Covered Lines:
1537

Relevant Lines:
1916

💛  - Coveralls


loop

if it's a loop now, if it's the last one, it's back to the beginning, how about making a connection. So the first card is behind the last card, so if you slide it, it's like there's no end to the card

agree!!!

Agree

You can pass :loop="true" to the carousel component - it's probably undocumented, but it's there and it works.

Hey @ianapiron is not working for me :loop="true"
      <carousel :per-page="1" :loop="true">
        <slide> Slide 1 Content </slide>
        <slide> Slide 2 Content </slide>
        <slide> Slide 2 Content </slide>
      </carousel>

loop true doesnt work for me neither

Agree


Update @emotion/is-prop-valid

fixes https://github.com/styled-components/styled-components/issues/2218
related https://github.com/emotion-js/emotion/issues/1042
This fails atm only on this test - https://github.com/styled-components/styled-components/blob/3056e3110dd7b64ecbe2dc3609e338cb7d73da91/src/utils/test/validAttr.test.js#L414-L419 . Is this something that you feel strongly about supporting? IMHO its not a real life use case (even if technically its correct) - data- & aria- are written with lowercase by convention.

Yes it should continue to work

That's a bug in is-prop-valid

Tests are passing, but the size check is broken - this is not fault of this PR though.

Thanks!


Update http_request_handler.go

fix http context exceptional cancel problem
The following changes are implemented
fix http context exceptional cancel problem
Changes in the user interface:
TODO: Add screenshots, recordings or remove this section
Checklist when submitting a final (!draft) PR

[ ] Commits are tidied up, squashed if needed and follow guidelines in CONTRIBUTING.md
[ ] Code builds
[ ] All existing tests pass
[ ] All new critical code is covered by tests
[ ] PR is linked to the relevant issue(s)
[ ] Rebased with the target branch

@zhao85 Hey im cleaning PR's, can you describe what this is please?


Crash

Ran the Windows 11 debloat and it crashed my desktop and my bitdefender said it was a virus and made my screen black but my youtube video is still up playing. I cant access my desktop so i have to force restart the computer.  Need to fix your exe file bruh.

Heya,
Sorry to hear you ran into issues. Luckily from your description it seems like it was a simple case of Windows Explorer not recovering properly.
Win11Debloat automatically restarts Windows Explorer process to apply changes. The desktop is a part of that process and will restart too. Normally this should just take a second, but I'm guessing Bitdefender intervened and stopped Windows Explorer from starting back up properly.
To be clear: This doesn't do any damage or break any part of the OS. The desktop simply remained black because the windows explorer process that's responsible for it wasn't running anymore.
Did you run into any issues after restarting Windows?

I logged out from ctrl, alt, del and back in and it was fine. Im trying to
get rid of ms edge. I am unable to run the debloat anymore. Just like the
other debloats, they just pop up like a blip and close.
On Sun, Oct 29, 2023, 5:49 AM Jeffrey @.***> wrote:

Heya,
Sorry to hear you ran into issues. Luckily from your description it seems
like it was a simple case of Windows Explorer not recovering properly.
Win11Debloat automatically restarts Windows Explorer process to apply
changes. The desktop is a part of that process and will restart too.
Normally this should just take a second, but I'm guessing Bitdefender
intervened and stopped Windows Explorer from starting back up properly.
To be clear: This doesn't do any damage or break any part of the OS. The
desktop simply remained black because the windows explorer process that's
responsible for it wasn't running anymore.
Did you run into any issues after restarting Windows?
—
Reply to this email directly, view it on GitHub
https://github.com/Raphire/Win11Debloat/issues/12#issuecomment-1784098451,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYOH22XECXSXRGPRQ4U6D3TYBY7CXAVCNFSM6AAAAAA6USI5NCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGA4TQNBVGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

I'm guessing bitdefender is blocking scripts from executing, that would explain why they immediately close.
Win11Debloat cannot remove microsoft edge, Microsoft makes it hard to do and, in my opinion, it's more trouble than it's worth. Especially for the average user.
I would suggest looking up a guide to do it manually if you really want it gone.


JSON native type

Numbers and boolean will be converted (coerced) to native type instead of text

Conflicting too much ... reviewer comments not respected ... close


Uncalled function checks don't work with negation

Bug Report

🔎 Search Terms
uncalled function checks, negation
🕗 Version & Regression Information

This is the behavior in every version I tried

⏯ Playground Link

Playground link with relevant code
💻 Code

declare function isFoo(): boolean;
declare const isUndefinedFoo: (() => boolean) | undefined;

if (isFoo) {
    // uncalled function checks already work well here
}

if (!isFoo) {
    // uncalled function checks should cover this case too
}

if (!isUndefinedFoo) {
    // this case should not be covered
}

🙁 Actual behavior
Uncalled function checks do not work with the ! operator.
🙂 Expected behavior

Unless a function may be undefined it would be very helpful to check whether it is called when it is used with the ! operator.
I created this issue to separate a part of the implementation of #42835 resulting from issue #35584. This specific issue was inspired by https://github.com/microsoft/TypeScript/issues/35584#issuecomment-769401594.

This bug hit my codebase earlier this week.
Would the Typescript team accept a pull request for this?


Loading overlays for Windows Mixed Reality in Unity

It seems that Steam and OVR plugins in Unity ship with a script that can be used during transitions (scene change, load behavior, etc.) to display overlays (instead of the screen going all dark). This is a pretty useful out-of-box script that anyone can use while developing their games.
Attached are the scripts.
Can we do something similar for Windows MR, so that not everyone has to write one from scratch?
OVROverlay.cs.txt
SteamVR_Overlay.cs.txt

@subzero110 - In the Dev_Unity_2017.2 branch, in the Utilities/Scripts area, there is a fadescript script.  Check that out and see if that is similar to what you are talking about, or maybe that's what we need to extend for this.

I'd like to second that request. The FadeScript seems to be something else. What we are talking about, as implemented in Steam and OVR, is the ability to set an image (i.e. a Sprite in Unity) to be displayed on the HUD of the headset without any Unity involvement. (In Steam and OVR, the image is displayed only on the HUD (not in the mirror view), so I believe it is a rather low-level access mechanism).
This is super-helpful for displaying loading screens in-between scenes. I.e. you fade out, display that image, and then load a new scene (synchronously) in Unity, all the while only displaying the loading image, no hickkups. When the loading is done, you remove the image and fade in your scene. The loading screen is thus independent of any one scene.

One other thing to keep in mind is that if we add anything to the Mixed Reality Camera Parent then we also need a way to disable this overlay so it doesn't impact performance.

Yes. By the way, you probably are not talking about the Unity gameobject parent for the camera when you say "Camera Parent", but on the off chance that you do, note that the SteamVR/OpenVR-image is independent of any scene. It's set directly, bypassing Unity scene mechanics.

@StephenHodgson There is no way to do this currently with WMR, is there? Outside of the MixedRealityToolkit, maybe - directly calling some DLL?

@StephenHodgson I've noticed that the Haptics implementation only works at runtime, and by directly calling Windows API. Is there any way to do something similar for a screen overlay? If there are classes in the Windows API which can do this I'd really appreciate a tip. Thanks.

I'm also looking for a way to do this.

@StephenHodgson I am still interested in this feature - any updates?

None yet

Closing issues older than 180 days. If this is still an issue, please reactivate with recent information.


ReferenceError: fetch is not defined

Hi,
I tried this repo: https://github.com/weaviate-tutorials/next-multimodal-search-demo
when I run yarn run import, I got the following error:
ReferenceError: fetch is not defined
...
Node.js v17.0.0
error Command failed with exit code 1.

Hi @pribadihcr, the v2 TS client was refactored in a breaking way to remove the isomorphic-fetch dependency replacing it with the native fetch API. In order to use fetch with node<18 you need to install it with the --experimental-fetch flag set otherwise fetch won't be available to the client. Alternatively, you can use node>=18 and it will work fine!


Add support for JAVA

When using the insider --tech java ...
==> I got an error that Java is not a supported tech.
Describe alternatives you've considered
I tried to use --tech android but I am not sure that this is really relevant..

Hi, i was wondering can i use csharp to scan java project. When I used csharp the command did scan java project.


Update changelog for 2.0.2 release

Update changelog to include 2.0.2 release

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

Project coverage is 94.25%. Comparing base (f9e2187) to head (cd97cf9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #588   +/-   ##
=======================================
  Coverage   94.25%   94.25%
=======================================
  Files           7        7
  Lines         783      783
=======================================
  Hits          738      738
  Misses         45       45

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Cursor jumps to top every time file gets focus

Type: Bug
With some markdown files (I don't know about other file types) every time I switch to that file in the editor the cursor jumps to the top of the file, but it's always the same files. It doesn't happen with all files, and I haven't found what significant the difference is. The problem continues to occur even if I start with extensions disabled.

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

Yes. I downloaded the zip version and ran with no extensions. Same problem on the same files.

/gifPlease

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette).
Happy coding!

/gifPlease

"00 Book 05 Motifs - Virtue.md" is an affected file. "Scratch.md" is not. Watch what happens to the cursor when switching between them. In Scratch.md the cursor keeps its position and selection. In the other file the cursor jumps to top of file.

Thanks but can you also please record a gif of this bug on VS Code insiders with extensions disabled. That will help verify that one of the extensions is not causing this

Here's another clue. The files with the problem seem to be old files. Ones that have been in my project for several years. In fact, if I just make a copy of the old file, the new file does not have the problem. Or if I rename a problem file, the problem goes away. But then if I change the name back, the problem returns to that file. Weird. For example:
Old file with the problem:
foobar.md < has the problem

Copy it:
foobar.md < has problem
foobar copy.md < no problem

Or rename it:
foobar2.md < no problem

Name it back:
foobar.md < has problem

One more symptom: The same files exhibit the same issue on different machines. I edit the project on two different Windows machines, one is Win10, one is Win11.

@gmccullo Can you please test again using the latest VS Code insiders build (1.72). I been able to reproduce this issue myself

@gmccullo Can you please test again using the latest VS Code insiders build (1.72). I been able to reproduce this issue myself

Verified. I can't reproduce it in Insiders 1.72.


Release checksums

how can I view the SHA256 checksum for a release on GitHub?

hello,
you have to publish your SHA256 for a specific release and add it to your Release files.
example:
hashes.sha256
for PowerShell release:
[https://github.com/PowerShell/PowerShell/releases/tag/v7.4.5]
(https://github.com/PowerShell/PowerShell/releases/tag/v7.4.5)

Are these tools - or others - available during the build? How can I generate a SHA256 checksum file during the build?

as far as I know, I don't know of any tools doing a hash during the build
I do it separately after the build

you can add a final step after the buid with a  PowerShell task:
Get-FileHash -Path "path\to\your\binary.exe" -Algorithm SHA256


Supervised Loss for Student

Hello @ycliu93, Thanks for your work.
I'd just like to confirm whether the student model actually uses the labelled data as part of training along with the pseudo-labelled data. This is because in the paper the diagram only shows strongly augmented data passed into the student model, but in the code  there is a forward pass for the student model that also takes labelled data with both weak and strong augmentations. For your references:
This shows that weakly augmented unlabelled data is for the teacher branch.

This shows that Lsup is from burn-in, and Lunsup is from the supervision of pseudo-labels.

This shows that student model has a forward pass given the labelled data (in which the forward pass is not for the burn-in)

Thanks very much.

Thanks, that answered my question.


Unable to recognize the datafactory from resource group {Script stopped working}

Hello Team,
Hope you are doing well.
We are facing two different issues on our Azure data factory pipeline automation

Suddenly it has stopped working while recognizing the below datafactory which already exists in the below resource Group , Screenshot for your reference

Config file:   D:\a\prowess-dnd-datafactory\prowess-dnd-datafactory/Configurations/prowess-preprod-<adf_name>.json
Write-Error: C:\Users\runneradmin\Documents\PowerShell\Modules\azure.datafactory.tools\1.7.0\private\Update-PropertiesFromFile.ps1:34
Line |
34 |          $config = Read-JsonConfigFile -Path $configFileName -adf $adf
|                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ADFT0017: Object [weuuathpwsadf02] could not be found.

its unable to recognize below FQDN :-

.blob.core.windows.net: The term 'weuuathdndsta02.blob.core.windows.net' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
.table.core.windows.net: The term 'weuuathpwssta01.table.core.windows.net' is not recognized as a name of a cmdlet, function, script file, or executable program.
Below is the code we are using for injecting the parameters and configuration
- name: Checkout tools repo
  uses: actions/checkout@v3
  with:
    repository: <org-name>/data_factory_pe_configuration
    token: ${{ secrets.ADF_POC }}
    path: Configurations

- name: Login via Az module
  uses: azure/login@v1
  with:
    client-id: <client_id>
    tenant-id: <tenant_id>
    subscription-id: <subscription_id>
    enable-AzPSSession: true

- name: Run Azure PowerShell script
  uses: azure/powershell@v1
  with:
    inlineScript: |
      $RootFolderADO =  "${{ github.workspace }}/ADOJSON"
      $RootFolderConfig =  "${{ github.workspace }}/Configurations/<teamname>-preprod-<adf_name>.json"
      Get-ChildItem $RootFolderADO
      Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
      Install-Module Az.Resources -RequiredVersion 6.4.1 -Repository PSGallery -Force
      Install-Module -Name Az.DataFactory -Repository PSGallery -Force
      Install-Module -Name azure.datafactory.tools -Repository PSGallery -force
      Import-Module -Name azure.datafactory.tools
      Get-Module -Name azure.datafactory.tools
      $SubscriptionName = '<subscription_id>'
      Set-AzContext -Subscription $SubscriptionName
      $ResourceGroupName = '<resource_group>'
      $DataFactoryName = "<adf_name>"
      $Location = "westeurope"
      Publish-AdfV2FromJson -RootFolder $RootFolderADO -ResourceGroupName $ResourceGroupName -DataFactoryName $DataFactoryName -Location $Location  -Stage $RootFolderConfig
    azPSVersion: "9.3.0"

Global parameters are not getting updated in proper way

Did we had any change on powershell script

There is something wrong in configuration file located in $RootFolderConfig, I guess.
Did you try to validate the file before?

You were Right @NowinskiK Thanks for the heads up
Closing this discussion as issue got resolved


WIP: script to run multiple blocks

Issue Number: N/A
Type

[ ] feature
[ ] bugfix
[ ] dev (no functional changes, no API changes)
[ ] fmt (formatting, renaming)
[ ] build
[ ] docs
[ ] testing

Description
Breaking changes?

[ ] yes
[ ] no

#357 could be useful here, for example you could grep "inner_exc error" when $? -ne 0.

Another useful thing to print here would be the number of transactions (or something correlated to the time it takes to execute the block / reproduce the failure).


Add anonymous problem posting

A user should be able to send a dm to the bot which gets relayed into a dedicated channel

Isn't it finished?


get the mch namespace when create the pullsecret

Signed-off-by: hchenxa<EMAIL_ADDRESS>The PR was update the namespace to handle the e2e test in zstream of release-2.2

/assign @clyang82

/retest

/retest

/retest


Android and commons-codec problem

If you try to use ttorrent on android you run into a NoMethodError due do android having an embedded commons-codec 1.2, while you're using commons-codec 1.8.
As far as I could see, you're using commons-codec for 2 simple operations that could be easily replaced. The 2 points that I found were:

DigestUtils.getSha1Digest()
Could be replaced by the following code:

MessageDigest.getInstance("SHA-1")

Hex.encodeHex
Could be replaced by the following code:

public static String byteArrayToHexString(byte[] bytes) {
	final char[] toDigits = "0123456789abcdef".toCharArray();
	int l = bytes.length;
	char[] out = new char[l << 1];

	int i = 0; for (int j = 0; i < l; ++i) {
		out[(j++)] = toDigits[((0xF0 & bytes[i]) >>> 4)];
		out[(j++)] = toDigits[(0xF & bytes[i])];
	}
	return new String(out);
}

Both codes were extracted from class files. The only thing to do other than the above is an exception that item 1) could throw.

That is a duplicate of #144 No static method encodeHex in Android

Should be fixed now, thanks to @henkel PR.


Use InputStream::getNaturalReadSize as default SeekableFileInputStrea…

Summary:
ReaderBase use BufferedInput to load metadata or actual data,  when use kDefaultDirectorySizeGuess (1MB) to load metadata, there will be 3 extra IO if we use default block size in SeekableFileInputStream (256KB).
InputStream has getNaturalReadSize method to indicate number of bytes should be read at once, it could fix this problem.
Fix #4042

Hi @Yuhta  could help me review this?


notification title & body = undefined

I have version 4.2.4 installed in Android 11.
When I receive a notification in the foreground, the Notification object does not have a title or body. I'm using FCM's test message.
Notifications.events().registerNotificationReceivedForeground(
  (notification, completion) => {
    console.log(`Notification received in foreground: ${notification.title} : ${notification.body}`);
    console.log(notification);
    completion({ alert: true, sound: true, badge: true});
  },
);

This outputs:
Notification received in foreground: undefined : undefined
{"identifier": "0:1650400098363430%d3631f10d3612f11", "payload": {"collapse_key": "com.app.myapp", "from": "9999999999", "gcm.n.dnp": "1", "gcm.n.e": "1", "gcm.notification.body": "Please git commit, push and run!", "gcm.notification.e": "1", "gcm.notification.tag": "campaign_collapse_key_99999999999999", "gcm.notification.title": "Fire on the building!", "google.c.a.c_id": "9999999999999", "google.c.a.c_l": "DevTest", "google.c.a.e": "1", "google.c.a.ts": "1650400078", "google.c.a.udt": "0", "google.c.sender.id": "9999999999999", "google.delivered_priority": "high", "google.message_id": "0:1650400098363430%d3631f10d3612f11", "google.original_priority": "high", "google.sent_time":<PHONE_NUMBER>351, "google.ttl": 2419200}}

As you can see, the message is present in the payload, but not in the object.
Because of this, the notification does not show up. Only workaround is to get the data from the payload and trigger a local notification.

Any updates on this issue? I am facing the same problem. The output varies depending on the type of event.

@ajaybushel Did you find any workaround? I am facing same issue.

same issue +1
and When I receive a notification in the background, then open it to launch app, the Notification object does not have a title or body.
{
collapse_key: 'com.libeccio.xterio',
'gcm.n.analytics_data':
      { 'google.c.a.e': '1',
          'google.c.a.c_l': 'test',
        'google.c.a.udt': '0',
        'google.c.a.ts': '1695199063',
        from: '1022924363809',
         'google.c.a.c_id': '6809650627476227774'
 },
'google.message_id': '0:1695199063520892%c4b7d40ac4b7d40a',
'google.original_priority': 'high',
'google.ttl': 2419200,
 from: '1022924363809',
 'google.sent_time':<PHONE_NUMBER>512,
'google.delivered_priority': 'high' }

there are no 'gcm.notification.title' key

@chenweigh As far as I remember, I had to pass the notification data in the "extraData" field or something from the notification hub itself. For iOS, the library properly picks up the title and body from notification.data object but for Android, for some reason, it doesn't.
Because of this issue, we ended up sending notifications using (Azure Notification Hub) like:
{
  data: {
    title: "...",
    body: "..."
  },
  ...
  extra: {
    title: "...",
    body: "..."
  }
}

Once done, I was able to properly access the properties on both iOS and Android. Also, I wouldn't take this concretely as it has been sometime since I worked on this.


feat(docker): Build multiple python version images

SUMMARY
We would like to use python3.9/3.10 in our custom configuration code to have some nice-to-have features. I don't really see a reason why there shouldn't be a python3.9/python3.10 version, the build arg even already exists?
TESTING INSTRUCTIONS
Run the docker build and see it works with python3.9/python3.10
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[X] Introduces new feature or API
[ ] Removes existing feature or API

Seems related to https://github.com/apache/superset/discussions/22810

@rusackas I removed the patch version now and switched back to the -slim version. Let me know if that makes sense or if we should stay with the pinned patch version.
I think -slim for sure makes sense if it works, which it did before.

Maybe there also should be a defined process of when the "next-python" image becomes the "main" python version?
python3.8 is still supported until next year, but in general I wouldn't mind if we only lag about 1 year behind the python release schedule? https://endoflife.date/python
That would mean we would try to move the "main" python image to 3.9 and have 3.10 support soon; and move to 3.10/3.11 in October when 3.12 releases?


Allow setting msg::sender in unit tests

Maybe we could create a wrapper around msg::sender similar to Context to alleviate the issue?
If we were to have a separate pub trait IContext that we implement for the Context contract (that other contracts inherit), we can mock said trait in tests (e.g. using mockall)


modules/obs-studio: optionally enable v4l2loopback

Description of changes
created a module for obs-studio so using programs.obs-studio.enable it installs obs studio, and using the enableVirtiaulCamera setups the kernel module configurations as well as the security policy necessary for the Virtual Camera support to be enabled

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Look like this should be include in https://github.com/NixOS/nixpkgs/pull/282903

@flexiondotorg how can I merge my code with that PR?

@flexiondotorg how can I merge my code with that PR?

My PR is stalled right now as I have not managed to write tests (that would start a VM, run OBS and check that it runs fine using OCR).
If you want to pick my changes and include them in your PR, please do not hesitate to do so.

Alright I worked more on this, here is what I did:

Added the kernelModule option as suggested by @justinas
I have added @GaetanLepage work onto my commit, joining both of us as mantainers, so now this module enables obs studio with the option to wrap plugins, enable the v4l2loopback module if virtual camera support is desired
Finished the vm test that @GaetanLepage started, I changed it a bit, so it does several tests to ensure that v4l2loopback is properly configured, and it launches obs with a flag to start the virtual camera. As for checking up that plugins are installed, I used a plugin for capturing vulkan games, and check if its added dependencies is found on path, looking at the logs you can also see that plugins are properly loaded, but couldn't find a way to capture specifics, I hope this is good enough.

Anything else that you guys think this module needs?

Also, you have to run nixfmt-rfc-style to format the files.

Fixed the merge conflict so it only inclues obs studio, and properly formated the nix files.

Great work ! Thanks for having put that effort in this module :)

Thank you for providing the base! :D

Now it's complaining about the missing pantheon-tweaks.nix. Why does that has to do with this PR ?
error: path '/home/runner/work/nixpkgs/nixpkgs/nixos/modules/programs/pantheon-tweaks.nix' does not exist

Now it's complaining about the missing pantheon-tweaks.nix. Why does that has to do with this PR ?
error: path '/home/runner/work/nixpkgs/nixpkgs/nixos/modules/programs/pantheon-tweaks.nix' does not exist

My guess is that when I rebased the repo with master I must've brought that line with me, it was still mixed with my commit, when I checked files changed, I did it again from scratch and there doesnt seem to be traced of any file modification other than adding "obs-studio" to module list, so hopefully the error dissapears, sorry for the inconvenience, i'm still learning git.

Added it to the 24.11 changelog, by adding it to the nixos/doc/manual/release-notes/rl-2411.section.md but if I need to also add it to somewhere else please let me know, I didn't fully understand the contributing manual.

nixpkgs-review result
Generated using nixpkgs-review.

Command: nixpkgs-review pr 312112
Systems: x86_64-linux,aarch64-linux

x86_64-linux

:fast_forward: 2 packages blacklisted:

nixos-install-tools
tests.nixos-functions.nixos-test

aarch64-linux

:fast_forward: 1 package blacklisted:

nixos-install-tools

There is a merge conflict on the release notes.

There is a merge conflict on the release notes.

sorry, I was on a trip, I just fixed it by rebasing it to the current master

Horray! looks like it's all in order this time! thanks for the assist!


Components features missing from Locale

Description
The Locale.Components struct (introduced in iOS 16/macOS 13), and its associated methods and constructors in Locale, are not implemented in this version of Foundation. This makes it impossible to use locales with different components on non-Apple targets.
Expected behavior
The Locale struct is up-to-date with the current macOS/iOS Foundation library, including Locale.Components.
Actual behavior
Locale.Components is missing, preventing compilation of code that uses it.
Environment

Arch Linux (latest)
Swift 5.9.2 (Red Hat UBI9)
Whichever swift-corelibs-foundation ships with Swift 5.9.2

Will be resolved by #5001


Fix release builds (finally)

Description
This is a small PR, but needs extensive testing to make sure our toolchain is in tact. Release builds should now be output to {root}/builds/libs and are obfuscated and ready to play, obfuscated jars will be published but the development environment will still work.
I have also moved back to parchment now that its available to 1.18.1 and added patchouli for the future.
Checklist:

[x] My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you)
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation

Any particular reason you removed all the NonNullLazyValue uses?

Answered internally :)

Merging, I'm dealing with the shading stuff on a different branch as well as moving ender core out of this repo.


OWNERS Cleanup: Part 1

Context
We've used the maintainers tool to parse the OWNERS file for inactive/low-activity GitHub handles based on their devstats contributions for 2022. This was done in late November & you can view the complete output on the #sig-docs-maintainers slack channel. Some part of the pruning was already completed via PRs by @saschagrunert and me in early December/late November.
What this PR does?
The following approvers and reviewers in the OWNERS_ALIASES file have been inactive (devstats == 0) for the past year. This PR prunes them from the OWNERS_ALIASES file, failing any response from their side.
What do I need to do?
Please comment on this PR if you have been tagged on the list below and still have time/interest to contribute. If you'd prefer to let us know your decision via DM, please initiate a group chat with @natalisucks, @reylejano, and me on Slack by 9th January 2023 EOD.
Further steps
I'll also email the SIG Docs google group and post threads on the #sig-docs and #sig-docs-maintainers slack channels for further visibility.

@abuisine
@aisonaku
@anastyakulyk
@anthonydahanne
@butuzov
@dianaabv
@erickhun
@femrtnz
@jygastaud
@mattiaperi
@micheleberardi
@msheldyakov
@ngtuna
@oussemos
@phanama
@pjhwa
@rbenzair
@Smana
@thejoycekung
@wahyuoi
@yastij
@ysyukr

/assign @a-mccarthy @kbhawkey @natalisucks @onlydole @sftim @tengqm @reylejano
Explicit hold for discussions till 9th January 2023.
/hold

/kind cleanup

i have plan to contribute as soon as possible.
remove me from the list.

I plan to contribute as well, please remove me from the list. I do thank you.

@shurup was also looking into this for the RU localization. He has a RU specific PR - https://github.com/kubernetes/website/pull/38571

/label tide/merge-method-squash

/lgtm

Re-adding the hold till 9th.
/hold

Hi @divya-mohan0209 I've been away for a while but this year I'm planning to coma back contributing here. Could you please remove my name :)

Per comment from @shurup , removing @Potapy4 as well from Russian reviewers & approvers in the following commit.

/lgtm

/unhold


nv_core.h not found

I was attempting to set up a new python environment for animeface, but installation using pip install animeface fails with the following error:
animeface/_nvxs.c:21:10: fatal error: nv_core.h: No such file or directory
     #include "nv_core.h"
              ^~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------

I am running Manjaro Linux 18.0.0 (a derivative of Arch Linux) and I am running Python 3.7.1. Are there any additional packages I must install?

Hi!
On Linux prebuilts are used usually so you don't need to built the libraries by yourself, but prebuilt for Python 3.7 was not available. I've just built and uploaded it, so would you mind retrying installation?
BTW, the procedure to build the library by yourself is described in README, but it's written in Japanese, sorry :(

Hi again, sorry for the late reply! As it turns out, your uploading the Python 3.7 prebuilt did the trick. I did, however, encounter an entourage of other problems that delayed my responding to this Issue.
Thanks a lot for maintaining this project! Believe it or not it's actually quite useful.

Hey!
I am facing the same issue while installing the library.
I am using ubuntu 20.04 and python3.8.10
Error message:
animeface/_nvxs.c:21:10: fatal error: nv_core.h: No such file or directory
21 | #include "nv_core.h"
|          ^~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
What might be wrong here?

Hi,
I've just released v2.0.0 and now wheels (prebuilt binary packages) are available for Python 3.6--3.10 on Linux and macOS.


docs - Fix createInstance return value

It might be worth explaining in detail what it returns but this will do for the immediate fix.

Cool. Thanks.


Discuss the version without TXCREATE

This PR for now is just to visualize the impact of substituting TXCREATE/InitcodeTransaction/Deployer Contract with some application of "legacy-like" creation tx adapted to EOF.
Even if late, the amount of simplification this enables warrants considering it, at least for the sake of establishing the motivation for having TXCREATE and friends in EOF.
Advantages so far:

no new transaction type, or the hash-based initcode lookup
no need for two new creation opcodes, just one
no need for the Deployer Contract introduced via an irregular state change

Disadvantages:

less ability to deploy multiple contracts in one tx (new in EOF) - this requires using EOFCREATE and is more constrained by MAX_INITCODE_SIZE, where all contracts must fit in.
implementations need to flag execution as "initcode-mode" (in evmone msg.kind == EVMC_EOFCREATE), so that RETURNCONTRACT is interpreted correctly in EOF-creation txs
smart contract wallets cannot deploy arbitrary EOF code - a feature which exists in legacy (main original reason for TXCREATE to exist)

lose ability to deploy multiple contracts in one tx (new in EOF)

You can do that by calling EOFCREATE in the initcode.

Cherry-picked improvements from #78 and reopened

I would move TXCREATE / InitcodeTransaction spec into another file in a separate PR, then probably merge #78

I would move TXCREATE / InitcodeTransaction spec into another file in a separate PR, then probably merge #78

OK, I've marked #78 as ready to review. I will do the next steps after we merge that

I decided to use this PR as the "separate PR". Rebased on top of main this now only removes TXCREATE and InitcodeTransaction cleanly.

Decided to move ahead with this during the EOF impl call:

the EOF Creation transactions design is forward compatible with txcreate/initcode tx, in a tooling-friendly manner as well
the feature we're losing (arbitrary contract deployed via smart contract wallet) can be at worst performed in 2-steps if necessary (deploy code first, then sc deploys using EOFCREATE)
reduces testing vectors and complexity quite a bit
adding txcreate/initcode txs can be done easily in a future upgrade and we can validate the design and motivations thoroughly before that.


large error for storing float?

For a given floating number such as 0.0593648, the current bcwig file written will read out 0.05936479941010475 on my machine. This is a relative error around 1E-8. But I don't see any computation involved as we are just writing the floating number to files and read it out.
I'm not sure what is the exact cause of this. Maybe we can try using double instead of float. Worth an investigation.

I used double and fixed this issue.


test: update to runner

This is to update the current test runner on sso

Looks like you might have left a secret in there. Please re-submit.


Production error when no sourcemaps, and heap overflow when building with sourcemaps

I'm using --
next 5.0.1-canary.17
node v9.8.0
macOS 10.13.3

When I point the browser at my running production-build server, and then open Chrome's dev console, I get this error on the server --
{ Error: ENOENT: no such file or directory, stat '/Users/trent/home/projects/Grok/code/build/.next/bundles/pages/Page_Home.js.map'
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: '/Users/trent/home/projects/Grok/code/build/.next/bundles/pages/Page_Home.js.map',
  expose: false,
  statusCode: 404,
  status: 404 }

And I get these 2 errors in Chrome's browser console --
GET http://localhost:8080/_next/faf4fe1f-e288-4796-817a-30f1afc41862/page/index.js net::ERR_ABORTED

main.js:23181 Uncaught (in promise) Error: Error when loading route: /
    at HTMLScriptElement.script.onerror (main.js:23181)

In Safari's dev console the same situation gives these 3 errors --
Failed to load resource: the server responded with a status of 404 (Not Found)
    http://localhost:8080/_next/faf4fe1f-e288-4796-817a-30f1afc41862/page/index.js

Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    http://localhost:8080/_next/faf4fe1f-e288-4796-817a-30f1afc41862/page/Page_Home.js.map

Unhandled Promise Rejection: Error: Error when loading route: /

I'm guessing that the console is trying to access sourcemaps because Next's build is saying they exist, but they don't.
So I tried to build the sourcemaps by adding the following to the webpack section of next.config.ts  --
module.exports = {
  webpack: (config, options) => {
    if (!options.dev) {
      config.devtool = 'source-map'
    }
    // (blah blah more...)
  }
}

Then, after ~10 minutes of building, I get this error --
> Using external babel configuration
> Location: "/Users/trent/home/projects/Grok/code/build/.babelrc"

<--- Last few GCs --->

[61288:0x102801e00]   517895 ms: Mark-sweep 1339.2 (1459.9) -> 1339.2 (1461.9) MB, 1418.9 / 0.0 ms  allocation failure GC in old space requested
[61288:0x102801e00]   519330 ms: Mark-sweep 1339.2 (1461.9) -> 1339.1 (1426.4) MB, 1434.7 / 0.0 ms  last resort GC in old space requested
[61288:0x102801e00]   520844 ms: Mark-sweep 1339.1 (1426.4) -> 1339.1 (1423.4) MB, 1513.8 / 0.0 ms  last resort GC in old space requested

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x11eff4ca5529 <JSObject>
    1: /* anonymous */ [/Users/trent/home/projects/Grok/code/node_modules/webpack-sources/node_modules/source-map/lib/source-node.js:~342] [pc=0x230c6ba34dec](this=0x11ef51083c01 <JSGlobal Object>,chunk=0x11ef9b350569 <String[2]: , >,original=0x11ef7620f4e1 <Object map = 0x11efb989af09>)
    2: SourceNode_walk [/Users/trent/home/projects/Grok/code/node_modules/webpack-sources/node_modules/source...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/usr/local/bin/node]
 2: node::FatalTryCatch::~FatalTryCatch() [/usr/local/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
 4: v8::internal::Factory::NewUninitializedFixedArray(int) [/usr/local/bin/node]
 5: v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2> >::GrowCapacity(v8::internal::Handle<v8::internal::JSObject>, unsigned int) [/usr/local/bin/node]
 6: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
 7: 0x230c6b4042fd
 8: 0x230c6ba34dec
 9: 0x230c6ba3d71e
10: 0x230c6ba3d867
got signal SIGABRT, exiting
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Please provide a minimal reproduction. It's really hard to debug something breaking without it.

@timneutkens Whew, I'll see what I can do... I have a huge project. I understand it's hard for your debut without that.

I did a major refactor, and this problem disappeared without me knowing why. It's likely the problem was on my end, not in the Next codebase. I'm closing this issue. If it rears it's ugly head again, I'll create a more reproduceable Issue for us to get to the bottom of.

I have this problem now. But I don't know what the hell is triggering this :'(

@kamilml What might have been the solution for me was resetting to a simple or empty webpack config in next.config.ts --
module.exports = {
  webpack: (config, options) => {
    return config
  }
}


SetElementVisual doesn't allow modification of grab aura

Describe the feature
I'm excited to implement the grab aura and line pinch build, but it seems that it's not included in the SetElementVisual so I can't modify it to work with my custom theme. My theme has 2d windows and fixes alias issues for Quest so the aura is very jarring and the default is not suitable for my app. Can you please add support for SetElementVisual for it, or if not can you have the ability to disable the aura for now. It feels really nice to use by the way.
Thanks.

I have a few notes on enabling/disabling the grab aura over here: https://github.com/StereoKit/StereoKit/pull/784
Looks like I did forget to surface the relevant UIVisual all the way up to C# though 😬 Easy fix, I'll add that today!

Great news :)


Add daisyui

Refactor the ui

📝 Changed routes:

/404
/dashboard

(view full size)
(view full size)

/

(view full size)

And 1 other route:

/api/auth/[...nextauth]

Commit d807f53c585a7fa0a935ed2046c49e6b9cfbc072 (https://what-do-we-ic9if01x1-alex289.vercel.app).


not able to add few_shots on agent_executor  for sqldbtoolkit

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.

 Given an input question, create a syntactically correct SQLite query to run. Unless otherwise specificed, do not return more than {top_k} rows.\n\nHere is the relevant table info: {table_info}\n\nBelow are a number of examples of questions and their corresponding SQL queries.",
suffix="User input: {input}\nSQL query: ",
input_variables=["input", "top_k", "table_info"],
)
db_url = URL.create(**db_config)
db = SQLDatabase.from_uri(db_url)
toolkit = SQLDatabaseToolkit(db=db, llm=self.llm)
agent_executor = create_sql_agent(
prefix=MSSQL_AGENT_PREFIX,
format_instructions = MSSQL_AGENT_FORMAT_INSTRUCTIONS,
llm=self.llm,
toolkit=toolkit,
callback_manager=self.callbacks,
verbose=True
)
response = agent_executor.run(query)
Error Message and Stack Trace (if applicable)
No response
Description
i am trying to add few_shots on agent_executor  for sqldbtoolkit , but it's not supported
System Info
langchain==0.0.352
langchain-core==0.1.11
langchain-experimental==0.0.47

from langchain_core.agent_executor import AgentExecutor
ModuleNotFoundError: No module named 'langchain_core.agent_executor'


Added migration for webhook permissions_roles fixtures

closes #10152

Added new migration for permissions_roles relations

@rishabhgrg Feel free to self merge :)


Added WaveInReset (required for MM to trigger callback). Moved callback Reset trigger

Changed WaveInEvent to call WaveInReset after WaveInStop to trigger buffers being returned via the callback as per https://msdn.microsoft.com/en-us/library/windows/desktop/dd743850(v=vs.85).aspx
Also moved callbackEvent.Set to below waveInStop+new waveInReset so those have completed BEFORE the callback look processes those buffers to check for any audio bytes recorded.

Thanks for this contribution. I am quite cautious about accepting changes in this area since this is one of the classes that is most commonly used in NAudio and needs to work with a wide variety of soundcard drivers. I'll have to give this a try myself.
Can you tell me a bit about what testing you've performed on this.
Do you definitely need Reset as well as Stop, or does just calling Reset also work?

OK, have tested it and seems good. I made one small change to avoid calling DataAvailable if the BytesRecorded was 0.

Hi Mark, apologies for not coming back to you sooner, glad you're happy with it! - As I suspect you may have found in your own testing now, the main reason is that a Stop doesn't trigger the callback whilst the reset does, and whilst you can then poll the buffers to see their state, it's undefined in the MSDN documentation as to whether stop will have marked them as ready for receiving.
Glad I could help though, cheers!


Training from scratch reached the performance similar with that when initializing from ImageNet

Hi there,
I was trying to reproduce the results reported here on PSPNet-Resnet18.
I actually trained it from stratch( --is_student_load_imgnet = False, and empty in ./ckpt/save_path/Student), so student is not loaded with any weights, but I achieved 70% acc with batch_size = 7, which is even a bit smaller than original setting. When I tried with 6000 steps, the acc is 72.7%. The behavior is actually similar with what is reported when initializing with pretrained imagenet model. Do you have any idea on that?
Thanks !

@Shawn207 Could you please tell me how did you train the teacher ?


PAS datasets in Qvain Light

Show PAS tag in dataset list for PAS datasets.

Show current PAS state for PAS datasets on top of the editor.

Disable file browser and adding/removing files for PAS datasets.

Disable editing fields for read-only PAS datasets.

Added tests to make sure read-only fields work properly.

Async handler calling setState on an unmounted component triggers an error in React.

Typically happens when user navigates while an axios request is pending.
Not very sure what's the best way to handle these.
Added helper for canceling promises on unmount so .then() handler can be avoided.
Use the helper in actorInfo, fileForm, fieldofScienceField (these affected the PAS tests).
There are also other places in need of canceling async stuff on unmount.

Some fixes:

Opening a dataset that had a license URL caused an error
Embargo expiration date component mutated store state directly

Needs a small update to take readonly preservation_states into account in the PAS metadata editor ( https://github.com/CSCfi/etsin-finder/pull/398 ) so I think I'll wait for that to be merged before marking this as ready.

Noticed that Promises in Etsin are actually bluebird promises that can be configured to be cancellable. I'll probably change the code to use those instead of the custom helper.