ADR on marconi observability (ROUGH DRAFT)

Pre-submit checklist:

Branch

[ ] Tests are provided (if possible)
[ ] Commit sequence broadly makes sense and have useful messages
[ ] Important changes are reflected in changelog.d of the affected packages
[ ] Relevant tickets are mentioned in commit messages

PR

[ ] (For external contributions) Corresponding issue exists and is linked in the description
[ ] Targeting main unless this is a cherry-pick backport
[ ] Self-reviewed the diff
[ ] Useful pull request description
[ ] If relevant, reference the ADR in the PR and reference the PR in the ADR
[ ] Reviewer requested

We may want to monitor the query side as well. eg. removing all the SQL indexes would increase the performance on the sync side, but would drastically degrade the query performances.

Are we defining observability of query performance too here?
If not, we should have something defined. We could consider using Artillery (or similar tool) because out-the-box we get easily configure simulation of load ramping and number of users and generates reports for each test run with useful measurements. Unless there's something comparable available in Haskell?

Are we defining observability of query performance too here? If not, we should have something defined. We could consider using Artillery (or similar tool) because out-the-box we get easily configure simulation of load ramping and number of users and generates reports for each test run with useful measurements. Unless there's something comparable available in Haskell?

@james-iohk There is tasty-bench which we currently use to benchmark query performance over certain indexers. However, it just measures the amount of time spent doing a single query. Artillery assumes there are many different users and multiple requests for querying that same endpoint. For marconi-sidechain, the number of requests for each endpoint are pretty limited. For example, there should be a single user doing ~1query/s on the Utxo endpoint.
You think Artillery still has it's place?


Unsuccessful convergence

Hi, so I am using matched samples that I am using to construct a custom cell profile matrix and integrate it with my GeoMx spatial data. I am using the raw counts of the single cell data with setting normalize = TRUE in the create_profile_matrix() function, and using Q3-normalized counts for the GeoMx data. runspatialdecon() runs and gives me results, but it gives me the following warning
Warning message:
In lognlm.fit3(X = X, y = Y, par = par0, lik = lik, opt = opt, offset = offset,  :
  Unsuccessful convergence

Yet, the results are reproducible everytime I run it! Also, I set maxit = 100000, but I still getting the same warning!
Any thoughts or help about that?
Thank you!

Hi @aelhossiny,
First. Are you running SpatialDecon using a GeomxSet object? If not, you should use the spatialdecon() function instead. That might be the issue, just pulling data from the incorrect spot. I think an error would have happened saying the incorrect format was used but just incase.
Second. How closely related are your profiles? If you have 2 identical profiles, the algorithm can not differentiate between the 2 which would cause that convergence error.
cors <- cor(profileMatrix)
summary(cors[lower.tri(cors)])
Maddy

hi @maddygriz Yes, I am using my GeoMxSet object. I get the same warning when I run spatialdecon() on the normalized count matrix extracted using assayDataElement() function
I guess your second point is the reason for this, so this the summary for the correlation matrix
    Min.  1st Qu.   Median     Mean  3rd Qu.     Max.
0.007072 0.111733 0.491090 0.474100 0.781453 0.993867

Also see the heatmap below (numbers indicate different clusters)

I re-ran the clustering while decreasing the resolution of the louvain clustering algorithm so I'd have less clusters and it works better now!
Thank you so much! That was so helpful!


netlify-cms doesn't pass @netlify/plugin-a11y test

Describe the bug
The "Login with Netlify" button does not have sufficient contrast.
Error: Elements must have
sufficient
 color contrast (https://dequeuniversity.com/rules/axe/4.3/color-contrast?application=axeAPI)
10:53:25 PM:  ├── color-contrast
10:53:25 PM:  ├── #nc-root > div > section > button
10:53:25 PM:  └── <button class="css-tu1it6-LoginButton-button-default-gray-disabled e4hp3ji4">Login with Netlify Identity</button>

To Reproduce

Add Netlify CMS to any site
Add  package = "@netlify/plugin-a11y" to nelify.toml
Deploy site to Netlify

Expected behavior
netlify-cms should pass @netlify/plugin-a11y test 😅
Screenshots

Applicable Versions:

Netlify CMS version: 2.0.0
Git provider: GitHub
OS: Windows 10
Browser version [e.g. chrome 22, safari 11]

Node.JS version:

CMS configuration
N/A
Additional context
Possible duplicate of https://github.com/netlify/netlify-cms/issues/1333

Thanks for putting this together @jsjoeio!
Do you mind adding this to #1333 so we can have a centralized place to handle accessibility related issues?
The CMS is a community project, so it would be great to see some contributions around this.
I labeled this issue and #1333 and good first issue to help with that.

Do you mind adding this to #1333 so we can have a centralized place to handle accessibility related issues?

Sure, I'll do that now!

The CMS is a community project

Ah, for some reason, I assumed since it's under the netlify org/namespace that they maintained it. Good to know!

Closing in favor of https://github.com/netlify/netlify-cms/issues/1333#issuecomment-998115794

Ah, for some reason, I assumed since it's under the netlify org/namespace that they maintained it. Good to know!

We (Netlify) have dedicated resources for it (I'm one of those resources, 👋) which are targeted to support contributions.
I hope that helps clarifying my initial comment.

We (Netlify) have dedicated resources for it (I'm one of those resources, 👋) which are targeted to support contributions.
I hope that helps clarifying my initial comment.

Ah, I misunderstood. I thought you were a person from the community volunteering to run the project in your free time on behalf of Netlify 😅  Thanks for clarifying!
Another question came to mind. How do we (the community) know what issues you (the maintainers) are prioritizing? I peeked in the milestones and projects but don't see those being used. Just curious in case I run into other issues.

Hi @jsjoeio, any active work is done by external contributors, either by picking good first issues, or by looking at most upvoted issues.
As maintainers we focus on reviewing PRs that come in and guiding people in resolving issues.


The error during traing stage.

Hi, thanks for your great work. I want to run the code on my own machine (which has 4 GPUs). But when I comment the line of  srun,  dist.barrier(), dist.barrier(). I met the following error:

Can I just change model.module.llama_model.config.use_cache = False to model.llama_model.config.use_cache = False ?
If I want to run the code without slurm but on my own machine (which has multiple GPUs), how should I change the code?Thanks a lot for your great help.

I have solved this problem.


Add Order Confirmation Page

Part of Payment Component. The page to be displayed after completing an order.

Hi, @bkimminich In the recent refactorings by you, a little test broke, by which the build at gsoc2019 is failing. I have corrected the test in this PR. Please let me know, if it looks fine to you.
Thank You!!😁😁

A big partion of this PR and the #1121 is duplicated.
I think we should look at solutions to extract at least the "basket item table", and the "basket summary display" into their own components.
This way they are guarantied to look consistent and would allow to reuse the same code.
One thing which i also don't really understand here is:
This page currently fetched it information from the basket service, but this page is supposed to be displayed AFTER the order was completed, so the basket would be empty by this point, right? Wouldn't this component need to fetch its data from the TrackOrderService instead of the basket service?

Oh, I get your point, my bad. Information from the basket service won't be available afterwards. So, it needs to be populated differently.
Really sorry for this. Will update it soon.😅

So, this page should be displayed instead of the confirmation PDF shown today, right? That would make sense and look much nicer, but I'm missing a link to the PDF on the page. The PDF today is an intended spoiler for the /ftp directory listing and cannot vanish silently. Could you add a "Print"-button maybe that just opens the PDF in a new tab?

Hi @bkimminich I have updated the PR taking your comments into account.
Please have a look
Thank You😁✌🏻


Center align tabs

Is there a way to configure tabs to be center aligned? Spreading out from the middle?

there is no specific property for this but I believe you can override all default styles and make it look as you want


Using OData and standard REST APIs ends up having OData media types for all APIs

After adding OData with example configurations, and having standard REST APIs, Swagger shows OData medi types for each API and NSwag generates OData media types for each standard REST API. And after I use it as a Client lib it throws an exception.

Code:
            .AddControllers()
            .AddOData(options =>
            {
                options
                    .Conventions
                    .Remove(options.Conventions.OfType<MetadataRoutingConvention>().First());
                options
                    .EnableQueryFeatures(100)
                    .AddRouteComponents(
                        Routes.SystemApiOdata.Prefix,
                        SystemEdmModelConfiguration.GetEdmModel(),
                        new DefaultODataBatchHandler());
            })
            .AddJsonOptions(jsonOptions =>
            {
                jsonOptions.JsonSerializerOptions.ReferenceHandler = ReferenceHandler.IgnoreCycles;
                jsonOptions.JsonSerializerOptions.PropertyNamingPolicy = JsonNamingPolicy.CamelCase;
                jsonOptions.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
            });

...

        app.MapControllers();

Used:
ASP Net Core Web Api
.Net6
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="Microsoft.AspNetCore.OData" Version="8.2.3" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />

What is the expected behavior?

Which media types are you expecting to be returned?
The [Produces] attribute can usually be used to customise the behaviour.

Expected behavior:
To not see the OData media types for all existing apis that do not use OData.

Yes, the [Produces] attribute can be used to customize it manually, but I would like to see OData media types in swagger only for APIs that use OData not all existing already when I add OData.


Publish main to live on 10/24 @ 10:30 am

PR Summary

PR Checklist

[ ] Descriptive Title: This PR's title is a synopsis of the changes it proposes.
[ ] Summary: This PR's summary describes the scope and intent of the change.
[ ] Contributor's Guide: I have read the contributors guide.
[ ] Style: This PR adheres to the style guide.

Learn Build status updates of commit b183aea:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/winserver2022-ps/failoverclusters/Add-ClusterCheckpoint.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterDisk.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterFileServerRole.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterGenericApplicationRole.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterGenericScriptRole.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterGenericServiceRole.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterGroup.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterGroupSetDependency.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterGroupToSet.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusteriSCSITargetServerRole.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterNode.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterResource.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterResourceDependency.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterResourceType.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterScaleOutFileServerRole.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterSharedVolume.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterVirtualMachineRole.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Add-ClusterVMMonitoredItem.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Block-ClusterAccess.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Clear-ClusterDiskReservation.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Clear-ClusterNode.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Disable-ClusterStorageSpacesDirect.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Enable-ClusterStorageSpacesDirect.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/FailoverClusters.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

docset/winserver2022-ps/failoverclusters/Get-Cluster.md
:white_check_mark:Succeeded
View (WindowsServer2022-ps)

This comment lists only the first 25 files in the pull request.
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Gradle error

Extension Name: vscode-gradle
Extension Version:
OS Version:
VSCode version:
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Output from "Gradle for Java"
You can find this by clicking on the "Output" panel, then selecting the "Gradle for Java" channel from the dropdown.
Does the bug still exist if you disable all other extensions?
Yes/No
Additional context
Add any other context about the problem here.

Exception in thread "main" java.util.zip.ZipException: zip END header not found
at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1638)
at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1646)
at java.base/java.util.zip.ZipFile$Source.(ZipFile.java:1484)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1446)
at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:718)
at java.base/java.util.zip.ZipFile.(ZipFile.java:252)
at java.base/java.util.zip.ZipFile.(ZipFile.java:181)
at java.base/java.util.zip.ZipFile.(ZipFile.java:195)
at org.gradle.wrapper.Install.unzip(Install.java:214)
at org.gradle.wrapper.Install.access$600(Install.java:27)
at org.gradle.wrapper.Install$1.call(Install.java:74)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Please how do you I handle this kind of error?

