wd_demo: review all "Demo****" function

Bug report
Describe the bug
This may not be a specific bug, but we have to check all "Demos" step by step on all browsers.
How to reproduce
Run wd_demo.au3
Set debug level to "Error"
Select all "Demos" (except UserTesting) and run them

Expected behavior
Mostly there should not be any errors, but there are exceptions for example "DemoTimeouts" exptect to TimeOut error was fired.
Screenshots
Expected TimeOut error

Unexpected error:

Additional context
This bug report is only as a start for disscusion.
System under test
All possible cases. If we will have time.
Progress / summary

[ ] DemoTimeouts -  on FF works fine but on GoogleChrome/MSEdge/Opera - fires error
[x] DemoNavigation - works fine (08 July 2022)
[x] DemoElements - works fine (08 July 2022)
[x] DemoScript - works fine (08 July 2022)
[x] DemoCookies - works fine (07 August 2022) - NID issue is normal behavior take a look at #370
[x] DemoAlerts - works fine (08 August 2022) - error from 'check status' is expected behavior #371
[x] DemoFrames - works fine (29 August 2022)
[x] DemoActions - works fine (08 August 2022)
[ ] DemoDownload - isue only on Opera - other works fine
[ ] DemoWindows -  using FF i get empty Screen2.png
[ ] DemoUpload
[ ] DemoPrint
[x] DemoSleep - works fine (08 August 2022) - there is expected error _WD_WaitElement ==> User Aborted [17]
[x] DemoSelectOptions - works fine (07 August 2022) - tested on https://github.com/Danp2/au3WebDriver/pull/367
[ ] DemoStyles
[x] UserTesting - is not the subject of this review

I don't get these errors when running the version of wd_demo in master branch.

It depends on driver, browser, windows versions.

And they are not all.

It depends on driver, browser, windows versions.

Theoretically, it shouldn't matter. In the real world, we both know that some browsers / drivers occasionally behave differently.
If there are certain combinations that don't work as expected, then you should list them here.

And they are not all.

I'm not sure what you are trying to say here.

If there are certain combinations that don't work as expected, then you should list them here.

Thats the plan.

If there are certain combinations that don't work as expected, then you should list them here.

Thats the plan to check and enlist them.

I see you start enlisting them here:
https://github.com/Danp2/au3WebDriver/issues/265
So I propose to close my ISSUE and sticke with your's.

Sorry... I forgot that this issue already existed.

No problem now they are connected.

I will check this on my way.
soon....

