No module named azure.storage

Hello everyone,
I have written python code to access my blob storage working well locally from my PyCharm with Python 3.6.8.
import json
from azure.storage.blob import BlockBlobService

block_blob_service = BlockBlobService(account_name='XX', account_key='YY')
block_blob_service.get_blob_to_path('activities', 'remi', 'remi.json')

with open('remi.json') as json_file:
    activitiesAsStr = json_file.read().replace('ï»¿','',1)
    activities = json.loads(activitiesAsStr)
    print(activities)

If I move this code into an Azure function using the core tools:
import logging
import json
import azure.functions as func
import pathlib
from azure.storage.blob import BlockBlobService

def main(req: func.HttpRequest) -> func.HttpResponse:
    logging.info('Python HTTP trigger function processed a request.')
    block_blob_service = BlockBlobService(account_name='ACCOUNT', account_key='KEY')
    block_blob_service.get_blob_to_path('activities', 'remi', 'remi.json')
    with open(pathlib.Path(__file__).parent / 'remi.json') as json_file:
        str = json_file.read().replace('ï»¿','',1)
        headers  = {
                    "Access-Control-Allow-Origin": "*",
                    "Access-Control-Allow-Methods": "Get, Post, Options"
        }
        return func.HttpResponse(str, headers=headers)

and launch it as debug from visual studio code or deploy it to the cloud and it no longer works.
The python interpreter points to the same python install that my standalone code that works outside of azure function.
Logs

Executed 'Functions.ActivitiesFromBlobStorage' (Failed, Id=3b00374c-488c-4e1c-9552-c20a3e9b8abb)
[7/2/2019 11:54:12 AM] System.Private.CoreLib: Exception while executing function: Functions.ActivitiesFromBlobStorage. System.Private.CoreLib: Result: Failure
Exception: ModuleNotFoundError: No module named 'azure.storage'
Stack:   File "C:\Users\remid\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\workers\python\deps\azure\functions_worker\dispatcher.py", line 230, in handle__function_load_request
func_request.metadata.entry_point)
File "C:\Users\remid\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\workers\python\deps\azure\functions_worker\loader.py", line 66, in load_function
mod = importlib.import_module(fullmodname)
File "C:\Program Files\Python36\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 941, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in call_with_frames_removed
File "ActivitiesFromBlobStorage_init.py", line 5, in
from azure.storage.blob import BlockBlobService
Here is my local settings

Python 3.6.8 with the following packages
azure==4.0.0
azure-applicationinsights==0.1.0
azure-batch==4.1.3
azure-common==1.1.23
azure-cosmosdb-nspkg==2.0.2
azure-cosmosdb-table==1.0.5
azure-datalake-store==0.0.46
azure-eventgrid==1.3.0
azure-functions==1.0.0b5
azure-graphrbac==0.40.0
azure-keyvault==1.1.0
azure-loganalytics==0.1.0
azure-mgmt==4.0.0
azure-mgmt-advisor==1.0.1
azure-mgmt-applicationinsights==0.1.1
azure-mgmt-authorization==0.50.0
azure-mgmt-batch==5.0.1
azure-mgmt-batchai==2.0.0
azure-mgmt-billing==0.2.0
azure-mgmt-cdn==3.1.0
azure-mgmt-cognitiveservices==3.0.0
azure-mgmt-commerce==1.0.1
azure-mgmt-compute==4.6.2
azure-mgmt-consumption==2.0.0
azure-mgmt-containerinstance==1.5.0
azure-mgmt-containerregistry==2.8.0
azure-mgmt-containerservice==4.4.0
azure-mgmt-cosmosdb==0.4.1
azure-mgmt-datafactory==0.6.0
azure-mgmt-datalake-analytics==0.6.0
azure-mgmt-datalake-nspkg==3.0.1
azure-mgmt-datalake-store==0.5.0
azure-mgmt-datamigration==1.0.0
azure-mgmt-devspaces==0.1.0
azure-mgmt-devtestlabs==2.2.0
azure-mgmt-dns==2.1.0
azure-mgmt-eventgrid==1.0.0
azure-mgmt-eventhub==2.6.0
azure-mgmt-hanaonazure==0.1.1
azure-mgmt-iotcentral==0.1.0
azure-mgmt-iothub==0.5.0
azure-mgmt-iothubprovisioningservices==0.2.0
azure-mgmt-keyvault==1.1.0
azure-mgmt-loganalytics==0.2.0
azure-mgmt-logic==3.0.0
azure-mgmt-machinelearningcompute==0.4.1
azure-mgmt-managementgroups==0.1.0
azure-mgmt-managementpartner==0.1.1
azure-mgmt-maps==0.1.0
azure-mgmt-marketplaceordering==0.1.0
azure-mgmt-media==1.0.0
azure-mgmt-monitor==0.5.2
azure-mgmt-msi==0.2.0
azure-mgmt-network==2.7.0
azure-mgmt-notificationhubs==2.1.0
azure-mgmt-nspkg==3.0.2
azure-mgmt-policyinsights==0.1.0
azure-mgmt-powerbiembedded==2.0.0
azure-mgmt-rdbms==1.9.0
azure-mgmt-recoveryservices==0.3.0
azure-mgmt-recoveryservicesbackup==0.3.0
azure-mgmt-redis==5.0.0
azure-mgmt-relay==0.1.0
azure-mgmt-reservations==0.2.1
azure-mgmt-resource==2.2.0
azure-mgmt-scheduler==2.0.0
azure-mgmt-search==2.1.0
azure-mgmt-servicebus==0.5.3
azure-mgmt-servicefabric==0.2.0
azure-mgmt-signalr==0.1.1
azure-mgmt-sql==0.9.1
azure-mgmt-storage==2.0.0
azure-mgmt-subscription==0.2.0
azure-mgmt-trafficmanager==0.50.0
azure-mgmt-web==0.35.0
azure-nspkg==3.0.2
azure-servicebus==0.21.1
azure-servicefabric==<IP_ADDRESS>
azure-servicemanagement-legacy==0.20.6
azure-storage==0.36.0
azure-storage-blob==1.5.0
azure-storage-common==1.4.2
azure-storage-file==1.4.0
azure-storage-queue==1.4.0
Thanks for your help!

@remster85, did you try installing the requirements using pip install -r requirements.txt?

@maiqbal11 thanks for responding.
I have not tried that, where is the requirements file for my dependencies?
https://pypi.org/project/azure-storage-blob
I have a 500 internal server error and the cloud log is the following
Result: Failure
Exception: ModuleNotFoundError: No module named 'azure.storage'
Stack:   File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/dispatcher.py", line 230, in _handle__function_load_request
    func_request.metadata.entry_point)
  File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/loader.py", line 66, in load_function
    mod = importlib.import_module(fullmodname)
  File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/site/wwwroot/ActivitiesFromBlobStorage/__init__.py", line 5, in <module>
    from azure.storage.blob import BlockBlobService

You can initialize a requirements.txt file in the root of the function app and include the dependencies that you need in it:
azure==4.0.0
azure-applicationinsights==0.1.0
azure-batch==4.1.3
azure-common==1.1.23
...

Once that is done, you should call pip install -r requirements.txt (in a virtual environment or globally). This should resolve the import issues.

Thank you!
requirements.txt
azure-storage-blob==1.5.0

Error faced
cannot install cryptography-2.6.1 dependency: binary dependencies without wheels are not supported. Use the --build-native-deps option to automatically build and configure the dependencies using a Docker container. More information at https://aka.ms/func-python-publish
I will look into it.
Same problem as https://github.com/Azure/azure-storage-python/issues/585

Same error, work perfectly on local environment but when deployed to FunctionApp, I notice the following error
Exception while executing function: Functions.HttpTrigger <--- Result: Failure Exception: ModuleNotFoundError: No module named 'azure.storage'
Stack: File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/dispatcher.py",
line 230, in _handle__function_load_request func_request.metadata.entry_point)
File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/loader.py", line 66, in load_function mod = importlib.import_module(fullmodname) File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/site/wwwroot/HttpTrigger/__init__.py", line 6, in <module>
from azure.storage.blob import BlockBlobService
LogLevel	Error
FormattedMessage	Executed 'Functions.HttpTrigger' (Failed, Id=a886d212-59e8-4c85-8828-82fa3e602f1d)
Category	Function.HttpTrigger
Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while executing function: Functions.HttpTrigger ---> Microsoft.Azure.WebJobs.Script.Rpc.RpcException: Result: Failure
Exception: ModuleNotFoundError: No module named 'azure.storage'
Stack:   File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/dispatcher.py", line 230, in _handle__function_load_request
    func_request.metadata.entry_point)
  File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/loader.py", line 66, in load_function
    mod = importlib.import_module(fullmodname)
  File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/site/wwwroot/HttpTrigger/__init__.py", line 6, in <module>
    from azure.storage.blob import BlockBlobService
....

I tried deploying the app using the following command instead of VSCode extension
func azure functionapp publish yourFunctionAppName --build-native-deps

And it worked!!

I decided to write this code using DotNet instead since I do not have docker on my personal windows laptop.
Error was "Got permission denied trying to run docker. Make sure the user you are running the cli from is in docker group or is root"
In DotNet

I'm not sure this my experience helps you.
We faced same error on our environment.
After some investigation, we found followings.

Same error : EastAsiaLinuxDynamicPlan (Consumption)
Worked without any problem : WestEuropeLinuxDynamicPlan (Consumption)

Hope this helps you.
Thank you.