Seems like gradle download is not complete, what if you directly run a gradlew command from terminal?

Seems like gradle download is not complete, what if you directly run a gradlew command from terminal?

Thanks I just noticed i didn't download everything, but after doing that it is still showing the following error:
FAILURE: Build failed with an exception.

What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Failed to install the following SDK components:
tools Android SDK Tools
build-tools;30.0.3 Android SDK Build-Tools 30.0.3
Install the missing components using the SDK manager in Android Studio.

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

What will happen if you run gradlew :app:compileDebugJavaWithJavac from terminal directly

Maybe it's due to some sdk is missing in your dev environment: https://stackoverflow.com/a/74727940/13068918
Please let us know if it not true.


only the first ffmpeg command created reports it's progress, subsequent commands are silent.

Simply create 2 streams and add event listeners for 'progress' on both.  You'll only get messages from the first command.

I'm not sure if this is also what is happening to you, but I found that if I do something like:
const command = ffmpeg(input).outputFormat('mp4').save(outputFile);
command.on('progress', () => ...);

Then it works once but not the second time. This was because there was a race condition, and the save() was sometimes happening before attaching the event listeners. Instead, this worked for me:
const command = ffmpeg(input).outputFormat('mp4');
command.on('progress', () => ...);
command.save(outputFile);

Confirmed, this putting save before progress works for me too.


Color Highlighting Issue in NvimTree

Files that are executable seem to have a green that doesn't match the rest of the theme. This might be my setup but I couldn't find anything in my config.

Hi, I don't have a highlight for executable files so it should go to the default described here.
This might be because some other theme is overwriting vim.g.terminal_color_2, so I could put these highlights in!
This is what it looks like for me for reference:

I just pushed a commit that should fix it, can you try it out?

You're the best! All good. I was looking to do it myself and you took care of it so fast! Thank you!!!

No problem, glad I could help! 😄


what is the best practice to receive realtime direct messages?

I seems that insta.GetV2Inbox() returns all direct messages. What I want is to receive realtime direct messages.
At first glance, I thinks I need a for loop on insta.GetV2Inbox(), but unfortunately, I did not figure it out.
what is the best practice to receive realtime direct messages?

Hi
It's not implemented on this Golang package.
See https://github.com/mgp25/Instagram-API/blob/master/src/Realtime/Mqtt.php for how to get events realtime.
It will use mqtt protocol.
If you can implement this option, Please tell me and create a PR.
Regards

@ahmdrz Many thanks for you advice.
Implementing fbns mqtt involves a lot of work. Currently I can't figure out a time plan to do that.
I may dive into it if I have time.

You can use for loop with time.Sleep , But I don't know Instagram will block you or not ( Be careful about ratelimit )


Improve the responsiveness of the .flex-## classes

At some breakpoint the ##% of the flex-50 for example, stays at 50 forever.. but i want it to be restricted to the breakpoint because sometimes it stays too damn small..

Resolved By using styled-components
but stopped updating SCSS, since sass is now kindo out-of-fashion


Unable to install Python Wheel File

Issue Report Template for OAuth SDK
Issue Summary
Please provide a brief summary of the issue you're encountering.
Steps to Reproduce
Installing the Python client credential wheel file via "pip install" command.
Error Code/Message
ERROR: ups_oauth_client_credential_sdk-1.0.whl is not a valid wheel filename.
Environment
python version 3.12 & 3.13
-sdk v1.0
Additional Information
Include any other relevant details that might help diagnose the issue..
If the issue persists or if you need immediate assistance, please email our support team at<EMAIL_ADDRESS>with the details provided above.
Thank you for using OAuth SDK!

Hi, thank you for reaching out. This SDK is not available in the Python Package Index, or other repositories. Please ensure you have downloaded the .whl file and point your installation to the correct directory.

Hi there.
I'm using the command "pip install ups_oauth_client_credential_sdk-1.0.whl" in the directory where the .whl file exists and I am getting an error there. See image below:

Is there a mistake in the install command?
Thank you!

Can you try using the path to the file instead of just the file name? From your screenshot, this would look like pip install D:/Job Stuff/Venus/UPS/ups_oauth_client_credential_sdk-1.0.whl

I tried just now.

It looked like the space was an issue so I retried with quotes but it unfortunately still gave the same error.

Marking as closed.

Hey there, I'm having the same issue installing the SDK. Tried the solutions above:

pip install /home/harrison-almeida/Documents/service/repo/ups_oauth_client_credential_sdk -> removing the -1.0.whl
but I get

ERROR: Invalid requirement: '/home/harrison-almeida/Documents/service/repo/ups_oauth_client_credential_sdk'
Hint: It looks like a path. File '/home/harrison-almeida/Documents/service/repo/ups_oauth_client_credential_sdk' does not exist.

OS: Linux Ubuntu
Pip version: 22.1
setuptools version: 65.5.0

Hey there, I'm having the same issue installing the SDK. Tried the solutions above:
1. `pip install /home/harrison-almeida/Documents/service/repo/ups_oauth_client_credential_sdk` -> removing the `-1.0.whl`
   but I get

ERROR: Invalid requirement: '/home/harrison-almeida/Documents/service/repo/ups_oauth_client_credential_sdk'
Hint: It looks like a path. File '/home/harrison-almeida/Documents/service/repo/ups_oauth_client_credential_sdk' does not exist.

OS: Linux Ubuntu Pip version: 22.1 setuptools version: 65.5.0

Can you verify your path is correct? If you're using a virtual environment, the path might be different. The command looks correct otherwise.

I'm not using a virtual env. Is there an expectation to upload the package to a repository, like pypi, any time soon?

At this time there is no plan to migrate any packages to other repositories.

I'm having the same problem:
$ ls -lah ~/Downloads/ups_oauth_authcode_sdk-1.0.whl
-rw-rw-r-- 1 daniel daniel 4,8K nov 22 14:08 /home/daniel/Downloads/ups_oauth_authcode_sdk-1.0.whl
$ pip install ~/Downloads/ups_oauth_authcode_sdk-1.0.whl
ERROR: ups_oauth_authcode_sdk-1.0.whl is not a valid wheel filename.
$ pip install ~/Downloads/ups_oauth_authcode_sdk
ERROR: Invalid requirement: '/home/daniel/Downloads/ups_oauth_authcode_sdk': Expected package name at the start of dependency specifier
    /home/daniel/Downloads/ups_oauth_authcode_sdk
    ^
Hint: It looks like a path. File '/home/daniel/Downloads/ups_oauth_authcode_sdk' does not exist.

I'm on Ubuntu 22 using python 3.9.20 (inside a virtual env), pip 24.3.1 and setuptools 75.6.0. (I get the same errors for ups_oauth_client_credential_sdk-1.0.whl)

I was able to solve it by adding -cp39-cp39m-win_amd64 to the filename. It's related to python version and compatibility info.
I'm using poetry though, so that's working for me:
ups_oauth_client_credential_sdk = {file = "./ups_oauth_client_credential_sdk-1.0-cp39-cp39m-win_amd64.whl"}
Also needed to add the ./ at the start of the filepath

Hi Daniel, the output from pip suggests there may be an issue with the file path used. Can you ensure the file exists in that location and that the path is correct? You mentioned that you're using a virtual environment, so it's possible that the path used may need to be modified.