FIREFOX: DemoElements
+ wd_demo.au3: Running: DemoElements
- wd_demo.au3: #350 : Element Coords = 237 / 381.5 / 487 / 34
__WD_Post ==> Element interaction issue (14) HTTP status = 400 : ResponseText={"value":{"error":"element not interactable","message":"Element <input class=\"gLFyf gsfi\" name=\"q...
_WD_ElementAction ==> Element interaction issue (14) HTTP status = 400 : {"value":{"error":"element not interactable","message":"Element <input class=\"gLFyf gsfi\" name=\"q\" type=\"text\"> is not reachable by keyboard","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nElementNotInteractableError@chrome://remote/content/shared/webdriver/Errors.jsm:293:5\nwebdriverSendKeysToElement@chrome://remote/content/marionette/interaction.js:624:13\ninteraction.sendKeysToElement@chrome://remote/content/marionette/interaction.js:600:11\nsendKeysToElement@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:497:24\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:151:31\n"}}
__WD_Post ==> Element interaction issue (14) HTTP status = 400 : ResponseText={"value":{"error":"element not interactable","message":"Element <input class=\"gLFyf gsfi\" name=\"q...
_WD_ElementAction ==> Element interaction issue (14) HTTP status = 400 : {"value":{"error":"element not interactable","message":"Element <input class=\"gLFyf gsfi\" name=\"q\" type=\"text\"> is not reachable by keyboard","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nElementNotInteractableError@chrome://remote/content/shared/webdriver/Errors.jsm:293:5\nwebdriverSendKeysToElement@chrome://remote/content/marionette/interaction.js:624:13\ninteraction.sendKeysToElement@chrome://remote/content/marionette/interaction.js:600:11\nsendKeysToElement@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:497:24\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:151:31\n"}}
__WD_Post ==> Element interaction issue (14) HTTP status = 400 : ResponseText={"value":{"error":"element not interactable","message":"Element <input class=\"gLFyf gsfi\" name=\"q...
_WD_ElementAction ==> Element interaction issue (14) HTTP status = 400 : {"value":{"error":"element not interactable","message":"Element <input class=\"gLFyf gsfi\" name=\"q\" type=\"text\"> is not reachable by keyboard","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nElementNotInteractableError@chrome://remote/content/shared/webdriver/Errors.jsm:293:5\nwebdriverSendKeysToElement@chrome://remote/content/marionette/interaction.js:624:13\ninteraction.sendKeysToElement@chrome://remote/content/marionette/interaction.js:600:11\nsendKeysToElement@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:497:24\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:151:31\n"}}
__WD_Post ==> Element interaction issue (14) HTTP status = 400 : ResponseText={"value":{"error":"element click intercepted","message":"Element <input class=\"gLFyf gsfi\" name=\"...
_WD_ElementAction ==> Element interaction issue (14) HTTP status = 400 : {"value":{"error":"element click intercepted","message":"Element <input class=\"gLFyf gsfi\" name=\"q\" type=\"text\"> is not clickable at point (480,398) because another element
 obscures it","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nElementClickInterceptedError@chrome://remote/content/shared/webdriver/Errors.jsm:282:5\nwebdriverClickElement@chrome://remote/content/marionette/interaction.js:166:11\ninteraction.clickElement@chrome://remote/content/marionette/interaction.js:125:11\nclickElement@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:203:24\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:91:31\n"}}
__WD_Post ==> Element interaction issue (14) HTTP status = 400 : ResponseText={"value":{"error":"element not interactable","message":"Element <input class=\"gNO89b\" name=\"btnK\...
_WD_ElementAction ==> Element interaction issue (14) HTTP status = 400 : {"value":{"error":"element not interactable","message":"Element <input class=\"gNO89b\" name=\"btnK\" type=\"submit\"> could not be scrolled into view","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nElementNotInteractableError@chrome://remote/content/shared/webdriver/Errors.jsm:293:5\nwebdriverClickElement@chrome://remote/content/marionette/interaction.js:156:11\ninteraction.clickElement@chrome://remote/content/marionette/interaction.js:125:11\nclickElement@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:203:24\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:91:31\n"}}
- wd_demo.au3: #389 : ERROR=0 $sValue =
__WD_Post ==> No alert present (12) HTTP status = 404 : ResponseText={"value":{"error":"no such alert","message":"","stacktrace":"WebDriverError@chrome://remote/content/...
_WD_Alert ==> No alert present (12) HTTP status = 404 : {"value":{"error":"no such alert","message":"","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nNoSuchAlertError@chrome://remote/content/shared/webdriver/Errors.jsm:384:5\nGeckoDriver.prototype._checkIfAlertIsPresent@chrome://remote/content/marionette/driver.js:2575:11\nGeckoDriver.prototype.acceptDialog@chrome://remote/content/marionette/driver.js:2498:8\ndespatch@chrome://remote/content/marionette/server.js:306:40\nexecute@chrome://remote/content/marionette/server.js:279:16\nonPacket/<@chrome://remote/content/marionette/server.js:252:20\nonPacket@chrome://remote/content/marionette/server.js:253:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20\n"}}
+ wd_demo.au3: Finished: DemoElements

FIREFOX: DemoScript
+ wd_demo.au3: Running: DemoScript
- wd_demo.au3: #427 : ERROR=0 $sValue = 2nd _WD_LastHTTPResult = 200
__WD_Post ==> Webdriver Exception (10) HTTP status = 500 : ResponseText={"value":{"error":"javascript error","message":"ReferenceError: dslfkjsdklfj is not defined","stackt...
_WD_ExecuteScript ==> Webdriver Exception (10) HTTP status = 500 :  : Response={"value":{"error":"javascript error","message":"ReferenceError: dslfkjsdklfj is not defined","stackt...
- wd_demo.au3: #430 : ERROR=10 $sValue = {"value":{"error":"javascript error","message":"ReferenceError: dslfkjsdklfj is not defined","stacktrace":"@https://demo.guru99.com/test/simple_context_menu.html:2:7\n@https://demo.guru99.com/test/simple_context_menu.html:3:8\n"}} _WD_LastHTTPResult = 500
+ wd_demo.au3: Finished: DemoScript

FIREFOX: DemoFrames
+ wd_demo.au3: Running: DemoFrames
- wd_demo.au3: #522 : Frames=3
- wd_demo.au3: #526 : TopWindow = True
- wd_demo.au3: #534 : TopWindow = False
__WD_Post ==> Element interaction issue (14) HTTP status = 400 : ResponseText={"value":{"error":"element click intercepted","message":"Element  is ...
_WD_ElementAction ==> Element interaction issue (14) HTTP status = 400 : {"value":{"error":"element click intercepted","message":"Element  is not clickable at point (141,100) because another element
 obscures it","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nElementClickInterceptedError@chrome://remote/content/shared/webdriver/Errors.jsm:282:5\nwebdriverClickElement@chrome://remote/content/marionette/interaction.js:166:11\ninteraction.clickElement@chrome://remote/content/marionette/interaction.js:125:11\nclickElement@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:203:24\nreceiveMessage@chrome://remote/content/marionette/actors/MarionetteCommandsChild.jsm:91:31\n"}}
_WD_LinkClickByText ==> Webdriver Exception (10) HTTP status = 400
- wd_demo.au3: #545 : TopWindow = False
- wd_demo.au3: #550 : TopWindow = True
+ wd_demo.au3: Finished: DemoFrames

FIREFOX: DemoDownload
+ wd_demo.au3: Running: DemoDownload
_WD_DownloadFile ==> Not found (13 / 0)
+ wd_demo.au3: Finished: DemoDownload

Take a look on this errors.
Are they intentionall or should be fixed ?

I don't have time to redo all these tests. #267 resolved the open issues that I previously found. I ran DemoElements and didn't encounter any issues, so it appears to be a problem on your end.
+ wd_demo.au3: Running: DemoElements
@ wd_demo.au3: (350) : Element Coords = 397 / 381.5 / 527 / 34
@ wd_demo.au3: (389) : ERROR=0 $sValue = fujimo
+ wd_demo.au3: Finished: DemoElements

I ran DemoElements and didn't encounter any issues, so it appears to be a problem on your end.

Strange.
I suspect that It should behave the same way on any computers.
The only one what could differ is AV software and internet speed.
What more can be the reason that we have different results ?
Do you have any idea ?

Does it include the latest fixes fro #267?
Yes.

I use this one:
https://github.com/Danp2/au3WebDriver/pull/288

That should be fine AFAICS. What combination of Firefox / Geckodriver are you using?

_WD_IsLatestRelease ==> Success (0) : True
_WD_Startup: OS:	WIN_11 WIN32_NT 22000
_WD_Startup: AutoIt:	<IP_ADDRESS>
_WD_Startup: Webdriver UDF:	0.8.1 (Up to date)
_WD_Startup: WinHTTP:	<IP_ADDRESS>
_WD_Startup: Driver:	geckodriver.exe (32 Bit)
_WD_Startup: Params:	--log trace
_WD_Startup: Port:	4444
_WD_Startup: Command:	"geckodriver.exe" --log trace

and
_WD_CreateSession: {"value":{"sessionId":"abb01461-0bdc-4f6d-8af3-5450a3c63270","capabilities":{"acceptInsecureCerts":true,"browserName":"firefox","browserVersion":"96.0.2","moz:accessibilityChecks":false,"moz:buildID":"20220119190439","moz:geckodriverVersion":"0.30.0","moz:headless":false,"moz:processID":105324,"moz:profile":"C:\\Users\\agatk\\AppData\\Local\\Temp\\rust_mozprofilez176Nr","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true,"pageLoadStrategy":"normal","platformName":"windows","platformVersion":"10.0","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify"}}}

_WD_Startup: Driver:	geckodriver.exe (32 Bit)

Have you tried the 64 bit version? I know that I had issues with 32 bit, but it was related to locating the Firefox binary executable.
Not sure this would make any difference, but  I see that your Firefox is several versions old. I'm testing with v99.0.

It was due to the cookie aprovall window which hides contents, and because of this the elements was firing Element interaction issue

Ok... please let me know if you find any other issues that need fixed. 👍

It was due to the cookie aprovall window which hides contents, and because of this the elements was firing Element interaction issue

I have work in background on fixing this issue

DemoElements + FireFox
	_WD_Alert($sSession, 'accept')

I get this following message:
__WD_Post ==> No alert present (12) HTTP status = 404 : ResponseText={"value":{"error":"no such alert","message":"","stacktrace":"WebDriverError@chrome://remote/content/...
_WD_Alert ==> No alert present (12) HTTP status = 404 : {"value":{"error":"no such alert","message":"","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nNoSuchAlertError@chrome://remote/content/shared/webdriver/Errors.jsm:384:5\nGeckoDriver.prototype._checkIfAlertIsPresent@chrome://remote/content/marionette/driver.js:2575:11\nGeckoDriver.prototype.acceptDialog@chrome://remote/content/marionette/driver.js:2498:8\ndespatch@chrome://remote/content/marionette/server.js:306:40\nexecute@chrome://remote/content/marionette/server.js:279:16\nonPacket/<@chrome://remote/content/marionette/server.js:252:20\nonPacket@chrome://remote/content/marionette/server.js:253:9\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.js:500:20\n"}}

I cannot duplicate this. Here's the output I get when running DemoElements with logging set to Error only --
+>17:43:43 Starting AutoIt3Wrapper (21.316.1639.1) from:Code.exe (<IP_ADDRESS>)  Keyboard:00000409  OS:WIN_10/2009  CPU:X64 OS:X64  Environment(Language:0409)
>Running AU3Check (<IP_ADDRESS>)  from:C:\Program Files (x86)\AutoIt3  input:c:\Users\danpo\OneDrive\Documents\GitHub\WebDriver\wd_demo.au3
+>17:43:44 AU3Check ended.rc:0
>Running:(<IP_ADDRESS>):C:\Program Files (x86)\AutoIt3\autoit3.exe "c:\Users\danpo\OneDrive\Documents\GitHub\WebDriver\wd_demo.au3"  /errorstdout
+>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+BREAK to Stop.
> UpdateResult = False
_WD_CapabilitiesDump: _WD_Capabilities: API START: 799
_WD_CapabilitiesDump: - $_WD_CAPS__API: Rows= 1
_WD_CapabilitiesDump: - $_WD_CAPS__API: Cols= 5
$_WD_CAPS__API : alwaysMatch|||moz:firefoxOptions|
_WD_CapabilitiesDump: _WD_Capabilities: API END: 799
_WD_CapabilitiesDump: _WD_Capabilities: JSON START: 799
_WD_CapabilitiesDump: {
    "capabilities":{
        "alwaysMatch":{
            "browserName":"firefox",
            "acceptInsecureCerts":true
        }
    }
}
_WD_CapabilitiesDump: _WD_Capabilities: JSON END: 799
> wd_demo.au3: _WD_Startup
> wd_demo.au3: _WD_CreateSession
> wd_demo.au3: Bypass: DemoTimeouts
> wd_demo.au3: Bypass: DemoNavigation
+ wd_demo.au3: Running: DemoElements
__WD_Post ==> No match (8) HTTP status = 404 : ResponseText={"value":{"error":"no such element","message":"Unable to locate element<EMAIL_ADDRESS>_WD_FindElement ==> No match (8) HTTP status = 404 : {"value":{"error":"no such element","message":"Unable to locate element: //body/div[1][@aria-hidden=\"true\"]","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nNoSuchElementError@chrome://remote/content/shared/webdriver/Errors.jsm:395:5\nelement.find/</<@chrome://remote/content/marionette/element.js:300:16\n"}}
wd_demo.au3: (354) : Element Coords = 397 / 381.5 / 527 / 34
wd_demo.au3: (393) : ERROR=0 $sValue = fujimo
__WD_Post ==> No match (8) HTTP status = 404 : ResponseText={"value":{"error":"no such element","message":"Unable to locate element<EMAIL_ADDRESS>_WD_FindElement ==> No match (8) HTTP status = 404 : {"value":{"error":"no such element","message":"Unable to locate element: //div[@id=\"gdpr-consent-tool-wrapper\" and @aria-hidden=\"true\"]","stacktrace":"WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:183:5\nNoSuchElementError@chrome://remote/content/shared/webdriver/Errors.jsm:395:5\nelement.find/</<@chrome://remote/content/marionette/element.js:300:16\n"}}
+ wd_demo.au3: Finished: DemoElements
> wd_demo.au3: Bypass: DemoScript
> wd_demo.au3: Bypass: DemoCookies
> wd_demo.au3: Bypass: DemoAlerts
> wd_demo.au3: Bypass: DemoFrames
> wd_demo.au3: Bypass: DemoActions
> wd_demo.au3: Bypass: DemoDownload
> wd_demo.au3: Bypass: DemoWindows
> wd_demo.au3: Bypass: DemoUpload
> wd_demo.au3: Bypass: DemoPrint
> wd_demo.au3: Bypass: DemoSleep
+>17:44:44 AutoIt3.exe ended.rc:0
+>17:44:44 AutoIt3Wrapper Finished.
Process exited with code 0

The only errors I see here are from your failed _wd_FindElement calls trying to deal with cookies.
You need to try to isolate this problem with your Firefox installation.

In DemoScript()
this line:
$sValue = _WD_ExecuteScript($sSession, "dslfkjsdklfj;", '{}', Default, $_WD_JSON_Value)

returns:
ResponseText={"value":{"error":"javascript error","message":"ReferenceError: dslfkjsdklfj is not defined","stacktrace":"@moz-nullprincipal:{0441953c-25eb-496d-8a5c-c8db36606135}:2:7\n@moz-nullprincipal:{0441953c-25eb-496d-8a5c-c8db36606135}:3:8\n"}}

Was it intentionall to initiate error ?

Was it intentionall to initiate error ?

Yes, but feel free to replace with something more meaningful.

What was the intention?

Simply to show the effect of generating a javascript error, so it isn't really needed if you want to remove it or replace it with something more meaningful

maybe something like:
; proper JavaScript line
$sValue = _WD_ExecuteScript($sSession, "console.log('Hello world!');", '{}', Default, $_WD_JSON_Value)

; invalid JavaScript Line
$sValue = _WD_ExecuteScript($sSession, "console.log('Hello world", '{}', Default, $_WD_JSON_Value)

Updated OP by adding task

[ ]  DemoTimeouts - on FF works fine but on GoogleChrome/MSEdge/Opera - fires error:

_WD_WaitElement ==> Timeout [7] : Parameters:   Strategy=xpath   Selector=//body[contains(@class, "blur-preview-tpl")]   Delay=0   Timeout=60000   Options=8
wd_demo.au3: (954) : "https://yahoo.com" page view is hidden - it is possible that the message about COOKIE files was not accepted! Error = 7 occurred on: DemoTimeouts
! _WD_LastHTTPResult = 500
! _WD_GetSession = {"value":{"capabilities":{"acceptInsecureCerts":false,"browserName":"opera","browserVersion":"102.0.5005.115","goog:chromeOptions":{"debuggerAddress":"localhost:55562"},"networkConnectionEnabled":false,"opera":{"operadriverVersion":"102.0.5005.61 (0e59bcc00cc4985ce39ad31c150065f159d95ad3-refs/branch-heads/5005@{#819})","userDataDir":"C:\\Users\\agatk\\AppData\\Local\\Temp\\scoped_dir17488_1443721594"},"pageLoadStrategy":"normal","platformName":"windows","proxy":{},"setWindowRect":true,"strictFileInteractability":false,"timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"unhandledPromptBehavior":"dismiss and notify","webauthn:extension:credBlob":true,"webauthn:extension:largeBlob":true,"webauthn:virtualAuthenticators":true},"sessionId":"66c8a673307289e7afa6120010bc3716"}}

DemoTimeouts - on FF works fine but on GoogleChrome/MSEdge/Opera - fires error:

This appears to be related to your _Demo_NavigateCheckBanner routine. I don't encounter these "banners" unless I force it to occur by using a proxy. Did you do anything in FF to dispose of the banner or did it not appear at all?

Did you do anything in FF to dispose of the banner or did it not appear at all?

In all cases it appears, and I click it manually.
as for now I only doing research which are not working well.
I will focus on solving problem in next week.

DemoDownloads on Opera:
_WD_DownloadFile ==> Not found [13 / 0] : Parameters:    URL=https://www.google.com/notexisting.jpg    Dest=Z:\!!!_SVN_AU3\UDF_Forum\Other_Members\Official_AutoIt_Forum\WebDriver\testimage2.jpg    Options=Default

I notice problem with DemoWindows using FF i get empty Screen2.png fix: _Demo_NavigateCheckBanner added _WD_LoadWait

DemoDownloads on Opera:
_WD_DownloadFile ==> Not found [13 / 0] : Parameters:    URL=https://www.google.com/notexisting.jpg

That is the expected result because the file doesn't exist (as indicated in the filename). You should get the same thing on all browsers.


RuntimeError: CUDA error: no kernel image is available for execution on the device

Hi all,
I tried to run the code by using three different setups, but I always get the same error:
Traceback (most recent call last):
File "train_task.py", line 34, in <module>
  from volta.task_utils import LoadDataset, LoadLoss, ForwardModelsTrain, ForwardModelsVal
File "/data/volta/task_utils.py", line 19, in <module>
  from volta.datasets import DatasetMapTrain, DatasetMapEval
File "/data/volta/datasets/__init__.py", line 23, in <module>
  from .SVO_Probes_dataset import SVO_ProbesClassificationDataset
File "/data/volta/datasets/SVO_Probes_dataset.py", line 20, in <module>
  p = Pipeline(lang='english', gpu = True, cache_dir = './cache')
File "/root/anaconda3/envs/volta/lib/python3.6/site-packages/trankit/pipeline.py", line 85, in __init__
  self._embedding_layers.half()
File "/root/anaconda3/envs/volta/lib/python3.6/site-packages/torch/nn/modules/module.py", line 757, in half
  return self._apply(lambda t: t.half() if t.is_floating_point() else t)
File "/root/anaconda3/envs/volta/lib/python3.6/site-packages/torch/nn/modules/module.py", line 570, in _apply
  module._apply(fn)
File "/root/anaconda3/envs/volta/lib/python3.6/site-packages/torch/nn/modules/module.py", line 570, in _apply
  module._apply(fn)
File "/root/anaconda3/envs/volta/lib/python3.6/site-packages/torch/nn/modules/module.py", line 570, in _apply
  module._apply(fn)
File "/root/anaconda3/envs/volta/lib/python3.6/site-packages/torch/nn/modules/module.py", line 593, in _apply
  param_applied = fn(param)
File "/root/anaconda3/envs/volta/lib/python3.6/site-packages/torch/nn/modules/module.py", line 757, in <lambda>
  return self._apply(lambda t: t.half() if t.is_floating_point() else t)
RuntimeError: CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

I followed the Repository setup steps in the README file (plus, after the setup I also needed to install nltk through anaconda and trankit through pip). These setups were:

Run it on a VM with Ubuntu 22.04, NVIDIA RTX 3090, CUDA 12.1 and NVIDIA driver version 530.30.02
Run it on the same virtual machine, but inside a Docker container nvidia/cuda:10.1-devel-ubuntu18.04
Run it on the same virtual machine, but inside a Docker container pytorch/pytorch:1.6.0-cuda10.1-cudnn7-devel

These are the exact commands I executed on both the VM and inside the Docker containers:
conda create -n volta python=3.6
conda activate volta
pip install -r requirements.txt
conda install pytorch=1.4.0 torchvision cudatoolkit=10.1 -c pytorch  #Remove torchvision version as 0.5 is not available

apt install git
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --disable-pip-version-check --no-cache-dir ./

cd ..
cd tools/refer; make

cd ../..
python setup.py develop

conda install nltk
pip install trankit

Then, I ran the following command and after that I received the error above:
python train_task.py \
        --config_file config/vilbert_base.json --from_pretrained ctrl_vilbert.bin \
        --tasks_config_file config_tasks/vilbert_tasks.yml --task 20 \
        --adam_epsilon 1e-6 --adam_betas 0.9 0.999 --weight_decay 0.01 --warmup_proportion 0.1 --clip_grad_norm 0.0 \
        --logdir logs/SVO-Probes/ --task_specific_tokens

Any suggestions?
Thanks!

Hi!
From the message above:
RuntimeError: CUDA error: no kernel image is available for execution on the device

it seems just a problem related to your GPU or PyTorch installation.
Any luck by now?


Missing pre-build file with node-pre-gyp

node-pre-gyp ERR! Tried to download: https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.1.0-dev/node-v46-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v46 ABI) (falling back to source compile with node-gyp)
Did this break the build task ?

This is expected. That message really just means that the packages for that particular version haven't been published yet, which should be the case when building at head.
That message should have been followed with an attempt to compile the library, which is the fallback that the message mentions. If that attempt failed, then those messages would be needed to determine why.

I try to download all the depends by my self ,the problem resolved.


Node starts but cart doesn't move [Foxy Branch + Ign Citadel]

Hi everyone, I tried to build the foxy branch, i'm using Ignition Citadel, and did not receive any kind of error.
However when starting the demo with the launch command
ros2 launch ign_ros2_control_demos cart_example_position.launch.py
The cart is displayed on the ignition screen and to confirm that everything seems to be working I ran the following commands:
ros2 control list_hardware_interfaces

command interfaces
	slider_to_cart/position [claimed].
state interfaces
	 slider_to_cart/effort
	 slider_to_cart/position
	 slider_to_cart/velocity

ros2 control list_controllers

joint_state_broadcaster[joint_state_broadcaster/JointStateBroadcaster] active
joint_trajectory_controller[joint_trajectory_controller/JointTrajectoryController] active

Trying to execute the position control, however, the following errors appear and the cart does not perform any movement:
ros2 run ign_ros2_control_demos example_position

node created
Created action server
Goal accepted
[ERROR] [1686303415.769124122] [trajectory_test_node]: send goal call ok :)
[ERROR] [1686303415.769323340] [trajectory_test_node]: Goal was accepted by server
[INFO] [1686303415.769373139] [trajectory_test_node]: Waiting for result
feedback->desired.positions :0
feedback->desired.velocities :-1

and indefinitely the terminal shows
feedback->desired.positions :0
feedback->desired.velocities :-1
feedback->desired.positions :0
feedback->desired.velocities :-1
feedback->desired.positions :0
feedback->desired.velocities :-1
feedback->desired.positions :0
feedback->desired.velocities :-1

until the code stops, which displays this error:
^C[INFO] [1686303422.765100019] [rclcpp]: signal_handler(signal_value=2)
[ERROR] [1686303422.766838302] [trajectory_test_node]: get result call failed :(

Any suggestions for making the position control work?
Off Topic question: how can I manually send commands to the controller to test that controller works properly?

Foxy was just announced end of life.
I'd strongly suggest moving to some distro where there's more support.
On Fri, 9 Jun 2023, 12:00 Vincenzo-Saffioti, @.***>
wrote:

Hi everyone, I tried to build the foxy branch, i'm using Ignition Citadel,
and did not receive any kind of error.
However when starting the demo with the launch command
ros2 launch ign_ros2_control_demos cart_example_position.launch.py
The cart is displayed on the ignition screen and to confirm that
everything seems to be working I ran the following commands:
ros2 control list_hardware_interfaces
command interfaces
slider_to_cart/position [claimed].
state interfaces
slider_to_cart/effort
slider_to_cart/position
slider_to_cart/velocity
ros2 control list_controllers
joint_state_broadcaster[joint_state_broadcaster/JointStateBroadcaster] active
joint_trajectory_controller[joint_trajectory_controller/JointTrajectoryController] active
Trying to execute the position control, however, the following errors
appear and the cart does not perform any movement:
ros2 run ign_ros2_control_demos example_position
node created
Created action server
Goal accepted
[ERROR] [1686303415.769124122] [trajectory_test_node]: send goal call ok :)
[ERROR] [1686303415.769323340] [trajectory_test_node]: Goal was accepted by server
[INFO] [1686303415.769373139] [trajectory_test_node]: Waiting for result
feedback->desired.positions :0
feedback->desired.velocities :-1
and indefinitely the terminal shows
feedback->desired.positions :0
feedback->desired.velocities :-1
feedback->desired.positions :0
feedback->desired.velocities :-1
feedback->desired.positions :0
feedback->desired.velocities :-1
feedback->desired.positions :0
feedback->desired.velocities :-1
until the code stops, which displays this error:
^C[INFO] [1686303422.765100019] [rclcpp]: signal_handler(signal_value=2)
[ERROR] [1686303422.766838302] [trajectory_test_node]: get result call failed :(
Any suggestions for making the position control work?
Off Topic question: how can I manually send commands to the controller to
test that controller works properly?
—
Reply to this email directly, view it on GitHub
https://github.com/ros-controls/gz_ros2_control/issues/157, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA24PYMHFMHJRHT2I2WAFQLXKL64JANCNFSM6AAAAAAZAPUYVE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

This was, and it should be working. But as @bmagyar mentioned we will not make community effort to test / debug this sind Foxy is end-of-life.


Move to pathe to support working in environments without "path"

What this does
Drops import of path in favor of unjs/pathe
Why
path might not exist in all environments (in our specific case cloudflare workers). pathe is a drop in replacement for path that works in all environments.
also fixes this not working in build pipelines that rely on prefixing for native deps (node:path).

this also addresses Issue #142

awesome work @Mkassabov

Js moment


Are tests not written correctly?

In trying to update the solution for #52, I ran across my updates not passing the tests. First up, the test says that its missing the required option --required. I'm not sure if I actually broke something, or if the test just wasn't written properly. It appears that while the fixture doesn't pass any options, the command actually wants the --required option, it just wasn't provided.
Thoughts? Is this test written correctly?

It might be. Correct the test to what you think it should do, and post the test code here, and I'll make sure it confirms to how I expected it to behave. Thanks!


UTXO details screen- transaction status doesn't update.

Steps to reproduce the behaviour:
wallet A- Desktop wallet
wallet B- IOS wallet

Open wallet A and copy the address.
Close wallet A.
Send transaction from wallet B to wallet A(status in wallet B "waiting for receiver").
Open UTXO details screen in wallet B(status "in progress").
Open wallet A.
Expected: updating status in "UTXO details" screen in wallet B once the transaction has received by wallet A.(spent)
Actual: Transaction in wallet A moved to "received" status. Wallet B moved to "sent" status too, but in open "UTXO details" screen transaction status doesn't update(status "in progress").

checked


minor changes in syntax

Minor changes in syntax -> test for PretrainedWeightsProvider mostly disabled because I need to finalize the syntax before loading new weights

Codecov Report

Merging #141 into develop will decrease coverage by 0.17%.
The diff coverage is 97.63%.

@@             Coverage Diff             @@
##           develop     #141      +/-   ##
===========================================
- Coverage    98.74%   98.56%   -0.18%
===========================================
  Files           46       51       +5
  Lines         1668     2024     +356
===========================================
+ Hits          1647     1995     +348
- Misses          21       29       +8

Impacted Files
Coverage Δ

setup.py
0.00% <ø> (ø)

glasses/nn/models/utils/protocols/__init__.py
94.11% <80.00%> (-5.89%)
:arrow_down:

glasses/nn/att/__init__.py
93.22% <84.61%> (ø)

...sses/nn/models/classification/resnetxt/__init__.py
96.96% <88.88%> (-3.04%)
:arrow_down:

glasses/interpretability/SaliencyMap.py
95.45% <95.45%> (ø)

glasses/interpretability/GradCam.py
97.72% <97.72%> (ø)

glasses/utils/Storage.py
98.79% <98.79%> (ø)

glasses/interpretability/Interpretability.py
100.00% <100.00%> (ø)

glasses/interpretability/__init__.py
100.00% <100.00%> (ø)

glasses/interpretability/utils.py
100.00% <100.00%> (ø)

... and 26 more

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 45ce8a3...b8dc699. Read the comment docs.


Android (nexus 5/7/10) isn't triggering bubble on text highlight.

Hackpad seems to make this work, so it's not impossible


Authentication only working with GET

Im trying to make a simple POST to a controller. I already have the token, but it only works via GET, when I switch to POST it throws an "Unauthorized: You are requesting with an invalid credential".
Please refer to stackoverflow full question: http://stackoverflow.com/questions/35853755/yii2-and-oauth2-unauthorized-when-sending-post-data
Thanks in advance.

This is related to Missing Authorization Header (https://github.com/yiisoft/yii2/issues/6631) I had to add SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 to my .htaccess to solve it.


Language server responses become slow while typing isolated keyword in resource methods (in services)

Description:
Consider the following code:
isolated int count = 0;

service / on new http:Listener(8080) {
     resource <cursor> function get getResource(http:Caller caller, http:Request req) returns string{
        lock {
            count += 1;
        }
        return "hello world";
    }
}

At <cursor> if we start typing isolated keyword, language server responses (completions, diagnostics) become really slow. Even after completing typing isolated keyword, it takes several seconds (around 5 secs) to clear the diagnostics.
With the newly added warning concurrent calls will not be made to this method since the method is not an 'isolated' method if resource methods are not isolated, users will tend to add isolated keyword to resource methods or the service. Therefore, this should be addressed quickly.
Steps to reproduce:
See description
Affected Versions:
Sl Beta 1 RC8

Related to #30685.


Brave browser - timeline freeze

Version
6.0.12
Browser and OS info
Brave 1.35.100 / Chromium 98.0.4758.87 (Official Build) unknown 64bit - Linux amg-dev 5.15.21-1-MANJARO #1 SMP PREEMPT Sun Feb 6 12:21:42 UTC 2022 x86_64 GNU/Linux
Steps to reproduce
fresh installed dev tools from webstore, activating devtools and when i went to time "timeline" i got freeze, and after refreshes its not working anymore, because of timeline freeze
What is expected?
Expecting to work as normally :)
What is actually happening?
Devtools freeze

Ohh, seems that was Fingerprint blocking: Strict, changed to Standard and it working after relaunch browser.


ApplicationInsights:Sender [ 'Error while saving data to disk: Setting ACL restrictions did not succeed (ICACLS returned code 1332)' ]

We are using the Application Insights with our node application and quite frequently get this error ( approximately every 5 min). When the error occurs, the whole app seems to restart. It is unclear if the error is in some way fatal.

This error isn't fatal, but indicates that the SDK was unable to protect the directory it uses to store telemetry that failed to send for retrying at a later time. This is important because your telemetry may contain sensitive information and we wouldn't want to expose this data to other users on your machine. When this scenario happens, the SDK logs the error to let you know, and doesn't store the failed telemetry to disk.
That saving to disk is being attempted every 5 mins indicates your app is having trouble connecting to the Internet or at least connecting to the Application Insights telemetry ingestion endpoint.
I'm not sure what is the exact cause of error 1332, but essentially any errors from ICACLS means Windows had a problem setting folder permissions. Some searches online say this particular error might be related to incorrect group policy settings.
Regardless, this particular error shouldn't cause your app to restart. Since storing to disk is failing anyway you can disable the entire feature with the setUseDiskRetryCaching(false) method chained to your call to setup(). That should let you further pinpoint where the restarting is coming from.

Thanks a lot. I set the disk retry caching to false.

Closing this for now. Feel free to reopen if there are more related issues!

would it be fair to say ICACLS "warning" should generate a telemetry with severityLevel = 2 (warning)?


Update go-ds-motr integration documentation

Describe your changes in brief
Changes

[ x] Why is this change required? What problem does it solve? The go-ipfs GitHub repo changed its name to kubo. This updates the go-ds-motr installation instructions to reflect the change.
[ ] If proposing a new change then please raise an issue first

How Has This Been Tested? (Optional)

[ ] Please describe in detail how you tested your changes.
[ ] Include details of your testing environment, and the tests you ran to
[x] How your change affects other areas of the code, etc. No changes to any CORTX code, just integration docs.

Screenshots (if appropriate)
Checklist

[ ] tested locally
[ ] added new dependencies
[ ] updated the docs
[ ] added a test

View rendered doc/integrations/go-ds-motr/Implementation.md
View rendered doc/integrations/go-ds-motr/README.md

Closing as an obsolete


feat: Add ability to disable table inline edit for specific cells

Description

Related links, issue #, if available: n/a
How has this been tested?

Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness

Changes include appropriate documentation updates.
Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
Changes do not include unsupported browser features, see CONTRIBUTING.md.
Changes were manually tested for accessibility, see accessibility guidelines.

Security

If the code handles URLs: all URLs are validated through the checkSafeUrl function.

Testing

Changes are covered with new/existing unit tests?
Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

I don't mind overriding codecov since the missing lines are covered by integ tests, but that will just be a problem for the next person who works on this file

I'll try to get the last few percent somehow haha


AWS C:\Users{name}.aws\credentials file always open

I have Visual Studio working with AWS Toolkit using an AWS Role credientials.
I have a batch process that grabs credientials from a machine every hour and stores in the default location to run commands. This allows commands etc to always have a fresh set of credientials without creating an IAM user.
However, AWS Toolkit throws a blocker in this because it keeps the file open forever as long as visual studio is open. This prevents me from writing the new credientials on a regular basis.
Can you please make the toolkit load the credientials every few minutes or so instead of keeping the file open the entire time.

We have are using FileSystemWatcher in the toolkit to monitor changes to the file but we don't keep the file open. In my testing I'm able to edit the file and see the updates in the toolkit. Are you sure it is the toolkit that has the file lock?

This is an issue that I am experiencing also, i'll try to go into more detail.  When updating the AWS plain text credential file in ~.aws\credentials with a powershell script or other application while having the AWS Explorer that is provided by the AWS .NET SDK in Visual Studio open at the same time generates an error.
ERROR:
Error loading AWS profiles: The process cannot access the file ~.aws\credentials because it is being used by another process.
The ~.aws\credentials file is successfully updated by the outside application, but it appears that the AWS Explorer throws an exception when the file opens and closes during the writing process and does not attempt to reopen the credential file after the exception.
It would appear that additional exception handling could be added to the AWS Explorer's access to the ~.aws\credentials file to allow it to reopen the file after it has been changed by an outside application.
If there is anything I can do to assist in resolving this issue just let me know.

I have the same error message as @mkey0bc for a similar issue.
I have a few SLNs over my projects (literally hundreds of projects). If I have a solution already open, and then open a second solution, VS will start popping these errors up:
Error loading AWS profiles: The process cannot access the file 'C:\Users\Billy\.aws\credentials' because it is being used by another process.
One after the other, infinite errors. If I hold down ESC for a while, it'll cut a lot down, but there's too many. VS never opens the second solution. I resort to killing off vs, and disabling the aws extension.


fix: watch for observed CRP annotation change in scheduler watcher

Description of your changes
This PR fixes an issue where the scheduler watcher ignores observed CRP annotation changes.
I have:

[x] Run make reviewable to ensure this PR is ready for review.

How has this code been tested

[x] Integration tests
[x] E2E tests (upstream)

Special notes for your reviewer

so when the oldErr != nil, we already know newErr ==nil and newIsLatest is valid
not really, if oldErr != nil && newErr == nil, the newIsLatest could be set as false. so we still need to return "newIsLatest". No difference compared with current code.


Installation instructions not working

Hi,
I don't know where the issue is from but this code
[tool.hatch.env]
requires = [
    "hatch-pip-compile"
]

does not work, adding it make the pyproject.toml invalid and hatch fails to parse the file with FileNotFoundError: [Errno 2] No such file or directory: '1', I'm on hatch latest version 1.9.1.
I also tried
[build-system]
requires = ["hatchling", "hatch-pip-compile"]
build-backend = "hatchling.build"

but it seems to have no effect

Can you share your entire project.toml?

Can you share your entire pyproject.toml? Or even better, a link to the GitHub repository.

https://github.com/Tobi-De/vagabond

I just tried hatch-pip-compile on a freshly generated hatch project and it worked no issue, now I'm more confused, the issue is definitively on my end, this is the pyproject content
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "vagabond"
version = "0.1.0"
description = ''
readme = "README.md"
requires-python = ">=3.11"
authors = [{ name = "Tobi DEGNON", email =<EMAIL_ADDRESS>}]
dependencies = [
  "Pillow>=10.1.0",
  "hiredis>=2.2.3",
  "redis>=5.0.1",
  "boto3>=1.26.160",
  "gunicorn",
  "sentry-sdk>=1.26.0",
  "whitenoise[brotli]>=6.5.0",
  "psycopg[c]",
  "django[argon2]>=4.2.0,<5.0",
  "django-environ>=0.10.0",
  "django-model-utils>=4.3.1",
  "django-allauth>=0.54.0",
  "django-template-partials>=23.4",
  "django-tailwind-cli>=2.7.2",
  "django-extensions>=3.2.3",
  "django-htmx>=1.15.0",
  "django-anymail>=10.0",
  "django-browser-reload>=1.10.0",
  "django-debug-toolbar>=4.1.0",
  "django-fastdev>=1.7.3",
]

[tool.hatch.env]
requires = [
    "hatch-pip-compile"
]

[tool.hatch.envs.default]
type = "pip-compile"
dependencies = ["dj-notebook>=0.6.1", "Werkzeug[watchdog]>=3.0.1"]

[tool.hatch.envs.default.scripts]
server = "python manage.py tailwind runserver {args}"
migrate = "python manage.py migrate {args}"
makemigrations = "python manage.py makemigrations {args}"
makesuperuser = "python manage.py makesuperuser"
reset-db = "python manage.py reset_db --noinput"
shell = "python manage.py shell_plus {args}"
reset-migrations = ["falco rm-migrations", "makemigrations"]

[[tool.hatch.envs.all.matrix]]
python = ["3.11", "3.12"]

[tool.hatch.envs.test]
dependencies = [
  "coverage[toml]>=6.5",
  "pytest>=7.4.0",
  "pytest-django>=4.5.2",
  "pytest-sugar>=0.9.7",
]

[tool.hatch.envs.test.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = ["- coverage combine", "coverage report"]
cov = ["test-cov", "cov-report"]

[tool.hatch.envs.lint]
dependencies = [
  "pyright>=1.1.340",
  "curlylint>=0.13.1",
  "reorder-python-imports>=3.12.0",
  "djhtml>=3.0.6",
  "ruff>=0.1.8",
  "pyupgrade>=3.15.0",
  "django-upgrade>=1.15.0",
  "autoflake>=2.2.1",
]

[tool.hatch.envs.lint.scripts]
run-pyright = "pyright {args:.}"
run-format = "hatch fmt --formatter"
run-autoflake = "autoflake --in-place --remove-all-unused-imports --remove-unused-variables --expand-star-imports --exclude=.*/__init__.py {args:.}"
run-reorder-python-imports = "reorder-python-imports config/*.py {args:./*/*/*.py}"
run-ruff = "ruff check --quiet --fix --exit-non-zero-on-fix {args:.}"
run-curlylint = "curlylint {args:.}"
run-djhtml = "djhtml --tabwidth 4 {args:.}"
run-pyupgrade = "pyupgrade --py311-plus {args}"
run-all-pyupgrade = "git ls-files -- '*.py' | xargs pyupgrade --py311-plus"
run-django-upgrade = "django-upgrade --target-version 4.2 {args}"
run-all-django-upgrade = "git ls-files -- '*.py' | xargs django-upgrade --target-version 4.2"
python = [
  "run-pyright",
  "run-format",
  "run-reorder-python-imports",
  "run-autoflake",
  "run-ruff",
  "run-all-pyupgrade",
  "run-all-django-upgrade",
]
templates = ["run-curlylint", "run-djhtml"]
all = ["python", "templates"]

[tool.pyright]
typeCheckingMode = "basic"

[tool.curlylint]
include = '\.(html|jinja)$'
exclude = '''
(
  /(
      \.eggs           # exclude a few common directories in the root of the project
    | \.git
    | \.venv
    | \.ruff_cache
  )/
  | webpack-stats.html # also separately exclude a file named webpack-stats.html in the root of the project
)
'''

[tool.curlylint.rules]
indent = 4
aria_role = true
django_forms_rendering = true
image_alt = true
meta_viewport = true
no_autofocus = true
tabindex_no_positive = true

[tool.coverage.run]
source_pkgs = ["vagabond", "tests"]
branch = true
parallel = true
omit = ["src/vagabond/__about__.py"]

[tool.coverage.paths]
vagabond = ["src/vagabond", "*/vagabond/src/vagabond"]
tests = ["tests", "*/vagabond/tests"]

[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]

The project is just a test project for me, don't bother trying to make it work

Hmmm... try deleting your requirements.txt file. On my end, I wasn't able to run anything because the default lockfile (requirements.txt) already existed but was generated with pip-compile and not hatch-pip-compile - so it didn't include the expected header.
I also ran into issues with my machine on psycopg[c] so I just removed that in my test to get everything to work.

Hmmm... try deleting your requirements.txt file and let hatch-pip-compile regenerate it. On my end, I wasn't able to run anything because the default lockfile (requirements.txt) already existed but was generated with pip-compile and not hatch-pip-compile - so it didn't include the expected header.
I also ran into issues with my machine on psycopg[c] so I just removed that in my test to get everything to work.

I had the issue before I tried with pip-compile directly to generate a requirements.txt file.
Something weird just happened, the freshly generated hatch project that I was talking about just now, it was working fine, but I don't know how I managed to recreate the issue and I can't get it to work anymore
https://github.com/Tobi-De/fuko

What's the issue you're running into with fuko. I cloned the project, ran hatch run python --version and it created the lockfile no issue.

What's the issue you're running into with fuko. I cloned the project, ran hatch run python --version and it created the lockfile no issue.

please try with this exact content in the pyproject file
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "fuko"
dynamic = ["version"]
description = ''
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
keywords = []
authors = [
  { name = "Tobi DEGNON", email =<EMAIL_ADDRESS>},
]
classifiers = [
  "Development Status :: 4 - Beta",
  "Programming Language :: Python",
  "Programming Language :: Python :: 3.8",
  "Programming Language :: Python :: 3.9",
  "Programming Language :: Python :: 3.10",
  "Programming Language :: Python :: 3.11",
  "Programming Language :: Python :: 3.12",
  "Programming Language :: Python :: Implementation :: CPython",
  "Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
  "django",
]

[project.urls]
Documentation = "https://github.com/unknown/fuko#readme"
Issues = "https://github.com/unknown/fuko/issues"
Source = "https://github.com/unknown/fuko"

[tool.hatch.env]
requires = [
    "hatch-pip-compile"
]

[tool.hatch.envs.production]
type = "pip-compile"
dependencies = [
  "coverage[toml]>=6.5",
  "pytest",
]
lock-filename = "requirements.txt"

[tool.hatch.version]
path = "src/fuko/__about__.py"

[tool.hatch.envs.default]
type = "pip-compile"
dependencies = [
  "coverage[toml]>=6.5",
  "pytest",
]
lock-filename = "locks/default.lock"

[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = [
  "- coverage combine",
  "coverage report",
]
cov = [
  "test-cov",
  "cov-report",
]

[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.types]
dependencies = [
  "mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/fuko tests}"

[tool.coverage.run]
source_pkgs = ["fuko", "tests"]
branch = true
parallel = true
omit = [
  "src/fuko/__about__.py",
]

[tool.coverage.paths]
fuko = ["src/fuko", "*/fuko/src/fuko"]
tests = ["tests", "*/fuko/tests"]

[tool.coverage.report]
exclude_lines = [
  "no cov",
  "if __name__ == .__main__.:",
  "if TYPE_CHECKING:",
]

This is the error I get on my end, but I'm starting to think the issue is with my system for some reason
─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/hatch/cli/__init__.py: │
│ 221 in main                                                                                │
│                                                                                │
│   218                                                                                │
│   219 def main():  # no cov                                                                      │
│   220 │   try:                                                                                │
│ ❱ 221 │   │   return hatch(prog_name='hatch', windows_expand_args=False)                         │
│   222 │   except Exception:  # noqa: BLE001                                                      │
│   223 │   │   from rich.console import Console                                                   │
│   224                                                                                │
│                                                                                │
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/click/core.py:1157 in  │
│ __call__                                                                                │
│                                                                                │
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/click/core.py:1078 in  │
│ main                                                                                │
│                                                                                │
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/click/core.py:1688 in  │
│ invoke                                                                                │
│                                                                                │
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/click/core.py:1688 in  │
│ invoke                                                                                │
│                                                                                │
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/click/core.py:1434 in  │
│ invoke                                                                                │
│                                                                                │
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/click/core.py:783 in   │
│ invoke                                                                                │
│                                                                                │
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/click/decorators.py:45 │
│ in new_func                                                                                │
│                                                                                │
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/hatch/cli/env/prune.py │
│ :8 in prune                                                                                │
│                                                                                │
│    5 @click.pass_obj                                                                             │
│    6 def prune(app):                                                                             │
│    7 │   """Remove all environments."""                                                          │
│ ❱  8 │   app.ensure_environment_plugin_dependencies()                                            │
│    9 │                                                                                │
│   10 │   environment_types = app.plugins.environment.collect()                                   │
│   11                                                                                │
│                                                                                │
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/hatch/cli/application. │
│ py:162 in ensure_environment_plugin_dependencies                                                 │
│                                                                                │
│   159 │   │   │   │   self.abort(code=first_error_code)                                          │
│   160 │                                                                                │
│   161 │   def ensure_environment_plugin_dependencies(self) -> None:                              │
│ ❱ 162 │   │   self.ensure_plugin_dependencies(                                                   │
│   163 │   │   │   self.project.config.env_requires_complex, wait_message='Syncing environment    │
│   164 │   │   )                                                                                │
│   165                                                                                │
│                                                                                │
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/hatch/cli/application. │
│ py:177 in ensure_plugin_dependencies                                                             │
│                                                                                │
│   174 │   │   │   from hatch.utils.env import PythonInfo                                         │
│   175 │   │   │                                                                                │
│   176 │   │   │   management_command = os.environ['PYAPP_COMMAND_NAME']                          │
│ ❱ 177 │   │   │   executable = self.platform.check_command_output([app_path, management_comman   │
│   178 │   │   │   python_info = PythonInfo(self.platform, executable=executable)                 │
│   179 │   │   │   if dependencies_in_sync(dependencies, sys_path=python_info.sys_path):          │
│   180 │   │   │   │   return                                                                     │
│                                                                                │
│ /Users/tobi/Library/Application                                                                  │
│ Support/pyapp/hatch/554652334309206614/1.8.0/lib/python3.11/site-packages/hatch/utils/platform.p │
│ y:122 in check_command_output                                                                    │
│                                                                                │
│   119 │   │   kwargs.setdefault('stderr', self.modules.subprocess.STDOUT)                        │
│   120 │   │   self.populate_default_popen_kwargs(kwargs, shell=shell)                            │
│   121 │   │                                                                                │
│ ❱ 122 │   │   process = self.modules.subprocess.run(self.format_for_subprocess(command, shell=   │
│   123 │   │   if process.returncode:                                                             │
│   124 │   │   │   self.__display_func(process.stdout.decode('utf-8'))                            │
│   125 │   │   │   self.exit_with_code(process.returncode)                                        │
│                                                                                │
│ /Users/tobi/Library/Caches/pyapp/distributions/_554652334309206614/python/lib/python3.11/subproc │
│ ess.py:548 in run                                                                                │
│                                                                                │
│    545 │   │   kwargs['stdout'] = PIPE                                                           │
│    546 │   │   kwargs['stderr'] = PIPE                                                           │
│    547 │                                                                                │
│ ❱  548 │   with Popen(*popenargs, **kwargs) as process:                                          │
│    549 │   │   try:                                                                              │
│    550 │   │   │   stdout, stderr = process.communicate(input, timeout=timeout)                  │
│    551 │   │   except TimeoutExpired as exc:                                                     │
│                                                                                │
│ /Users/tobi/Library/Caches/pyapp/distributions/_554652334309206614/python/lib/python3.11/subproc │
│ ess.py:1026 in __init__                                                                          │
│                                                                                │
│   1023 │   │   │   │   │   self.stderr = io.TextIOWrapper(self.stderr,                           │
│   1024 │   │   │   │   │   │   │   encoding=encoding, errors=errors)                             │
│   1025 │   │   │                                                                                │
│ ❱ 1026 │   │   │   self._execute_child(args, executable, preexec_fn, close_fds,                  │
│   1027 │   │   │   │   │   │   │   │   pass_fds, cwd, env,                                       │
│   1028 │   │   │   │   │   │   │   │   startupinfo, creationflags, shell,                        │
│   1029 │   │   │   │   │   │   │   │   p2cread, p2cwrite,                                        │
│                                                                                │
│ /Users/tobi/Library/Caches/pyapp/distributions/_554652334309206614/python/lib/python3.11/subproc │
│ ess.py:1950 in _execute_child                                                                    │
│                                                                                │
│   1947 │   │   │   │   │   │   err_filename = orig_executable                                    │
│   1948 │   │   │   │   │   if errno_num != 0:                                                    │
│   1949 │   │   │   │   │   │   err_msg = os.strerror(errno_num)                                  │
│ ❱ 1950 │   │   │   │   │   raise child_exception_type(errno_num, err_msg, err_filename)          │
│   1951 │   │   │   │   raise child_exception_type(err_msg)                                       │
│   1952                                                                                │
│   1953                                                                                │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
FileNotFoundError: [Errno 2] No such file or directory: '1'

You need a binary from this release or onward https://github.com/pypa/hatch/releases/tag/hatch-v1.8.1

You need a binary from this release or onward<EMAIL_ADDRESS>(release)

Thank you, @ofek. It now works. However, considering that the hatch installation method could impact the overall user experience, I believe it would be beneficial to include a note in the readme. What are your thoughts, @juftin?

The first binaries were introduced in 1.8.0 and the automatic installation of environment plugins was fixed in the next patch release so I'm not sure it would be worth it to document.
Up to Justin of course

The first binaries were introduced in 1.8.0 and the automatic installation of environment plugins was fixed in the next patch release so I'm not sure it would be worth it to document.
Up to Justin of course

I had this issue with the latest version 1.9.1, and I think the first time I tried to install it, my first option on macos was the install script (I upgrade with hatch self update), I think it's worth pointing out, for the 3 people (including me) who might get lost, and give up.
In any case, the ux hatch + hatch-pip-compile is simply magnificent, thank you @ofek and @juftin.

Yeah the self update wouldn't work because that just does the Python part so that's probably where the confusion is. I thought about somehow figuring out a cross-platform way to upgrade the actual binary but it's very difficult on Windows.


How can I modify Thread dBm? (IDFGH-12089)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report
Hello, I am conducting some experiments using thread and I have run into the following issue:
The LDO I have chosen to use for my project cannot handle the default "txpower" of the esp32c6 (305mAh with 20dBm), however it works just fine with 12dBm cause its drawing around 190 mAh. The problem is the following: currently the only way I have discovered that you can modify this value is by using the "txpower " in the openthread cli. Is there a way I can hardcode the value so the esp boots up with it everytime?

The default txpower could be changed by calling the otPlatRadioSetTransmitPower() API.

The default txpower could be changed by calling the otPlatRadioSetTransmitPower() API.

So in my case I should use otPlatRadioSetTransmitPower(12) somewhere before or after the initialisation of the network interface?

Call otPlatRadioSetTransmitPower(esp_openthread_get_instance(), 10); after the esp_openthread_init().


.schedule's execution time gets pushed back

Let's say you scheduler.schedule a job; the interval values on the job or the ./manage.py rqscheduler -i x don't matter.
The time the job gets executed gets pushed back every now and then and over long periods of time, an 18:40:00 would gradually become 20:30:00 and out of nowhere, it becomes 18:40:00, and the cycle repeats.
dependencies:
OS : ubuntu 18.04 and CentOS 7
Redis: 5.0.14
Django: 3.2.16
redis (python): 4.4.0
django-redis: 5.2.0
django-rq: 2.6.0
rq: 1.11.1
rq-scheduler: 0.11.0

as a dev dep: (not available on CentOS)
django-rq-wrapper: 3.1

we have the problem with older versions as well.
Example code:
import django_rq
from django.utils import timezone

report_job_id = "report__prepare_report"

def send_report():
    pass

def init_transaction_report_generation(report_config):
    scheduler = django_rq.get_scheduler("default")
    if report_job_id not in scheduler:
        now = timezone.localtime(timezone.now())
        start_time = now.replace(
            hour=report_config.cut_off_time.hour,
            minute=report_config.cut_off_time.minute,
            second=report_config.cut_off_time.second,
        )
        if now.time() > report_config.cut_off_time:
            start_time += timedelta(days=1)
        start_time.astimezone(pytz.UTC)
        scheduler.schedule(
            start_time,
            func=send_report,
            queue_name="default",
            id=report_job_id,
            interval=10,
        )
    return True

and run these as well:
./manage.py rqscheduler -i 5 -v 3 # both interval and verbosity has no effect at all
./manage.py rqworker default

let's say we start at 18:14:30 and we configure the report_config.cut_off_time to run at 18:15:00. it will run at the said time and rescheduled for 18:15:10 based on the code and so on and so forth...
after an hour I see 3 seconds delay:
19:14:43 Entering run loop

and soon after, 1 more second:
19:22:44 Entering run loop

and this keeps happening.
In production we use -i 60 and the job's interval is 86400. why does the task gets executed at 20:30:00 even though the scheduler runs every minute? does it really lose the sense of what time it is? or are we creating black holes somewhere on earth and time gets distorted? :worried:
p.s. I wanted to try cron with crontab, but apparently, you have not released that yet and there is no proper tag on git for 0.11.0

Connected to https://github.com/rq/rq-scheduler/issues/269 ?
NB. I'm seeing the same. Just trying to work it out as I am seeing a consistent 3 second skew in my timing, but it looks like execution time of the task plays a role here, e.g. if it takes longer than the interval, the time starts to drift.

I ended up using https://gitlab.com/doctormo/python-crontab/ for important stuff.
The biz team has not complained, so it's a win.


Fix terraform string output types conversion; Add all json output.

Fix regression in OutputE: now it can also output bool and number as string. I am not sure about other terraform data types but their string representation would be useless and inconsistent anyway, I guess it's one of the reasons TF did that breaking change in the first place. Added suggestion to use OutputStruct for non-primitive types.
OutputE and Output comment now explicitly says it returns string representation of a value.
Added OutputJsonE and OutputJson that will return -json tf output as-is - might be useful if user wants to do anything fancy with it
Some DRY cleanup - other output functions now use the new OutputJsonE function instead of RunTerraformCommandAndGetStdoutE
Added missing tests for Output as well as for new OutputJson

@brikis98 thanks for the review - added all your fixes.

Thanks! I'll kick off tests shortly.

Hmmm these two failed tests TestPackerGCPBasicExample and TestSshAccessToComputeInstance  doesn't seem to be related...

https://github.com/gruntwork-io/terratest/releases/tag/v0.31.1


Remove outdated hdrhistogram dependencies

Motivation
Zebra currently depends on 2 different versions of the base64 crate via hdrhistogram.
One of these versions is about 3 years old.
Zebra also depends on outdated crossbeam-utils and crossbeam-channel via hdrhistogram.
If we remove outdated dependencies, Zebra will compile faster, its binaries will be smaller, and it will be more secure.
Tasks

Check that the conflict still exists by removing the hdrhistogram exception from deny.toml, then running cargo deny check bans.

Upgrade versions:

Fork tower, upgrade it to use the latest hdrhistogram, and make Zebra depend on our forked versions
Submit PRs upstream
Remove the exceptions for these crates in deny.toml.

Closed by #3572.


Validate that third party trackers load correctly

Requires:
https://github.com/duckduckgo/privacy-test-pages/pull/158

Reviewer:

Description:

Steps to test this PR:

Automated tests:

[ ] Unit tests
[ ] Integration tests

Reviewer Checklist:

[ ] Ensure the PR solves the problem
[ ] Review every line of code
[ ] Ensure the PR does no harm by testing the changes thoroughly
[ ] Get help if you're uncomfortable with any of the above!
[ ] Determine if there are any quick wins that improve the implementation

PR Author Checklist:

[ ] Get advice or leverage existing code
[ ] Agree on technical approach with reviewer (if the changes are nuanced)
[ ] Ensure that there is a testing strategy (and documented non-automated tests)
[ ] Ensure there is a documented monitoring strategy (if necessary)
[ ] Consider systems implications

I think you'll have to bump the privacy-test-pages version, as these tests proxy to a local test-pages server.


[api] TypeScript API Bugs and Proposed Solutions

I've identified a few bugs in our TypeScript API implementation that need to be addressed. Below are the issues and my proposed solutions for each:
Bug 1: Axios baseURL Not Set
Issue: The axios instance is not configured with a baseURL, which causes issues when a custom prefix is set and needs to take effect.
Proposed Solution: In client.ts, set the baseURL for the axios configuration as follows:
AgdbApi.api = new OpenAPIClientAxios({
    definition: `${address}/api/v1/openapi.json`,
    axiosConfigDefaults: {
        baseURL: `${address}`, // Set axios's baseURL
    },
});

Bug 2: InsertNodesBuilder Not Passing IDs
Issue: The InsertNodesBuilder is not passing ids, which results in them not being effective.
Proposed Solution: In query_builder.ts, modify the ids method to ensure ids are passed correctly:
ids(
    ids:
        | QueryId[]
        | Components.Schemas.QueryType
        | Components.Schemas.QueryResult,
) {
    this.data.ids = intoQueryIds(ids);
    return new InsertNodesIdsBuilder(this.data);
}

And update the InsertNodesIdsBuilder class constructor to handle undefined data properly:
class InsertNodesIdsBuilder {
    private data: Components.Schemas.InsertNodesQuery;

    constructor(data: Components.Schemas.InsertNodesQuery | undefined) {
        if (data) {
            this.data = data;
        } else {
            this.data = {
                count: 0,
                aliases: [],
                ids: { Ids: [] },
                values: {
                    Single: [],
                },
            };
        }
    }
}

Bug 3: InsertEdgesBuilder Has Similar Issue as Bug 2
Issue: The InsertEdgesBuilder faces the same problem as InsertNodesBuilder where ids are not being passed effectively.
Proposed Solution: In query_builder.ts, adjust the ids method for InsertEdgesBuilder similar to the solution for InsertNodesBuilder:
ids(
    ids:
        | QueryId[]
        | Components.Schemas.QueryType
        | Components.Schemas.QueryResult,
) {
    this.data.ids = intoQueryIds(ids);
    return new InsertEdgesIdsBuilder(this.data);
}

Ensure the InsertEdgesIdsBuilder class is correctly handling the query data:
class InsertEdgesIdsBuilder {
    private data: Components.Schemas.InsertEdgesQuery;

    constructor(query: Components.Schemas.InsertEdgesQuery) {
        this.data = query;
    }
}

I believe these solutions will resolve the current bugs and improve the stability and functionality of our API.
Thank you for your review and consideration.
Best regards,
pinghe

Thanks for reporting this, I will get it fixed.

@pinghe This is now fixed. I have dramatically improved the ergonomics of the TS API. For example there are many wrappers now that lets you use the native TS types without the need to specify the full JSON represenation (still possible though). Similarly many functions that required array now can accept single param as well that will be internally made into an array.
Lastly and most importantly I have made it so that client is no longer global and can be instantiated as many times as needed with possibly different hosts / logins. I have also added login() shorthand to avoid login+setting tokent (still possible though).
As part of this I have also significantly revamped and improved on the API testing but please let me know if you encounter any issues!

@agnesoft  Thank you. I will update to the latest version and verify it in the near future.


Can we use this on expo production build?

Hi,
Will this plugins supports for expo production builds?

Yes, I have it tested in iOS and Android work on version 3.3.9

it does work but i have a blank map on standalone, can any one help?

For standalone builds, you have to reference google key in case you want to show google maps on both (iOS/Android). Whereas on iOS by default in expo prod builts apple maps will be loaded and not need to reference any keys.
Hope it helps.

Yes, I have it tested in iOS and Android work on version 3.3.9

Yeah worked for me too. Thanks

i have added Google Maps API keys for both ios and android (i'm using google maps for both), but i'm still getting a blank map
is it possible that i have wrong configs for the key?
if so, can you provide me with a guideline?

For standalone builds, you have to reference google key in case you want to show google maps on both (iOS/Android). Whereas on iOS by default in expo prod builts apple maps will be loaded and not need to reference any keys.
Hope it helps.

i have added Google Maps API keys for both ios and android (i'm using google maps for both), but i'm still getting a blank map
is it possible that i have wrong configs for the key?
if so, can you provide me with a guideline?

just worked for me, thank you anyway


BOXMOT + YOLO-NAS

🚀 Feature Request
I have an example in my repository on how to integrate SOTA tracking methods together with Yolo-NAS.
I am using the Yolov8 backend functionality to achieve this. This is only because I am more familiar with it. I am certain it would be equally easy with the super-gradients backend :smile:
My pip package contain SOTA tracking methods: both motion only and motion + ReID. Pairing up boxmot together with yolo-nas is seamless and leads to very good results out of the box.
Proposed Solution (Optional)
Adapt this to super-gradients backend

I fixed some bugs. It is stable now.

Wow!! This is great!
Thank you @mikel-brostrom for this fantastic contribution.
We can't include the code in our repo, since unfortunately, it is under AGPL 3.0 license (our repo is Apache 2.0).
But we will definitely add a Colab notebook on how to use BOXMOT + YOLO-NAS and points to your repo of course.
Thanks :)

Nice! I will keep this open in case you need support integrating this :smile:


Users in Private Invite Only project with an Approver role are denied access

when visiting /administrator/projects/project-id/
looks like /api/projects/privateproject2/customIconCss is returning 403 which causes

PR: #2054

:+1:


Create new unittests (one test), nose to execute, and add code coverage

This PR does the following:

Create new unittest folder and adds a single unit test using unittest.
Updates tox.ini to call nosetests on the new unittests folder.
Provides code coverage over the newly added unittest

The new unittest added gave an overall test coverage of 35%.

We need to get tests passing first before I can look at the patch.

I forgot to update TravisCI. Will add tests to that and get those running. I only updated the tox.ini file.

After talking with deryckh I will make these unittests using the sqlalchemy db and not using the flask app, since the test is only testing the serializer which only needs a db.session. I will close this PR and put a new one with changes discussed.


Setup can't be installed to not default drive

Try to install to E:\ASDFG
To fix issue you need to add:
%~d0

to esi_service.bat and esi_service_uninstall.bat before
cd %~dp0

thanks, can you submit a pull request?

sure #2


Automatic refresh sometimes doesn't work

Sometimes the refresh button has to be pressed to get new transactions. In that state, nothing on the dashboard is updated automatically (like balance, chain height etc.). Probably a problem with websockets?

fixed.

@bassemmagdy I am able to reproduce it sometimes for History page.

@NikolaiB that issue was related to automatic refresh for network panel (chain height - transactions - peer numbers)

fixed in integration branch


entity-spawn-animals being logged despite set to false

On the cauldron version of prism build 16 from here: http://dhmc.us:8080/job/Prism-Cauldron/16/
entity-spawn-animals is set to false for logging, however it is being logged anyway. This especially a major pain on pixelmon as thousands of this event can occur after just a few minutes filling up the database

This isn't the correct place to file issues - this repo is for Prism/Sponge work, and the issues tab shouldn't be open anyway.


Write mode doesn't work with Azure storage

Environment
Delta-rs version: 0.6.3
Binding: python 3.9.13
Environment:

Cloud provider: Azure
OS: Windows
Other:

Bug
What happened:
There is an error when I try to write the dataframe to Azure Storage with provided valid credentials - AZURE_STORAGE_CONNECTION_STRING, AZURE_STORAGE_CONTAINER_NAME, AZURE_STORAGE_BLOB_NAME.
What you expected to happen:
I expect to write dataframe to the file
How to reproduce it:
from typing import Optional
import os

from deltalake import PyDeltaTableError
import pandas as pd
from deltalake.writer import write_deltalake

def save_data(path: Optional[str], df: pd.DataFrame, storage_options):
    """
    Save data in Delta format to Azure Storage

    :param
    path:
    str which should be should be in the next format for the connection to Azure Storage: "azure://{container_name}/{blob_name}"
    """
    if df is not None:
        try:
            write_deltalake(path, df, storage_options=storage_options)
        except PyDeltaTableError as error:
            if "Missing configuration AZURE_STORAGE_ACCOUNT" in error.args[0] \
                    or "Failed to find valid credential" in error.args[0]:
                message = f"It seems that the authentication to Azure Storage was failed due to absent or " \
                          f"invalid credentials.\nThe details of the error - {error}\n" \
                          f"Please set up valid credentials in order to write the table to {path}."
                print(message)
                raise PermissionError(message)
            elif 'A socket operation was attempted to an unreachable network' in error.args[0] \
                    or 'Failed to read checkpoint content: Generic S3 error' in error.args[0]:
                message = f"It seems that the authentication to AWS S3 bucket was failed due to absent or " \
                          f"invalid credentials.\nThe details of the error - {error}\n" \
                          f"Please set up valid credentials in order to write the table to {path}."
                print(message)
                raise PermissionError(message)

if __name__ == "__main__":
    df = pd.DataFrame([['Name', 'Surname'], ['Anna', 'Girl']])
    save_data(
        "azure://databricks/deltafiles/TestDimDate",
        df,
        storage_options={
            "AZURE_STORAGE_ACCOUNT_NAME": os.getenv("AZURE_STORAGE_ACCOUNT_NAME"),
            "AZURE_STORAGE_ACCOUNT_KEY": os.getenv("AZURE_STORAGE_ACCOUNT_KEY"),
            "AZURE_STORAGE_CONNECTION_STRING": os.getenv("AZURE_STORAGE_CONNECTION_STRING")
        })

More details:
Traceback of the error:
Traceback (most recent call last):
  File "C:\Users\Hanna_Imshenetska\Projects\Project_for_selfeducation\loader\write_delta_table.py", line 39, in <module>
    save_data(
  File "C:\Users\Hanna_Imshenetska\Projects\Project_for_selfeducation\loader\write_delta_table.py", line 19, in save_data
    write_deltalake(path, df, storage_options=storage_options)
  File "C:\Users\Hanna_Imshenetska\Projects\Project_for_selfeducation\venv\lib\site-packages\deltalake\writer.py", line 168, in write_deltalake
    storage_options = dict(
TypeError: dict() got multiple values for keyword argument 'AZURE_STORAGE_ACCOUNT_NAME

I do experience same error
deltalake 0.6.3
import pandas as pd
from deltalake.writer import write_deltalake

account_name = "AAA"
account_key = "BBB"

write_deltalake(
<EMAIL_ADDRESS>        data=df,
        mode="overwrite",
        storage_options = {
                "AZURE_STORAGE_ACCOUNT_NAME": account_name,
                "AZURE_STORAGE_ACCOUNT_KEY": account_key,
            },
    )

**(table._storage_options or {}), **(storage_options or {})
TypeError: type object got multiple values for keyword argument 'AZURE_STORAGE_ACCOUNT_NAME'

storage_options = {
  "AZURE_STORAGE_ACCOUNT_NAME": account_name,
  "AZURE_STORAGE_ACCOUNT_KEY": account_key,
}

table_path =<EMAIL_ADDRESS>dt = DeltaTable(table_path, storage_options=storage_options)

write_deltalake(table_or_uri=dt, df=df, mode="overwrite")

remember to do
import pyarrow as pa
tb = pa.Table.from_pandas(df, preserve_index=False)
write_deltalake(table_or_uri=dt, data=tb, mode="overwrite")


There's seemingly no way to construct a __m128i in a const fn

My ideal case would be to take a &[u8] and "fill up" a __m128:
let needle: __m128i = bytes.collect(); // Takes the first 16 bytes, zero-initialized otherwise

// or

let mut needle = __m128i::default(); // zero-initialize
needle.extend(bytes); // Takes the first 16 bytes

However, none of the "nice" traits are implemented for these types, and I've gotten the feeling that is no accident. Basically, I can use an intrinsic function to set it (e.g. _mm_setzero_si128), or I can convert from u8x16 and friends.
The intrinsics are not const, so they cannot be used in a const fn context.
The closest I could find was
u8x16::new(
    x0, x1, x2, x3, x4, x5, x6, x7,
    x8, x9, x10, x11, x12, x13, x14, x15,
).into_bits()

but into_bits is likewise not const.

I'm having trouble connecting the dots in your issue, so I'll just vomit out two things and see what sticks. :-)

My ideal case would be to take a &[u8] and "fill up" a __m128:

Ignoring the "const" part of your request, I would use _mm_loadu_si128 or _mm_load_si128, depending on whether you're loading unaligned or aligned data, respectively.

There's seemingly no way to construct a __m128i in a const fn

I think the way to do this (right now at least) is via a union
union u8x16 {
    vector: __m128i,
    bytes: [u8; 16],
}

const ZERO: __m128i = unsafe { (u8x16 { bytes: [0; 16] }).vector };

playground link

I think the way to do this (right now at least) is via a union

Yes, in the future mem::uninitialized and mem::zero should become const fns, which will allow you to transmute a std::simd::u8x16 type (which has const fn constructors) directly into an __,128i. But that's blocked on https://github.com/rust-lang/rfcs/issues/411 being fixed, and on the portable packed vector types RFC being merged: https://github.com/rust-lang/rfcs/pull/2366

mem::uninitialized and mem::zero should become const fns, which will allow you to transmute a std::simd::u8x16 type (which has const fn constructors) directly into an __m128i

I think I'm missing a step here. How do mem::uninitialized or mem::zero allow for transmuting?

I think I'm missing a step here. How do mem::uninitialized or mem::zero allow for transmuting?

Oh sorry, mem::transmute is what should become const fn here.

I think this has basically been resolved, so closing


⚠ Mobitopup has degraded performance

In b35106f, Mobitopup (https://napcard.voz.tech) experienced degraded performance:

HTTP code: 200
Response time: 3276 ms

Resolved: Mobitopup performance has improved in 44b2cfd after 8 minutes.


PhpdocToParamTypeFixer - remove not used option

closes https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5089 (https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5090)

I think the bug is that it is not used?

It should've never been added to the code base as it is not used. I also don't think it is a much wanted feature as no one reported that the option does nothing.

I suppose this is fine for now. The fixer is marked as experimental anyway, so we are free to add/remove/change options anyway. :)


Hide / show chevron-up / down

Hello guys, first, thank for this theme, it's awesome.
I have a little problem. when i click on the chevron nothing happened but everything else working ..
http://puu.sh/ogte0/753404f7de.png
i use it on symfony2
here the js files that i use
   {% block javascripts %}                 <script type="text/javascript" src="{{ asset ('Gintelella/js/jquery.min.js')}}"></script>                 <script type="text/javascript" src="{{ asset ('Gintelella/js/custom.js')}}"></script> 	   			<script type="text/javascript" src="{{ asset ('Gintelella/js/bootstrap.min.js')}}"></script> 				<script	type="text/javascript" src="{{ asset ('Gintelella/js/icheck/icheck.min.js')}}"></script> 				<script type="text/javascript" src="{{ asset ('Gintelella/js/pace/pace.min.js')}}"></script> 				<script type="text/javascript" src="{{ asset ('Gintelella/js/progressbar/bootstrap-progressbar.min.js') }}"></script> 				<script type="text/javascript" src="{{ asset ('Gintelella/js/nicescroll/jquery.nicescroll.min.js') }}"></script> 	   			<script type="text/javascript" src="{{ asset ('Gintelella/js/nprogress.js') }}"></script>    {% endblock %}
thank u

Are there any error messages in console?

nothing, everything working except this :/

Do you have the class collapse-link on your link. It must be:

thanks for the answer and the update
http://puu.sh/oiTpH/5ce7d0e261.png
i think i have the correct link and when i click on the chevron-up, the class changed to chevron-down, but the content doesn't hide

Do you have class x_content on your box div?

http://puu.sh/oiUQh/313fdf052f.png
Yes, maybe this is the consequence of bad html structure of my part ?

It must be x_content and not x-content. Classes naming will revise soon.

ahhhhhhh thanks my friend, that's work like a charm :')

Please close this.


Autocomplete auto-backticks

I expect that Ionide put backticks around name automatically when this isrequired.
when I press enter after
let fileName = Common.PaketFiles.ope

I expect to have
let fileName = Common.PaketFiles.``opennlp.sourceforge.net``

instead of
let fileName = Common.PaketFiles.opennlp.sourceforge.net

Sample uses FileSystemProvider from FSharp.Management

Fixed by https://github.com/fsharp/FsAutoComplete/commit/8b588283ee5a8638ec6c255cba13ecfd626691e3


Extend Colormap API

Purpose:
Extends Colormap API with ColormapFactory class. #767
ColormapFactory allow get available colormaps names without creating Colormap instances.
And then create only Colormap with requested name.
For adding new types of IColormap it needs manual add single line in availableColormaps dictionary initializer.
Failed pipline report:
Unrecognized command or argument '--dry-run'
It looks like not my fault.
New Functionality:
var factory = new ColormapFactory();
var names = factory.GetAvailableNames();
var lastColorMap = factory.Create(names.Last());
var oxyColormap = factory.Create("Oxy");

Hi @StendProg,
I added these new methods below. It now seems the Colormap class has similar functionality to the ColormapFactor class, the only difference being reflection vs. hard-coded dictionary. Do you think one method has a strong advantage over the other? Perhaps both can remain in the code base, but one method should be favored over the other for code examples. I'll go ahead and merge this, but I'm interested to learn your thoughts.
https://github.com/ScottPlot/ScottPlot/blob/4c52ce4b71274bd0a0a513e64df3acd32d69ec64/src/ScottPlot/Drawing/Colormap.cs#L58-L63
https://github.com/ScottPlot/ScottPlot/blob/4c52ce4b71274bd0a0a513e64df3acd32d69ec64/src/ScottPlot/Drawing/Colormap.cs#L65-L70
https://github.com/ScottPlot/ScottPlot/blob/4c52ce4b71274bd0a0a513e64df3acd32d69ec64/src/ScottPlot/Drawing/Colormap.cs#L72-L83
Thanks again!

Hi @swharden,

the only difference being reflection vs. hard-coded dictionary. Do you think one method has a strong advantage over the other?

What are the disadvantages of reflection and the static keyword for me?
This is outside of the object oriented programming paradigm. With all the ensuing consequences.
I'm afraid I won't undertake to argue the details, but I think it was done long ago by much more capable people.
Nevertheless, both of these thing's have the right to be, and allow you to solve problems that are unsolvable or difficult to solve using OOP. When using reflection, one must clearly understand what this threatens, and when the rules can be broken. I don't understand such things well, so I prefer to avoid using them. In addition to everything, reflection is slow, just dozens of times slower than native calls.
As an illustrative example for comparing the 2 described approaches, I came up with the following example:
Let's say tomorrow I want to have 3 colormap categories Nice, Medium, Bad.
All I need to do with ColormapFactory approach:
This is to inherit 3 factories from ColormapFactory and in each just to correct the existing dictionary. The work is done, you can instantiate a new NiceColormapFactory and ask for nice colormaps. At the same time, the existing code is not affected in any way, and remains guaranteed to work.
How to deal with the approach using reflection, but most likely you will have to edit the implementation. If you inherit from Colormap (I don't know how static properties will behave.). You will have to do something with this line, because it will not affect the inherited classes, and you will not be able to inherit the behavior.
typeof(Colormap)

All these approaches to programming that are written in smart books, they are not about how to solve a problem. They are about how to solve the problem so that in the future it can be expanded, modified without large costs.
Although, of course, for this task I am quite satisfied with the approach, it works - do not touch. It's just that I got incomprehensible errors with reflection on an old project, i.e. it didn't work. Therefore, I solved the problem as I was used to, and tried to explain why I was so used since you asked.

Hi @StendProg, thank you for your extensive answer!
The points that stand out most to me are

dozens of times slower than native calls

you will not be able to inherit the behavior ... solve the problem so that in the future it can be expanded

incomprehensible errors with reflection

These are excellent points! In summary, it makes sense to solve problems using OOP where possible and reserve reflection for special cases where it is not possible to use OOP. This is good enough justification for me to stop using reflection, and instead prefer OOP approaches where possible.
I come to C# from a Python (data science / scripting / non-OOP) background. Python has lots of magic. For example, a running program can easily read its own code comments (that functionality is built into the language). I am attracted to reflection because it feels very natural to me, but I now recognize that in a large OOP system it should be avoided to improve extension and maintainability.
Thank you again for your comments! I've been learning a lot about C#/OOP by working on this library, and this discussion was very helpful! I really value the advice you have provided along the way, so thanks!
I'll refactor the colormap to use the factory for lookups, and only put reflection inside tests to ensure every colormap is present in the factory (#797).


Size of RS2_FORMAT_YUYV

This is just a question regarding RS2_FORMAT_YUYV in librealsense.
I would like to confirm if YUV pixel format in realsense is 24bit with luma (Y′) and two chrominance (UV) components? Or is it a 32bit format as described here: https://www.linuxtv.org/downloads/v4l-dvb-apis-old/V4L2-PIX-FMT-YUYV.html and also known as Y′UV422, YUY2?

Hi @syedharoonalam
I believe it is the later (32-bit for every two pixels).
If you are running with a stride of 32-bit, this is the layout:
uint8_t y0 = src[idx];
uint8_t u0 = src[idx + 1];
uint8_t y1 = src[idx + 2];
uint8_t v0 = src[idx + 3];

For D415 color-from-infrared stream there is also slightly modified UYVY format.


chore: copy and update PROPERTIES using widely supported syntax

The dict | dict syntax is only supported in Python 3.9+ which is not available in all test environments.
This PR uses a syntax that is supported more widely.

LGTM. For my own curiosity, what testing environments do not have Python 3.9?

Discussed offline


Adds version in binary

This PR adds a version number created during build time and injected into binary.
$ traefik --version
37438a6395324e9452f8f6f173f60ba33ce4bafe built on the 2015-10-14_08:02:45PM

@EmileVauge needs a rebase already :sweat:

Circle is dead

LGTM 🐴


Undo / redo

Implement Undo (⌘Z) and Redo (Shift-⌘Z) commands.
The undo buffer can be limited to, say, 20 deep, to keep the buffer sizes small and operations efficient.
It seems practical to implement it in terms of the mini-CRDT. The implementation should garbage collect undos that can no longer be toggled, either because they're older than the 20 or because a new edit happens on top of undone ones. The garbage collection can ideally happen after the update is sent back to the front-end or perhaps even done in an "idle task".
A sequence of inserts or backspaces should be merged into a single undo group.
For maximum UI polish, the menu items should be grayed out when undo or redo is not possible, and the string should be changed to indicate the nature of the edit. However, this is fairly advanced polish (and the strings will need to be localized in the general case), so not planning to do it any time soon.
I'm fairly close to a basic implementation, creating this issue to track remaining work.

One of the things I like about emacs is unlimited undo, is it possible to do something like that without destroying performance?
An idea could be to serialize undos as deltas into a file. That way we could keep 20-40 undos in memory, and asynchronously every now an then append the oldest 20 back into a file. If the user gets to say undo number 20 out of 25 in the buffer we could speculatively fetch the next 10 undos from the file.
If this "undo file" is memory mapped the whole approach could be made lag free.


New wiki page: List of settings used in UXL Launcher.

This is a list (using a table) of settings in the config file for UXL Launcher and a description of what each setting does, including a column for the default value.

Available here:
https://github.com/DrewNaylor/UXL-Launcher/wiki/List-of-Settings-in-UXL-Launcher


Automate fields on Submission page

User Story
As an applicant
I want the fields "Completed for" and "On this date" to be auto-populated on the submission page
So that I don't make preventable mistakes.
Description
Wireframe
Acceptance Criteria:

[ ] Replace input field Completed for with the [Organization name (legal name)] field value that was entered on Organization profile page
[ ] Replace input field Completed on with a display of the current date
- [ ] Both "Completed for" and "Completed on" fields are saved in the database
[ ] If the field [Organization name (legal name)] is empty
Then it shows the error message "The "Applicant Legal Name" is required to submit the application."

@zoeyli-46 and @elliottSlee, Where is the field [Applicant Legal Name]?

I removed:

[ ] "Completed for" and "Completed on" fields are saved in the database
because these are not in the csv from ISED. Additionally, Completed for is already in the database from the org profile page and Completed on is already being saved with Application - Mark as complete (aka Submit) #92

@elliottSlee , if the application is already submitted, should "Completed on" display the submission date instead?

@matthieu-foucault Good catch. Acceptance criteria's updated.


Documentation

README updated. Still more detail I will add later
Licence changed to MIT in line with sprint guidelines

Omg! Fabulous!
_


Stone Rods

As things stand crafting stone rods don't make a lot of sense with primal core etc.
However if we leave them in we could use them instead of iron rods in the primal core lantern which would make that a lot more accessible when you actually need them.

Stone rods can also be used in the roots incense brazier, which I just wrote a script for. Backpacks also has a stone stick item that, I'm guessing, is used in the tier 2 backpacks.

Is this the two stone stacked rod?

It is currently using the stone tool rod from Tinker's Construct. Stacking two cobble or two stone on top of each other does make one of them.

...my impulse is to limit this to crafting with smoothstone


attribute ripple color collides with other projects

I'm trying to import your library, but the attribute "rippleColor" generate a conflict with some other libraries I have in my project.

We do not use rippleColor attribute at all in the project.