Hello ,  I got the same issue after deploy Azure Functionon EastAsia region.
The same function has been running for close to 2 weeks+ with no issue and broke around 2 days back.
Any idea how to fix this issue ? The code runs fine locally with no issue.
Error Message in Azure Function
Result: Failure
Exception: ModuleNotFoundError: No module named 'azure.storage'
Stack:   File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/dispatcher.py", line 237, in _handle__function_load_request
func_request.metadata.entry_point)
File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/loader.py", line 66, in load_function
mod = importlib.import_module(fullmodname)
File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/site/wwwroot/adffunction/init.py", line 11, in
from azure.storage.blob import BlockBlobService
my requirement.txt:
asn1crypto==0.24.0
astroid==2.2.5
azure-common==1.1.23
azure-functions==1.0.0b5
azure-functions-worker==1.0.0b9
azure-nspkg==3.0.2
azure-storage==0.36.0
azure-storage-common==2.0.0
certifi==2019.6.16
cffi==1.12.3
chardet==3.0.4
colorama==0.4.1
cryptography==2.7
grpcio==1.20.1
grpcio-tools==1.20.1
idna==2.8
isort==4.3.21
lazy-object-proxy==1.4.1
mccabe==0.6.1
protobuf==3.9.0
psycopg2-binary==2.8.3
pycparser==2.19
pylint==2.3.1
python-dateutil==2.8.0
requests==2.22.0
six==1.12.0
typed-ast==1.4.0
unicodecsv==0.14.1
urllib3==1.25.3
wrapt==1.11.2
xlrd==1.2.0

Hello , I got the same issue after deploy Azure Functionon EastAsia region.
The same function has been running for close to 2 weeks+ with no issue and broke around 2 days back.
Any idea how to fix this issue ? The code runs fine locally with no issue.

In our case, we deployed the function to other region and it worked.

This is currently an issue in the EastAsia region. We are working on a fix and are hoping to have it out by EOD. \cc @Hazhzeng

Hi @takumats and @shanjin14, we will be rolling out a fix to EastAsia on Monday. Other regions are not affected by this. As a very short term workaround, you can add the following code to the top of your entry point file:
import importlib

importlib.reload(sys.modules['azure'])

This is needed to load user included modules.

Just to confirm, do you need docker to make this simple storage access api from python work?

Just curious: Wondering if the fix has been deployed?
Has deployed to West Europe for now follow takumats suggestion : )
Thanks @takumats

Hi @takumats and @shanjin14, we will be rolling out a fix to EastAsia on Monday. Other regions are not affected by this. As a very short term workaround, you can add the following code to the top of your entry point file:
import importlib

importlib.reload(sys.modules['azure'])

This is needed to load user included modules.

Hi @maiqbal11 ,
The workaround works for Azure Blob Storage.
Is there any workaround for "SharedCode" ?
Again, same code base has no issue in West Europe Region Azure Function.
Error message after using the suggested workaround :
Result: Failure
Exception: ModuleNotFoundError: No module named 'SharedCode'
Stack:   File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/dispatcher.py", line 238, in _handle__function_load_request
func_request.metadata.entry_point)
File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/loader.py", line 66, in load_function
mod = importlib.import_module(fullmodname)
File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/site/wwwroot/adffunction/init.py", line 12, in
from SharedCode.HelperFunction import delete_azure_files_in_container, \

Hi @shanjin14, thanks for following up.
The fix is deployed at 7/22/2019, 2:00 PM (Pacific Time)
Just curious, do you define this SharedCode library? I search with https://pypi.org/search/?q=SharedCode and I don't think this is a public library.

@Hazhzeng: I created my modules and put under SharedCode folder following the developer reference's folder structure.
https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-python#folder-structure
I am running on Linux Consumption.

Hey @shanjin14, recently, we updates our documentation  to import a custom module in Python function app. According to the documentation, we use from __app__.SharedCode import myFirstHelperFunction instead of from SharedCode import myFirstHelperFunction.
You may want to update your import statement to from __app__.SharedCode.HelperFunction import delete_azure_files_in_container, and sorry for inconvenience.

Hello,
is it working for anyone on WestUSLinuxDynamicPlan (Consumption) ?
Here is the error I am facing while deploying from visual studio code:
There was an error restoring dependencies.ERROR: cannot install cryptography-2.7 dependency: binary dependencies without wheels are not supported.  Use the --build-native-deps option to automatically build and configure the dependencies using a Docker container. More information at https://aka.ms/func-python-publish
my requirements.txt
azure-storage-blob==1.5.0
azure==4.0.0

cryptography-2.7 dependency

Hi @remster85, I faced the same issue in EastAsiaLinuxDynamicPlan.  I follow the instruction to deploy using Docker container and it is resolved. Hope it helps.

Thank you shanjin14, I am owner of windows 10 Home and seem not to fill the system requirements to use docker unfortunately.
https://docs.docker.com/docker-for-windows/install/
System Requirements:
Windows 10 64bit: Pro, Enterprise or Education (Build 15063 or later).

@remster85, we are currently working on the ability for user's to perform their builds on our servers. This is still a few week away from landing. We will let you know here once this is done.

Hi @Hazhzeng,
The Azure Function is running properly (and fast) for past few days and breaks again with different modules.
It gets slow down yesterday midnight around 12+ am and throw 500 error now.
It's EastAsiaConsumptionPlan
Message as below:
Result: Failure
Exception: ModuleNotFoundError: No module named 'psycopg2'
Stack:   File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/dispatcher.py", line 238, in _handle__function_load_request
func_request.metadata.entry_point)
File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/loader.py", line 66, in load_function
mod = importlib.import_module(fullmodname)
File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/site/wwwroot/adffunction/init.py", line 4, in
import psycopg2 as pg

Hey @shanjin14, recently, we updates our documentation  to import a custom module in Python function app. According to the documentation, we use from __app__.SharedCode import myFirstHelperFunction instead of from SharedCode import myFirstHelperFunction.
You may want to update your import statement to from __app__.SharedCode.HelperFunction import delete_azure_files_in_container, and sorry for inconvenience.

@shanjin14, we cannot reproduce this scenario on our side. Could you share us with your functionapp site name?

@shanjin14, we cannot reproduce this scenario on our side. Could you share us with your functionapp site name?

HI Hazhzeng, I re-publish the site (using func azure functionapp publish  --build-native-deps) and it becomes normal again. Will observe for another couple more days

Hi Guys,
I have written a azure function using Python and it runs fine in visual studio code(F5)
But after deployment into the azure it fails:
In deployment code breaks down with the below failure message:
Microsoft.Azure.WebJobs.Script.Rpc.RpcException: Result: Failure
Exception: ModuleNotFoundError: No module named '_speech_py_impl'
Stack:   File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/dispatcher.py", line 238, in _handle__function_load_request
func_request.metadata.entry_point)
File "/usr/local/lib/python3.6/site-packages/azure/functions_worker/loader.py", line 66, in load_function
mod = importlib.import_module(fullmodname)
File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/site/wwwroot/speechtotextcond/init.py", line 6, in
import azure.cognitiveservices.speech as speechsdk
File "/usr/local/lib/python3.6/site-packages/azure/cognitiveservices/speech/init.py", line 8, in
from .speech import *
File "/usr/local/lib/python3.6/site-packages/azure/cognitiveservices/speech/speech.py", line 8, in
from . import speech_py_impl as impl
File "/usr/local/lib/python3.6/site-packages/azure/cognitiveservices/speech/speech_py_impl.py", line 17, in
_speech_py_impl = swig_import_helper()
File "/usr/local/lib/python3.6/site-packages/azure/cognitiveservices/speech/speech_py_impl.py", line 16, in swig_import_helper
return importlib.import_module('_speech_py_impl')
File "/usr/local/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
I tried using both I faced the same issue in WestUSLinuxDynamicPlan and EastUSLinuxDynamicPlan
I also tried deploying using Docker container but it fails with the same error
requirement.txt
astroid==2.2.5
azure-cognitiveservices-speech==1.6.0
azure-functions==1.0.0b5
certifi==2019.6.16
chardet==3.0.4
colorama==0.4.1
idna==2.8
isort==4.3.21
lazy-object-proxy==1.4.1
mccabe==0.6.1
numpy==1.17.0
pandas==0.25.0
pip==19.2.1
pydub==0.23.1
pylint==2.3.1
python-dateutil==2.8.0
pytz==2019.2
requests==2.22.0
setuptools==39.0.1
six==1.12.0
typed-ast==1.4.0
urllib3==1.25.3
wrapt==1.11.2

We have resolved this issue. Closing this out. Please repopen if you see it again.

I just want to update that I saw this problem again when running python3.8 using the latest azure-storage-blob==12.3.0. Apparently, at the moment only python3.7 is supported for this version of azure-storage-blob

I'm using python 3.8 and have the same issue. I have a Azure http function running well locally, but didn't work when deploy to cloud.
ModuleNotFoundError: No module named 'azure.storage'. Troubleshooting Guide: https://aka.ms/functions-modulenotfound Stack: File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/dispatcher.py", line 259, in _handle__function_load_request func_request.metadata.entry_point) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 31, in call raise extend_exception_message(e, message) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/utils/wrappers.py", line 29, in call return func(*args, **kwargs) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/loader.py", line 73, in load_function mod = importlib.import_module(fullmodname) File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/site/wwwroot/poc1/init.py", line 4, in  from azure.storage.blob import BlobServiceClient, BlobClient, ContainerClient

Same issue as above. Works locally but not in my Static Web App.

Same issue as above. Works locally but not in my Static Web App.

I created a new bug as this issue seems to be ignored because it's closed even though people still have it.

I created a new bug as this issue seems to be ignored because it's closed even though people still have it.

Still experiencing this issue. Infact, our deployment works on one of the slots in Azure but not the Prod slot.
2021-01-14T23:02:38.699531806Z: [INFO]  Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while executing function: Functions.CCRStoAPI
2021-01-14T23:02:38.699537506Z: [INFO]   ---> Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException: Result: Failure
2021-01-14T23:02:38.699542806Z: [INFO]  Exception: ModuleNotFoundError: No module named 'snowflake'. Troubleshooting Guide:

Still experiencing this issue. Infact, our deployment works on one of the slots in Azure but not the Prod slot.
2021-01-14T23:02:38.699531806Z: [INFO]  Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while executing function: Functions.CCRStoAPI
2021-01-14T23:02:38.699537506Z: [INFO]   ---> Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException: Result: Failure
2021-01-14T23:02:38.699542806Z: [INFO]  Exception: ModuleNotFoundError: No module named 'snowflake'. Troubleshooting Guide:

Hi @marcosjur,
You don't need virtual environment to execute azure function in cloud
So instead of above commands, use the below one
pip install --target="$(System.DefaultWorkingDirectory)/.python_packages/lib/site-packages" -r requirements.txt

Hi @marcosjur, You don't need virtual environment to execute azure function in cloud So instead of above commands, use the below one pip install --target="$(System.DefaultWorkingDirectory)/.python_packages/lib/site-packages" -r requirements.txt

Tried this and it looks to have fixed the issue for me. Thank you!

Hi @marcosjur, You don't need virtual environment to execute azure function in cloud So instead of above commands, use the below one pip install --target="$(System.DefaultWorkingDirectory)/.python_packages/lib/site-packages" -r requirements.txt

Working now ! Thank you @marcosjur, you rock !

Hi @marcosjur, You don't need virtual environment to execute azure function in cloud So instead of above commands, use the below one pip install --target="$(System.DefaultWorkingDirectory)/.python_packages/lib/site-packages" -r requirements.txt

I was facing the same issue but for the module "requests". Replacing the environment setup commands fixed it.
Thanks a lot! :)

Hi @abhiraj1289 ,
Does this replace all the 4 commands provided by @marcosjur ?

Hi @marcosjur, You don't need virtual environment to execute azure function in cloud So instead of above commands, use the below one pip install --target="$(System.DefaultWorkingDirectory)/.python_packages/lib/site-packages" -r requirements.txt

adding this to my yml file caused my app to disappear entirely from the console. reverting the code caused the app to re-appear

Hi @marcosjur, You don't need virtual environment to execute azure function in cloud So instead of above commands, use the below one pip install --target="$(System.DefaultWorkingDirectory)/.python_packages/lib/site-packages" -r requirements.txt

This works! But why?


Avoid allocating instances of AtomicReference in Uni

Under load in Quarkus, when profiling a Reactive application (RestEasy Reactive + Hibernate Reactive), I can see a significant amount of AtomicReference instances being allocated, as internal implementation of each UniOperatorProcessor.
In this PR I'm suggesting to refactor the AtomicReference to use an AtomicReferenceFieldUpdater.
The method names are a bit mouthful :) Any better suggestions?  I'm patching code I don't know very well, so not sure how to call these.

Mutiny is still on Java 8, right? Otherwise we could use VarHandles, which are supposed to be faster than AtomicField*Updaters (at least that's what I heard, I don't really know :-) ).

@Ladicek for now, yes... Java 8. For how long? That's a topic I'm working on currently (not on the technical side).
Now that varhandle are supported in native executable, that would be very interesting to compare.

Right, in fact I had started my first experiment with VarHandle only to then figure out it wouldn't be Java 8 compatible :)
I briefly considered multi-release jars, but the effort of introducing that in the project (and wondering if it would be welcome?) put me off. After all the problem I'm solving here is allocations, and this is effective towards that goal.
Having the internals now encapsulated, it should be trivial to switch later on.

Starting work, rebasing, I'll push force over here if need be

@Sanne you might cherry-pick that commit, I can't push to your branch

#669 is a clean branch, also includes @MarkMarkyMarkus remark

Nice, should we close this PR?

Yes :-)


Updated default body proportions (again

Shorter torso length.
Should be ideal for people around 5"10'?

People tend to have a much longer torso and much shorter legs than they should in the body proportions ;)


Support Laravel 5.5

Hey @Omranic, thanks for the PR. Will first check if there's any additional work needed to support 5.5 and will then merge your change.

+1 we need the support of laravel 5.5


Recovery account

Is your feature request related to a problem? Please describe.
Recovery account feature follow Polkadot JS

Same as https://github.com/Koniverse/SubWallet-Extension/issues/1210


docs: First draft for updated readme

Issue and/or context:
Adressed #1021 and #1020
Notes for Reviewer:

Please review redaction, technical accuracy, and contents.

Codecov Report
Patch coverage has no change and project coverage change: +10.34 :tada:

Comparison is base (718dd8f) 80.90% compared to head (ee38099) 91.25%.

:exclamation: Current head ee38099 differs from pull request most recent head bef2e6e. Consider uploading reports for the commit bef2e6e to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1069       +/-   ##
===========================================
+ Coverage   80.90%   91.25%   +10.34%
===========================================
  Files          78       30       -48
  Lines        4168     2263     -1905
===========================================
- Hits         3372     2065     -1307
+ Misses        796      198      -598

Flag
Coverage Δ

python
91.25% <ø> (+0.57%)
:arrow_up:

r
?

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

Impacted Files
Coverage Δ

R/SOMAExperimentAxisQuery.R

inst/tiledb/include/tiledb/array_schema.h

inst/tiledb/include/tiledb/type.h

src/include/tiledbsoma/arrow_adapter.h

inst/tiledb/include/tiledb/context.h

R/TileDBObject.R

R/SOMADenseNdArray.R

R/utils.R

inst/tiledb/include/tiledb/vfs.h

R/SOMAAxisIndexer.R

... and 50 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@johnkerl please feel free to add any other reviewers that you may deem necessary


readme.md missing

Any documentation and for example a readme.md is missing.

This is no more than a proof of concept currently. I don't know if a readme is warranted.

this project looks really promising and would be quite awesome! Keep up the good work hug


Tuning from tsd

PR content

Bug-fixed tuning function computation for Tsd inputs by expanding dims.
Improved testing by passing multiple combinations of Tsd, TsdFrame and feature types.
Split some of the test in smaller units

This PR would close issue #250.

Fantastic!

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 4 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.2%) to 85.011%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pynapple/process/tuning_curves.py
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

pynapple/core/time_series.py
1
48.82%

Totals

Change from base Build<PHONE_NUMBER>:
0.2%

Covered Lines:
2250

Relevant Lines:
2582

💛  - Coveralls


Update Checkstyle integration test

Suggested commit message:
Update Checkstyle integration test (#1424)

Summary of changes:
- Move Checkstyle-specific build parameters out of
  `run-integration-test.sh`.
- Build with `-Dmaven.compiler.failOnError=true` to compensate for
  `<failOnError>false</failOnError>` configured by the enabled Maven
  profiles.
- Tweak `XdocGenerator.java` logic prior to integration test execution,
  to work around a subtle semantic difference introduced by the
  `FilesCreateTempFileToFile` Refaster rule.
- Document this difference on the relevant Refaster rules.
- To aid debugging, run Maven commands with `set -x`, such that the
  exact command executed is logged.
- Update the patch file containing the expected changes.

/integration-test

/integration-test

The check isn't listed under "All checks have passed", but it was successful. Will merge PR :)


[stable/mongodb] Introduce extra volumes for secondary stateful set

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:
Adds the ability to add extra volumes / mounts / claim templates to the secondary nodes. We want to use this to mount a PV to the secondaries where we will temporarily store backups. As our cluster does not support RWX storage we can not attach one PV to primary+secondary stateful sets/pods.
Which issue this PR fixes
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

Hi,
Thanks for the PR. Could you please bump the minor version? It is adding a non-breaking feature

Closing as the use case is no longer applicable, this chart moved to another repo and I currently do not have the capacity to apply the requested changes


JN-706 Notification config editing cleanups

DESCRIPTION
This cleans up a bunch of stuff from https://github.com/broadinstitute/juniper/pull/625

Reminder durations are in hours
Spacing between form fields are cleaner
NotFound exceptions are now explicitly handled
Our default exception mapper now includes the error class for better UX branching (not needed here, but will be useful for kit requests)
fixes bug where making changes to the email template would reset other form fields

TO TEST:  (simple manual steps for confirming core behavior -- used for pre-release checks)

redeploy ApiAdminApp
go to https://localhost:3000/hearthive/studies/hh_registry/env/sandbox/notificationContent
create a notification config, confirm it saves and fields are all editable
go to https://localhost:3000/hearthive/studies/hh_registry/env/sandbox/notificationContent/configs/125cb80f-ca12-422f-8105-d2bd2734e215
confirm you get a reasonable 404 error message in the UI as below

@denniscunningham  Thanks for the good comments during demo about template/document/version and the structure of this page.  I'm marinating on those, and will definitely be grounds for improving the next iteration of this page UX, but I want to keep this PR  just focused on the bugfixes and easy UX polish so we can move on to the other stuff in the sprint


On Mac it crashes when i try to load a texture or do many things

Idk what hapens i cant use it on mac everithyng crashes. pls help

That's quite weird. Although I have never tested this on a mac, I heard from other people that it worked. Could you show the latest 2 files in home/Custom Item Sets/logs/? (One of them should start with err and the other should start with out. One of them should tell the reason why it's crashing.)

out<PHONE_NUMBER>103.txt
out<PHONE_NUMBER>276.txt
there? is that it