Hi Daniel, the output from pip suggests there may be an issue with the file path used. Can you ensure the file exists in that location and that the path is correct? You mentioned that you're using a virtual environment, so it's possible that the path used may need to be modified.

@UPSMichael  I did ensure that the file existed, as the ls -lah ~/Downloads/ups_oauth_authcode_sdk-1.0.whl command output on my previous post shows.

I was able to solve it by adding -cp39-cp39m-win_amd64 to the filename. It's related to python version and compatibility info, I believe.

@HarrisonAlmeida that was indeed the rifght direction: after investigating a bit, I managed to install it by renaming e.g. the ups_oauth_authcode_sdk-1.0.whl file to ups_oauth_authcode_sdk-1.0-py3-none-any.whl.
@UPSMichael it's probably a good idea to update the documentation to mention this fact? Or even renaming the file in the repo (although I'm not sure that is valid for all scenarios)

Thank you for the feedback and suggestion. I'll bring it up with the rest of the team and we'll discuss possible solutions or changes that can be made to make this easier and more clear.


Cannot build TFLite 2.16.1 for RISC-V due to the bug in cpuinfo (missing sys/hwprobe.h)

Issue type
Build/Install
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
tflite 2.16.1
Custom code
Yes
OS platform and distribution
Linux
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
GCC 13.2.0 RISC-V GNU Compiler Toolchain link: https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2023.11.17/riscv64-glibc-ubuntu-20.04-gcc-nightly-2023.11.17-nightly.tar.gz
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
I'm trying to build TensorFlow Lite 2.16.1 using CMake for RISC-V using GCC toolchain for this platform. The build fails with the following error inside cpuinfo dependency:
[  0%] Building C object _deps/cpuinfo-build/CMakeFiles/cpuinfo.dir/src/riscv/linux/riscv-hw.c.o
build/cpuinfo/src/riscv/linux/riscv-hw.c:1:10: fatal error: sys/hwprobe.h: No such file or directory
      1 | #include <sys/hwprobe.h>
        |          ^~~~~~~~~~~~~~~

This bug is already fixed in cpuinfo by this commit.
Can you bump cpuinfo to the latest commit (or to any version including this fix) in the next TF release?
Standalone code to reproduce the issue
cmake -S tensorflow/lite -B build -D CMAKE_BUILD_TYPE=Release -D CMAKE_SYSTEM_PROCESSOR=riscv64 -D BUILD_SHARED_LIBS=ON -D TFLITE_ENABLE_GPU=ON -D CMAKE_SYSTEM_NAME=Linux -D CMAKE_C_COMPILER=/opt/riscv_gcc/bin/riscv64-unknown-linux-gnu-gcc -D CMAKE_CXX_COMPILER=/opt/riscv_gcc/bin/riscv64-unknown-linux-gnu-g++ -D CMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -D CMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -D CMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -D CMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY

Relevant log output
No response

Hi @eltimen,
The commit  you have
provided for cpuinfo was merged under pytorch  repo. But under TensorFlow repo (tensorflow/lite/tools/cmake/modules/cpuinfo.cmake), a PR  for cpuinfo.cmake still under open. Once it is reviewed and merged,  it will be updated on the next coming release.
Thank You

Hi @LakshmiKalaKadali,
Thank you, I hadn't noticed that a PR to fix this had already been created.

Hi @eltimen,
Thank you for the response. We will update you once the PR #63850 is merged. Also please keep  track of the same PR .
Thank You

hi All!
tensorflow 2.16.1 - tflite build does not generate a static libraries in /clog-build. I see that the clog-build in the version r2.10. Do you have an any idea how can i fix it?
error output:
gmake[2]: *** No rule to make target '../../tflite_build/_deps/clog-build/libclog.a', needed by 'testapp/testapp'.  Stop.

Hi NominBa,
Could you please open a new issue.
Thank You


Add verbosity flag to kmeans function

it can be annoying to clog my terminal with log messages when I'm clustering in a deeply nested loop
I'm not sure if this is totally consistent with the rest of Owl's source, but it's a minor change so I can't see how I could have messed it up that badly.

You could also change the log level in your code with Owl_log.set_level WARN; to disable the INFO logs.


Retry: Add support for 503 Retry-after?

https://twitter.com/akislyuk/status/484141116019580928
Maybe something like Retry(status_whitelist=...?) and if it includes 503 then Retry.sleep() could do something special when incremented with a 503 response?
Feels slippery...

I think this was done in #955.

So we have! Thanks @vfaronov!


[User Story] Ensure scout compatibility with Paraphrase output

Description of feature
As a bioinformatician I want to be able to investigate the paraphase output in Scout
Can be closed when

[x] #70
[ ] https://github.com/Clinical-Genomics/scout/issues/4519
[x] https://github.com/igvteam/igv.js/issues/1811

Closing this, since Paraphase has been added to Nallo.
Further tracking of remaining tasks can be done in https://github.com/Clinical-Genomics/MTP-NALLO/issues/14


Opening a Notif of Newly created res. is not the same reservation when opened. After Create reservation (DSA user)

Opening a Notif of Newly created res. is not the same reservation when opened. After Create reservation (DSA user)


Disable cron-ecr-renew job if there is no secret for AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY

What would you like to be added: Disable cron-ecr-renew job if there is no secret for AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
Why is this needed: If there is no AWS credentials provided, the cron job to refresh ECR tokens should not be run eliminating unnecessary resource consumption and resulting error messages in the cluster.

Done


Missed Packets

Sometimes I received a lot of missing packets. My client browser will just turn grey. This happens a lot. I have set the -max_delay to 100000 but it is still happening. Any reason why this happened?
0|app      | [rtsp @ 0x56372214a9a0] RTP: missed 1 packets
0|app      | [hevc @ 0x563722180900] Could not find ref with POC 20
0|app      | [rtsp @ 0x56372214a9a0] max delay reached. need to consume packet
0|app      | [rtsp @ 0x56372214a9a0] RTP: missed 1 packets
0|app      | [hevc @ 0x563722180900] Could not find ref with POC 25

Add
 "-rtsp_transport",
"tcp",
"-thread_queue_size",
"512"

to the ffmpeg options (node_modules/node-rtsp-stream/mpeg1muxer.js).

@TKasperczyk thank you!!
This should also be addressable using ffmpegOptions option on the library, in case modifying source isn't your thing.

Sometimes I received a lot of missing packets. My client browser will just turn grey. This happens a lot. I have set the -max_delay to 100000 but it is still happening. Any reason why this happened?
0|app      | [rtsp @ 0x56372214a9a0] RTP: missed 1 packets
0|app      | [hevc @ 0x563722180900] Could not find ref with POC 20
0|app      | [rtsp @ 0x56372214a9a0] max delay reached. need to consume packet
0|app      | [rtsp @ 0x56372214a9a0] RTP: missed 1 packets
0|app      | [hevc @ 0x563722180900] Could not find ref with POC 25

Thanks alot. It works


Runtime error when using TypeAdaptor(Annotated[..., Field(...)]) in other model

Initial Checks

[X] I confirm that I'm using Pydantic V2 installed directly from the main branch, or equivalent

Description
I experimented around with custom data types as described in the documentation. I get a runtime error as soon as I try to put this new custom type inside a model.
Example Code
from typing import Annotated

from pydantic import Field, TypeAdapter, create_model, ConfigDict

PositiveInt = Annotated[int, Field(gt=0)]

model = create_model(
    "Model",
    __config__=ConfigDict(arbitrary_types_allowed=True),
    inner=(TypeAdapter(PositiveInt), Field(...)),
)
print(model.json_schema())

Python, Pydantic & OS Version
pydantic version: 2.0
        pydantic-core version: 2.0.1 release build profile
                 install path: <REDACTEC>
               python version: 3.11.4 (main, Jun  7 2023, 00:34:59) [Clang 14.0.3 (clang-14<IP_ADDRESS>.1)]
                     platform: macOS-13.4.1-arm64-arm-64bit
     optional deps. installed: ['typing-extensions']

