Terraform - Remove the need for region specific reference data

Currently the Terraform code requires reference data (AMI ids, Availability zones) which are specific to a region. This pull request removes that need, by using terraform data sources (aws_availability_zones for availability zones and aws_ami for the ami).

@Atoms can you look?

@ferdegje can you move ami choosing to vars, so people don't need to edit create infrastructure if they want another vendor image

@Atoms done. Please review and approve.

@Atoms made changes to documentation, as suggested. All good now?

@Atoms thanks. Do I need to do anything to get it accepted and merged into kubespray main codeline?

@Atoms sorry for the chase. Can this now be merged?

Waiting on @mattymo to merge


Update measures

This pull request includes numerous changes to the functions in measures and their associated test functions. Briefly, this includes:

Make some minor fixes to the measures functions to make them more efficient
Combine and standardize address fields

Include JSON files with address suffixes and designators abbrevs

Add similarity function for first ID field
Adapt record_similarity to change based on possible max value

@catterbu: ok, taking a closer look at the changes. i wouldn't duplicate files (the 'generics.json`ones) in both tests and ehrcorral. just put them in ehrcorral if they're actually used in the package itself. if there are any files that are only used in tests then put those ones in the tests directory. i think the issue you're having is file pathing. in the tests you need to specify the exact directory of the file...you're potentially running into issues by naming your variable file also, since that's a reserved word.
if you're going to be loading the same files over and over again in your test functions, just define the absolute path to them at the top of the tests file with this sort of method:
current_dir = os.path.dirname(__file__)  # 'tests' directory
generic_abbrevs = os.path.join(current_dir, '..', 'ehrcorral', 'generic_abbrevs.json')

I suspect that's why it says the files can't be found.
Try running the tests on your local computer before pushing to GitHub just to see if the file pathing works. that way things aren't clouded by potential Travis issues (which could be present since this is such a big pull request that incorporates new dependencies like Numpy and other packages that might not be installing correctly on Travis yet, for example). Do:
tox -e py27

to run the unit tests against Python 2.7 only. this will use the Tox configuration I made (which also runs on Travis) to run the tests locally. Make sure you have the ehrcorral virtualenv activate before running that command.

Closing in favor of PR #5, which incorporates some additional fixes.


Create healer-tracker plugin

This plugin simply tracks healer information, and logs it to a file in your .runelite home folder.
This plugin is not rule breaking, as per Mod Ash's tweet: https://twitter.com/JagexAsh/status/1402529156533981191
Edit: Keep in mind that this is my first plugin, it works in a Runelite build, the only things I changed before I threw it in a template were the package names (net.runelite.client.plugins.trackhealers to mmdts.trackhealers). I hope it has no problems.

Added a license. Sorry about that.


Update Ecosystem Page

What changed? Why?
Adds new apps to the Ecosystem page
Notes to reviewers
N/A
How has it been tested?
Localhost

Closes #1275
Closes #1316
Closes #1349

🟡 Heimdall Review Status

Requirement
Status
More Info

Reviews

🟡
0/1

Denominator calculation

Show calculation

1 if user is bot
0

1 if user is external
0

From .codeflow.yml

1

Additional review requirements

Show calculation

Max
0

0

From CODEOWNERS

0

Global minimum
0

Max

1

1

1 if commit is unverified
0

Sum
1


File Permissions aren't in sync between Host and Development server

When files are synced to the remote Host server the permissions are not set properly.
From Development server running hexo deploy:
drwxrwxr-x   2 brad brad 4096 Oct  8 18:34 images
-rw-rw-r--   1 brad brad 5122 Oct  9 20:46 index.html

And how they appear on the host put into a new folder for testing:
drwx------   2 brad brad 4096 Oct  9 23:09 images
-rw-------   1 brad brad 5122 Oct  9 23:09 index.html

This was my fault...  I just had to modify my vsftpd.conf file and change the umask settings.


docs: convert ErrorHandling from .rst to .md

Resolves partially #49997.

@swift-ci please smoke test

@swift-ci please smoke test

I suspect the diff is all red because some functions in the snippets don’t have a closing brace.

Thanks! Why are all the apostrophes and quotes escaped?

That's the behaviour of the tool that I use for conversion. Unfortunately, I'm not sure if it's customizable, and I'd prefer to stay on the safe side in case something actually has to be escaped. Backslashes before apostrophes and quotes have no effect on how those are rendered, so it seems safe to keep them.

@swift-ci please smoke test and merge


Tiling texture works on canvas when replacing textures

Tiling sprite should keep track of texture changes and update the fill pattern when using the canvas renderer
Fixes #4085

Hey @robertbak thanks for putting up this PR!
This change looks good, but it would be great if the PR could hit the dev branch instead of the master branch.

Moving to dev


Merge Kolasu 1.5

I've created this PR because for some reason the build fails locally with Gradle but IDEA doesn't report any errors, so I want to run CI checks before actually pushing this to main.

Alessio, sorry but I just understood now that you are merging the recent changes into main (Kolasu 1.6). I think I did that a couple days ago. I understood that you wanted me to do that based on the conversation we had in https://github.com/Strumenta/kolasu/pull/356. I am sorry for the duplicated work.

Oh OK :)

So, is this good to merge in your opinion?

Yes, thank you for looking into this!


Typo in caniuseData

animationIterationCount is typo'd as anmationIterationCount for some reason.
Will have look into this tomorrow :+1:

Woops, Have never tested this property by now :/
Thanks again for that report and thanks again for fixing it soon?

haha, been a bit busy last couple of days. Will take a look when I can ^^

@kings0c I just quickfixed it, will be published with the end of this week


How can I tell the dropdown that it should render error styling?

Most of the react-native-paper input components take in an error prop which gives the input an error styling. Look at react-native-paper's TextInput component or react-native-paper-dates' DatePickerInput component.
Is there a way to achieve the same with react-native-paper-dropdown?

@JPStrydom You can do it like this:
<DropDown
     ...
     inputProps={{
       error: true|false,
     }}/>

Should be fixed in latest release v2.0.3, did a full refactor of library so docs are in WIP, meanwhile you can check the example folder for demo code.


Add helper text to congregate care question

[ ] Add helper text to congregate care (see screenshot)
[ ] Change "Healthcare" from uppercase to lowercase (Instead of "Work in Healthcare?", it should read "Work in healthcare?")

FYI for @aliciabeckett-gov to prioritize. This recommendation came out of research we did with patients several sprints ago who struggled to understand what "congregate care" means.


Implement Frequency-Based Anomaly Detection (FBAD) BigFunction

This PR introduces a new BigFunction named fdab_anomalies that detects anomalies in datasets based on the frequency of values. This function is designed to help identify rare or unusual occurrences in various types of datasets.

Apologies for the typo in the function name on the first commit.

Due to my mistake, both fdab and fbad were deployed. fdab was a typo and should be removed. Apologies and thank you.

Thanks @TFMV for this great function.
I merged it.
I liked this function very much.
I appreciated the effort to adapt your style with the one of the repo with CTEs and extended description.
I nonetheless took the liberty:

to rename it into rare_values to be more explicit than fdab or fbad
to make the description lighter.

I deployed the function everywhere.
Here is the doc.
I also deployed the opposite function: frequent_values on the 39 public datasets and kept you as author as it is identical. There is the doc.

Thanks so much.


Add support for "has-many-through" relationship

It would be great to have a "has-many-through" relationship in Prisma, similar to Laravel.
The Prisma Client should make this easy for us.
Read this for more info about the "has-many-through" relationship in Laravel.

I think this is a duplicate of https://github.com/prisma/prisma/issues/2186

It is indeed a duplicate for the same problem and solution, and as it has no additional upvotes or comments, I am closing this now.
Thanks for opening the issue back in the day @jferrettiboke!


UIViewcontroller with tableview inside scrolls oddly when using parallax

When using parallax, if I create a UIViewController with a tableview inside as one of the pages, the tableview scrolls it's content when scrolling up (before hitting the top).
In the video below, the first page is a regular tableView which works correctly. The 'top' tab is a UIViewController with a tableView inside and displays how the tableView content is scrolling with the outer scrollView incorrectly.

Hi @cerupcat,
Yes thats a bug! Do you use a standard UITableViewController or a custom UIViewController with a table view as sub-view?
Thanks!

The problem is that the UIViewController's view is not a scrolling-view, so the segmented-pager does not apply a correct behavior to it. The solution would be to specify the correct view that you want to use as a page.
I've applied a correction and you have now two options to get a correct scroll behavior:

First is setting your table-view (or any scrolling view) as the controller's view :

- (void)loadView {
    self.view = self.yourTableView;
}

By this way, the segmented-pager will see the controller's view as a scrolling-view and will apply the right behavior.

Second option is using the correction I've just applied. Your view-controller can now adopt the MXPageControllerDelegate protocol which allows you to use a specific view as page. For example:

@interface YourViewController () <MXPageControllerDelegate>
@end

@implementation YourViewController
- (UIView *)page {
    return self.yourTableView;
}
@end

Your table-view will be used as the page and the right behavior will applied.
Hope this will satisfy your needs.
For standard UITableViewController, UICollectionViewController,... nothing to be done!
Regards,
Maxime.

That's great, thanks for the quick fix! I'll probably go ahead with the second option for now.

Can you bump the podspec when you get a chance so that it updates.

Yes, I will release a new version soon!

Hi @cerupcat
Sorry I didnt build a new pod yet..
But I have been working on a new solution regarding the parallax header category. The previous approach was not very flexible and accurate. The new one, which is a bit more complex, improves the scrolling effect.
If you have time, could you please try it and tell me if you're facing any regression ?
The tip of the iceberg is the MXPageProtocol, but it's really minor on your side if you use it.
Regards,
Maxime


Mobile support

Please add mobile support!
I'd be super grateful!
❤

What do you mean with "mobile support"?
There could be some kind of Responsive design.
Touch input is also missing.
Anything else ?

I meant touch input! Good job.

Added touch support on my fork @mesqueeb @dattn


Update monitoring creator when operating it

Problem:
Monitoring can not be enabled/edited/disabled when the cluster
creator is deleted or disabled.
Solution:
We should change the creator id label in app when the original
one is not validated.
Like we do for app, we will overwrite creator id annotations when
enabling, editing and deleting monitoring.
Related issue https://github.com/rancher/rancher/issues/18787

LGTM

In general, I feel like the right fix for this issue would be to create a system account with a cluster owner privileges. And this system account should be the owner of the monitoring app. In the PR we are doing user id swapping that might not be an ideal fix in a long run as it’s more error prone. With the system account, no swapping is ever needed.


#003 Create our PyPi Package

[x]  Sign in to the PyPI account
[x]  Generate a token to access your account
[x]  Add token to your GitHub repo secrets
[x]  Add python PyPI package deployment GitHub action file
[x]  Update the version ****
[x]  Push/release the changes to the PyPI and do the first test in any other environment

Done


node related types

Hi
please export node-related types, GraphQLESTreeNode.

exported in<EMAIL_ADDRESS>eslint/releases/tag/release-1722277562065


Updated Google Maps & Uber icons

Thanks for your contribution! Published to NPM as<EMAIL_ADDRESS>


pretrained model

Where I can download the pretrained model : SpareNet for KITTI?

@751565516 Sorry we do not have that pretrained model now.
You can use our pretrained SpareNet model on ShapeNet and fine-tune it on the ShapeNet Car dataset. Then use that model for testing on KITTI.


Error on creation second local Environment using Kind

What happened?
While create second environment by kndp env create dest -p 8080, process freeze for few minutes on Joining worker nodes step and fails with error, check below.

How can we reproduce it?

Create fist local env with kndp env create source
Create second env with  kndp env create dest -p 8080

What environment did it happen in?
KNDP version: 0.0.5
Error:
/kndp env create dest -p 8080
INFO Creating environment with Kubernetes engine 'kind'
Creating cluster "dest" ...
 ✓ Ensuring node image (kindest/node:v1.27.3) 🖼
 ✓ Preparing nodes 📦 📦
 ✓ Writing configuration 📜 ✓ Starting control-plane 🕹
 ✓ Installing CNI 🔌 ✓ Installing StorageClass 💾 ✗ Joining worker nodes 🚜Deleted nodes: ["dest-control-plane" "dest-worker"]
ERROR: failed to create cluster: failed to join node with kubeadm: command "docker exec --privileged dest-worker kubeadm join --config /kind/kubeadm.conf --skip-phases=preflight --v=6" failed with error: exit status 1

Command Output: I0311 12:44:56.578995     139 join.go:412] [preflight] found NodeName empty; using OS hostname as NodeName
I0311 12:44:56.579047     139 joinconfiguration.go:76] loading configuration from "/kind/kubeadm.conf"
I0311 12:44:56.579794     139 controlplaneprepare.go:225] [download-certs] Skipping certs download
I0311 12:44:56.579804     139 join.go:529] [preflight] Discovering cluster-info
I0311 12:44:56.579813     139 token.go:80] [discovery] Created cluster-info discovery client, requesting info from "dest-control-plane:6443"
I0311 12:44:56.585849     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 200 OK in 5 milliseconds
I0311 12:44:56.586066     139 token.go:223] [discovery] The cluster-info ConfigMap does not yet contain a JWS signature for token ID "abcdef", will try again
I0311 12:45:01.975010     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 200 OK in 1 milliseconds
I0311 12:45:01.975192     139 token.go:223] [discovery] The cluster-info ConfigMap does not yet contain a JWS signature for token ID "abcdef", will try again
I0311 12:45:07.886795     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 200 OK in 1 milliseconds
I0311 12:45:07.886986     139 token.go:223] [discovery] The cluster-info ConfigMap does not yet contain a JWS signature for token ID "abcdef", will try again
I0311 12:45:13.186391     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 200 OK in 7 milliseconds
I0311 12:45:13.190079     139 token.go:105] [discovery] Cluster info signature and contents are valid and no TLS pinning was specified, will use API Server "dest-control-plane:6443"
I0311 12:45:13.190140     139 discovery.go:52] [discovery] Using provided TLSBootstrapToken as authentication credentials for the join process
I0311 12:45:13.190181     139 join.go:543] [preflight] Fetching init configuration
I0311 12:45:13.190199     139 join.go:589] [preflight] Retrieving KubeConfig objects
[preflight] Reading configuration from the cluster...
[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
I0311 12:45:13.219972     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/namespaces/kube-system/configmaps/kubeadm-config?timeout=10s 200 OK in 27 milliseconds
I0311 12:45:13.233814     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/namespaces/kube-system/configmaps/kube-proxy?timeout=10s 200 OK in 10 milliseconds
I0311 12:45:13.236830     139 kubelet.go:74] attempting to download the KubeletConfiguration from ConfigMap "kubelet-config"
I0311 12:45:13.239460     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/namespaces/kube-system/configmaps/kubelet-config?timeout=10s 200 OK in 2 milliseconds
I0311 12:45:13.242017     139 interface.go:432] Looking for default routes with IPv4 addresses
I0311 12:45:13.242034     139 interface.go:437] Default route transits interface "eth0"
I0311 12:45:13.242126     139 interface.go:209] Interface eth0 is up
I0311 12:45:13.242199     139 interface.go:257] Interface "eth0" has 3 addresses :[<IP_ADDRESS>/16 fc00:f853:ccd:e793::4/64 fe80::42:acff:fe12:4/64].
I0311 12:45:13.242222     139 interface.go:224] Checking addr  <IP_ADDRESS>/16.
I0311 12:45:13.242233     139 interface.go:231] IP found <IP_ADDRESS>
I0311 12:45:13.242245     139 interface.go:263] Found valid IPv4 address <IP_ADDRESS> for interface "eth0".
I0311 12:45:13.242254     139 interface.go:443] Found active IP <IP_ADDRESS>
I0311 12:45:13.249781     139 kubelet.go:121] [kubelet-start] writing bootstrap kubelet config file at /etc/kubernetes/bootstrap-kubelet.conf
I0311 12:45:13.250719     139 kubelet.go:136] [kubelet-start] writing CA certificate at /etc/kubernetes/pki/ca.crt
I0311 12:45:13.251634     139 loader.go:373] Config loaded from file:  /etc/kubernetes/bootstrap-kubelet.conf
I0311 12:45:13.252044     139 kubelet.go:157] [kubelet-start] Checking for an existing Node in the cluster with name "dest-worker" and status "Ready"
I0311 12:45:13.254589     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 2 milliseconds
I0311 12:45:13.255842     139 kubelet.go:172] [kubelet-start] Stopping the kubelet
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet-start] Starting the kubelet
[kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap...

I0311 12:45:53.474394     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
I0311 12:45:53.974488     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
I0311 12:45:54.472665     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 2 milliseconds
I0311 12:45:54.974876     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
I0311 12:45:55.475018     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
I0311 12:45:55.975454     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
I0311 12:45:56.474689     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
I0311 12:45:56.972249     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 2 milliseconds
I0311 12:45:57.475784     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 5 milliseconds
I0311 12:45:57.975188     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp [::1]:10248: connect: connection refused.

I0311 12:47:08.476211     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 5 milliseconds
I0311 12:47:08.975057     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 5 milliseconds
I0311 12:47:09.472484     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 1 milliseconds
I0311 12:47:09.974816     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
I0311 12:47:10.475355     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
I0311 12:47:10.974774     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
I0311 12:47:11.475123     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
I0311 12:47:11.972210     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 1 milliseconds
I0311 12:47:12.475192     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 5 milliseconds
I0311 12:47:12.975547     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 5 milliseconds
I0311 12:47:13.474834     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 4 milliseconds
I0311 12:47:13.975548     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 5 milliseconds
I0311 12:47:14.473381     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 3 milliseconds
I0311 12:47:14.475982     139 round_trippers.go:553] GET https://dest-control-plane:6443/api/v1/nodes/dest-worker?timeout=10s 404 Not Found in 2 milliseconds
nodes "dest-worker" not found
error uploading crisocket
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/join.runKubeletStartJoinPhase
    cmd/kubeadm/app/cmd/phases/join/kubelet.go:222
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run.func1
    cmd/kubeadm/app/cmd/phases/workflow/runner.go:259
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).visitAll
    cmd/kubeadm/app/cmd/phases/workflow/runner.go:446
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run
    cmd/kubeadm/app/cmd/phases/workflow/runner.go:232
k8s.io/kubernetes/cmd/kubeadm/app/cmd.newCmdJoin.func1
    cmd/kubeadm/app/cmd/join.go:179
github.com/spf13/cobra.(*Command).execute
    vendor/github.com/spf13/cobra/command.go:916
github.com/spf13/cobra.(*Command).ExecuteC
    vendor/github.com/spf13/cobra/command.go:1040
github.com/spf13/cobra.(*Command).Execute
    vendor/github.com/spf13/cobra/command.go:968
k8s.io/kubernetes/cmd/kubeadm/app.Run
    cmd/kubeadm/app/kubeadm.go:50
main.main
    cmd/kubeadm/kubeadm.go:25
runtime.main
    /usr/local/go/src/runtime/proc.go:250
runtime.goexit
    /usr/local/go/src/runtime/asm_amd64.s:1598
error execution phase kubelet-start
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run.func1
    cmd/kubeadm/app/cmd/phases/workflow/runner.go:260
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).visitAll
    cmd/kubeadm/app/cmd/phases/workflow/runner.go:446
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run
    cmd/kubeadm/app/cmd/phases/workflow/runner.go:232
k8s.io/kubernetes/cmd/kubeadm/app/cmd.newCmdJoin.func1
    cmd/kubeadm/app/cmd/join.go:179
github.com/spf13/cobra.(*Command).execute
    vendor/github.com/spf13/cobra/command.go:916
github.com/spf13/cobra.(*Command).ExecuteC
    vendor/github.com/spf13/cobra/command.go:1040
github.com/spf13/cobra.(*Command).Execute
    vendor/github.com/spf13/cobra/command.go:968
k8s.io/kubernetes/cmd/kubeadm/app.Run
    cmd/kubeadm/app/kubeadm.go:50
main.main
    cmd/kubeadm/kubeadm.go:25
runtime.main
    /usr/local/go/src/runtime/proc.go:250
runtime.goexit
    /usr/local/go/src/runtime/asm_amd64.s:1598
INFO Installing crossplane ...
ERRO chart already installed with version 1.15.0
INFO Crossplane installation completed successfully!

@evghen7, I've found a solution to the issue we were encountering, but it's not directly related to the kndp CLI itself. Upon investigating, i discovered that the kubelet.service on the worker node was failing to start due to an error - "Failed to allocate directory watch: Too many open files". By adjusting the fs.inotify.max_user_instances (systemctl fs.inotify.max_user_instances=512) on the host, i was able to increase the maximum number of inotify instances allowed per user, which resolved the error. Subsequently, the kubelet service started successfully, and  then  "kndp cli env create dest -p 8080" command worked without any issues.

@ca7alindev Please create "docs/troubleshoot.md" and add there point about that.
Check example here:
https://docs.crossplane.io/knowledge-base/guides/troubleshoot/


How to run

Any tips on how to run this for a Haskell noob?

This has a stack.yaml metadata file for the Stack build tool, so you should be able to follow the upstream instructions to build the project and its dependencies.
This is a relatively simple project that just uses a the Github API to lookup all repos in an organization and run gitstats on each one, dumping the output results to a directory.  It's only a few lines of code and shouldn't be too hard to read and understand.  I'm also a Haskell noob, though, so don't study it as an example of good Haskell code!


[Question] AttributeError: 'Extension' object has no attribute '_needs_stub'

setuptools version
72.1.0
Python version
Python 3.11.1
OS
Ubuntu
Additional environment information
I am running Ubuntu via a Docker image that is based upon Sage 10.3.
Description
I saw issue #3339 -- I believe my scenario is different. I subclass build_ext, and therefore finalize_options() should be called normally. The build works fine during a normal build (pip install .), however using an editable build (pip install --editable .) produces the aforementioned error.
I have a fix for this lined up here. Please let me know if I am good to send in that PR. The install worked for me after changing those lines.
Expected behavior
I expected it to succeed just as it does while not building in --editable mode.
How to Reproduce

Try this Minimum Example subclass (remembering to install --editable):

class zf_cythonize(build_ext):
    base_directives = dict(
         binding=False,
         language_level=3,
    )
    def run(self):
        dist = self.distribution
        ext_modules = dist.ext_modules
        if ext_modules:
            dist.ext_modules[:] = self.cythonize(ext_modules)
        super().run()

    def cythonize(self, extensions):
        # Run Cython with -Werror on continuous integration services
        # with Python 3.6 or later
        from Cython.Compiler import Options
        Options.warning_errors = False

        compiler_directives = dict(**self.base_directives)
        from Cython.Build.Dependencies import cythonize
        return cythonize(extensions,
                         compiler_directives=compiler_directives)

OR:

Clone this repo and checkout a503769a4020b2a189703ce7e070062153ae1a69
Build normally (docker build -t zeroforcing .). This should succeed with no problems.
Change the Dockerfile to add --editable after pip install: sage -pip install --editable zeroforcing/
Rerun and observe the error

Output
docker build -t zeroforcing .

[+] Building 6.3s (7/7) FINISHED                                                                                docker:default
 => [internal] load build definition from Dockerfile                                                                             0.0s
 => => transferring dockerfile: 152B                                                                                0.0s
 => [internal] load metadata for docker.io/sagemath/sagemath:10.3                                                                0.2s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 189B                                                                                0.0s
 => [internal] load build context                                                                                0.1s
 => => transferring context: 77.12kB                                                                                0.1s
 => CACHED [1/3] FROM docker.io/sagemath/sagemath:10.3@sha256:aeefedc716b4f475ddc5f8d8140dbb231868b8a2e5882044845c83d41d1014a5   0.0s
 => [2/3] COPY --chown=sage:sage . ./zeroforcing                                                                                0.2s
 => ERROR [3/3] RUN sage -pip install --editable zeroforcing/                                                                    5.9s
------
 > [3/3] RUN sage -pip install --editable zeroforcing/:
0.797 Obtaining file:///home/sage/zeroforcing
0.798   Preparing metadata (setup.py): started
1.033   Preparing metadata (setup.py): finished with status 'done'
1.068 Requirement already satisfied: setuptools>=60.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from zeroforcing==0.1.1) (69.0.2)
1.069 Requirement already satisfied: sagemath-standard in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from zeroforcing==0.1.1) (10.3)
1.070 Requirement already satisfied: Cython in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from zeroforcing==0.1.1) (3.0.7)
1.114 Requirement already satisfied: sage-conf~=10.3 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (10.3)
1.115 Requirement already satisfied: six>=1.15.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (1.16.0)
1.116 Requirement already satisfied: conway-polynomials>=0.8 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (0.8)
1.117 Requirement already satisfied: cypari2>=2.1.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (2.1.4)
1.118 Requirement already satisfied: cysignals>=1.10.2 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (1.11.4)
1.119 Requirement already satisfied: gmpy2~=2.1.b999 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (2.2.0a1)
1.120 Requirement already satisfied: jupyter_core>=4.6.3 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (5.3.2)
1.121 Requirement already satisfied: lrcalc~=2.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (2.1)
1.122 Requirement already satisfied: memory_allocator in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (0.1.3)
1.123 Requirement already satisfied: numpy>=1.19 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (1.26.3)
1.123 Requirement already satisfied: pkgconfig in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (1.5.5)
1.125 Requirement already satisfied: pplpy>=0.8.6 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (0.8.9)
1.125 Requirement already satisfied: primecountpy in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (0.1.0)
1.126 Requirement already satisfied: requests>=2.13.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (2.31.0)
1.127 Requirement already satisfied: ipython>=7.13.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (8.18.1)
1.128 Requirement already satisfied: pexpect>=4.8.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (4.9.0)
1.130 Requirement already satisfied: sphinx<8,>=5.2 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (7.2.6)
1.131 Requirement already satisfied: networkx<3.3,>=2.4 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (3.2.1)
1.132 Requirement already satisfied: scipy>=1.5 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (1.11.4)
1.133 Requirement already satisfied: sympy<2.0,>=1.6 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (1.12)
1.134 Requirement already satisfied: matplotlib>=3.5.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (3.8.0)
1.134 Requirement already satisfied: pillow>=7.2.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (10.1.0)
1.135 Requirement already satisfied: mpmath>=1.1.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (1.3.0)
1.136 Requirement already satisfied: ipykernel>=5.2.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (6.27.1)
1.137 Requirement already satisfied: jupyter-client in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (8.3.1)
1.138 Requirement already satisfied: ipywidgets>=7.5.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (8.1.1)
1.139 Requirement already satisfied: fpylll>=0.5.9 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (0.6.0)
1.140 Requirement already satisfied: ptyprocess>0.5 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sagemath-standard->zeroforcing==0.1.1) (0.7.0)
1.165 Requirement already satisfied: comm>=0.1.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipykernel>=5.2.1->sagemath-standard->zeroforcing==0.1.1) (0.1.4)
1.166 Requirement already satisfied: debugpy>=1.6.5 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipykernel>=5.2.1->sagemath-standard->zeroforcing==0.1.1) (1.8.0)
1.168 Requirement already satisfied: matplotlib-inline>=0.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipykernel>=5.2.1->sagemath-standard->zeroforcing==0.1.1) (0.1.6)
1.168 Requirement already satisfied: nest-asyncio in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipykernel>=5.2.1->sagemath-standard->zeroforcing==0.1.1) (1.5.8)
1.169 Requirement already satisfied: packaging in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipykernel>=5.2.1->sagemath-standard->zeroforcing==0.1.1) (23.2)
1.170 Requirement already satisfied: psutil in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipykernel>=5.2.1->sagemath-standard->zeroforcing==0.1.1) (5.9.6)
1.170 Requirement already satisfied: pyzmq>=20 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipykernel>=5.2.1->sagemath-standard->zeroforcing==0.1.1) (25.1.1)
1.171 Requirement already satisfied: tornado>=6.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipykernel>=5.2.1->sagemath-standard->zeroforcing==0.1.1) (6.4)
1.172 Requirement already satisfied: traitlets>=5.4.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipykernel>=5.2.1->sagemath-standard->zeroforcing==0.1.1) (5.14.0)
1.222 Requirement already satisfied: decorator in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipython>=7.13.0->sagemath-standard->zeroforcing==0.1.1) (5.1.1)
1.224 Requirement already satisfied: jedi>=0.16 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipython>=7.13.0->sagemath-standard->zeroforcing==0.1.1) (0.19.1)
1.225 Requirement already satisfied: prompt-toolkit<3.1.0,>=3.0.41 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipython>=7.13.0->sagemath-standard->zeroforcing==0.1.1) (3.0.43)
1.226 Requirement already satisfied: pygments>=2.4.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipython>=7.13.0->sagemath-standard->zeroforcing==0.1.1) (2.17.2)
1.228 Requirement already satisfied: stack-data in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipython>=7.13.0->sagemath-standard->zeroforcing==0.1.1) (0.6.3)
1.242 Requirement already satisfied: widgetsnbextension~=4.0.9 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipywidgets>=7.5.1->sagemath-standard->zeroforcing==0.1.1) (4.0.9)
1.243 Requirement already satisfied: jupyterlab-widgets~=3.0.9 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from ipywidgets>=7.5.1->sagemath-standard->zeroforcing==0.1.1) (3.0.9)
1.265 Requirement already satisfied: python-dateutil>=2.8.2 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from jupyter-client->sagemath-standard->zeroforcing==0.1.1) (2.8.2)
1.279 Requirement already satisfied: platformdirs>=2.5 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from jupyter_core>=4.6.3->sagemath-standard->zeroforcing==0.1.1) (4.1.0)
1.288 Requirement already satisfied: contourpy>=1.0.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from matplotlib>=3.5.1->sagemath-standard->zeroforcing==0.1.1) (1.1.1)
1.289 Requirement already satisfied: cycler>=0.10 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from matplotlib>=3.5.1->sagemath-standard->zeroforcing==0.1.1) (0.11.0)
1.292 Requirement already satisfied: fonttools>=4.22.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from matplotlib>=3.5.1->sagemath-standard->zeroforcing==0.1.1) (4.42.1)
1.293 Requirement already satisfied: kiwisolver>=1.0.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from matplotlib>=3.5.1->sagemath-standard->zeroforcing==0.1.1) (1.4.5)
1.295 Requirement already satisfied: pyparsing>=2.3.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from matplotlib>=3.5.1->sagemath-standard->zeroforcing==0.1.1) (3.1.1)
1.340 Requirement already satisfied: charset-normalizer<4,>=2 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from requests>=2.13.0->sagemath-standard->zeroforcing==0.1.1) (3.3.2)
1.341 Requirement already satisfied: idna<4,>=2.5 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from requests>=2.13.0->sagemath-standard->zeroforcing==0.1.1) (3.6)
1.341 Requirement already satisfied: urllib3<3,>=1.21.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from requests>=2.13.0->sagemath-standard->zeroforcing==0.1.1) (2.1.0)
1.342 Requirement already satisfied: certifi>=2017.4.17 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from requests>=2.13.0->sagemath-standard->zeroforcing==0.1.1) (2023.11.17)
1.381 Requirement already satisfied: sphinxcontrib-applehelp in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (1.0.8)
1.381 Requirement already satisfied: sphinxcontrib-devhelp in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (1.0.6)
1.382 Requirement already satisfied: sphinxcontrib-jsmath in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (1.0.1)
1.383 Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (2.0.5)
1.384 Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.9 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (1.1.10)
1.385 Requirement already satisfied: sphinxcontrib-qthelp in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (1.0.7)
1.386 Requirement already satisfied: Jinja2>=3.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (3.1.3)
1.387 Requirement already satisfied: docutils<0.21,>=0.18.1 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (0.20.1)
1.388 Requirement already satisfied: snowballstemmer>=2.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (2.2.0)
1.388 Requirement already satisfied: babel>=2.9 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (2.14.0)
1.389 Requirement already satisfied: alabaster<0.8,>=0.7 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (0.7.16)
1.390 Requirement already satisfied: imagesize>=1.3 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (1.4.1)
1.493 Requirement already satisfied: parso<0.9.0,>=0.8.3 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from jedi>=0.16->ipython>=7.13.0->sagemath-standard->zeroforcing==0.1.1) (0.8.3)
1.498 Requirement already satisfied: MarkupSafe>=2.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from Jinja2>=3.0->sphinx<8,>=5.2->sagemath-standard->zeroforcing==0.1.1) (2.1.4)
1.522 Requirement already satisfied: wcwidth in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from prompt-toolkit<3.1.0,>=3.0.41->ipython>=7.13.0->sagemath-standard->zeroforcing==0.1.1) (0.2.12)
1.620 Requirement already satisfied: executing>=1.2.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from stack-data->ipython>=7.13.0->sagemath-standard->zeroforcing==0.1.1) (1.2.0)
1.620 Requirement already satisfied: asttokens>=2.1.0 in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from stack-data->ipython>=7.13.0->sagemath-standard->zeroforcing==0.1.1) (2.4.1)
1.621 Requirement already satisfied: pure-eval in ./sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages (from stack-data->ipython>=7.13.0->sagemath-standard->zeroforcing==0.1.1) (0.2.2)
2.404 Installing collected packages: zeroforcing
2.405   Running setup.py develop for zeroforcing
5.810     error: subprocess-exited-with-error
5.810
5.810     ├ù python setup.py develop did not run successfully.
5.810     Γöé exit code: 1
5.810     Γò░ΓöÇ> [102 lines of output]
5.810         running develop
5.810         /home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/command/develop.py:39: EasyInstallDeprecationWarning: easy_install command is deprecated.
5.810         !!
5.810
5.810                 ********************************************************************************
5.810                 Please avoid running ``setup.py`` and ``easy_install``.
5.810                 Instead, use pypa/build, pypa/installer or other
5.810                 standards-based tools.
5.810
5.810                 See https://github.com/pypa/setuptools/issues/917 for details.
5.810                 ********************************************************************************
5.810
5.810         !!
5.810           easy_install.initialize_options(self)
5.810         /home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
5.810         !!
5.810
5.810                 ********************************************************************************
5.810                 Please avoid running ``setup.py`` directly.
5.810                 Instead, use pypa/build, pypa/installer or other
5.810                 standards-based tools.
5.810
5.810                 See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
5.810                 ********************************************************************************
5.810
5.810         !!
5.810           self.initialize_options()
5.810         running egg_info
5.810         writing src/zeroforcing.egg-info/PKG-INFO
5.810         writing dependency_links to src/zeroforcing.egg-info/dependency_links.txt
5.810         writing requirements to src/zeroforcing.egg-info/requires.txt
5.810         writing top-level names to src/zeroforcing.egg-info/top_level.txt
5.810         reading manifest file 'src/zeroforcing.egg-info/SOURCES.txt'
5.810         reading manifest template 'MANIFEST.in'
5.810         no previously-included directories found matching 'build'
5.810         no previously-included directories found matching 'dist'
5.810         adding license file 'LICENSE'
5.810         writing manifest file 'src/zeroforcing.egg-info/SOURCES.txt'
5.810         running build_ext
5.810         INFO: Disabling color, you really want to install colorlog.
5.810         Disabling color, you really want to install colorlog.
5.810         Compiling src/zeroforcing/fastqueue.pyx because it changed.
5.810         Compiling src/zeroforcing/metagraph.pyx because it changed.
5.810         [1/2] Cythonizing src/zeroforcing/fastqueue.pyx
5.810         [2/2] Cythonizing src/zeroforcing/metagraph.pyx
5.810         running build_cython
5.810         Enabling Cython debugging support
5.810         Updating Cython code....
5.810         Finished Cythonizing, time: 0.09 seconds.
5.810         building 'zeroforcing.fastqueue' extension
5.810         building 'zeroforcing.metagraph' extension
5.810         Executing 2 commands (using 1 thread)
5.810         [1/2] creating build/temp.linux-x86_64-cpython-311/src
5.810         creating build/temp.linux-x86_64-cpython-311/src/zeroforcing
5.810         gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -g -O2 -fPIC -I/home/sage/sage/local/var/lib/sage/venv-python3.11.1/include/python3.11 -c src/zeroforcing/fastqueue.c -o build/temp.linux-x86_64-cpython-311/src/zeroforcing/fastqueue.o
5.810         gcc -shared -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -Wl,-rpath,/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -L. -Wl,-rpath,. -L/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib build/temp.linux-x86_64-cpython-311/src/zeroforcing/fastqueue.o -L/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -o build/lib.linux-x86_64-cpython-311/zeroforcing/fastqueue.cpython-311-x86_64-linux-gnu.so
5.810         [2/2] gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -g -O2 -fPIC -I/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/data_structures -I/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/cysignals -I/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/cpython -I/home/sage/sage/local/var/lib/sage/venv-python3.11.1/include/python3.11 -c src/zeroforcing/metagraph.c -o build/temp.linux-x86_64-cpython-311/src/zeroforcing/metagraph.o
5.810         gcc -shared -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -Wl,-rpath,/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -L. -Wl,-rpath,. -L/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib build/temp.linux-x86_64-cpython-311/src/zeroforcing/metagraph.o -L/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -lgmp -o build/lib.linux-x86_64-cpython-311/zeroforcing/metagraph.cpython-311-x86_64-linux-gnu.so -lpari
5.810         Time to execute 2 commands: 2.12 seconds.
5.810         Total time spent compiling C/C++ extensions: 2.12 seconds.
5.810         copying build/lib.linux-x86_64-cpython-311/zeroforcing/fastqueue.cpython-311-x86_64-linux-gnu.so -> src/zeroforcing
5.810         Traceback (most recent call last):
5.810           File "<string>", line 2, in <module>
5.810           File "<pip-setuptools-caller>", line 34, in <module>
5.810           File "/home/sage/zeroforcing/setup.py", line 112, in <module>
5.810             main()
5.810           File "/home/sage/zeroforcing/setup.py", line 109, in main
5.810             setup(**get_setup_parameters(extensions))
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
5.810             return distutils.core.setup(**attrs)
5.810                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
5.810             return run_commands(dist)
5.810                    ^^^^^^^^^^^^^^^^^^
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
5.810             dist.run_commands()
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
5.810             self.run_command(cmd)
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
5.810             super().run_command(command)
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
5.810             cmd_obj.run()
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/command/develop.py", line 33, in run
5.810             self.install_for_development()
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/command/develop.py", line 108, in install_for_development
5.810             self.run_command('build_ext')
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
5.810             self.distribution.run_command(command)
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
5.810             super().run_command(command)
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
5.810             cmd_obj.run()
5.810           File "/home/sage/zeroforcing/setup.py", line 43, in run
5.810             super().run()
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage_setup/command/sage_build_ext.py", line 26, in run
5.810             build_ext.run(self)
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 91, in run
5.810             self.copy_extensions_to_source()
5.810           File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 114, in copy_extensions_to_source
5.810             if ext._needs_stub:
5.810                ^^^^^^^^^^^^^^^
5.810         AttributeError: 'Extension' object has no attribute '_needs_stub'
5.810         [end of output]
5.810
5.810     note: This error originates from a subprocess, and is likely not a problem with pip.
5.815 error: subprocess-exited-with-error
5.815
5.815 ├ù python setup.py develop did not run successfully.
5.815 Γöé exit code: 1
5.815 Γò░ΓöÇ> [102 lines of output]
5.815     running develop
5.815     /home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/command/develop.py:39: EasyInstallDeprecationWarning: easy_install command is deprecated.
5.815     !!
5.815
5.815             ********************************************************************************
5.815             Please avoid running ``setup.py`` and ``easy_install``.
5.815             Instead, use pypa/build, pypa/installer or other
5.815             standards-based tools.
5.815
5.815             See https://github.com/pypa/setuptools/issues/917 for details.
5.815             ********************************************************************************
5.815
5.815     !!
5.815       easy_install.initialize_options(self)
5.815     /home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
5.815     !!
5.815
5.815             ********************************************************************************
5.815             Please avoid running ``setup.py`` directly.
5.815             Instead, use pypa/build, pypa/installer or other
5.815             standards-based tools.
5.815
5.815             See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
5.815             ********************************************************************************
5.815
5.815     !!
5.815       self.initialize_options()
5.815     running egg_info
5.815     writing src/zeroforcing.egg-info/PKG-INFO
5.815     writing dependency_links to src/zeroforcing.egg-info/dependency_links.txt
5.815     writing requirements to src/zeroforcing.egg-info/requires.txt
5.815     writing top-level names to src/zeroforcing.egg-info/top_level.txt
5.815     reading manifest file 'src/zeroforcing.egg-info/SOURCES.txt'
5.815     reading manifest template 'MANIFEST.in'
5.815     no previously-included directories found matching 'build'
5.815     no previously-included directories found matching 'dist'
5.815     adding license file 'LICENSE'
5.815     writing manifest file 'src/zeroforcing.egg-info/SOURCES.txt'
5.815     running build_ext
5.815     INFO: Disabling color, you really want to install colorlog.
5.815     Disabling color, you really want to install colorlog.
5.815     Compiling src/zeroforcing/fastqueue.pyx because it changed.
5.815     Compiling src/zeroforcing/metagraph.pyx because it changed.
5.815     [1/2] Cythonizing src/zeroforcing/fastqueue.pyx
5.815     [2/2] Cythonizing src/zeroforcing/metagraph.pyx
5.815     running build_cython
5.815     Enabling Cython debugging support
5.815     Updating Cython code....
5.815     Finished Cythonizing, time: 0.09 seconds.
5.815     building 'zeroforcing.fastqueue' extension
5.815     building 'zeroforcing.metagraph' extension
5.815     Executing 2 commands (using 1 thread)
5.815     [1/2] creating build/temp.linux-x86_64-cpython-311/src
5.815     creating build/temp.linux-x86_64-cpython-311/src/zeroforcing
5.815     gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -g -O2 -fPIC -I/home/sage/sage/local/var/lib/sage/venv-python3.11.1/include/python3.11 -c src/zeroforcing/fastqueue.c -o build/temp.linux-x86_64-cpython-311/src/zeroforcing/fastqueue.o
5.815     gcc -shared -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -Wl,-rpath,/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -L. -Wl,-rpath,. -L/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib build/temp.linux-x86_64-cpython-311/src/zeroforcing/fastqueue.o -L/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -o build/lib.linux-x86_64-cpython-311/zeroforcing/fastqueue.cpython-311-x86_64-linux-gnu.so
5.815     [2/2] gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -g -O2 -fPIC -I/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/data_structures -I/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/cysignals -I/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage/cpython -I/home/sage/sage/local/var/lib/sage/venv-python3.11.1/include/python3.11 -c src/zeroforcing/metagraph.c -o build/temp.linux-x86_64-cpython-311/src/zeroforcing/metagraph.o
5.815     gcc -shared -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -Wl,-rpath,/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -L. -Wl,-rpath,. -L/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib -Wl,-rpath-link,/home/sage/sage/local/lib -L/home/sage/sage/local/lib -Wl,-rpath,/home/sage/sage/local/lib build/temp.linux-x86_64-cpython-311/src/zeroforcing/metagraph.o -L/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib -lgmp -o build/lib.linux-x86_64-cpython-311/zeroforcing/metagraph.cpython-311-x86_64-linux-gnu.so -lpari
5.815     Time to execute 2 commands: 2.12 seconds.
5.815     Total time spent compiling C/C++ extensions: 2.12 seconds.
5.815     copying build/lib.linux-x86_64-cpython-311/zeroforcing/fastqueue.cpython-311-x86_64-linux-gnu.so -> src/zeroforcing
5.815     Traceback (most recent call last):
5.815       File "<string>", line 2, in <module>
5.815       File "<pip-setuptools-caller>", line 34, in <module>
5.815       File "/home/sage/zeroforcing/setup.py", line 112, in <module>
5.815         main()
5.815       File "/home/sage/zeroforcing/setup.py", line 109, in main
5.815         setup(**get_setup_parameters(extensions))
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
5.815         return distutils.core.setup(**attrs)
5.815                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
5.815         return run_commands(dist)
5.815                ^^^^^^^^^^^^^^^^^^
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
5.815         dist.run_commands()
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
5.815         self.run_command(cmd)
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
5.815         super().run_command(command)
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
5.815         cmd_obj.run()
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/command/develop.py", line 33, in run
5.815         self.install_for_development()
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/command/develop.py", line 108, in install_for_development
5.815         self.run_command('build_ext')
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
5.815         self.distribution.run_command(command)
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/dist.py", line 963, in run_command
5.815         super().run_command(command)
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
5.815         cmd_obj.run()
5.815       File "/home/sage/zeroforcing/setup.py", line 43, in run
5.815         super().run()
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/sage_setup/command/sage_build_ext.py", line 26, in run
5.815         build_ext.run(self)
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 91, in run
5.815         self.copy_extensions_to_source()
5.815       File "/home/sage/sage/local/var/lib/sage/venv-python3.11.1/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 114, in copy_extensions_to_source
5.815         if ext._needs_stub:
5.815            ^^^^^^^^^^^^^^^
5.815     AttributeError: 'Extension' object has no attribute '_needs_stub'
5.815     [end of output]
5.815
5.815 note: This error originates from a subprocess, and is likely not a problem with pip.
------
Dockerfile:5
--------------------
   3 |     COPY --chown=sage:sage . ./zeroforcing
   4 |
   5 | >>> RUN sage -pip install --editable zeroforcing/
   6 |
--------------------
ERROR: failed to solve: process "/bin/sh -c sage -pip install --editable zeroforcing/" did not complete successfully: exit code: 1

Hi @alexhutman, I think the preferred solution here is very similar to the one in https://github.com/pypa/setuptools/issues/3339: finalize_options() (and super().finalize_options() if the method is being overwritten) should be called before the command is used.
In principle editable_wheel does call finalize_options of any build command via https://github.com/pypa/setuptools/blob/v72.1.0/setuptools/command/editable_wheel.py#L301 (see https://github.com/pypa/setuptools/blob/v72.1.0/setuptools/_distutils/cmd.py#L303 and https://github.com/pypa/setuptools/blob/v72.1.0/setuptools/_distutils/cmd.py#L111).
So my question is: is the class that you are inheriting build_ext from setuptools itself? Or if now, does that class calls super().finalize_options()? A quick look into https://github.com/sagemath/sage/blob/10.4/src/sage_setup/command/sage_build_ext.py#L20 seems to indicate that this is true...
So, I realised that you are editing the ext_modules property after finalize_options() has already been called. That seems to be the origin of the problem because it puts the command and extension objects in an inconsistent state.
Could you please make sure that you modify ext_modules before finalize_options has been called?

Hi @abravalheri, my mistake -- apologies for the noise. I was looking at this note in the setuptools docs:

Side effects SHOULD only take place when run is executed, for example, creating new files or writing to the terminal output

The code works great now that the Cythonization is in finalize_options(). This makes sense now that you bring up the inconsistent state. Thank you for your help!

You probably could also try to re-run finalize_options() again if you modify the command options/attributes, but I have not checked that.


copr: vectorize HexIntArg

Signed-off-by: mak<EMAIL_ADDRESS>
PCP #5751
What have you changed?
Add vectorized HexIntArg
What is the type of the changes?
Improvement (a change which is an improvement to an existing feature)
How is the PR tested?
Please select the tests that you ran to verify your changes:

Unit test

Does this PR affect documentation (docs) or should it be mentioned in the release notes?
No. It should not change the behavior.
Does this PR affect tidb-ansible?
No

@sre-bot /run-integration-copr-test copr-test=pr/56

/merge


Add full text indexing with Bleve

It's possible?

Yes, when we do start thinking about full-text search, this could be one of the possible solutions. (we've seen the talk at fosdem).

@willnorris  is the bleve code you used on https://opensource.google.com/projects/ open ??
would like to look at how you did it..

@willnorris is the bleve code you used on opensource.google.com/projects open ??

perhaps ironically, no it's not.  Our end-to-end workflow for populating the project directory is pretty specific to Google infrastructure, and likely wouldn't be something we would release.  There may be bits and pieces of our use of bleve that I could release.  I'll look into it.

Has any work been done on this?  I was thinking of working on it, but after a couple hours perusing Perkeep server UI source I still can't figure out how to do something basic like iterate through all images attrs to add to a Bleve index.

I started looking into this myself. One hitch is that bleve has some of its own constraints re: where it wants to keep its storage:
https://github.com/blevesearch/bleve/issues/1137
I don't feel like I understand perkeep's internals well enough to know how much of a problem that inflexibility would be. Do other folks have a sense of this?

I think that issue was more discouraging sharing the index storage between different bleve instances.

Hm, the one snag I still see now is that it doesn't look like the perkeep interface satisfies this bit:

But, second, bleve must be able to perform multiple read operations from the same stable snapshot. This is where most NoSQL solutions have limitations and are not a good fit.

It doesn't look like perkeep's KeyValue interface provides any way of doing multiple reads atomically. I suppose we could just add this to the interface and to each implementation; skimming the source it seems like this should be feasible for all of the existing ones. Thoughts on this approach?

if it's doable for all the backends (or at least the most popular ones, i.e. MySQL and levelDB), then I think it's worth a shot. And actually, it does not even have to be doable for all of them. Instead of adding it directly to the KeyValue interface, it could be an additional optional interface that each implementation satisfies or not. Then having Bleve is just conditioned by whether the user chose one of the compatible indexes, which seems fair enough to me.

I looked a little more closely to convince myself, this should indeed be
quite trivial to add to all of them -- except for the kvfile and buffer
backends, all of them are built on transactional data stores, which
makes this straightforward. kvfile and buffer are already using a lock
internally, easy enough to extend that to this use case.
I can take a stab at this soon. From there we can figure out next steps.

I started some work on this here:
https://perkeep-review.googlesource.com/c/perkeep/+/19266
Per the commit message, it's just stubs & a test; I wanted to get feedback on the interface before going ahead and adding the implementations.

Checking my understanding:

Bleve needs read transactions, but not write.
You can implement read transactions with a https://golang.org/pkg/sync/#RWMutex which won't block on read but will block on write if there are open readers. This is ok as long as users don't expect to be able to write inside a read transaction.

assuming all writes go through the mutex
for all other existing kv impls the underlying store has transactions

That's a good summary of my own understanding, yes.

Correction: bleve does want write transactions, but the API it expects is already very similar to what sorted.KeyValue currently provides; see NewBatch/ExecuteBatch
https://godoc.org/github.com/blevesearch/bleve/index/store#KVWriter
Note however that it doesn't need read-write transactions -- they're either read-only or write-only.

I sat down and implemented the interfaces for the SQL backend(s). still need to do the others.

Now that the read transaction stuff is merged, I started working on implementing bleve's KVStore on top of the new TransactionalReader interface.
It's mostly implemented, but I hit one snag: the KVBatch interface has a 'Merge' method, which I don't think can be implemented straightforwardly on top of the existing sorted.BatchMutation:
https://godoc.org/github.com/blevesearch/bleve/index/store#KVBatch
It needs to be able to base new values on the existing ones, which means it does need to do a read.
Spitballing an extension to the BatchMutation interface, adding a new method:
// Update uses the provided function to modify a key. If the key is not present, the `value` parameter
// will be nil.
func Update(f func(key string, value *string) string)

Thoughts?

Hrm, I'm looking at this and I don't see a nice way to implement that portably on top of the stuff in sorted. the sql backends start (write) transactions on BeginBatch(), so on databases where that means acquiring a lock, if we want to do any reads we have to use the transaction. On the other hand, leveldb has a separate batch write operation, which the current interface maps well to, but doesn't support reads. It does have proper transactions, but there are perf warnings all over it.
Bleve has its own leveldb backend, using the same underlying library as us. What it does for the merges is that it buffers them, and then when doing a commit, first reads the keys that it has merges for, and then adds Set()s to the write batch. It could read a stale value this way, but I guess that's not a problem the way bleve uses it? There's this paragraph in the bleve docs:

KVWriter is an abstraction for mutating the KVStore KVWriter does NOT enforce restrictions of a single writer if the underlying KVStore allows concurrent writes, the KVWriter interface should also do so, it is up to the caller to do this in a way that is safe and makes sense

So maybe we can just buffer the merges, and then after calling CommitBatch, get the values and do the merges, non-atomically?

I went ahead and implemented the non-atomic strategy I described, and moved to next steps of actually hooking this up to bleve, where I hit another wall: The way indices are created seems to only support registering a global driver name and then unmarshalling from a json config, see:
https://godoc.org/github.com/blevesearch/bleve/registry#RegisterKVStore
It seems like not using the local filesystem at all is just a completely unsupported use case; we might be able to beat it into submission, but I'm beginning to think this is not the best approach. My WIP is here:
https://github.com/perkeep/perkeep/blob/af2ecd5e5a3374a8af8b9c35142bc23ed05463a1/pkg/sorted/bleve/kvstore.go
My current thinking is instead we extend the existing Index type in pkg/index to use a bleve index, if available, for full text search. The perkeep config can grow a "bleve" option that specifies the location of bleve's storage. I'm going to start playing around with this approach.
There are other advantages to this beyond just not having to fight with bleve re: where to store the data. For one, it will probably also be faster, both because bleve's default backend doesn't use the pluggable KVStores anyway, and because it means not doing a bunch of conversion between strings and bytes, conversion to hex and soforth to massage sorted.KeyValue into store.KVStore.


IOS 13 Some crash or blank/White screen after capture

With IOS 13, It remains on the white screen after capturing.
React Native version:  0.61.2.

Thanks and sorry for the late response, we will check it!

It's probably related to this:
https://github.com/Woonivers/react-native-document-scanner/blob/5e6ea1c7c5d8444cb177def28cceb19fac02d607/ios/IPDFCameraViewController.m#L374

Hi,
Any update on this matter?

Hi,
Any update on this matter?

We need to change avcapturestillimageoutput to avcapturephotooutput, it's a huge change.

Deprecated: https://developer.apple.com/documentation/avfoundation/avcapturestillimageoutput?language=objc
New: https://developer.apple.com/documentation/avfoundation/avcapturephotooutput?language=objc

@jorgemasta When can you look at it? i'm stuck on this point.
I would be grateful if you are solve this problem.

Hi,
Any update on this matter?

We need to change avcapturestillimageoutput to avcapturephotooutput, it's a huge change.

Deprecated: https://developer.apple.com/documentation/avfoundation/avcapturestillimageoutput?language=objc
New: https://developer.apple.com/documentation/avfoundation/avcapturephotooutput?language=objc

@Michaelvilleneuve

Any updates on this? @jorgemasta @sejas

Im experiencing a similar issue but the full white crash screen is inconsistent. Any update on this issue?


Check received messages

http://cultofmartians.com/tasks/logux-messages-check.html

Looks good. But right now we have too many validation code in messages/*.  Could you create some validator and move checking and error creation there? messages/* should be about sync logic, not validation.

Sure, I agree, will do it soon.

Done. Any other comments? :)
Now it seems that we need to move tests for message validation to validator.test.js. Am I right?

Good question :-/. I will think tomorrow.
Anyway right now it looks pretty good. Well done :+1:

Right now you could fix git conflicts from my today changes :D

Cool 😎
As I see, you've done it already :)

I am still in merging :(


Expose getters / setters for selected index?

I wanted to be able to control the selected index from outside the component if possible. Motivation is dealing with sub pages and parent pages. If I go into a sub page and then back out hitting Escape, I wanted the parent page Item to have focus in the List.
Looks like internally there are a couple of helper methods like updateSelectedByChange and updateSelectedToIndex that I wanted to get access to or be able to pass a prop to the Command component indicating initial Item to be selected/focused.
Thanks for putting this library out, seems to be working well for me so far!

I found a way to achieve this but it is kind of hacky:
export function CommandWithChild({ goBack }: { goBack?: () => void }) {
  const [child, setChild] = useState<JSX.Element>();

  return (
    child || (
      <Command.List
        onKeyDown={(e) => {
          if (e.key == "Escape" && typeof goBack !== "undefined") {
            goBack()
          }
        }}
      >
        <Command.Item
          onSelect={() =>
            setChild(<ListCommand goBack={() => setChild(undefined)} />)
          }
        />
      </Command.List>
    )
  );
}

Good use-case, might expose them under a new hook like const actions = useCmdk().


Add testing for verify proof!

The PR go through the road to successfully verify a simple circuit proof.

remaining todo:

[ ] decode halo2 curve point is a pain.
[ ] lookup testing


Request to add support for Mellow nozzle ADXL

Link to product: https://www.aliexpress.com/item/1005006003342822.html
Link to schematics: https://github.com/Mellow-3D/USB-Accelerometer/blob/main/Hardware/USB Accelerometer Schematic.pdf
[adxl345]
cs_pin: adxl:gpio9
spi_software_sclk_pin: adxl:gpio10
spi_software_mosi_pin: adxl:gpio11
spi_software_miso_pin: adxl:gpio12

Hey! Sorry for the time it took me to work on this. I have released a new version to support this board. Let me know if it works :)


XCode 12 Support

Description
The XCode 12 support is on our roadmap but it might delay a bit because of some other high priority tasks. But Don't worry we are here to help you out. You can use this PR to compile the app using the XCode 12.
Note: There might be some issues in the app because the app is fully supported on XCode 11.

This isn't any longer required because a PR is ready to add the support of Xcode 12.


[fix][broker]Fix removing replica clusters on topic-policies not take effect

Motivation

Fix org.apache.pulsar.client.admin.Topics#removeReplicationClusters not taking effect:  Because we have used HierarchyTopicPolicies to save topic-level policies,  so we shoud  removing policies.getReplicationClusters() != null.

Modifications

Removing  policies.getReplicationClusters() != null when topic-level policies updating

Verifying this change

[x] Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:
(example:)

*Added UT org.apache.pulsar.broker.service.ReplicatorTopicPoliciesTest#testRemoveReplicationClusters

Documentation

[x] doc-not-needed

/pulsarbot run-failure-checks

Also modify the namespace-policy and topic-policy initialization order. PTAL @Jason918

/pulsarbot run-failure-checks

@Technoboy- @codelipenghui PTAL

@gaozhangmin  PTAL


[QUESTION] A few data-related questions

Thanks for providing a new dataset!
Reading the README left me with a few questions, though:

Which language (s) are these data?
Are the training sets annotated? If yes, what type of annotation was used?
Is the Apache-2.0 license valid for the Youtube subset?
Is the Audiobook subset derived from the LibriVox project? If yes, are there any overlaps with LibriSpeech or LibriLight?

--
Thanks,
Aleksandr Laptev

Hey thanks a lot for the questions! We are still finalizing the dataset so things may change... Trying to answer as much as I can:

Language for now is English. But we plan to add support for other languages in the future. We will have to sort out the priorities.
Training set was not manually annotated, we used forced alignment which allows us to work on datasets on a large scale. We did try out best to control the accuracy. Eval set is being manually annotated at the moment.
The Apache2 license only covers the scripts in this repo. As for the dataset, we haven't finalized on the license yet but we would love it to be as open as possible. The constrain/fast is that we don't own the original audio, the original publisher owns it. We only own the derived work, e.g., the segments. Let us know if you have any suggestions on this.
Audiobook subset was derived from the LibriVox project yes. We made sure that it didn't include the LibriSpeech test data, but we didn't go the extra mile to exclude the LibriSpeech or LibriLight training data. So there might be overlaps.

if possible, it would be great to make sure that the original youtube data was released under a creative commons license by the creators, and not the youtube license.

We can't claim right on audio, it will be more like the approach of ImageNet.

what's the approach of imagenet? I'm not familiar with their distribution approach

We updated the README and it's ready for download now. You will have to agree to the Terms of Access.

Since the GigaSpeech dataset has been officially released, the questions listed above are explained in our paper and repo's README.  I'm closing this.


Mobile landing page, contact page

Reply done if you are through with the task

Done

https://www.figma.com/file/U797QSOrHxTqDWjC8f66JX/studebt?node-id=0%3A1
done