err<PHONE_NUMBER>979.txt
err<PHONE_NUMBER>393.txt
err<PHONE_NUMBER>816.txt
err<PHONE_NUMBER>636.txt
err<PHONE_NUMBER>801.txt
err<PHONE_NUMBER>635.txt
err<PHONE_NUMBER>798.txt
err<PHONE_NUMBER>313.txt
err<PHONE_NUMBER>373.txt
err<PHONE_NUMBER>103.txt
err<PHONE_NUMBER>276.txt
out<PHONE_NUMBER>979.txt
out<PHONE_NUMBER>393.txt
out<PHONE_NUMBER>816.txt
out<PHONE_NUMBER>636.txt
out<PHONE_NUMBER>801.txt
out<PHONE_NUMBER>635.txt
out<PHONE_NUMBER>798.txt
out<PHONE_NUMBER>313.txt
out<PHONE_NUMBER>373.txt
out<PHONE_NUMBER>103.txt
out<PHONE_NUMBER>276.txt
here are all of them

Hm... I can't find any errors in any of them. Could you delete all files in the logs, run the Editor again, intentionally do something that makes it crash, and send the 2 new log files?

err<PHONE_NUMBER>465.txt
out<PHONE_NUMBER>465.txt

Unfortunately, neither of these files contain any errors (perhaps it crashes before it can finish the logs). I know 1 other way to find errors, but it's a bit more complicated:

Go to the directory that contains Editor.jar
Open a terminal in that directory (or maybe something like git bash, I'm not sure what options macs have). You can hopefully do this by right-clicking that directory in your file browser and choose something like Open in terminal.
Run java -jar Editor.jar in that terminal.
Do something that makes it crash
Hopefully, this spits out some error, which can you copy & paste here.

idk how to get top the directory of the file its in documents

Perhaps you can instead open it in a subdirectory of documents? Then you should run cd .. before doing java -jar Editor.jar.

java -jar Editor.jar
Error: Unable to access jarfile Editor.jar

Is Editor.jar listed when you run ls?

no

THERE i got somthing

i did the command it opened and i crashed it and it sent this
asthli@Ariels-MacBook-Pro Documents % java -jar Editor.jar
test out
test error
All system tests succeeded
2023-01-19 12:43:23.590 java[47944:3091985] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
0   CoreFoundation                      0x00007ff80e4377c3 __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff80e197bc3 objc_exception_throw + 48
2   CoreFoundation                      0x00007ff80e460076 -[NSException raise] + 9
3   AppKit                              0x00007ff810e1c0a4 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 321
4   AppKit                              0x00007ff810e08054 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1288
5   AppKit                              0x00007ff810fb0d81 -[NSPanel _initContent:styleMask:backing:defer:contentView:] + 50
6   AppKit                              0x00007ff810e07b46 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
7   AppKit                              0x00007ff810fb0d3a -[NSPanel initWithContentRect:styleMask:backing:defer:] + 59
8   AppKit                              0x00007ff8117fcf16 -[NSSavePanel initWithContentRect:styleMask:backing:defer:] + 91
9   AppKit                              0x00007ff811806b7b -[NSOpenPanel initWithContentRect:styleMask:backing:defer:] + 150
10  AppKit                              0x00007ff8110ed078 -[NSPanel init] + 69
11  AppKit                              0x00007ff8117fce98 -[NSSavePanel init] + 197
12  AppKit                              0x00007ff8114c48a2 +[NSSavePanel(Instantiation) _crunchyRawUnbonedPanel] + 58
13  liblwjgl_nfd.dylib                  0x000000011f1e5582 liblwjgl_nfd.dylib + 5506
14  ???                                 0x0000000108dfc747 0x0 +<PHONE_NUMBER>
)
libc++abi: terminating with uncaught exception of type NSException
zsh: abort      java -jar Editor.jar

That is almost certainly the problem I was looking for. I will try to fix it

ok thank you alot bye

Maybe a couple of hours, maybe a couple of days. It's hard to make accurate predictions about bugfixing

ok i hope its soon tell me when

I created a new version of the Editor that may or may not fix the crash.
You can find it at https://knokko.github.io/resourcedumps/EditorMac.jar
Could you run this version via java -jar EditorMac.jar? Note: I only updated the file picker at this page: https://knokko.github.io/custom items/editor documentation/edit menu/textures/edit.html All other file pickers are still broken (I will fix them once you confirm that the texture picker works.)
You can access this page via Open Editor -> Edit item set/new item set -> Textures -> Load texture

it dont open

it says editor but its nothing on my scvreen

Could you forcibly terminate the Editor 'window' (the one that doesn't want to open), but while keeping the terminal open? I'm curious what it will spit out

I also made this custom version that you could try: https://knokko.github.io/resourcedumps/EditorMac2.jar
And how about Editor 11.3? https://dev.bukkit.org/projects/custom-items-and-textures/files/4056499 (This was the last version before I switched the file picker)

Last login: Fri Jan 20 12:56:42 on ttys000
asthli@Ariels-MacBook-Pro ~ % cd downloads
asthli@Ariels-MacBook-Pro downloads % java -jar EditorMac2.jar
test out
test error
All system tests succeeded
Entering main thread task loop...
test1
2023-01-21 10:17:17.071 java[6414:326381] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
0   CoreFoundation                      0x00007ff811ed87c3 __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff811c38bc3 objc_exception_throw + 48
2   CoreFoundation                      0x00007ff811f01076 -[NSException raise] + 9
3   AppKit                              0x00007ff8148bd0a4 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 321
4   AppKit                              0x00007ff8148a9054 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1288
5   AppKit                              0x00007ff814a51d81 -[NSPanel _initContent:styleMask:backing:defer:contentView:] + 50
6   AppKit                              0x00007ff8148a8b46 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
7   AppKit                              0x00007ff814a51d3a -[NSPanel initWithContentRect:styleMask:backing:defer:] + 59
8   AppKit                              0x00007ff81529df16 -[NSSavePanel initWithContentRect:styleMask:backing:defer:] + 91
9   AppKit                              0x00007ff8152a7b7b -[NSOpenPanel initWithContentRect:styleMask:backing:defer:] + 150
10  AppKit                              0x00007ff814b8e078 -[NSPanel init] + 69
11  AppKit                              0x00007ff81529de98 -[NSSavePanel init] + 197
12  AppKit                              0x00007ff814f658a2 +[NSSavePanel(Instantiation) _crunchyRawUnbonedPanel] + 58
13  liblwjgl_nfd.dylib                  0x00000001212cf582 liblwjgl_nfd.dylib + 5506
14  ???                                 0x000000010f8b6747 0x0 +<PHONE_NUMBER>
15  ???                                 0x000000010f8a5d80 0x0 +<PHONE_NUMBER>
16  ???                                 0x000000010f8a5d80 0x0 +<PHONE_NUMBER>
)
libc++abi: terminating with uncaught exception of type NSException
zsh: abort      java -jar EditorMac2.jar

HEY it WORKED
downloads % java -jar Editor.jar
test out
test error
All system tests succeeded
and i could search for texturwes with the latest bukkit one

Thanks for reporting this problem and helping me debug. I just published Editor 11.7, which should use this old file picker when it's running on MacOS.


Go install fails

It’s not possible to just use the go install standard approach that go 1.17 employs
It’s would be nice 👌 if it was possible.
The problem relates to having overrides in the go.mod.
if the next tagged release has no overrides then go install will just  work :)

There are no overrides anymore. So should be fine.


GUI Elements!

Text input boxes, Buttons, Headers, Separators etc. This would be very efficient to make the app states.

Delayed until I finish the connection.


Allow Elasticsearch 'must' query to take an array of 'ranges'

Elasticsearch 'must' query will now accept an array of 'ranges'.
Description

Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation

Types of changes

[ ] Bug fix (generally a non-breaking change which closes an issue).
[ ] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[x] I signed an Apache CLA.
[x] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[x] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

PG2 3295 ⏳

Codecov Report

Merging #3795 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3795   +/-   ##
=======================================
  Coverage   75.15%   75.15%
=======================================
  Files         132      132
  Lines        6142     6142
  Branches      373      373
=======================================
  Hits         4616     4616
  Misses       1526     1526

Impacted Files
Coverage Δ

...ontainerpool/logging/ElasticSearchRestClient.scala
76.08% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


CI: test sync include/exclude options.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: zhoucheng361:x: Zhou ChengZhou Cheng seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


turn everything on for not understanding the order

Hello, I am testing on the hc3, and there is an error when used with siri, for example, turn on lamp x if the lamp x is not there or you have not understood it correctly, it turns out that it turns on everything, with previous versions that did not happen, is there a solution? ?

Apple change something in iOS 17. It has nothing to do with the plugin.
I noticed that previous was working command:  "Hey Siri Lamp X" where Lamp X is just a device name. I didn't even have to say turn on or turn off. Now I have to say Hey Siri ROOM-NAME COMMAND DEVICE-NAME E.G.: "Hey Siri Kitchen turn on Lamp".


portability: Removal of empty curly braces initializes (C23)

Though empty curly brace initializers are supported by GCC, they are not standardied by ISO C at this point.
Such a feature is expected to become standardized once ISO 9899:2023 (C23) becomes ratified.
In general, Zephyr's codebase should adhere to the ISO C99 (with eventual exceptions for some C11 features).

Relates to #54379 (closed). Now reduced scope to some files: Looks better than before. CC @stephanosio @tejlmand


Update versions in preparation of v2.0.0 release

Updates all of the versions. Note that the nodejs bindings have already set this to v4.0.0.

I'm going to merge this so we can start to prepare the release.


Write health library that tells when the server is in panic

🎯 Goal: - Write a library that is being initialized by the app which will expose endpoint telling whether the app is read or not. This is needed for the runtime to determine whether to kill this instance. Also useful for "ops" visits to diagnose issues
✅ Requirements:

Should be implemented as library in ./src/code-templates/libraries
Should expose an endpoint that returns 200 if all good and 500 if the component is facing severe issues. See Kubernetes guide as an example
How to determine a bad state? This can lead to a philosophical discussion, for a start if the DB+API are responsive - It seems OK. Have other ideas for simple measures?
Should check healthiness also on start time so the process immediately crashes
Should log+fire metric when something goes wrong