Error:
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
    model = create_model(
            ^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/main.py", line 1319, in create_model
    return meta(__model_name, resolved_bases, namespace, __pydantic_reset_parent_namespace__=False, **kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 172, in __new__
    complete_model_class(
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 420, in complete_model_class
    schema = cls.__get_pydantic_core_schema__(cls, handler)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/main.py", line 533, in __get_pydantic_core_schema__
    return __handler(__source)
           ^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_schema_generation_shared.py", line 82, in __call__
    schema = self._handler(__source_type)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 264, in generate_schema
    return self._generate_schema_for_type(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 285, in _generate_schema_for_type
    schema = self._generate_schema(obj)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 475, in _generate_schema
    return self._model_schema(obj)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 351, in _model_schema
    {k: self._generate_md_field_schema(k, v, decorators) for k, v in fields.items()},
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 351, in <dictcomp>
    {k: self._generate_md_field_schema(k, v, decorators) for k, v in fields.items()},
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 614, in _generate_md_field_schema
    common_field = self._common_field_schema(name, field_info, decorators)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 656, in _common_field_schema
    schema = self._apply_annotations(
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1281, in _apply_annotations
    schema = get_inner_schema(source_type)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_schema_generation_shared.py", line 82, in __call__
    schema = self._handler(__source_type)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1249, in inner_handler
    schema = self._generate_schema(obj)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 537, in _generate_schema
    return self._arbitrary_type_schema(obj, obj)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<REDACTED>/.venv/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 578, in _arbitrary_type_schema
    raise PydanticSchemaGenerationError(
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <pydantic.type_adapter.TypeAdapter object at 0x109350ad0>. Set `arbitrary_types_allowed=True` in the model_config to ignore this error or implement `__get_pydantic_core_schema__` on your type to fully support it.

If you got this error by calling handler(<some type>) within `__get_pydantic_core_schema__` then you likely need to call `handler.generate_schema(<some type>)` since we do not call `__get_pydantic_core_schema__` on `<some type>` otherwise to avoid infinite recursion.

For further information visit https://errors.pydantic.dev/2.0/u/schema-for-unknown-type

Selected Assignee: @dmontagu

I’m not sure what you’re trying to do but TypeAdapter is not meant to be used as a field in a model, it’s not a type.

Basically, I want to associate some metadata (like title, description, etc) to a data type such as str or int, so I use an Annotated type and annotate it with a Field with the desired attributes. As I need to use it in other models as well I cannot add another Field there as well as the annotations already contain a Field (even if they would be distinct).
I interpreted TypeAdaptor as a Type wrapper type which basically acts as a dedicated model. I guess the correct way then would be to use a RootModel? This, however, behaves differently as a RootModel is a whole object so the semantic is different than an Annotated.

Basically, I want to associate some metadata (like title, description, etc) to a data type such as str or int, so I use an Annotated type and annotate it with a Field with the desired attributes. As I need to use it in other models as well I cannot add another Field there as the annotations already contain a Field (even if they would be distinct).

Do you mean something like this?
from typing import Annotated

from pydantic import Field, BaseModel

SomeAlias = Annotated[int, Field(description='number')]

class Model(BaseModel):
    foo: Annotated[SomeAlias, Field(title='abc')]

It's currently not very well supported, but we've talked about supporting it and would be open to ideas in that space.

Yeah, this is pretty close. One difference for me is that I create these models dynamically but the concept is the same:
from typing import Annotated, Any

from pydantic import Field, create_model

def ty() -> type:
    return int

def annotated() -> Any:
    return Annotated[ty(), Field(description="number")]

model = create_model("Model", foo=(annotated(), Field(title="bar")))
# or
model = create_model("Model", foo=(Annotated[annotated(), Field(title="bar")], ...))

So using the second Annotated in the static model is not possible: In both cases, I get an error that two Fields are not allowed.
To work around this I'm now using __get_pydantic_core_schema__ and __get_pydantic_json_schema__ to avoid the inner Field so I can use the approach as above (but the Annotated[ty(), Field(description="number")] replaced with Annotated[ty(), MyAnnotation].
I don't have any concrete ideas on how to support this better. I'm pretty new to Pydantic and typed Python (I didn't really use Python in years and just came back to it). It feels like generally creating dynamic models is supported but a more advanced topic.

You're right, creating things dynamically is something we try to support but can obviously get very hairy.

So using the second Annotated in the static model is not possible: In both cases, I get an error that two Fields are not allowed.

This is what we're considering changing :) cc @dmontagu

but can obviously get very hairy.

Especially if you cannot distinct between an object and a type 😅
Thanks for the quick and kind help!

Hello, I'm having a similar problem, how did you end up working around the issue @TimDiekmann ?
I would like something like:
class InternalIdMixin:
    @classmethod
    def load_id(external: str) -> int: ...
    @classmethod
    def dump_id(internal: int) -> str: ...

def internal_id_field(model: InternalIdMixin):
    return Annotated[
        str,
        BeforeValidator(model.load_id),
        PlainSerializer(model.dump_id),
    ]

class MyObjectSchema(BaseModel):
    id: internal_id_field(MyObject) # err: Call expression not allowed in type expression
    name: str
    #[...]


Recommended changes resulting from automated audit

We performed an automated audit of your Cake addin and found that it does not follow all the best practices.
We encourage you to make the following modifications:

[ ] You are currently referencing Cake.Core 0.17.0. Please upgrade to 0.28.0
[ ] Your addin should target netstandard2.0. Please note that there is no need to multi-target, netstandard2.0 is sufficient.
[ ] The nuget package for your addin should use the cake-contrib icon. Specifically, your addin's .csproj should have a line like this: <PackageIconUrl>https://cdn.rawgit.com/cake-contrib/graphics/a5cf0f881c390650144b2243ae551d5b9f836196/png/cake-contrib-medium.png</PackageIconUrl>.

Apologies if this is already being worked on, or if there are existing open issues, this issue was created based on what is currently published for this package on NuGet.org and in the project on github.

We performed a follow up automated audit of your Cake addin and found that some (or all) issues previously identified have not been resolved.
We strongly encourage you to make the modifications previously highlighted.
Apologies if this is already being worked on, or if there are existing open issues, this issue was created based on what is currently published for this package on NuGet.
This comment was created by a tool: Cake.AddinDiscoverer version 3.12.1

@Jericho as you know, this addin is now maintained on https://github.com/cake-contrib/Cake.Orchard and this can be closed (will be done as part of the updating the addin for Cake v1.0 compat)


Scorched and seared ingot tanks perform the same despite description text

Seared ingot tanks claim to hold 48 ingots while scorched tanks claim to hold 3 molten blocks
unless there is some very weird math that im just unware of they should hold different amounts but according to in game both cap out at 4.32 buckets

that's a tinkers construct thing, not part of my addon

Ahhh shit this is the wrong github i am sorry my dude, found this on a reddit thread and clearly pressed the wrong link. All good delete this as you wish

https://github.com/SlimeKnights/TinkersConstruct


Specifying Start of Ski Season

Feature Request
Currently, there is no way to group all of my ski sessions under a single ski season. I want to be able to view all the times I went skiing in a single season and compare my skiing sessions across different seasons to track my progress on a seasonal basis.
Proposed Solution
Ideally, there would be a feature allowing me to select the start of a new ski season, with every ski session recorded under the ski season starting from the date I specified. If I begin a new skiing season, I should be able to group my ski sessions under this new season.
Alternative Solutions
Another solution could be to implement a feature for selecting a range of dates, where you choose a start date and an end date, and then all your skiing sessions would be visible within these dates. However, the proposed solution is preferable since users might not always remember when they stopped skiing. It's simpler to start a new skiing season and have the app automatically record the sessions.
Completeness Requirements
Verification can be easily conducted by starting a new season, recording a new session, and checking if the recorded session appears under the new season.

Test


Issues using any tst.get****();

Hello,
I am trying to use this package with React Native, imported through NPM
However.. I am getting a load of errors when trying to pull any data?
I've added a load of bumf to the bottom of this showing what it is complaining about,
Do you have any ideas?
Also, I tried your Demo.exe and that isn't pulling data either? yet using the example from RenCloud & my old code, everything still works?
Thanks
JPL
 Error: Requiring unknown module "undefined". If you are sure the module exists, try restarting Metro.  Colors.darker : Colors.lighter,
  };
  const tst = truckSimTelemetry();
  const data = tst.getData();
  console.log(data.game.paused);
  return (
    <SafeAreaView style={backgroundStyle}>
      <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
      <ScrollView
        contentInsetAdjustmentBehavior="automatic"
        style={backgroundStyle}>
        <Header />
        <View
          style={{
            backgroundColor: isDarkMode ? Colors.black : Colors.white,
          }}>
...
        </View>
      </ScrollView>
    </SafeAreaView>
  );
};

...

export default App;

PS: Basic template app just to get things working to start with... glad I thought of that!

Hi.
I'm not quite sure about this particular issue, however I have seen similar errors when using it with Electron and Vue.
For Electron one had to recompile the module for the version of node Electron uses.
One does this using the electron-rebuild module
However I don't think that's much of an issue anymore.
For Vue when using it with Electron (and i think React has something similar).
One needs to set the nodeIntegration property to true for the electronBuilder in the config file.
I don't have much experience with React though, and especially React native, sorry.
As for the Demo not working, I'm going to have to look into that.

Thanks for the reply!
I'll close this issue down as it's a React Native incompatibility rather than an issue here!
Switched to VueJS and all working nominally!
Thanks!


Implement a fix for crashing Mob Spawners (for 1.12 -> 1.13 converted worlds)

I plan to use a backup of a world which was converted to 1.13 from 1.12 and teleport to the locations where the mob spawners are known to be in 1.12 to inspect the NBT data.

More information, spawners in this region crash users.
r.-37.-29.mca.zip
https://i.imgur.com/HjDOVPS.png

ProtocolSupport bug


nixos/modules/hardware/video/nvidia: Fix incorrect reference to 'nvid…

Motivation for this change
Running nixos-rebuild build would fail due to a bug in nvidia.nix
Things done
Change a reference to nvidiaSettings to be cfg.nvidiaSettings

Built on platform(s)

[X ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

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

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

[X] Fits CONTRIBUTING.md.

I can confirm that this works and is needed to build nvidia driver.

Thanks for the fix!


Removing AppCompatActivity in the CallQuery method

Removed the AppComaptActivity Dependency for the callQuery method.
Using Handler and post instead.

By doing is this way you can easily use this on a ViewModel without needing access to the Activity.

@adfleshner : Thanks for your support. I will review and let you know.

So I rebased up until now if there is anything else let me know if there is anything else you need.


Remove stun scheme from the default server flag value

calling net.ResolveUDPAddr with stun:stun.voipgate.com:3478 results in this error too many colons in address.
2023/09/20 21:06:29 Failed to resolve server addr: address stun:stun.voipgate.com:3478: too many colons in address exit status 1

Thank you @OmarTariq612 !

Merged in #204


Llama 3.2 1b model not generating response

Hi i am trying to use llama 3.2 1b instruct model and it is not generating ans. Can anyone help where i am doing wrong. Thanks
from mlx_lm import load, generate
model, tokenizer = load(path_or_hf_repo = "unsloth/Llama-3.2-1B",#,tokenizer_config=tokenizer_config
                        tokenizer_config={"trust_remote_code": True})#,"eos_token": "<|end_of_text|>"})
response = generate(model, tokenizer, prompt="""
<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful assistant<|eot_id|><|start_header_id|>user<|end_header_id|>

Who are you?<|eot_id|><|start_header_id|>assistant<|end_header_id|>

""", verbose=False)

Seems like a problem with your model and not MLX...
Using meta-llama/Llama-3.2-1B-Instruct works just fine for me. Any reason you are using "unsloth/Llama-3.2-1B" ?

Thanks for quick reply, let me try with that. i am still waiting for llama team to approve my request.


Added a new entry. Tailwind CSS docs.

Summary
Did you read the CONTRIBUTING.md?
If Yes, proceed, else read it Contributing GUidelines
Any relevant issues this PR addresses? (optional)
#

@1AmSammi3 thank you for sending in this PR, subsequently create an issue before sending a PR.
Well done 👍

@1AmSammi3 thank you for sending in this PR, subsequently create an issue before sending a PR.
Well done 👍

Ok I will remember that.
Thanks alot


Implement Page Data and DataPopulators

Everything to do with adding a new PageData resource (e.g. blog article), using a page template right through to the PageDataPopulator needs to be implemented

This will work in a different way to initial planned. We will create a page data provider which you will be able to inject into DataTransformers. Using the data you can modify any object being returned from the database.
If you want to provide an object that DOES NOT EXIST in the database, use a custom data provider. You could detect a reserved key/string passed as the ID for a resource and return a resource that is dynamically configured.
Remember the web-app will have metadata which will specify that the resource is not persisted to the database as it will not exist in the Doctrine object manager.
When you have modified a resource using a DataTransformer, we will use the PageDataProvider to modify variables. This will in turn add metadata to the output so the web app knows to modify a different API resource for its PUT requests.
We may also want to implement a ComponentResourcePlaceholder resource. This could simply be a placeholder component that references a PageData class and method/property which contains another component. The output should simply output the component the is references in its place.
This should solve all the dynamic page data issues.
A very large feature.


Can't install openai because aiohttp is supposedly missing?

Describe the bug
I'm trying to install openai on my ubuntu machine, but the installation wheel crashes because a module called "aiohttp" is missing. I installed aiohttp, but the error doesn't dissapear. I have run the following command "python3 -m pip install openai" in 2 different ubuntu 22.04 computers several times and after several reboots, and the result has been the same. I simply can't install openai. I'm using python 3.10
To Reproduce

Run "python3 -m pip install openai"
The installation fails

Code snippets
Collecting openai
  Using cached openai-0.26.5.tar.gz (55 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [81 lines of output]
      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 419, in _parse_attr
          return getattr(StaticModule(module_name), attr_name)
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 26, in __init__
          spec = importlib.util.find_spec(name)
        File "/usr/lib/python3.10/importlib/util.py", line 94, in find_spec
          parent = __import__(parent_name, fromlist=['__path__'])
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/__init__.py", line 9, in <module>
          from openai.api_resources import (
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/api_resources/__init__.py", line 1, in <module>
          from openai.api_resources.completion import Completion  # noqa: F401
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/api_resources/completion.py", line 4, in <module>
          from openai.api_resources.abstract import DeletableAPIResource, ListableAPIResource
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/api_resources/abstract/__init__.py", line 3, in <module>
          from openai.api_resources.abstract.api_resource import APIResource
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/api_resources/abstract/api_resource.py", line 4, in <module>
          from openai import api_requestor, error, util
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/api_requestor.py", line 21, in <module>
          import aiohttp
      ModuleNotFoundError: No module named 'aiohttp'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 162, in get_requires_for_build_wheel
          return self._get_build_requires(
        File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 143, in _get_build_requires
          self.run_setup()
        File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 158, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 3, in <module>
          setup()
        File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
          return distutils.core.setup(**attrs)
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 122, in setup
          dist.parse_config_files()
        File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 804, in parse_config_files
          parse_configuration(
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 158, in parse_configuration
          meta.parse()
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 498, in parse
          section_parser_method(section_options)
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 469, in parse_section
          self[name] = value
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 222, in __setitem__
          value = parser(value)
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 599, in _parse_version
          version = self._parse_attr(value, self.package_dir)
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 422, in _parse_attr
          module = importlib.import_module(module_name)
        File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
        File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
        File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
        File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
        File "<frozen importlib._bootstrap_external>", line 883, in exec_module
        File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/__init__.py", line 9, in <module>
          from openai.api_resources import (
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/api_resources/__init__.py", line 1, in <module>
          from openai.api_resources.completion import Completion  # noqa: F401
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/api_resources/completion.py", line 4, in <module>
          from openai.api_resources.abstract import DeletableAPIResource, ListableAPIResource
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/api_resources/abstract/__init__.py", line 3, in <module>
          from openai.api_resources.abstract.api_resource import APIResource
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/api_resources/abstract/api_resource.py", line 4, in <module>
          from openai import api_requestor, error, util
        File "/tmp/pip-install-syczp33h/openai_d2bb5765cb594c07a4e3c96cae3c38b0/openai/api_requestor.py", line 21, in <module>
          import aiohttp
      ModuleNotFoundError: No module named 'aiohttp'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

OS
Ubuntu 22.04
Python version
Python 3.10.6
Library version
openai-python-0.26.5

Seems like there's something funky with python/pip path on Ubuntu. Building from source worked for me.
git clone https://github.com/openai/openai-python.git
cd openai-python
git checkout v0.26.5
python3 setup.py install

I had to build tiktoken from source as well.

I got the same problem, but pip install --upgrade pip (borrowed from here) fixed it, installation went fine after.

I got the same problem, but pip install --upgrade pip (borrowed from here) fixed it, installation went fine after.

I also encountered the same problem, with this method to solve, thank you.

Closing this for now since it does not look like an issue on our side, please follow up if there's more issues.


AttributeError: module 'configparser' has no attribute 'SafeConfigParser'

When trying to install webdrivermanager v.0.10.0 with Python interpreter 3.12.0 through pip (with Python 3.10.11 works well):
Collecting webdrivermanager
  Using cached webdrivermanager-0.10.0.tar.gz (33 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [31 lines of output]
      /private/var/folders/y1/mqtqg7sn5mvb52v7j5dt918h0000gn/T/pip-install-g4pm11tr/webdrivermanager_253931cce1dd482aa41809ea230a0018/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
        LONG_VERSION_PY['git'] = '''
      Traceback (most recent call last):
        File "/Users/admin/PycharmProjects/TrainingtRobotFramework/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/admin/PycharmProjects/TrainingtRobotFramework/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/admin/PycharmProjects/TrainingtRobotFramework/venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/y1/mqtqg7sn5mvb52v7j5dt918h0000gn/T/pip-build-env-cln_ao0p/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/y1/mqtqg7sn5mvb52v7j5dt918h0000gn/T/pip-build-env-cln_ao0p/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/y1/mqtqg7sn5mvb52v7j5dt918h0000gn/T/pip-build-env-cln_ao0p/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/private/var/folders/y1/mqtqg7sn5mvb52v7j5dt918h0000gn/T/pip-build-env-cln_ao0p/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 47, in <module>
        File "/private/var/folders/y1/mqtqg7sn5mvb52v7j5dt918h0000gn/T/pip-install-g4pm11tr/webdrivermanager_253931cce1dd482aa41809ea230a0018/versioneer.py", line 1480, in get_version
          return get_versions()["version"]
                 ^^^^^^^^^^^^^^
        File "/private/var/folders/y1/mqtqg7sn5mvb52v7j5dt918h0000gn/T/pip-install-g4pm11tr/webdrivermanager_253931cce1dd482aa41809ea230a0018/versioneer.py", line 1412, in get_versions
          cfg = get_config_from_root(root)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/y1/mqtqg7sn5mvb52v7j5dt918h0000gn/T/pip-install-g4pm11tr/webdrivermanager_253931cce1dd482aa41809ea230a0018/versioneer.py", line 342, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I'd happy if @rasjani can update in your repo that's why changes with "configparser" (include lib - SafeConfigParser) module were reverted in Python 3.11 and will be part of Python 3.12.  Python docs in 3.11

I have the same issue, would you recommend to me what I should do to install the driver manager as I'm new to robot framework and python?
Collecting webdrivermanager
Using cached webdrivermanager-0.10.0.tar.gz (33 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
C:\Users\wmoha\AppData\Local\Temp\pip-install-q6_9lbxw\webdrivermanager_b850d70023ff41c997741de9de1f1324\versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
File "C:\Users\wmoha\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\wmoha\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wmoha\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wmoha\AppData\Local\Temp\pip-build-env-3cmkztof\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wmoha\AppData\Local\Temp\pip-build-env-3cmkztof\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\wmoha\AppData\Local\Temp\pip-build-env-3cmkztof\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\wmoha\AppData\Local\Temp\pip-build-env-3cmkztof\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 47, in
File "C:\Users\wmoha\AppData\Local\Temp\pip-install-q6_9lbxw\webdrivermanager_b850d70023ff41c997741de9de1f1324\versioneer.py", line 1480, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "C:\Users\wmoha\AppData\Local\Temp\pip-install-q6_9lbxw\webdrivermanager_b850d70023ff41c997741de9de1f1324\versioneer.py", line 1412, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wmoha\AppData\Local\Temp\pip-install-q6_9lbxw\webdrivermanager_b850d70023ff41c997741de9de1f1324\versioneer.py", line 342, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

The same with me. Someone know how to fix??

Guys, I spent hours struggling with this until I tried python -m pip install webdriver_manager.
Note that the key detail was the underscore in webdriver_manager, and it worked


Add an end-to-end test of QController

This PR adds a framework for testing that QController actually works.  We create an in-memory Quicr relay, connect two QControllers to it, and verify that they successfully exchange media.
Note: The QController test does not currently pass.
@GhostofCookie - We should probably back-port the relay test to the libquicr repo, as an end-to-end test at that level.  Bonus points if you can figure out how to put the test relay in the libquicr repo and make it available to qmedia tests.

Now passing tests, but added dependency on #70

Sometimes you just have to threaten it into working!


Error

So i did everything u told to do and here i am with this error.
What can be wrong?

"(Note: Unless you did step 3, you'll have to go to example.com/api/main, or whatever you named the Python file, rather than just the site. Sorry!)" (s/o Step 6)
Did you create that HTML file? If not, you'll have to visit https://tictactoe-d8eikje0l-kazxo22.vercel.app/api/main

yeah make it your website domain

i dont Understand when i have import my github files what i need to make

i send you a friend request on discord

Closed due to inactivity


📖 Support new VS Code users and cross language teams

User Story
As a new user of VS code
I want to know how best to use it within the AP
So that we can ensure we can use it effectively
Value / Purpose
This story will aim to fulfil the following from the parent feature request:

provide assistance on the correct extensions to enable a cross language team that works in both R and Python
provide information on the of the extensions on the requirements files/ venv/ renv
recommend the best resources to help in learnings
advice on accessing GPU for .py files
git integration
accessing multiple projects at once like JupyterLab
initial start up advice so that everyone feels comfortable in a new environment

Useful Contacts
No response
User Types
No response
Hypothesis
If we... [do a thing]
Then... [this will happen]
Proposal
No response
Additional Information
No response
Definition of Done
Example - [ ] Documentation has been written / updated

[ ] README has been updated
[ ] User docs have been updated
[ ] Another team member has reviewed
[ ] Tests are green

https://code.visualstudio.com/docs/datascience/jupyter-notebooks
https://code.visualstudio.com/docs/languages/r

This is is probably a UR question -- cause we dont know which tools.

requirements from https://github.com/ministryofjustice/analytical-platform/issues/5809 incorporated in to this story


Add addon registration configuration

/assign @deads2k

Great docs on this API. You need to add validation tags to the APIs to enforce things like max length and possibly patterns on some strings.

add some validation. I do not find an easy regex to match signerName though.
And I will add more validation for other API in a separate PR

the updates look good. Thanks.
/approve
/lgtm
/hold
Holding for another reviewer if you have one.  If not, feel free to release the hold.

/lgtm
same hold rules.  if you want a look from someone else, feel free.  If not, feel free to release the hold.

/unhold


ceylon.locale::Formats.twelveHour always returns "AM" when hour is 12

When formatting times, if the time is between noon and 1:00 PM, the returned format ends in "AM" when it should end in "PM".
import ceylon.locale {
    locale
}
import ceylon.time {
    time
}

shared void run() {
    value formats = locale("en-US")?.formats;

    assert (exists formats);

    // Succeeds
    assert (formats.shortFormatTime(time(0, 30, 0)) == "12:30 AM");

    // Fails
    assert (formats.shortFormatTime(time(12, 30, 0)) == "12:30 PM");
}

Looks like the Formats.twelveHour function in the ceylon.locale module is the culprit.

I think I can get a fix going. I'm writing a quick test to verify it now.

Thanks for the fix, @CPColin!


NPE in classes extending from AbstractCondition when calling itemService

I am developing some custom item-filters (via item-filters.xml) and have noticed that that itemService is not being injected correctly in AbstractCondition class (package org.dspace.content.logic.condition) as it always return null

Is this addressed by #8421?

@amgciadev : I think @mwoodiupui is correct that this has already been fixed by #8421 ... that fix came in after 7.3 however, so it's only available on the main branch until 7.4 is released.

Apologies both for not having spotted the 7.4 fix - it does fix it indeed! thank you

Closing as this seems to be fixed by #8421


Trouble saving to SharedPreferences

I have a custom finish button which I want to save a bunch of strings to SharedPreferences before calling finish but for some reason it does not end up saving.
It'll save if I create an intent to launch another activity, however, with new WelcomeFinisher(WelcomeFragment_2.this).finish(); nothing gets saved.
I've tried SharedPreferece editor .commit(), adding a countdowntimer and also post handler but nothing seems to work for me.
`

You're saving the strings in the OnClickListener? There shouldn't any conflicts with that anywhere. Make sure you're saving the strings before using the WelcomeFinisher.
I quickly tested it with the custom fragment in the sample (DoneFragment) and it saved fine, here's the OnClickListener:
@Override
public void onClick(View v) {
    PreferenceManager.getDefaultSharedPreferences(getActivity())
            .edit()
            .putString("test", new Date().toString())
            .apply();
    new WelcomeFinisher(DoneFragment.this).finish();
}

Yep I saved it in the listener just like the example. I've created a fresh project and was able to successfully save through SP just like you did.
Not sure why the original app is still behaving like so. I'll close this since I beleive the problem lies elsewhere.  Thanks for the reply


Allow HTTP Headers not in spec

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Proposed changes
Allow the relaxing of HTTP Header parsing
potential fix for #3772

Checklist

[x] I have read the contribution guidelines
[ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
[x] I have run grunt to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

Need to think about how to add tests for "broken" headers when using express as the test http server

Coverage decreased (-0.002%) to 68.191% when pulling 660a2e0ed6f9393f06bc3df6bd2425661d33ec8d on hardillb:relaxed-http-req-headers into 1b94cc3ac027bfc38a300867a0b0fd635bf273b8 on node-red:master.

@hardillb does this need backport to v2.x?

This is borderline between new feature and bug fix. Given we haven't had lots of complaints about it, I'm not inclined to make more work for ourselves.

But the change that triggers this is in nodejs 14/16/18 so is likely to hit new deployments of 2.2.2 on latest nodejs

True - okay @Steve-Mcl - backport it.

Which will include 2.2.3 docker release as it will pick up the new node point releases

need to merge this & fetch to cherry pick - ok to merge first?

Was just waiting for CI to finish. Merged


Same problem with firebase_auth: 0.15.5+3: on the simulator, I get the CAPTCHA code and it works, on a physical iPhone I get the errors Token mismatch and then ERROR_MISSING_VERIFICATION_ID, The phone auth credential was created with an empty verification ID.

Same problem with firebase_auth: 0.15.5+3: on the simulator, I get the CAPTCHA code and it works, on a physical iPhone I get the errors Token mismatch and then ERROR_MISSING_VERIFICATION_ID, The phone auth credential was created with an empty verification ID.
Everything seems to have set up well on firebase (certificates, APNs, etc.): the normal notifications work well.
EDIT: I made it working adding these 2 override methods in the AppDelegate.swift
//Auth
override func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
           let firebaseAuth = Auth.auth()
           firebaseAuth.setAPNSToken(deviceToken, type: AuthAPNSTokenType.unknown)
 }
 override func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
           let firebaseAuth = Auth.auth()
           if (firebaseAuth.canHandleNotification(userInfo)){
               print(userInfo)
               return
           }
}

Don't forget to add import FirebaseAuth !
Originally posted by @rignaneseleo in https://github.com/FirebaseExtended/flutterfire/issue_comments/602762080

After the "add import FirebaseAuth" to AppDelegate. When trying to build the archive for publishing, it keep popping error and exit abnormally.
No such module 'FirebaseAuth'

@dunky-star
You seem to be using an older version of firebase_auth. Please check the current version per changelog, upgrade to latest and try again to see if it works.
If issue perists, provide flutter doctor -v and a minimal complete reproducible code sample that shows the issue.
Thanks.

Hi, darshankawar
Thanks, just solved it a while ago. The mistake was on my side.
I was using open -a Xcode x.xcodeporj instead of open -a Xcode x.xcworkspace.

Closing this as non-issue.


Framework

Hi Scott,
I have done a lot of rework, and it's not complete yet. However, I like you to have a look at it. There are now two frameworks for pure OO and one with additional wrappers for functional access (not complete). There's also the test suite (adapted). Biggest changes:

two different frameworks (OO and F)
vector and matrix as classes are now capitalized.
init stuff is not in a functional manner but using class inits with different signatures
functional access is decoupled (and will then be available through the F-framework)
quite some minor changes
using internally just the OO-methods

So, why? Swift it not a functional language and should not be programmed that way.  E.g instead of
arange(n)

it's now
Vector(arange:n)

Looks like more typing, but for outer access there will be the F-wrapper which allows still for the first form. So for people who are somehow used to that, there will be no difference.
There are still some issues with scoping I need to fix (as already said: Matrix allows to modify the flat vector without any check which is no good). Since the compiler allows to forbid those invalid accesses it shall be implemented. Quite some more bits and pieces I currently can't recall.

While developing this framework, I was interested in emulating NumPy/Matlab. I'd like to stick with this approach -- I developed this this with a mathematician in mind.
I don't like polluting the global namespace with all these functions names. If we could allow the below, I'd be a fan:

using swix // or import swix, etc
var x = swix.linspace(0, 1)

My intention is to use either
import SwixO

for the OO-based or
import SwixF

for the functional framework. This basically works (though it's not completely implemented by now). With the latter you  can use functions like arange(7) or SwixF.arange(7) and the like as you know it. When importing the first you would have a rather strong encapsulation of functions (i.e. all vector-related operations would be part of Vector, ditto for matrix).

You can achieve the above in two ways. Either you compile and test the framework and then copy the frameworks to /Library/Frameworks from where you can use them in other projects. Or you add Swix as sub-project and link that.

I'd be most inclined to follow the Swift Package Manager -- I don't like the overhead of adding extra complexity by introducing two different frameworks.
Looking at their docs, it looks like functions are imported into the global namespace. I'd look into this to verify this is the case, and if it is we could throw all the functions inside a wrapper.

Actually there is no complexity in having two frameworks. It's just that the one includes the wrapper module and the other doesn't.

I guess, I'm done for this step. You can build and test both frameworks with this project now. As said you can then use the framework with import SwixF so you can use the functions as you know it. I can think about renaming the F-parts to just Swix (there was a name conflict with the project name which made me choose the F/O suffixes).

Scott, I have a couple of other issues and don't know where to put them. So I place them here for the time being.
When creating a vector in NumPy it's data type seems to be fixed during creation time. E.g.
a=np.array([[1,2]])
a += 1.1

[[2 3]]

while
a=np.array([[1.1,2]])
a += 1.1

[[ 2.2  3.1]]

Since your intention is to mimic NumPy, this should probably also be handled in Swix the same way?

I made a couple of test.  Each operation will copy the whole vectors per value, not per reference. Python is by factors faster than Swift this way. An interpreter language!  My 14 year old son could have done better.

Even worse:
public func += (x: inout Vector, right: Double){ x = x + right }

can not be re-written to reuse the exiting result vector. It will always allocate a new vector and the throw away the existing one. E.g.
vec = Vector(zeros:10) // allocates 40 bytes+ for the vector
vec = vec + vec // see below

The addition will make two physical copies of vec on the call stack for make_operator. This will first allocate a new result vector. Then the (fast) internal computation is made. The final assignment will then copy the allocated result vector back to vec and dispose it. Since you can not access the left hand side of an assignment in operator function, you are lost.  Re-defining it as class can save you the & but you would never generate performant code with
vec = vec + vec

OMG, what a fail. I'll give Swift a kick in it's rear.


build err at ./src/components/anti-adblock/index.tsx:51:16

Dear Manager,
Build Env:
Node: v18.20.2
NPM: 10.5.0
I encountered some errors when I was building it; here are the details of the error log:
><EMAIL_ADDRESS>build
> next build

   Linting and checking validity of types  ...Failed to compile.

./src/components/anti-adblock/index.tsx:51:16
Type error: Type '{ children: string; href: string; target: "_blank"; rel: string; icon: true; color: true; }' is missing the following properties from type 'Pick<Props & NativeAttrs & RefAttributes<HTMLAnchorElement> & ScaleProps, "defaultChecked" | "defaultValue" | ... 260 more ... | "referrerPolicy">': placeholder, onPointerEnterCapture, onPointerLeaveCapture

  49 |               Report the issue to the filtering rules maintainer
  50 |               {' '}
> 51 |               <Link
     |                ^
  52 |                 href="https://github.com/uBlockOrigin/uAssets/issues"
  53 |                 target="_blank"
  54 |                 rel="noopener noreferrer nofollow external"

Dear Manager,
Build Env: Node: v18.20.2 NPM: 10.5.0
I encountered some errors when I was building it; here are the details of the error log:
><EMAIL_ADDRESS>build
> next build

   Linting and checking validity of types  ...Failed to compile.

./src/components/anti-adblock/index.tsx:51:16
Type error: Type '{ children: string; href: string; target: "_blank"; rel: string; icon: true; color: true; }' is missing the following properties from type 'Pick<Props & NativeAttrs & RefAttributes<HTMLAnchorElement> & ScaleProps, "defaultChecked" | "defaultValue" | ... 260 more ... | "referrerPolicy">': placeholder, onPointerEnterCapture, onPointerLeaveCapture

  49 |               Report the issue to the filtering rules maintainer
  50 |               {' '}
> 51 |               <Link
     |                ^
  52 |                 href="https://github.com/uBlockOrigin/uAssets/issues"
  53 |                 target="_blank"
  54 |                 rel="noopener noreferrer nofollow external"

The type mismatch came from https://github.com/geist-org/geist-ui and I don't want to fix that. The geist-ui is no longer maintained, I am looking for a new component library.


Add tests to check that fs loader functions will recover values saved by writers

Problem
We recently had an issue where the function to save an ACIR checksum was using a different extension to the function which was reading this when loading the circuit's keys: https://github.com/noir-lang/noir/issues/993
This is all easily testable so there's no excuse for not checking that these functions work together as expected (this was part of the original reasoning between factoring these into the fs module in the first place).
Proposed solution
We should add unit tests for each function to check that if a value is written to file then it will be successfully read again by the appropriate function if we pass the correct arguments into it. For an example of this see https://github.com/noir-lang/noir/pull/994
Alternatives considered
No response
Additional context
No response

@TomAFrench What is the status of this issue?

This is not really an issue now that we have a single artifact for circuits.


Support for compressed files

When I burn the SD to a hard drive I generally save it as .GZ for space reasons. It would be great if Etcher recognized these and could use them to burn it back to an SD.

Hi @kkaiser1952 ,
So you mean Etcher should be able to burn image.img.gz or image.iso.gz right? If so, I think this is a good addition, but I wonder how this will plan with the fact that Etcher currently writes ZIPs that containing a single image file inside, but are not necessarily a "zipped" single file.
I think checking the extension should be a good enough clue.

Well if what you are saying is to let Etcher open a .GZ file from my desktop and burn a SD card with it then yes, thats what I mean.

@jviotti I've just tried Etcher and it seems fantastic for what we put in place with our board SD images.
But while you are at it, I would also suggest to add .bz2 images as well.
In fact we produce .img.bz2 images for SD card right now: http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d2XplainedMainPage#Demo_archives
To write them on a Windows platform, we advice users to use the Rawrite32 tool as it handles such a file format...
Thanks, bye.

@noglitch Thanks for the suggestion! I edited the title to include .bz2 support.

@jviotti fantastic tool, if you include *.img.xz files beagleboard.org can switch too... ;)

@RobertCNelson Thanks a lot! Taking notes :)

To summarise:

[ ] Support for .gz
[ ] Support for .bz2
[ ] Support for .7z
[ ] Support for .xz

Hi @RobertCNelson ,
I've just published v1.0.0-beta.5 with XZ support. Let us know what you think!

XZ support is great but please don't stop there.  The GZ support is helpful because GZ decompresses so much faster the XZ.
http://catchchallenger.first-world.info/wiki/Quick_Benchmark:_Gzip_vs_Bzip2_vs_LZMA_vs_XZ_vs_LZ4_vs_LZO

Hi @jmark1m ,
Definitely, we'll provide support for all compression formats discussed above. We're currently prioritising auto-updating functionality, and we'll probably get all the formats out in a row afterwards.

Sorry for the huge delay on this issue, I'm finally allocating some time to finish the remaining compression formats. I just PRed GZ support, and will be looking forward to PR bzip2 support as well today.

Hi
I've just tested the xz and bz2 image writers with 1.0.0-beta7 version and:

xz image flasher works great
I can't use the .bz2 format:

I can't select a file with this format unless there is a file with the same name but a .zip extension in the directory
when I select the img.bz2 file, the .zip file is presented instead in the GUI, just underneath the "select image icon"
when I try to start flashing... it doesn't go further with sometimes a window saying "an error occurred". Note, when etcher fails like this, I have big difficulties to actually kill it...

(I run it from Linux Ubuntu 16.04)
Hope that it can help, Bye,

Hi @noglitch ,
Thanks for reporting this! It seems that you're hitting this error: https://github.com/regular/unbzip2-stream/issues/7 from one of the dependencies we're using. I'll try to allocate some time to work myself on it!

Hi @noglitch ,
Turns out the bz2 selection issue was an Electron bug with the open dialog on GNU/Linux (see https://github.com/electron/electron/issues/6305), which was fixed in the latests versions!

Hi @noglitch ,
I'm happy to announce the bz2 issue you've experienced has just been fixed in the bz2 implementation we're using (se https://github.com/resin-io-modules/etcher-image-stream/pull/37), and it's coming on the next release!

Hi, running Etcher <IP_ADDRESS>-rc4, I get this error:

But opening the same file in 7zip works fine.
Running Windows 8.1 Pro.

Hey @mpvader, that's because Etcher currently checks the image extension – in this case .rpi-sdimg, and bails out on that because it's not mapped as a known format.
We're currently working on making it fall back to treating anything unknown as if it had an .img extension – so, renaming your file to venus-image-rapsberrypi2.img.bz2 should do the trick for now.

Hi @jhermsmeier, thank you for the fast response. Should it just compare the most right part? So as long as it ends in .bz2 it's fine?
These 'cascading' extensions are quite common for images and such.

I meant shouldn't

And, just to be clear: I'd expect etcher to unzip the .bz2 file, and burn its contents. Not burn the zipped file.

@mpvader well, what it basically does is look at the base extension (i.e. .bz2 here), and then checks if it knows how to deal with the thing that has been compressed (in this case the next extension, .rpi-sdimg) – so what comes before the .bz2 does factor into how Etcher treats it.

And, just to be clear: I'd expect etcher to unzip the .bz2 file, and burn its contents. Not burn the zipped file.

Yup, that's exactly what it does (unzip & flash the contained image)

ahh.. thanks. Understood! looking forward to your fix then :)

@jhermsmeier Was this fixed by #1363 ?

Only partially – there's another check in the GUI, which won't let you select unrecognised images – working on fixing that now.

But presumably that GUI-check will still allow @mpvader 's venus-image-rapsberrypi2.rpi-sdimg.bz2 file to be selected?

@lurch oh yes, right, that should work already now


Add documentation for Optional (issue #370)

I have to continue editing this page, that's the first lines.

@mdulac do you want to keep working on this page in this PR?

Yes, don't merge please. I'm gonna have time to work on it before the end of the week :)

np take your time

How do you think I have to manage the merge with the old gh-pages branch I'm working on ? You use sbt-microsite now and all the yaml pages moved to master. I guess I should have close this PR earlier :)

Finally, I let the optics.md (modified) and optional.md files in gh-pages branches : should be moved to master branch at last

Can you rebase with master and squash all your commits? It might be easier to re-apply your change to master in another branch

Ok, a brand new PR is coming with clean commits

This one can be closed


Drop use of run_tests.py in conda recipes to enable multiprocessing on Windows

Or to phrase this another way: multiprocessing of tests works fine on Windows, and we don't need a separate run_test.py file anymore since running the test suite can be done with the python -m option.

The only Travis failure was on the unrelated test_linalg problem, so I've merged.


[test] Mark string_switch.swift as executable test.

The test might want to be split in two, because it does both checks for
the output of the compilation, and the run time itself, but for now mark
it as executable, so it doesn't break the Android test suite (which
cannot execute tests).
/cc @davezarzycki

@swift-ci please smoke test

@swift-ci please smoke test

https://bugs.swift.org/browse/SR-10180


[Bug] Ratio on HP are taking flat HP instead of total HP

Describe the bug
flat HP (flower main stat) are taking in account instead of max hp.
To Reproduce
Check Lynette for example

fixed on bae746b752441e5e05e8e567ba950702966cd47b.


[Feature Request]: Enhancing Error Handling and Implementing Pagination for Task Management

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Implement improved error handling using Yup for empty task submission and add pagination for efficient display of a large number of tasks.
Record

[X] I agree to follow this project's Code of Conduct
[X] I want to work on this issue
[X] I'm willing to provide further clarification or assistance if needed.

Looks great idea. You can work on this issue. Thankyou for your contribution.


[FEATURE] Improve yuck documentation

I would like to understand what configuration directives actually do.
In "Creating your first window" the directive
  :reserve (struts :distance "40px" :side "top")

is used and while the ":reserve"-keyword is at least rudimentary explained, there is no information at all about what "struts" does.
It may seem obvious to people with experience in X11-programming but if you lack that background-knowledge it remains a mystery that you may have theories about (I assume you have to supply distance and side, but who knows...) but all you really can do is guess and experiment...

while the word struts may be a magical technical word that people don't get (and that should probably be explained, I agree) - the words distance and side should make it pretty clear that you, well, have to specify the distance to a given side, no?


service fails to start

I can't get the service to auto-start on my setup. I followed these instructions in the README
If you want SlowMovie to start automatically when the device is powered on:

sudo cp slowmovie.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable slowmovie

But I see "failed" next to slowmovie when running sudo systemctl to check out what's going on. Am I just doing something wrong? I haven't used services before.

Do you have the exact directory structure for the path? /home/pi/SlowMovie ?

How to use systemd services:
sudo systemctl [start|stop|enable|disable|status] slowmovie
Start, stop, and status are self explanatory. Enable and disable are for autorun.
Log: journalctl -u slowmovie

Just deleted all the service entries and tried the instructions from the README to double check. It worked for me. We might want to add sudo systemctl start slowmovie to the README for people to test that it's working. Info on how to check the log too.

Into what file do I past  these for autostart on power on?  It would be helpful to be more specific in the readme.
If you want SlowMovie to start automatically when the device is powered on:
sudo cp slowmovie.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable slowmovie
It is impressive how much you guys have done in the past few days!

Hey @tkameroski. You actually just run these commands in the terminal, one at a time. We're working on sorting this out and updating the Readme with more specific instructions :)

Do you have the exact directory structure for the path? /home/pi/SlowMovie ?

Yes:
pi@raspberrypi:~/SlowMovie $ pwd
/home/pi/SlowMovie

Log: journalctl -u slowmovie

Thanks a ton! This was what I needed. Running this gave me
Apr 06 18:49:50 raspberrypi systemd[1]: Started Slow Movie Player Service.
Apr 06 19:10:01 raspberrypi python3[367]: Update interval: 120
Apr 06 19:10:01 raspberrypi python3[367]: Frame increment: 4
Apr 06 19:10:01 raspberrypi python3[367]: Playing 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Displaying frame 8 of 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Displaying frame 12 of 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Displaying frame 16 of 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Displaying frame 20 of 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Displaying frame 24 of 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Displaying frame 28 of 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Displaying frame 32 of 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Displaying frame 36 of 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Displaying frame 40 of 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Displaying frame 44 of 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Displaying frame 48 of 'test.mp4'
Apr 06 19:10:01 raspberrypi python3[367]: Traceback (most recent call last):
Apr 06 19:10:01 raspberrypi python3[367]:   File "/home/pi/SlowMovie/slowmovie.py", line 226, in <module>
Apr 06 19:10:01 raspberrypi python3[367]:     frameCount, framerate, frametime = video_info(currentVideo)
Apr 06 19:10:01 raspberrypi python3[367]:   File "/home/pi/SlowMovie/slowmovie.py", line 72, in video_info
Apr 06 19:10:01 raspberrypi python3[367]:     frameCount = int(videoInfo["streams"][0]["nb_frames"])
Apr 06 19:10:01 raspberrypi python3[367]: KeyError: 'nb_frames'
Apr 06 19:10:01 raspberrypi systemd[1]: slowmovie.service: Main process exited, code=exited, status=1/FAILURE
Apr 06 19:10:01 raspberrypi systemd[1]: slowmovie.service: Failed with result 'exit-code'.

I was running an outdated version without .mkv support. When it got to my .mkv file it couldn't crashed. Pulling new code fixed the issue.
Still good to run in to this, to improve the documentation around it a bit.

@tkameroski

We're working on sorting this out and updating the Readme with more specific instructions :)

Updated now!


[Release] Stage to Main

Shipping these PRs to Main:

https://github.com/adobecom/milo/pull/1929
https://github.com/adobecom/milo/pull/1940

@3ch023 added a TODO number 5 to gather all the consumers and add a channel

when I started my shift today there was a PR merged to stage, but there was no PR for main which is already a fail in our process.

FYI, auto PR workflow is still pending: #1950

Both issues have been verified from CC prospective.

intl cookie set once you select region and accept locales. PF screen shot below
Adobe logo present in Stage CC pages in Gnav.
thanks @SilviuLCF

@honstar @3ch023 @mokimo

@3ch023 added a TODO number 5 to gather all the consumers and add a channel in the discussion

Please note that @Blainegunn has created explicit SOT groups that contain all representatives of our T1 consumers, see https://github.com/adobecom/milo/pull/1949/files#diff-3d36a1bf06148bc6ba1ce2ed3d19de32ea708d955fed212c0d27c536f0bd4da7R6
I went ahead and added those SOT teams as reviewers.

ohh thx, I didn't realize we could just add a group as a whole. makes it much simpler

Verified on bacom stage. Looks good to me.


Feature/widesky sync cleanup

Very minor, this is just cleaning up the diff between the two trees… documenting user impersonation (a missed hunk out of the previous change-set), cleaning up some issues that pyflakes spotted in the tests, and generally tidying things up for release.

Coverage remained the same at 39.533% when pulling 8f64531b22e078adfb17122e6a519bfbaa98acdd on vrtsystems:feature/widesky-sync-cleanup into 4719b13588338fffc1d036c65d8369621b8038d1 on ChristianTremblay:develop.


Interaction with items?

Hello,
I really liked this motion list example. So I tried it in an application where the items should be able to react on user inputs like click or write something in a textbox. The problem I am running into is that when i click on the item it starts the animation and i can drag it around, but I cannot click for example a button in this item. Is there a way to achieve this?
best regards

Yes, it is possible.  I don't have the time to knock up a demo now, but I can point you in the right direction.  You need to specify a custom Thumb and mark it with  dragablz:DragablzItem.IsCustomThumb="True".  Then only this part will be drag-able.
A demo aimed at a standard tab control will help you:
https://github.com/ButchersBoy/Dragablz/blob/master/DragablzDemo/CustomHeader.xaml

Great Advice. Easier than I thought. Thanks a lot.