✅ Requirements:

⚙ Tech considerations

Soon

Hey @goldbergyoni I will take this task :)

Very cool. Let's plan briefly? This task deserve some more clarification
On Sun, Apr 17, 2022, 5:09 PM Ron Dahan @.***> wrote:

Hey @goldbergyoni https://github.com/goldbergyoni I will take this task
:)
—
Reply to this email directly, view it on GitHub
https://github.com/practicajs/practica/issues/37#issuecomment-1100885560,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACBMU3DF5A7VE4GYD3JUOULVFQLSNANCNFSM5SH4T74A
.
You are receiving this because you were mentioned.Message ID:
@.***>


OpenAddresses V2 [Experimental]

Context
Ref: https://github.com/openaddresses/openaddresses-ops/issues/21
Per above

[x] Define new schema to use that supports multiple layers and multiple sources per layer
[x] Provide scripts for converting current sources into valid v2 sources
[x] Update all sources to V2

DO NOT MERGE A lot of work has to be done before this is even close to being ready

This is awesome, I've sketched out some parcel and building sources for au/nz in v2-au-nz-parcels-buildings. The proposed schema works really well.

@ingalls Does this mean that the OA v2 to expand scope to things like buildings and parcels is abandoned?

This particular approach might be, but we're still very interested in expanding scope to other data sources.

@andrewharvey This same approach is still something I'm working on, just going to go with the incremental approach instead of switching all the sources at once.
https://github.com/openaddresses/openaddresses/pull/3923


the cookie is not remove

need implement after logout remove the cookie my solutions is this
export function logout() {
  return {
    types: [LOGOUT, LOGOUT_SUCCESS, LOGOUT_FAIL],
    promise: async ({ client, app, restApp }) => {
      await app.logout();
      setToken({ client, app, restApp })({ accessToken: null });
      cookie.set('feathers-jwt', '');
    }
  };
}

if not implement this the session not is erase any time only sometimes.

sorry bertho but we have a same error when teh ssion is expire in the api but not in the client, so what you mean ?

I think we have to wait for v3 of Feathers authentication.

Yeah I see this version and the features are very useful for more security and control, when is the release date ?

It's been a while since I did not update this project, I do not find much time for this one. I would have to find some.


Wacom.WacomTabletDriver version 6.3.45-1

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

The exit code appears to have no bearing on the success of the install. On my system, it has exited with codes 1 and 2 on a successful install. It has exited successfully with no exit code after an aborted install.

I was going to suggest the same as Levvie, however i don't think it installed correctly with the /Q switch, No Start Menu shortcuts and the executable files in C:\Program Files\Tablet didn't work, when running it manually it creates Start Menu shortcuts AND C:\Program Files\Tablet looks completely different

I was going to suggest the same as Levvie, however i don't think it installed correctly with the /Q switch, No Start Menu shortcuts and the executable files in C:\Program Files\Tablet didn't work, when running it manually it creates Start Menu shortcuts AND C:\Program Files\Tablet looks completely different

Where are you getting the /Q switch from? The /s switch is used for a silent install. On my system, this does create the correct files in C:\Program Files\Tablet and the start menu shortcuts.


feat: add Toggle component

Closes #1210
Types of Changes
What types of changes does your code introduce? Put an x in all the boxes that apply:

[ ] Bug fix (non-breaking change which fixes an issue, please reference the issue id)
[ ] New feature (non-breaking change which adds functionality, make sure to open an associated issue first)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] My change requires a change to the documentation
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] All new and existing tests passed

Description
[Place a meaningful description here.]

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Sqlalchemy session handling

Remove force_flush and replace with sqlalchemy_session_action.  This option takes three values None, 'flush', or 'commit'.  If it is set, we preform the indicated action on the session at the end of a create call.
Initial discussion can be found here #309

This code looks great to me, nice job on the test cases.
I'm going to hold off merging until there's consensus on the wording of the API endpoing/params in the parent issue, but once that's firmed up this should be good to go.

@zyskowsk Any estimate on when you'll be able to update your PR based on the discussion in the parent issue?
Looking forward to merging it. Also, if it's feature incomplete, such as only allows this persistence to be set at the factory level and not the global level, that's okay as someone can extend it later. Be good to get the deprecation note into the docs/code sooner rather than later to head off anyone doing it The Wrong Way™

Yo @jeffwidman thanks for the reminder, I am planning on getting this updated in the next few days, definitely with the deprecation note and hopefully with an approach for setting the persistence behavior globally!

Merged as 3e28a95, thanks!!

@zyskowsk Thanks for being persnickety about the details here, much appreciated!


Player stats

What is the reason for limiting the width of the player stats container to 500px?

IMO, freeing up the width looks not only more compact, but simply better. Additionally, I would group the stats by type, exposing the most important ones first. Something like this:

Should I make a proper PR, or should it stay as it is now?

Go ahead and make a PR for this


internal/hcs/schema should probably not be internal, or needs more wrapping functions.

I was trying to migrate the containerd WCOW layer code from the RS1 hcs API ("github.com/Microsoft/hcsshim") to the RS5 computestorage API ("github.com/Microsoft/hcsshim/computestorage"), and I fell at the very first post: I can't see how to build a LayerData for computestorage.AttachLayerStorageFilter.
Specifically, storage.go has this:
package computestorage

import (
	hcsschema "github.com/Microsoft/hcsshim/internal/hcs/schema2"
)

// LayerData is the data used to describe parent layer information.
type LayerData struct {
	SchemaVersion hcsschema.Version `json:"SchemaVersion,omitempty"`
	Layers        []hcsschema.Layer `json:"Layers,omitempty"`
}

but from outside (i.e. containerd) there's no way to generate either hcsschema.Version nor hcsschema.Layer values, as the types are declared in "github.com/Microsoft/hcsshim/internal/hcs/schema2".
I saw that for hcsschema.Version, there's the handy SchemaV21() in "github.com/Microsoft/hcsshim/internal/hcs/schema2", although that is also currently internal. I can also do the following to work around not being able to name the type.
	result := &computestorage.LayerData{}
	result.SchemaVersion.Major = 2
	result.SchemaVersion.Minor = 1

I'd rather
	result := &computestorage.LayerData{SchemaVersion: hcsschema.SchemaV21()}

though.
I couldn't find any existing wrappers for hcsschema.Layer that aren't also internal, e.g. MountContainerLayers in "github.com/Microsoft/hcsshim/internal/layers" (which would probably be awesome to export as well...). And being a slice, I have to be able to name the type to make or append to it, as far as I know.
So I guess the obvious options going forward are:

Export MountContainerLayers and similar wrappers for the other computestorage APIs that are wrapping things that require schema access.
Export some APIs to build the required top-level schema objects, e.g. MakeLayerData(...) (*LayerData, err).
Recreate (aliasing would be better, if that's possible in Go?) the relevant data structures and constants needed for these APIs. I suspect this was the intended direction, but it was only partly-done.

Why is LayerData defined manually, but Layer was exported by code-gen? LayerData is present in the schema. I see the same thing for the other types defined directly in computestorage: ExportLayerOptions, OsLayerOptions and OsLayerType.

Lift the whole generated schema folder out of internal, as well as exposing any important helpers like SchemaV21().

I've only looked at computestorage, and perhaps the other use-cases are already covered by one of the above approaches, or some other approach that hasn't occurred to me.
I suspect that if I needed to do this now, I could generate the relevant JSON myself (I could run the codegen elsewhere, or just YOLO hand-roll it) and then unmarshall onto the visible LayerData struct, but that seems fairly user-unfriendly.
Side-question: Is https://github.com/MicrosoftDocs/Virtualization-Documentation/tree/master/hyperv-samples/hcs-samples/JSON_files the right source for the OpenAPI specs? All three claim to be "2.4" in their header, but the docs say they should be 2.1, 2.2., and 2.3 for 1809, 1903, and 2004 respectively. (The content looks correct, I just want to make sure I'm looking at the canonical schema specs)
Related side-question: Did anyone write down the swagger-codegen command used to generate the schema? I see lots of edits in the directory history, it's unclear if those were manual or if everyone knew the regenerate command, and just assumes everyone else does too.
Also, sadly #1004 merged before #930 and hence a single file was left in the old location which left me quite confused for a little while. Fix proposed in #1074

Yea the layer concern is valid... The point of making the binds for computestorage was so we could eventually use all of these in containerd, so it's currently failing it's job somewhat :P
Truth be told, I don't know why the schema IS in internal, seems like it would easier to use this repo to interact with hcs if it was exported (whether that be for hobby or for a Containerd use case like this is mentioning). For much of the docker/v1 hcs code (in the root of the repo) that we rarely change, we just end up assigning the internal types to an exported one at the root anyways, albeit like I said this is only v1 definitions.  https://github.com/microsoft/hcsshim/blob/master/container.go#L16-L43

Why is LayerData defined manually, but Layer was exported by code-gen? LayerData is present in the schema. I see the same thing for the other types defined directly in computestorage: ExportLayerOptions, OsLayerOptions and OsLayerType
This was likely an oversight and they should be generated and live in schema2 also.

I'll get back to this in the morning after talking to some folks.

Sounds good. And I'm glad to see that type-aliases would work, if we wanted to go that way, like schema1. That would definitely be a short fix for my use-case, and since I'm using a hcsshim branch anyway, it would be easy to hack away at to determine if this is actually related to the problem I'm chasing.
And today I learned the difference in Go between type alias, e.g. type ContainerProperties = schema1.ContainerProperties, and type definition, e..g. type favContextKey string, so thank you for that too. ^_^

@kevpar @ambarve @anmaxvl @katiewasnothere Anyone have opinions here? Should we just type alias whatever is needed for computestorage like we do at the root of the repo for the v1 schema?

Something I forgot to mention earlier, but it might be nice if the functional tests were less reliant on the internal tree, so that issues like this would be caught sooner.
It might make sense to disallow internal from inside tests, since that's already set up as a separate module, but I suspect that will reveal a bunch more API work to do. cmd would be worth considering for such a rule too.


bug: $ionicLoading chaining

Type: bug
Platform: all
With $ionicModal and $ionicPopover, you use a constructor function and then call show() against the constructed object. With $ionicLoading, the constructor and show() are the same, making it difficult to do work before the modal view itself is shown. If $ionicLoading worked in a similar way to the other modal services, it would alleviate this problem.
http://codepen.io/anon/pen/XbRLYM

Greetings @mattchue!
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Thank you for allowing me to assist you.


Refresh feed when backend sees new post

Current Behavior:

Need to switch back and forth between feeds or refresh page to see a new post

Expected Behavior:

New post auto loads into feed

Dev Notes:

use /content-watcher/announcements to see if a new post has been announced, then tell the frontend to refresh the current feed.
might be even nicer if the SAT backend supported some kind of notification mechanism, ie subscriptions or SSEs, rather than having the frontend poll all the time...

use /content-watcher/announcements to see if a new post has been announced, then tell the frontend to refresh the current feed.

I don't think the onus is on content-watcher here; it already calls a webhook when it finds new content; anything downstream of that should be the responsibility of the Provider app (ie, SAT backend)

@JoeCap08055 Should have clarified that I meant the data from the content watcher endpoint in the SAT backend... not in the service itself. Sounds like we're on the same page.


Enable stemmer filter in data_utils

I think it would be a good idea to update data_utils.py to include a Stemming filter by default when creating Elasticsearch indices. This would tremendously improve the results returned by ES.

Here's my take on it:
index_settings = { 	"settings": { 		"analysis": { 			"analyzer": { 				"stop_analyzer": { 					"type": "standard", 					"stopwords": "_english_" 				} 			} 		} 	}, 	"mappings": { 		"properties": { 			"casebody.data.opinions.text": { 				"type": "text", 				"analyzer": "stop_analyzer" 			}, 			"name": { 				"type": "text", 				"analyzer": "stop_analyzer" 			} 		} 	} }


How to set up FB pixel if I´m going to set up Conversiones API with GTM

Hi,
I set up a FB pixel on my website to track 5 events and those are working properly. Now I want to set up conversion API with GTM, but I don´t have a clue how to. My first questions is if I could maintain pixel on my website or I have to migrate pixel tracking to GTM. Another question is if pixel can still on my website while conversion API is through GTM: do I have to set up the same events in both parts: GTM and Facebook. (I just have one domain, one website, one pixel)
Or please tell me what is the best way to do this, I have read all day about this and I´m still lost.

Hi You can maintain the pixel you setup in your website as it is. If you want to take the advantages of first party tracking then you can setup conversion API through GTM. Yes you can send same events from both the pixel and conversion API . If you do so then you have to send event ID as a event parameter from both pixel and conversion API. It will help meta to deduplicate the events. Otherwise the same event will be registered twice. Meta recommends to setup both the pixel and conversion API.


Burning otherworld logs creates charcoal instead of ashes

Note to self: Should use e.g. spiritfire instead

Fixed in 0.2.6


Add socat RPM to installed packages.

This is needed for the 2nd lever proxying of VNC/SPICE consoles.
ping @simaishi: need this for Euwe :-(

This looks okay to me looks like the package comes from the CentOS base repo. Merge when you're ready @simaishi

@carbonin : This PR is not a bug fix. It's an enhancement. The 2nd level proxy was not merged yet, (pending more testing and review). We are not fixing anything broken here.

@martinpovolny Can you add a reference to the PR that will require this package?

@simaishi : added to the description

Euwe Backport details:
$ git log
commit 25de364ddb1fbc9e99f8be45e47c208052f9eb99
Author: Satoe Imaishi<EMAIL_ADDRESS>Date:   Wed Oct 12 09:46:56 2016 -0400

    Merge pull request #168 from martinpovolny/add_socat

    Add socat RPM to installed packages.
    (cherry picked from commit c57feee088b000906c1b8433b299f1c1ebbfb4f9)


Problem with displaying Chipper exports screens

There's problem with displaying initial  or further screens in Chipper exports. Either first (about 10% probability) or second one (~5%) doesn't display in 0.4.8 version.

Attached file to test:
PlayBS_Xump_lv_3.zip
Sometimes it occurs also in other programs.

Probably similar issue as #31 #75 #76


Xiaomi Router Device Tracker - Setting track_new_devices false doesn't work

**Home Assistant release (hass --version): 0.58.0.dev0
**Python release (python3 --version): 3.5
**Component/platform: device_tracker.xiaomi
**Description of problem: Setting track_new_devices false doesn't work.
**Expected: The known_devices.yaml file should not be modified when this flag is set (i.e. existing devices in there remain, and other devices detected are not added to the file). However, the file is being modified with a lot of devices and this is cluttering up the devices list.
This is the only device_tracker I'm using so the flags should be set globally.

Ref: The following optional parameters can be used with any platform. However device tracker will only look for global settings under the configuration of the first configured platform:
track_new_devices | True | If new discovered devices are tracked by default
https://home-assistant.io/components/device_tracker/

Problem-relevant configuration.yaml entries and steps to reproduce:
  device_tracker:
  - platform: xiaomi
    host: <IP_ADDRESS>
    track_new_devices: false
    password: iamapassword

**Traceback (if applicable): Possibly related:
2017-11-16 06:37:58 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.5/http/client.py", line 1198, in getresponse
    response.begin()
  File "/usr/lib/python3.5/http/client.py", line 297, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.5/socket.py", line 576, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/util/retry.py", line 357, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 389, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/srv/homeassistant/lib/python3.5/site-packages/urllib3/connectionpool.py", line 309, in _raise_timeout
    raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Read timed out. (read timeout=5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/__init__.py", line 696, in async_device_tracker_scan
    found_devices = yield from scanner.async_scan_devices()
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/xiaomi.py", line 53, in scan_devices
    self._update_info()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/xiaomi.py", line 79, in _update_info
    result = self._retrieve_list_with_retry()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/xiaomi.py", line 91, in _retrieve_list_with_retry
    result = _retrieve_list(self.host, self.token)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/device_tracker/xiaomi.py", line 113, in _retrieve_list
    res = requests.get(url, timeout=5, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/requests/adapters.py", line 521, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Read timed out. (read timeout=5)

Closing as the track flag is set to false for the newly discovered devices.


TimeSeries.values or method addition

Looking at the usecase of tracing measurements of a process (e.g. production of paperclips over time) a user might be interested in values primarily in some cases (e.g. to compute the total amount of paperclips produced).
ts._d.values()
sum(ts._d.values())

I'd suggest to implement something similar to the following:
def values(self):
        """Return a list of all values in the time series (without time information)."""
        return self._d.values()

Wdyt? Are there other aspects to consider?

Using a traces.TimeSeries for measurements of a process like that is an interesting use case that we haven't been considering much — we've been primarily using traces for continuous processes measured at irregular times. For example: the distribution method doesn't really make sense in that case either.
Makes me wonder if there is a separate class that would be useful for this... are there other methods of TimeSeries that you've been finding useful for the process measurements (e.g. paperclips)?

In the paperclips example, does the TimeSeries track the rate of paperclip production? If so, then you need to provide a unit for the x axis, for example "5213 paperclips per hour". Only then will you be able to work out total paperclips produced between two datetimes.
I think there needs to be a TimeSeries.total(self, x_unit) function that calculates the area under the curve (the integration of the time series).
Using the light bulb example from the documentation, we should be able to calculate the total power usage of all light bulbs between two datetimes in watt-hours.
Lets say

power_consumption_traces is a list of traces where each value is the power consumed in watts
total_power_consumption_series is the total power consumption of all light bulbs, generated by TimeSeries.merge(power_consumption_traces, operation=sum)

We could then return the total power consumption in watt-hours using something like
total_power_consumption = total_power_consumption_series.total(x_unit=datetime.timedelta(hours=1))
Without setting a unit for the x axis though, I don't think it's possible to calculate the total.
I expected traces.Histogram.total() to do what I'm suggesting, but it doesn't.

Perhaps whichever solution should use a library such as https://pint.readthedocs.io/en/stable/index.html

Hey @johnhaire89 I generally agree with you on most points. I disagree on units and that pint is the better alternative. I used pint before but it's not comparable to what we are trying here.
I think your approach to require a unit is one-sided. In the simple example from above, data points would not be samples of a continuous process. So instead of "5213 paperclips per hour" I would rather say  "5213 paperclips since the last sample". The problem is imho perfectly described by @nsteins in the proposal to implement a EventSeries.
Adding another view to this: @stringertheory suggested a new series class for this. Imho that's a question of philosophy behind traces. Is an object purpose driven or universal? As a counter example: You might be familiar with InfluxDB measurements. Think if them as tables in a database specifically architected for time series data. A whole set of statistical functions can be used to query, slice, join, and aggregate data. InfluxDB does not concern itself with the nature of your datapoints and therefore whether the sum or integral functions are meaningful for your use case is really up to you and the nature of your data.

Apologies for the tone of my previous comments, for answering without understanding what was being discussed, and for the thought bubble about pint =)
For what little it's worth, I'm OK with the suggestion.


python312Packages.pydrawise: 2024.6.4 -> 2024.6.5

Diff: https://github.com/dknowles2/pydrawise/compare/refs/tags/2024.6.4...2024.6.5
Changelog: https://github.com/dknowles2/pydrawise/releases/tag/2024.6.5
Description of changes

Things done

Built on platform(s)

[ ] 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

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

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

[ ] Fits CONTRIBUTING.md.

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

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

5 packages built:

home-assistant-component-tests.hydrawise
python311Packages.pydrawise
python311Packages.pydrawise.dist
python312Packages.pydrawise
python312Packages.pydrawise.dist


Manual doesn't actually show parameter marshalling for non-primitive types

Original issue: https://charm.cs.illinois.edu/redmine/issues/323

One of the key conveniences of parameter marshalling is that any type for which pup is defined can be passed as an argument to an entry method, rather than just primitive types (e.g. int, double), system-defined types (e.g. CProxy_Foo) and arrays of the same. However, I notice that this isn't clear in the manual at all, as evidenced by Nicholas Bock's recent message. Please elaborate on this ability, with explicit text and some example code. This ability should be clear in both the sections on Entry Methods (currently 3.1) and on PUP (chapter 6).
Deadline set for November 15 so that anyone reading during SC will see the changes.

Original date: 2015-01-15 21:53:39

You've been working on improving tutorial and documentation material. This seems like a good target for that goal.

Original date: 2015-01-16 23:48:35

<IP_ADDRESS> Marshalling User-Defined Structures and Classes and 6.4 Marshalling User Defined Data Types via PUP already cover this explicitly.  I've cleaned up a bit of the manual and example code and added an explicit example to the manual (http://charm.cs.uiuc.edu/gerrit/#/c/459/).

Original date: 2015-01-17 22:07:15

I've merged 459, but I still think this could be more straightforward. I think code from HeapPUP or something like it should be displayed and explained in the entry methods discussion in section I-3.


Update cert-manager (pre-release v1.6.0)

Hi team.
The scope of this PR is to update cert-manager package providing enough documentation to update an existing installation.
You can find the upgrade path docs in the release notes of the v1.6.0 docs (the upcoming module release).
Thanks!

Pipeline is passing: http://ci.sighup.io/sighupio/fury-kubernetes-ingress/198


removed variable and used BlocProvider

There is Close instances of dart.core.Sink.dartclose_sinks warning.
So I have removed the bloc variable and directly used BlocProvider.of.
Fixes / Enhancements

refactored to avoid "Close instances of dart.core.Sink.dartclose_sinks" warning

Hello @HofmannZ
can you please review this PR?
Thanks

@Abhishek01039 please retarget against beta. Also, @vasilich6107 is the one who should review this PR

Hello @micimize
retarget against beta means 4.0.0-beta.3 branch

I’ll check.

Thanks, @vasilich6107

hello @vasilich6107
can you please review this PR?
Thanks

@Abhishek01039  Will find time today

Approved

@Abhishek01039 it means target the beta branch:

You'll probably have to rebase or something, they are quite different now

ok @micimize
I will do this in different PR.
Thanks

@Abhishek01039 yes that'd be fine

@micimize
so can you please approve the changes as well ?

:tada: This PR is included in version 4.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 4.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Update README.md to highlight Jakarta EE 10

I went ahead and merged #3 so I can point at the updated README in a forum post. This conflicts, so I'm going to close it.


Minor fixes

While I was debugging using the Wannier90 parser, I got some errors to be fixed (see nomad-parser-wannier90#3):

[ ] Change order of normalization for 1st KSpace and then its subsections (KMesh and KLinePath).
[x] Fix warning in spectral_profile.py adding condition for if self.name == 'ElectronicDensityOfStates' for total DOS.
[ ] Overwrite FermiLevel and call for ElectronicBandStructure.normalize() once DFT+TB workflow is resolved.
[ ] No idea why, but in the frontend, the SinglePoint.inputs and outputs section are not shown.
[x] Fix README
[x] Fix equality operator
[x] Move testing files to subfolders to mimic the src structure
[x] Delete copyright at the beginning of each file

@ladinesa (once you feel better): can you tell me your thoughts on the first todo point regarding the order of calling normalize? I can explain more in detail (but you can also read the issue in the parser).
Also, the last point: I do not know why, but the SinglePoint links for inputs and outputs, the reference section is not showing on the front end:

It only happens for Input Model System and Outputs, but for Input Model Method is properly showing, see:

Any ideas what is going on wrong? I can share some branch with you to test.

Any ideas what is going on wrong? I can share some branch with you to test.

Did you generate the gui artifacts? it could be that the definition is simply not loaded.

Yeah I did, but I can double check again (or maybe do before ctrl+f5...). ModelMethod seems to be working.

@ladinesa (once you feel better): can you tell me your thoughts on the first todo point regarding the order of calling normalize? I can explain more in detail (but you can also read the issue in the parser).

You could also try to normalize 'reciprocal_lattice_vectors' in the sub-section, and put an if in the main section if this is already normalized. You can isolate the normalize function for the reciprocal lattice vector so you can easily call it in the child section,  something like self.m_parent.normalize_reciprocal_lattice_vector(..). The current normalizer level applies only for the sub sections in a section but I am not sure how we can do this to order generally and if this makes sense.


In consoleLabel(), show fields in the order they are defined.

Please ignore premature PR from 5 minutes ago, sorry.

Thanks for this! I incorporated your ideas here. https://github.com/datamade/dedupe/commit/b318d5d3126d9aa9efcc69356cb3fd2f13758d05


Rc 1.16.0

Coverage: 99.245% (+0.0007%) from 99.244% when pulling 02919a3c3cadd3452622911601c650d45a26cdba on rc-1.16.0 into d4a933ad2b3c19648bcc6e9e77653f7ee5ccac4a on master.


Starting new browsers more efficiently

My cpu can handle over 30 threads of chrome browsers running a video. But it can't handle the initial spike Chrome unpacking to a new directory. I'm assuming this is because of how it unzips. Is there any way to set the processing power used in the unzipping process?

Another solution could be to set a delay so everything doesn't open at the same time.
30 threads > 5 browsers open and wait to unzip > next 5 browsers

how to set that?

Thank you! Will test soon.

is this for windowd or mac?


Intro: get rid of trust blog post

[ ] link to blog post about trusting packages seems to be broken - maybe it moved?
[ ]  should we add a nother warm and fuzzy - we got you - image after the expectation slide?
[ ]  remove "candace's courses" phrasing unless she is teaching again
[ ]  Maybe we should have in the slides that there will be extra time to help with issues on the first day - with installations etc.

should we talk more about the "intuition" goal?

Maybe we should define vector and dataframe


Rewrite doc params in Google-style

@tswast, added changes into script
So, I think, everything, that could have been automated is automated. I'll split the changes for BigQuery into two PRs. Also will add some manual changes for anomalous cases and will push all of it shortly
Thank you for cooperating!


Reduce complexity of document reader

From the static code analysis (codescene.io) the complexity of that DocumentReader class is too high.
Splitting into small reader fragments as already done for some parts should now be applied for all parts.

Done.


malloc() sometimes spuriously returns nullptr

Me and @veluca93 have found that, upon updating from gperftools-2.7 to gperftools-2.8, allocations started to sometimes return nullptr in a cpu- and allocation-heavy multithreaded process. Bisection found that the issue starts at be3da70298bf3d25c7d64655922ab82dd819ec98.
The issue can be reproduced by building https://gitlab.com/wg1/jpeg-xl (for example, according to the instructions in https://gitlab.com/wg1/jpeg-xl/-/blob/master/doc/developing_in_debian.md) and running ./ci.sh fast_benchmark. The issue manifests itself as nondeterministic assertion failures of one of many assertions that check for non-null returns from malloc.
If getting any tracing information, or testing patches, might be helpful, please say so.

Closing as duplicate. BTW I was not able to do this ./ci.sh fast_benchmark thingy. It barks at missing file under build/tools or something.


add documentation to files

Changes:

adds (some) documentation to files
a few fixes that might have (or currently) cause problems
a global lint using black on files (addressed in 1777d624)

Suggestions:

Create requirements.txt so that dependencies such as pygame and cv2 can be installed with python -m pip install -r requirements.txt
Specify python version that this project works with

Thank you for your contribution. I will review it soon! Quick question: How did you find this project?

I am very glad you added more documentation to the project and your line and comment formatting also helps to make it a lot cleaner! But I don't like some of the code. For example having every condition of an if statement on a seperate line. Or having the file path for an image on a seperate line. Additionally you might also have to fix some conflicts. Except for that it looks great!

No need to credit me, I'm just happy that I could help :)


Make never rest type top-like

Not an actual fix as the issue is still under discussion. Figured I’d put up and implementation though.
Fixes #33495

@typescript-bot test this
@typescript-bot user test this

which should error, I believe?

Yep, added!

Thanks for powering through all these PR's @sandersn and @weswigham!

Short answer: no. That function type should not be callable.
Longer answer: After looking through this again last night and trying to fix it, I do vaguely remember looking at that behaviour before. I think the code to trigger the error was move involved and touched a couple of the signature checking functions. I guess I never got around to resolving that and when the PR was revived, I had forgotten.
I started working on a fix yesterday. Haven't run it through perf and regression test. I do think it is a big chage.

Thanks @jack-williams, wasn’t expecting you to pick up a fix, just searching for info, but appreciate it!


Advisor feedback5: nested templates

I’d also suggest in the near future, splitting this up in to several templates so that each group is a template and loaded as necessary.
The template is almost 1mb in size.  That means every user downloads 1mb of json (compressed but still has to be decompressed+parsed) even if they only ever click on the second tab.
Usually with things this big we recommend the first tab (in your case probably also summary tab?) be in the “outer” template and each other tab be its own group that loads from another template.  Some teams make those nested templates also directly clickable in the gallery, so that if you only ever cared about storage, you could just open that template directly from the gallery instead of always clicking the storage tab.  The azure backup team did this and dramatically lowered the load time for its templates.  Many of the insights also do this as well.

We can refer this part of Azure Backup. Workbook to be loaded must be under "Workbooks" on GitHub directory.

[ ] Verify that "Deploy to Azure" is working properly
[ ] Verify that each pane shows or not when turn on/off "Show SLA" and "Show Help"


Incorrect "method doesn't override an inherited method" hint

abstract class A { void foo(A a); }
abstract class B { void foo(B b); }

class C implements A, B {
@override // Analyzer says: info: method doesn't override an inherited
method.
void foo(covariant C c) {}
}

This seems to work as intended. We have the following in the documentation for @override: 'The annotation @override marks an instance member as overriding a superclass member with the same name', and the superclass of C is Object. It may have been intended to specify that it should be a concrete declaration in that superclass (such that the easy-to-remember rule would be that it is about implementations), but already the use of 'superclass' does make the observed behavior compliant with the documentation.

Sorry, I should have been clearer; the issue appears to be around covariant. In particular, this does not generate a warning:
abstract class A { void foo(A a); }
class C implements A {
  @override
  void foo(covariant C c) {}
}

it's when you also implement B, and so the covariant keyword is needed to make the analyzer happy about the override, that the analyzer decided it's not, in fact, an override.

OK, I actually think the analyzer gets confused about something here:
lang/dart/scratch/201801(master)$ cat n017.dart                         [14:57]
abstract class A { void foo(A a); }
abstract class B { void foo(B b); }

class C implements A, B {
  @override
  void foo(C c) {}
}

main() => new C().foo(new C());
lang/dart/scratch/201801(master)$ cat n018.dart                         [14:57]
abstract class B { void foo(B b); }

class C implements B {
  @override
  void foo(C c) {}
}

main() => new C().foo(new C());
lang/dart/scratch/201801(master)$ dartanalyzer --strong n017.dart       [14:57]
Analyzing n017.dart...
  error • Invalid override. The type of 'C.foo' ('(C) → void') isn't a subtype of 'A.foo' ('(A) → void') at n017.dart:6:3 • strong_mode_invalid_method_override
  hint • Method doesn't override an inherited method at n017.dart:6:8 • override_on_non_overriding_method
1 error and 1 hint found.
lang/dart/scratch/201801(master)$ dartanalyzer --strong n018.dart       [14:57]
Analyzing n018.dart...
  error • Invalid override. The type of 'C.foo' ('(C) → void') isn't a subtype of 'B.foo' ('(B) → void') at n018.dart:5:3 • strong_mode_invalid_method_override
1 error found.

So the Method doesn't override hint is shown with class C implements B but not with class C implements A, B (so it does not consider the superclass chain alone), and in the latter case it does not report both invalid override relationships (only the one relative to A.foo).
There may be more things to note, but this is already enough to make it an issue.

I am getting the same error when making an abstract method invisible by using _.
abstract class A {
  const A();

  Future doWork(Timer timer) async {
    await _doWork();
    timer.cancel();
  }

  Future _doWork();
}

class B extends A {
  B();

  @override
  Future _doWork() async {
    // Do the hard work here!
    await Future.delayed(Duration(seconds: 10), () {});
  }
}

Yields the (lint) errors:
[dart] Method doesn't override an inherited method. [override_on_non_overriding_method]
[dart] The method '_doWork' isn't used. [unused_element]

This appears to have been fixed; does not reproduce today.


update to use conditional invoke

in code example
if (SampleEvent != null)
SampleEvent(this, new SampleEventArgs("Hello"));
simplify to
SampleEvent?.Invoke(this, new SampleEventArgs("Hello"));
but also remarks should mention multi-task considerations

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f782a9c5-2dc8-d8d1-b17d-246ab8524863
Version Independent ID: f6f825c5-c64b-d13b-1c7e-a01bfb93093d
Content: event - C# Reference
Content Source: docs/csharp/language-reference/keywords/event.md
Product: dotnet-csharp
Technology: csharp-language-reference
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thank you for opening this issue. I'll add it to the backlog. If you would like to contribute, you can submit a fix by editing the code. The code is contained in this file:
https://github.com/dotnet/samples/blob/master/snippets/csharp/VS_Snippets_VBCSharp/csrefKeywordsModifiers/CS/csrefKeywordsModifiers.cs
Thanks again!

This example above was confusing when I first saw it, because ?. is not a normal C/C++ operator, and it's not even an operator in older versions of C# either.
It wasn't until I got to the ?. operator documentation (https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/member-access-operators) that it made sense.  If you're going to teach events, you should first teach the simple case:
var handler = this.PropertyChanged;
if (handler != null)
{
handler(…);
}
Worry about the fancy new ?. operator later.

Hi @matthew45052 Thank you for the comment. We've opted to use the best built-in operator for the case. Considering the operator was added to the language 5 years ago, was created to handle the situation you're describing, it's the best choice.
However, you do bring up something I think that should be addressed. Regardless of the operator or the explicit null check, it should be noted in the article that the event is null until it's subscribed to, and that a null value should be checked for.
I'm creating an issue to track that. I'm unsure why this issue wasn't closed. Thank you for your feedback!


Fix performance issue in value/type system

Several issues in the value/type system need to fix:

IsNull() check is expensive and we can get rid of it by adding a null flag for every value type.
Simple value/type functions should be inlined.
CheckComparable() and CheckInteger() should be replaced by some assert.
Varlen value type should allow "shallow copy" to save unnecessary memcpy overhead.

Fixed


go: malformed module path "caddyserver/replace-response": missing dot in first path element

Hi,
I am unable to build this module with caddy 2.6
Dockerfile :
FROM caddy:2.6-builder-alpine AS caddy_builder

RUN xcaddy build \
      --with caddyserver/replace-response

FROM caddy:2.6-alpine AS app_caddy

WORKDIR /srv/app

COPY --from=caddy_builder --link /usr/bin/caddy /usr/bin/caddy

Output of docker build . :
#0 5.052 go: added golang.org/x/exp v0.0.0-20221205204356-47842c84f3db
#0 5.052 go: added golang.org/x/mod v0.6.0
#0 5.052 go: added golang.org/x/net v0.7.0
#0 5.052 go: added golang.org/x/sys v0.5.0
#0 5.052 go: added golang.org/x/term v0.5.0
#0 5.052 go: added golang.org/x/text v0.7.0
#0 5.052 go: added golang.org/x/tools v0.2.0
#0 5.052 go: added google.golang.org/protobuf v1.28.1
#0 5.053 2023/04/06 16:05:20 [INFO] exec (timeout=0s): /usr/local/go/bin/go get -d -v caddyserver/replace-response<EMAIL_ADDRESS>#0 5.104 go: malformed module path "caddyserver/replace-response": missing dot in first path element
#0 5.105 2023/04/06 16:05:20 [FATAL] exit status 1
------
Dockerfile:4
--------------------
   3 |
   4 | >>> RUN xcaddy build \
   5 | >>>       --with caddyserver/replace-response
   6 |
--------------------
ERROR: failed to solve: process "/bin/sh -c xcaddy build       --with caddyserver/replace-response" did not complete successfully: exit code: 1

shoul be
xcaddy build \
      --with github.com/caddyserver/replace-response

I got same stupid.

Ha, ya both are great. Thanks for chiming in :)


Add release notes

Currently adds dimod & cloud-client. Let me know if there's another package that has already implemented reno

I feel like we're moving a bit too much to "the front page", i.e. the left bar. So IMO having this nested under the relevant packages makes sense, at least until we have one unified changelog. As it stands it feels like we're subdividing by packages in two different places. But I can be convinced ether way.

I feel like we're moving a bit too much to "the front page", i.e. the left bar. So IMO having this nested under the relevant packages makes sense, at least until we have one unified changelog. As it stands it feels like we're subdividing by packages in two different places. But I can be convinced ether way.

I'm open to moving. The advantages I see for the current proposal are:

User can scan/search through all changes for an SDK release in place rather than under each package separately
Simpler file structure: one added file rather than new files/softlinks for each package
Bookmark that won't change if we restructure/change our packages

Seems that's the preference, so I'll move and add for inspector. A point I forgot to note above is that in the near term only three of the packages have RNs so to find them under packages, users would be clicking through and mostly coming up empty (3/15).

Honestly I think that's fine.

So for most of our repos, placing release notes under packages is straightforward. However, repos such as dwave-cloud-client have different paths from the docs directory to the repo in the SDK from the submodule.
To overcome that, I considered these methods:

Cleanest would be using the ifconfig directive to set the reporoot with either the substitution directive (preferred) or the entire release-notes directive. Neither works because the ifconfig was designed for textual content

Adding a symlink to the top-level directory of dwave-cloud-client that links dwave-cloud-client to dwave/cloud and using that for the reporoot. I worry it might cause problems, so before I do that I'm running it by you two

Setting reporoot just to the SDK's path. This works also for the local build because  https://github.com/openstack/reno/blob/cd31b907c380635dd8e9c61995a1c0826d4a1137/reno/sphinxext.py#L59 but I don't want to rely on that, which might change tomorrow.

Putting both paths. Will build and render okay but will give quite a few build errors for duplication.

Setting it correctly for the SDK and not worrying anymore about local builds (for cloud client)

Any other ideas? Or should we go with 5?

I am fine with 5. The local builds are mostly for testing anyway.

Yup, 5 is fine.


update validator package

I'm concerned this is a breaking change - as of validator 5.0.0 the extend. I also don't like our current extend functionality. I'm going to look into rewriting some of the core code, so will include this PR as part of that.

Latest minor version now uses up to date version of validator.js