mapnik: unstable-2023-11-28 -> 4.0.0

Description of changes

Removed no-longer-needed patches:

datasource-ogr-test-should-fail.patch: Fixed here

Use sparsehash package rather than bundled sparsehash

By introducing a patch (use-sparsehash-package.patch)
Requires adding sparsehash as dependency to python-mapnik

Use protozero package rather than bundled protozero

By enabling USE_EXTERNAL_MAPBOX_PROTOZERO

Use std::filesystem rather than boost:filesystem: Available since here

This is now the default
Requires adding boost as dependency to Tirex as it is no longer inherited from Mapnik

Along with an upstream patch to properly link to it

Fixed macOS/darwin builds

By disabling USE_MEMORY_MAPPED_FILE (only when stdenv.isDarwin)

In addition to not building the demo viewer & in order to save resources, stop building the following dev-related targets:

The demo c++ application

By disabling BUILD_DEMO_CPP

The benchmark project

By disabling BUILD_BENCHMARK

Also:

maintainers: corrected email address
apacheHttpdPackages.mod_tile: Support for Mapnik >= v4.0.0-rc2

Requires a patch to use std::optional rather than boost::optional: Change made here

perlPackages.Tirex: Support for Mapnik v4.0.0
python311Packages.python-mapnik: unstable-2023-02-23 -> unstable-2024-02-22

Requires a patch to use std::optional rather than boost::optional: Change made here

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

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

8 packages built:

apacheHttpdPackages.mod_tile
mapnik
perl536Packages.Tirex
perl536Packages.Tirex.devdoc
perl538Packages.Tirex
perl538Packages.Tirex.devdoc
python311Packages.python-mapnik
python311Packages.python-mapnik.dist

Result of nixpkgs-review pr 304866 run on x86_64-darwin 1

2 packages failed to build:

python311Packages.python-mapnik
python311Packages.python-mapnik.dist

5 packages built:

mapnik
perl536Packages.Tirex
perl536Packages.Tirex.devdoc
perl538Packages.Tirex
perl538Packages.Tirex.devdoc

@sikmir, thank you for the heads up, I have added 61ea447e4763428f106bebde48305f5c14a82b55 in order to address the failures.

@sikmir, thank you for the heads up, I have added 61ea447 in order to address the failures.

       > =========================== short test summary info ============================
       > FAILED test/python_tests/cairo_test.py::test_passing_pycairo_context_png - FileNotFoundError: [Errno 2] No such file or directory: 'images/pycairo/cai...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_svg_surface1 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_svg_surface2 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_svg_surface3 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_pdf_surface1 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_pdf_surface2 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_pdf_surface3 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > ====== 7 failed, 346 passed, 7 deselected, 1 warning in 65.77s (0:01:05) =======

@sikmir, thank you for the heads up, I have added 61ea447 in order to address the failures.

       > =========================== short test summary info ============================
       > FAILED test/python_tests/cairo_test.py::test_passing_pycairo_context_png - FileNotFoundError: [Errno 2] No such file or directory: 'images/pycairo/cai...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_svg_surface1 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_svg_surface2 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_svg_surface3 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_pdf_surface1 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_pdf_surface2 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > FAILED test/python_tests/cairo_test.py::test_pycairo_pdf_surface3 - RuntimeError: Could not load map file: File does not exist of '../data/good...
       > ====== 7 failed, 346 passed, 7 deselected, 1 warning in 65.77s (0:01:05) =======

Also seeing this on aarch64-darwin. Also the commit message of the fix (once it's actually fixed :) needs to be updated.

Result of nixpkgs-review pr 304866 run on x86_64-darwin 1

7 packages built:

mapnik
perl536Packages.Tirex
perl536Packages.Tirex.devdoc
perl538Packages.Tirex
perl538Packages.Tirex.devdoc
python311Packages.python-mapnik
python311Packages.python-mapnik.dist


Update azure-arc-enable-cluster.md

$ az containerapp connected-env create --resource-group $GROUP_NAME --name $CONNECTED_ENVIRONMENT_NAME --custom-location $CUSTOM_LOCATION_ID
Command group 'containerapp connected-env' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus Location 'northcentralusstage' is not currently supported. To get list of supported locations, run az provider show -n Microsoft.App --query "resourceTypes[?resourceType=='connectedEnvironments'].locations"
REMEDIATION:
location info must be passed in az command

Learn Build status updates of commit de9ca81:
:bulb: Validation status: suggestions

File
Status
Preview URL
Details

articles/container-apps/azure-arc-enable-cluster.md
:bulb:Suggestion

Details

articles/container-apps/azure-arc-enable-cluster.md

Line 334, Column 6: [Suggestion: column-header-missing - See documentation] Column headers are required for tables. Add appropriate header text, or remove any extra table cells that cause an extra column.

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.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@cebundy,
Can you review the proposed changes?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

The proposed change has been made in the live article. I'll close this PR now. Thanks!


ListView Color Display Abnormality

When I switch the ListView to dark mode using the following code:
SetWindowTheme(hListView, L"ItemsView", NULL); // DarkMode
The dark mode effect is applied successfully, but all my custom colors are lost. It appears like this:

Hi, you marked this as complete, but you didn't tell us the solution. How did you set the custom colors?


Add B9 PWings Modified to CKAN

What you have here is a .ckan file.
A .ckan file is either a .netkan file but inflated with information inflated via a $kref or a file with all metadata manually entered.

As this is a fork of B9-PWings-Fork you should look at https://github.com/KSP-CKAN/NetKAN/blob/master/NetKAN/B9-PWings-Fork.netkan for an idea of what the metadata should look like.


Visual Basic Information Parsing, PCode detection (READY TO REVIEW)

To be completed.

I've implemented extraction of some VB metada features:

project info
code info
object table dump
extern table dump
guids, COM clsids and other COM related info
and so on.

https://github.com/avast-tl/retdec/issues/138


Lineage calling

Do we want to do this?
If we do, what catalogue(s) of markers do we use, and are there any "benchmark" datasets we can test on?

I think as this is a bit more species-dependent, it might be best to create a separate tool if we want that functionality.


docs: Add IOTA wiki to showcase

Motivation
Added our community wiki to the showcase. Really love the Docusaurus project. Helped us a lot in structuring our documentation and knowledge base.
Have you read the Contributing Guidelines on pull requests?
Yes

Thanks 👍 awesome site :)


escape string in VIRTUAL_ENV path for bash

Fixes issue pypa/virtualenv#53 in bash and shell by using the printf %q "shell quote" formatter, which escapes as appropriate for a given environment. Falls back to quoting some characters that universally need to be escaped. Fallback is needed because there are several printf implementations, not all of which are guaranteed to have the %q formatter (though bash always should).

I did not follow the instructions in contributing.rst - submitting a fixed patch.


What is the problem?

User
111
AI
Cannot convert argument to a ByteString because the character at index 406 has a value of 28009 which is greater than 255.
age. Server closed the connection unexpectedly.
at onclose (Chat.vue:333:1)
at create (fetch.ts:125:17)
sendMessage @ Chat.vue:361
await in sendMessage(异步)
_createElementBlock.onClick._cache.._cache. @ Chat.vue:515
callWithErrorHandling @ chunk-3NMN3MUW.js:1580
callWithAsyncErrorHandling @ chunk-3NMN3MUW.js:1588
invoker @ chunk-3NMN3MUW.js:8198
Show 3 more frames

https://freeimage.host/i/HkD5DPt

I think your cookie string has some non-latin characters in it causing the issue. Regardless, this isn't the correct repo for this issue.


Added the ability to activate the zoom (Android)

I added the ability to enable zooming on Android WebView.
by default it is set to false.
Pop-up zoom control is disabled, dialog is not responding to touch events.
webView.getSettings().setDisplayZoomControls(false);

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
📝 Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.
What to do if you already signed the CLA
Individual signers
* It's possible we don't have your GitHub username or you're using a different email address on your commit. Check [your existing CLA data](https://cla.developers.google.com/clas) and verify that your [email is set on your git commits](https://help.github.com/articles/setting-your-email-in-git/).

Corporate signers
* Your company has a Point of Contact who decides which employees are authorized to participate. Ask your POC to be added to the group of authorized contributors. If you don't know who your Point of Contact is, direct the Google project maintainer to [go/cla#troubleshoot](http://go/cla#troubleshoot) ([Public version](https://opensource.google.com/docs/cla/#troubleshoot)).

* The email used to register you as an authorized contributor must be the email used for the Git commit. Check [your existing CLA data](https://cla.developers.google.com/clas) and verify that your [email is set on your git commits](https://help.github.com/articles/setting-your-email-in-git/).

* The email used to register you as an authorized contributor must also be [attached to your GitHub account](https://github.com/settings/emails).

Googlers can find more info about SignCLA and this PR by following this link.

I signed it!

@amirh I know it is not the right place but I could not find a solution to this problem flutter_plugin_tools, could you help me?

Any news for this feature? The latest version does not support it


removed entry causing offline build errors

@mikeblome,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Include transitive dependencies in SBOM output

Fixes #61

Note the the dependencies are "flat" in that they do not represent which dependencies are dependent on others.  This should be OK for most use cases.  It would be a bit of work to include the additional dependency information.


CTRL + M on Mac not working

CTRL+M is not detected.
I didn't find any reference to existing system or browser shortcuts. Tested on Chrome and Safari.
Anyone got it working?

I just tried it on https://wangchujiang.com/hotkeys/ (Cmd + M or Ctrl + M) and it works as expected.
On Safari, the window is minimized.


Documentation installed app

Describes precisely the steps to create the app to make the installation friendlier for newbies as myself.

Thanks!


Implement feature to update password when receive requirePasswordChange with login API(#3bdgrp)

Closing. Will be done from scratch later in #105 .


Mod. defer close if err != nil

description
in (*NamedStmt)Select(),
I want to exec rows.Close() if error != nil, because if error occurs, connection is not returned to pool immediately.

Pull Request Test Coverage Report for Build 227

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 73.929%

Totals

Change from base Build 224:
0.02%

Covered Lines:
1208

Relevant Lines:
1634

💛  - Coveralls

Isn't rows nil in this case?  I can't see how this doesn't result in a panic.

Isn't rows nil in this case? I can't see how this doesn't result in a panic.

yes, it's my misunderstanding, I'm sorry.
I'll close this PR.


Update dos schemas with maximum price string length

Limits the max and min price strings to 15 characters before the
decimal point.
Related to alphagov/digitalmarketplace-frameworks#153

Looks good once Travis is happy :+1:


Error check / object spread gets transpiled into the wrong order

https://github.com/CanopyTax/single-spa-html/blob/6849095cd4640d17a21695518fa073eceff6ebf9/src/single-spa-html.js#L11
Is getting transpiled in your build to:
opts = Object.assign({}, opts, defaultOpts);
<EMAIL_ADDRESS>Such that the defaultOpts is trumping opts, and therefore the code errors out as it thinks no template is supplied.
Interesting to note, when it's built locally, babel is writing it as
opts = _objectSpread({}, defaultOpts, {}, opts);
which doesn't error. Rebuild/publish required?

Wow that's super weird I have no idea how the 1.0.0 published code ended up having that. I have a prepublishOnly hook that should guarantee that the code in my src directory is always compiled correctly before publish.
Either way, I have fixed this with https://github.com/CanopyTax/single-spa-html/releases/tag/v1.0.1. Thanks for the detailed issue description.


Add option in iterate method to jump files which don't have a TTree

Hello!
In ROOT, when issuing a TChain over many files pointing to a particular TTree, it can happen that one or more of such files are missing it (e.g. a malfunctioning subsystem).
In that case, ROOT will just print that it couldn't find the TTree in such files, and it will allow the macro or script to proceed to work on the rest.
I tried to naïvely use the iterate method to reproduce such TChain, but when the method encounters a file which does not have that particular TTree it crashes with a KeyError.
There are at least a couple of solutions (not elegant, perhaps):

import the whole file for each file and then use only that key
cycle through the files and check if the TTree is there - then concatenate numpy arrays (my current workaround)

It would be much more elegant, though, if the iterate method would be patched with an option which jumps over a file which does not have the required TTree (treepath in the API documentation).
I apologize if this was somewhat already present and I overlooked it.
In the meanwhile, thank you for your work!
Cheers

Sorry, this is just an oversight on my part: I didn't realize that an empty file would have no TTree object, rather than an empty TTree object. Skipping a file that lacks the requested TTree is an easy fix. (The one linked above, which closed the issue.)
Similarly, we could also skip missing files, but I think that could be a bad idea: if you don't have all the files you think you have, it's probably an analysis error that you want to be aware of. So I'll skip a missing TTree (which is given by a single, explicit path) but not a missing file (which might be buried in a file list).
The iterate methods don't do concatenation (you're free to do that yourself) because the purpose of the TTree.iterate method, at least, is to limit the memory footprint. But if you're iterating over all files in order to concatenate them in an array that spans many files, you might be interested in the (undocumented) uproot.numentries function, which quickly scans through a set of files and gives you the total number of entries (or broken down by file if you pass total=False). That way, you can preallocate an array that is just big enough for all your data and avoid doubling the memory footprint in collecting all arrays first and then concatenating. The uproot.numentries function takes shortcuts in reading files to get right at the number of entries.
And I just remembered to put the same check-for-missing TTree into uproot.numentries as uproot.iterate. Thanks for the bug report!

(This will be released as version 3.3.1, but I'm about to get on a plane and want to see the tests pass before publishing a release.)


The value of receptive field

Hi ! Thank you for your great work.
I have a little question. The value of  receptive field in layer4 is 483 in your code. But I find you use resnet50 from torchvision model zoo, it is different with resnet50 from tensorflow slim.   The value of  receptive field in layer4 may be 427 ?

I also calculated resnet50 layer4 receptive field is 427, and layer3 is 267

Hi, I also was curious about these values. When calculating the rf I got the same values. Keep in mind, that the padding is also different as a result. Here are my values for layer3:
layer3.5.conv3 RF: 267 STR: 16 PAD: 133
And layer 4:
layer4.2.conv3 RF: 427 STR: 32 PAD: 213
Here is the code I used to calculate these values:
import torch
import torchvision
import math
model = torchvision.models.resnet50()
print(model)
input_size = 224    # only used to get the output size of the layers
model_structure_list = []
for name, module in model.named_modules():
    if type(module) is torch.nn.modules.conv.Conv2d or type(module) is torch.nn.modules.pooling.MaxPool2d:
        if "downsample" not in name:
            if type(module.kernel_size) is tuple:
                kernel_size = module.kernel_size[0]
            else:
                kernel_size = module.kernel_size
            if type(module.stride) is tuple:
                stride = module.stride[0]
            else:
                stride = module.stride
            if type(module.padding) is tuple:
                padding = module.padding[0]
            else:
                padding = module.padding
            model_structure_list.append((name, kernel_size, stride, padding))
rf = None
st = None
pad = None
for layer_idx in range(len(model_structure_list)):
    layer = model_structure_list[layer_idx]
    if layer_idx == 0:
        rf = layer[1]
        st = layer[2]
        pad = layer[3]
    else:
        rf += (layer[1]-1) * st
        pad += layer[3]*st
        st *= layer[2]
    output_size = math.floor((input_size + (pad*2) - rf)/st + 1)
    print(f"Layer: {layer[0]} RF: {rf} STR: {st} PAD: {pad} Output: {output_size}")


Revert "Revert "Revert "Revert "Revert "Test 2 (#6)" (#7)" (#8)" (#9)…

…" (#10)"
This reverts commit de01e620d46b752b64bc6e6e7e28d882050e44ae.

/cherry-pick testbranch


Add application/yaml section in api-concepts

Description

Kubernetes API server supports YAML (for encoding request bodies, or for a negotiated response format), but the documentation says it does not.
In this PR new section for application/yaml is added and removed the note saying YAML for encoding request bodies is not supported.

Issue

Closes: #48317

/assign

@abhilasha2418 if we split the request and response into separate code blocks, we should make that change to the JSON example as well.

Thanks @sftim, I've addressed your comments!

@dipesh-rawat can you please approve ?

/approve


Directory.watch() doesn't work with runtime Dart 2 semantics

When running the following script with --preview-dart-2:
import 'dart:io';

void main() {
  new Directory('.').watch().listen(print);
}

it produces this error:
Unhandled exception:
type '_BroadcastStream<dynamic>' is not a subtype of type 'Stream<FileSystemEvent>' where
  _BroadcastStream is from dart:async
  Stream is from dart:async
  FileSystemEvent is from dart:io

#0      _FileSystemWatcher._watch (dart:io/runtime/binfile_patch.dart:112:69)
#1      FileSystemEntity.watch (dart:io/file_system_entity.dart:489:33)
#2      main (file:///home/nweiz/test.dart:4:22)
#3      _startIsolate.<anonymous closure> (dart:isolate/runtime/libisolate_patch.dart:279:19)
#4      _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:165:12)

Tested with Dart 2.0.0-dev.52.0.

This blocks getting some third-party packages to be Dart 2 compliant.

The CL https://dart-review.googlesource.com/c/sdk/+/53696 which is under review should address this issue. Will close the issue once the CL lands and cycles through the bots.

CL has landed.


Updated Ruby User's Guide link

What does this PR do?
Improve Repo
Ruby User's Guide was pointing to a "Page not found" location (as described in issue #3448 ) but ruby-doc.org hosts almost 1:1 version of that same document so I updated the link to point there.

Thanks, and welcome to free-programming-books!

Thanks @eshellman !


failed to update cadfaelbrew from GitHub

Cadfael installation is failed:
$ ./cadfael-installer
[cadfael:info] Detected 'Linux' Operating System
[cadfael:info] Distribution 'Ubuntu (14.04)'
[cadfael:info] in doCheckSystemSoftware Ubuntu-14.04
[cadfael:info] System supported
[cadfael:info] Checking system software for Ubuntu 14.04
[cadfael:info] Checking for install of deb 'build-essential': 11.6ubuntu6 install ok installed
[cadfael:info] Checking for install of deb 'curl': 7.35.0-1ubuntu2.5 install ok installed
[cadfael:info] Checking for install of deb 'git': 1:1.9.1-1ubuntu0.2 install ok installed
[cadfael:info] Checking for install of deb 'm4': 1.4.17-2ubuntu1 install ok installed
[cadfael:info] Checking for install of deb 'libbz2-dev': 1.0.6-5 install ok installed
[cadfael:info] Checking for install of deb 'libcurl4-openssl-dev': 7.35.0-1ubuntu2.5 install ok installed
[cadfael:info] Checking for install of deb 'libexpat-dev':  unknown ok not-installed
[cadfael:info] Checking for install of deb 'libncurses-dev':  unknown ok not-installed
[cadfael:info] Checking for install of deb 'ruby2.0': <IP_ADDRESS>4-1ubuntu2.2 install ok installed
[cadfael:info] Checking for install of deb 'texinfo': 5.2.0.dfsg.1-2 install ok installed
[cadfael:info] Checking for install of deb 'zlib1g-dev': 1:1.2.8.dfsg-1ubuntu1 install ok installed
[cadfael:info] Checking for install of deb 'libx11-dev': 2:1.6.2-1ubuntu2 install ok installed
[cadfael:info] Checking for install of deb 'libxpm-dev': 1:3.5.10-1 install ok installed
[cadfael:info] Checking for install of deb 'libxft-dev': 2.3.1-2 install ok installed
[cadfael:info] Checking for install of deb 'libxext-dev': 2:1.3.2-1ubuntu<IP_ADDRESS>.1 install ok installed
[cadfael:info] Checking for install of deb 'libpng12-dev': 1.2.50-1ubuntu<IP_ADDRESS> install ok installed
[cadfael:info] Checking for install of deb 'libjpeg-dev': 8c-2ubuntu8 install ok installed
[cadfael:info] Checking basic network connectivity
[cadfael:info] Cloning 'cadfaelbrew.git' into /home/victor/supernemo/cadfael-installer.git/Cadfael.git
Cloning into '/home/victor/supernemo/cadfael-installer.git/Cadfael.git'...
remote: Counting objects: 315805, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 315805 (delta 0), reused 0 (delta 0), pack-reused 315801
Receiving objects: 100% (315805/315805), 61.29 MiB | 244.00 KiB/s, done.
Resolving deltas: 100% (237865/237865), done.
Checking connectivity... done.
[cadfael:info] setting up brew
[cadfael:info] System ruby (/usr/bin/ruby) version : 2.0
[cadfael:info] Updating cadfaelbrew
/home/victor/supernemo/cadfael-installer.git/Cadfael.git/bin/brew: 41: exec: -P: not found
ruby is /usr/bin/ruby: not found
[cadfael:error] failed to update cadfaelbrew from GitHub
What is wrong?

Thanks for the report - this was somehow missed in testing. The cause is that Ubuntu's underling sh implementation is very limited and does not provided the -P argument to type.
This is fixed upstream in SuperNEMO-DBD/cadfaelbrew@a8c5927c
You can rerun the installer directly, though you'll need to remove the Cadfael.git subdirectory first. As all the bootstrapping has completed, you could also do:
$ cd /home/victor/supernemo/cadfael-installer.git/Cadfael.git
$ ./bin/brew update
$ ./bin/brew doctor
... This may issue warnings about PATH, but these can be ignored
$ ./bin/brew install cadfael
... If that completes ok, then
$ ./bin/brew install bayeux falaise

Thank you
Everything passed smoothly, without any warning.


Move all methods to v1

As a prerequisite to #3960, following the failure of #4516, I think we should, for all methods:

bump API_VERSION: ApiVersion = ApiVersion::V1 if possible.

This should be done in parts, as our tests will break when we come across incompatible methods.
Adding support back in for V0 should be a future task.
This is necessary for producing an up-to-date Common Node API spec - we must be confident that all methods are V1, so we should prioritize Common Node API methods

FYI, as of CI in https://github.com/ChainSafe/forest/pull/4448 run, all RPC methods were V1 compatible


Add record support for query parameter

Description:
$subject

This is fixed via https://github.com/ballerina-platform/ballerina-standard-library/issues/4152
See this comment: https://github.com/ballerina-platform/ballerina-standard-library/issues/4152#issuecomment-1452957717


Add guides about coordinate system

Checklist

[X] I've read the contribution guidelines.
[X] I've searched other issues and no duplicate issues were found.
[X] I've agreed with the maintainers that I can plan this task.

Description
Current coordinate-system.md  in directory is empty.
I plan to write a guideline about coordinate system.
Purpose
Write a guideline about coordinate system.
Possible approaches
I plan to write the following:

The coordinate system in Autoware(for example map, base_link, sensor coordinate system).
An example of how to use TF2 for coordinate transformation in Autoware.

@kenji-miyake  Do you have any advice?
Definition of done
TO DO!

@cyn-liu I think you can refer to these documents.
https://autowarefoundation.github.io/autoware-documentation/main/design/autoware-interfaces/components/vehicle-dimensions/
https://www.ros.org/reps/rep-0105.html

@mitsudome-r Hello:
When I write the tutorial of coordinate system , I encountered some problems:
what is the difference of the camera_link and camera_optical_frame?

This image shows the difference between the camera link and camera optical.
Check: https://youtu.be/A3nw2M47K50?t=533


APEXMALHAR-2428 CompositeAccumulation for windowed operator

@chinmaykolhatkar Please review and merge

@chinmaykolhatkar applied comments, please review


Update customer branch with changes in main

FEATURE: Update customer branch
Name of Branch: main
Pull Request Checklist

[x] Is it working?
[ ] Are there no conflicts in the merge request?
[x] Did the code follow the Coding Conventions?
[ ] Did your local tests pass without any errors?

Features and Additions
(add or delete as many as necessary)\
Feature: Update
Description: Customer is 39 commits behind. Update is needed.
Issues
(add or delete as many as necessary)\
Issue:
Description:

Customer updated with main. continue changes as usual.


Help!!! How to save the current training checkpoint in colab

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
mac os
Python Version
3.7
MediaPipe Model Maker version
No response
Task name (e.g. Image classification, Gesture recognition etc.)
objc dect
Describe the actual behavior
Help!!! How to save the current training checkpoint in colab
Describe the expected behaviour
Help!!! How to save the current training checkpoint in colab
Standalone code/steps you may have used to try to get what you need
When I use colab to run the following code for training

model = object_detector.ObjectDetector.create(
train_data=train_data,
validation_data=validation_data,
options=options)

When colab runs for more than 12 hours, all the data is cleared and training can no longer continue. Can anyone help me save the training progress so that I can continue training at the original progress next time? Is there any relevant code for reference? I haven't found an effective solution yet....

Other info / Complete Logs
When I use colab to run the following code for training

model = object_detector.ObjectDetector.create(
train_data=train_data,
validation_data=validation_data,
options=options)

When colab runs for more than 12 hours, all the data is cleared and training can no longer continue. Can anyone help me save the training progress so that I can continue training at the original progress next time? Is there any relevant code for reference? I haven't found an effective solution yet....

Hi @ZFbaby,
We currently do not offer a direct API for this functionality, but you can achieve the desired behavior through custom code. Please refer to the create_method and replicate the function calls, excluding train_model and save_float_ckpt. After initializing the ObjectDetector instance without the training step, you can load the model using restore_float_ckpt.
Note that this approach requires using the same hparms.export_dir from the initial training run where the float checkpoint was saved. To avoid this dependency, you can modify the restore_float_ckpt method with the following custom code:
self._model.load_checkpoint(
    <INSERT CUSTOM PATH>,
    include_last_layer=True,
)
self._model.compile()
self._is_qat = False

For further clarification, please refer to the related issue https://github.com/google-ai-edge/mediapipe/issues/5522.
Thank you.


Fluent forward support

Extend the fluent forward exporter to support the TC -> LO use case.
Current limitations:

forwarding resource attributes
forwarding pod labels as a nested map

Extras:

namespace labels
host labels

https://github.com/kube-logging/telemetry-controller/pull/65


Typo in README

In the Rendering Consecutive Views section of the README the template for the SomeItem view is set to "#list" and the template for the SomeList view is set to "#item". This feels like its the wrong way round and is a bit confusing.
// An example item View
// You may find it easier to have Backbone render the LI/TD/etc element
// instead of including this in your template.  This is purely convention
// use what works for you.
var SomeItem = Backbone.View.extend({
  template: "#list",

  // In this case we'll say the item is an <LI>
  tagName: "li"
});

// The view that contains the <ul> <table> w/e is used to contain your element.
//
// Since this method is used inside a custom render method, LayoutManager.View
// isn't useful for rendering a collection list.
var SomeList = Backbone.View.extend({
  template: "#item",

  render: function(layout) {
    // Assign the layout view custom object to the view variable
    var view = layout(this);

    // Iterate over the passed collection and create a view for each item
    this.collection.each(function(model) {
      // Pass the model to the new SomeItem view
      view.insert("ul", new SomeItem({
        model: model
      }));
    });

    // You still must return this view to render, works identical to the
    // existing functionality.
    return view.render();
  }
});

Good catch, pull request welcome to patch this.


B 17975 customer submitted final ppm email

Agility ticket
Summary
This branch sends an email to a service member once they've uploaded their final PPM documentation (i.e. after they have completed their move).
Since #11729 has been merged, but the full epic is not complete, the email template conditionally uses the City and State from the PPM if it is available, and falls back to using the ZIPs if that is the only data provided.
I added and marked the new pickup/destination_address_id fields in the PPMShipmentModel as optional, since work is not yet fully complete on that epic.
How to test

Run the server with the following command to activate sending emails through local dev:
EMAIL_BACKEND=ses AWS_REGION=us-gov-west-1  aws-vault exec transcom-gov-dev -- make server_run

Access the "testharness scenarios" page from milmovelocal:3000

Select the MoveWithPPMShipmentReadyForFinalCloseout option to create a move at the final stage with all needed receipts/docs already uploaded.

Login as that new user (it will always be the top result on the user list if you haven't done anything else after creating).

Before uploading, click "edit" next to step 1 "Profile". In the first section, edit your email to be your CACI email (if you're in the local dev env, you can have as many users pointing to the same email as you want).Screenshot 2024-01-11 at 5.43.42 PM

Now click "Upload PPM Documentation", you should see all fields already filled out.

Once you proceed and sign your name, you should get an email shortly.

This scenario create an ARMY service member. If you want to test the other templates for air/space force, and the naval branches of service, you'll have to go through the entire process manually. (Submit PPM Move -> Login as SC and approve -> Login as TOO and approve if needed -> Login as user and complete step 5)
Backend

[x] Code follows the guidelines for Logging.
[x] The requirements listed in Querying the Database Safely have been satisfied.

Email body, "city, state" to "city, state" text.  There's no space between the "," and the "state" i.e. its all jammed together.

email, text body:  in the epic example email, "assigned move code" is bolded.  Should the final email be bolded too?

email, text body:  "Next Steps".  Its not bolded in the draft.

email, text body: "Next Steps". Its not bolded in the draft.

fixed.  :)

email, text body: in the epic example email, "assigned move code" is bolded. Should the final email be bolded too?

fixed

Email body, "city, state" to "city, state" text. There's no space between the "," and the "state" i.e. its all jammed together.

fixed.  :)

Closing in response to new dev process in effect starting today.


Downgrade Sorald's version so that Repairnator compiles again on Java 8

Sorald no longer supports Java 8 (see https://github.com/SpoonLabs/sorald/issues/371
This change is meant to be temporary and be reverted after we drop support for Java 8.

We can do that temporarily, esp since @khaes-kth is working on his fork.
However, CI is red.

Yes, Java VM is crashing during TestPipelinebGithubMode. I'm trying to fix it.

I think @javierron had found a workaround for this problem. However, I am fine with downgrading for now. Later we will probably need to change it back to the latest version.

I think @javierron had found a workaround for this problem. However, I am fine with downgrading for now. Later we will probably need to change it back to the latest version.

As of know, we can compile it. The problem would be with the tests, particularly Nopol, and I was also getting some issues with the junit plugin (probably just needs an upgrade).

Yes, Java VM is crashing during TestPipelinebGithubMode. I'm trying to fix it.

I changed Sorald's version. The one I was using was making the VM run OOM, I think it should be green after it runs everything now.

I think @javierron had found a workaround for this problem.

As of know, we can compile it.

Yes, I managed to compile it without problem, but also had to revert because Astor + GZoltar were not behaving correctly with java 11.

Thanks a lot @andre15silva this is not anymore a blocker for the other parallel PRs.
Yet, we all agree that #1186 is the highest priority task now. WDYT?

Yet, we all agree that #1186 is the highest priority task now. WDYT?

Sounds good. I'll work on that straight away, while merging NPEFix refactor too.

deployed 17f106c8e7b3aea25542966410c0b26c2e6c2e43-SNAPSHOT/ corresponding to 17f106c8e7b3aea25542966410c0b26c2e6c2e43 as a workaround for the java 8 problem in Repairnator

FTR, the workaround seems successful: https://github.com/eclipse/repairnator/pull/1192


Failed to construct 'Worker'

When i open the simple.html script that error appears on the inspector.
Uncaught DOMException: Failed to construct 'Worker': Script at 'webcodecamjs-master/js/DecoderWorker.js' cannot be accessed from origin 'null'.
at Object.init (webcodecamjs-master/js/webcodecamjs.js:586:28)
at webcodecamjs-master/simple.html:24:40

try running as app/html file via local server instead of opening .html file.
python -m SimpleHTTPServer


X11 grabber as service

Hello, I am trying to start the X11 grabber as service on Ubuntu Desktop 14.04 but I am getting:
"Failed to open the default X11-display"
What variables are required for starting X11 as a service running as root? Adding:
"export DISPLAY=:0"
does not seem to work either...

Just run the grabber as part of your user's login process, if you're using a desktop environment, it should have a GUI for adding startup programs, otherwise you might add it to ~/.xinitrc.  This is a general Linux question, rather than hyperion-specific.

Closed due to age. Please open a new one, if problems still exists.
Thank you


Docusign Setting "iat" parameter in C#

Hello,
Currently DocuSign client is setting current system time as "iat" parameter. This causes issue when system time is not correct. As this is not required parameter from DocuSign we would like to know how to set it to null ?
Thanks.

@sameedaris According to the code
IssuedAt = DateTime.UtcNow,
According to Microsoft UtcNow
Gets a DateTime object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
I would advise making sure your server time is correctly synced
You can not set it to NULL, this value will be assigned at run time based on your server time

This is reply from docusign support:
After reviewing with my internal team, this error appears to be caused by an incorrect server time.  In order to resolve, your client will need to ensure their server clock is correct & synced.  Otherwise, should the time be correct, it may help to manually build in some slack such as "current time - 5 minutes" or not setting the 'iat' parameter as it is not required, unlike the 'exp' parameter which is required.

@sameedaris RequestJWTUserToken method requires only expiration time. "iat" is set in the method itself  IssuedAt = DateTime.UtcNow at run time and is using server time. You can not set it to NULL or alter it. I am really not sure what manually build in some slack such as "current time - 5 minutes" means.

I assume you can manually build your assertion and directly call the auth endpoint but because you have opened an issue here I guess you plan to use the SDK client

Thanks  All the help @ivdinkovds .

Closing this issue as it has been already resolved. Thanks


f32::log2 very slow on Windows

For some reason the f32::log2() function, which is used a lot through bin_cost is very slow on Windows. I collected some data with Intel VTune running the following benchmark:
bench -i .\data\binary --input-format binary --codecs pco:level=8,pco:level=0 --iters 100 --dtypes f16,f32,f64

Here's a bottom-up view of the time spent in various functions:

We can see that more than 8 seconds (14% of the total time) is spent in fdlog. By comparison, if we change from f32::log2() to f32::log(2.0), which calls logf instead of fdlog, only about 0.7 second (1.4% of the total time) is spent getting the base-2 log.
Here's the bottom-up view when using f32::log(2.0) instead:

The issue can be reproduced on my AMD 5900X and Intel 1370P, both running Windows 11. On Linux this doesn't not appear to be an issue.
I'm not sure what the best remedy is. We could simply replace f32::log2() with f32::log(2.0) for Windows.

I tried out .log(2.0) on Mac, aarch64 with compression level 12 (where this hot loop is most hit), and it was 7% slower (logf vs log2f system calls). So yeah, unfortunately it makes sense to switch on OS.
Another more radical thing we could do is write our own (less precise) log2 function. Though I'd argue it's not worth the effort or complexity.

If an approximate log2 function provides a meaningful performance improvement, I think it's probably worth it. At least if it's just a simple function with <50 lines of code.
For compression level 12 it looks like we can get a +10% reduction in time for simple_compress if we use an approximate log2 that's 2-3x faster than the current. However, I don't know if we can get one that's accurate enough and I don't know what the requirements for accuracy are.

I think it's possible, and we might only need ~2-3 sig figs of precision (6-9 bits). It's used in bin optimization, where we decide which groups of adjacent bins to combine, based on estimated total bit cost. But whoever does this would need to think very carefully to ensure that the function:

is monotonic
doesn't give any confusing behavior where higher compression levels mistakenly optimize to be worse due to accumulated rounding errors


Sometimes creating a new instance does not reply with connect for a "while"

If I call poplib in a loop to create an instance, listen to connect, do a login, call list and retrieve messages and quit after that, it works in 99% of the cases.
But sometimes the new operator seems to get stuck and does not even show "connect" event in debug output. It takes about 20 to 30 seconds, and after that - without any error message - the flow continues normally.
Have you experienced something like that?

experiencing this more and more often and kinda stuck on finding a way around it, how were you able to resolve this?


Custom Helper methods

Hi,
I would like to create various helper methods for using Rails + Backbone + HAML coffee.
In Handlebars I have a general application_helper.js.coffee file which looks something like this:
do (Handlebars, Routes) ->
Handlebars.registerHelper 'something', (a, b)->
"#{a} #{b}"
Is there something similar in haml coffee?
Thanks a lot!

See #25


Hardware requirements and setup time

Hi all,
Not really an issue as such, but I haven't found any user or developer forums for MMT. I have three basic questions:

What are the recommended and minimum hardware specs for running the MT engine?
How much effort is it to setup the system when starting from scratch?
And finally, how does it compare to other systems (Moses, Phrasal, Apertium) in terms of performance? (I know there is variety of factors influencing this, but maybe someone has experience with a comparative evaluation of these systems)

Thanks a lot.
Cheers,
Martin

Martin,
HW:
On the INSTALL.md file you will find the hw requirements in relation with the amount of data.
I personally use 16core, 30GB RAM for models of ~100M words.
Effort:
If you have your data in TMX or line aligned text files. You will be running an engine in few hours.
./mmt create en fr data-folder/

Compare:
run
./mmt evaluate

And it will tell you exactly how your engine performs compared to Google.
If you have even a small amount of in domain data it will easily be better than Google.
I hope this answer your questions.

Hi Marco,
Thanks so much for the superfast reply. This sounds all very good.
Apologies, I somehow missed the install.md file. Should've looked more
closely.
Cheers,
Martin
Am 30.11.16 um 21:28 schrieb Marco Trombetti:

Martin,
HW:
On the INSTALL.md file you will find the hw requirements in relation
with the amount of data.
I personally use 16core, 30GB RAM for models of ~100M words.
Effort:
If you have your data in TMX or line aligned text files. You will be
running an engine in few hours.
|./mmt create en fr data-folder/ |
Compare:
run
|./mmt evaluate |
And it will tell you exactly how your engine performs compared to Google.
If you have even a small amount of in domain data it will easily be
better than Google.
I hope this answer your questions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ModernMT/MMT/issues/203#issuecomment-263985875,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC92L2v3MJi0PTblhnWsXEbUsk57f4YNks5rDdx7gaJpZM4LAoZx.

Happy to hear that, let us know how things goes.


Tweak some of the import(s)

Avoid late importing modules that we can just import at the
normal top of file time (late importing doesn't seem to add
any benefit and IMHO makes the code harder to understand).
Also order more of the imports to follow the standards where
they are typically ordered alphabetically (with stdlib modules
being before other modules and the library itself being last).

r+, looks fine


IE8: the Youtube widget on the homepage is not IE8 friendly

The javascript it includes from ytimg.com causes an error.

I've just seen that this is deliberate


Update it.coffee

Coverage increased (+0.007%) to 56.365% when pulling 79c522c8ac7a483283aa0ce607c0ef0e78b4cb36 on LionHear7:master into df99397f1b0eb78f8c4f72612aaa86f6dfd4f288 on codecombat:master.

Coverage remained the same at 56.358% when pulling 3c6574230fc90cf25e9d893d191f48c331066db5 on LionHear7:master into df99397f1b0eb78f8c4f72612aaa86f6dfd4f288 on codecombat:master.

Coverage remained the same at 56.358% when pulling a51e8e75bc7e47477dce64d89f02d34cb7711b13 on LionHear7:master into df99397f1b0eb78f8c4f72612aaa86f6dfd4f288 on codecombat:master.

Coverage increased (+0.01%) to 56.373% when pulling a1a4425e48e28fad1ecf99bafd1e5146b10b680a on LionHear7:master into df99397f1b0eb78f8c4f72612aaa86f6dfd4f288 on codecombat:master.

Awesome, @LionHear7 😄! Thank you for your contribution 👍


Why must progLabels have the same number as there are steps?

The progLabels must be declared with the same number of elements as there are steps, which is kinda... odd, because the last one would always uses the 'finalText'. For example, if there are 3 steps, I would declare the progLabels such that:
  config: CoolStepperConfig(
    backText: "PREV",
    finalText: "Complete!",
    progLabels: [ "Test1", "Test2", "Test3" ]
  ),

The first step would use the "Test2", so why do I need to declare "Test1"?

@FaridAhamat You can try the latest version of the package cool_stepper: ^1.1.3
I removed the progLabels and introduced two new properties 'backTextList' and 'nextTextList'.
The backTextList is a string list and is meant to override the backText, the length must be one less than the number of steps since for the first step, the backText won't be visible.
The nextTextList is also a string list and is meant to override the nextText, the length must be one less than the number of steps since the 'finalText' attribute is able to set the value for the final step's next button.
I hope this helps. If it does not, feel free to repopen the issue


Remove routing chapter and distribute it to component chapters

Remove component prefaces
"Update App.tsx" -> "Routing"


NIFI-13114: Only showing the primary node indicator when the node is clustered

NIFI-13114:

Only showing the primary node indicator when the node is clustered.
Making this consistent between the canvas and the summary table.

Will review

Just discussed this more with @rfellows offline. Considering we allow for configuring primary node only execution and support filtering for this in the Summary page, it makes more sense to always show the primary node icon if configured. Updating this PR to reflect this and do some additional clean up.


Update README.md - Add monthly downloads badge

Added a badge displaying the monthly download count from pip Trends. You can view more details at - https://piptrends.com/package/pyasn1-modules
There are more badges and widgets, you can view them here - https://piptrends.com/widgets/pyasn1-modules
(If necessary, the link from the badge to the package's pip Trends page can be removed. We just want to showcase a badge we have created.)

A colleague of this person tried to open this exact PR against a project I'm the maintainer for as well (https://github.com/ixmatus/inflector/pull/16). This is a promotional campaign and they (or colleagues) appear to be doing it on reddit too, I think this is suspicious activity. They are creating an external dependency on a web property that (as far as I can tell) is not officially blessed by pypi. I recommend rejecting this PR.
Users can get package statistics from libraries.io which is linked to directly by pypi itself.

Thank you for your feedback and concerns. I'd like to clarify that this is not a promotional campaign. As stated in the PR description, our intention is simply to share a tool we have developed, which we believe could be beneficial to the community.
Our badge system offers highly accurate statistics, which is why we wanted to make it available. If the link to the pip trends page is a concern, we are more than willing to remove it.
We respect your decision if you prefer not to add more badges to your README. Our primary goal is to address any misunderstandings and assure you that this is a genuine effort to contribute to the open-source community by sharing our work on GitHub.
Thank you for considering our contribution.

I'm very suspicious as well and suggest to not land this PR.


Added Kafka Consumer Example

PR to add a Kafka consumer example along with the application.properties to get it to run
Instructions for running example in comment in example file

@nicolaferraro and @lburgazzoli where do you think more complex examples belongs?

It's ok to provide complex examples here. I think they should have the form of a quickstart, each quickstart in a separate folder, for now under examples, e.g. there's another one for knative under examples/knative.
I'd put this in examples/kafka, including a README doc file that explains how to run it (like the explanation that now is in the comment).

Yeah I suggest to keep the small quick examples that we can use for simple demos and whatnot in the examples folder, and then we should start to have either sub-folders with bigger examples or have a different folder where they reside. These bigger examples should have their own readme file, and show practices how developers would develop Camel K projects and so on.

This can be closed, incorporated the changes in: https://github.com/apache/camel-k/pull/632

Closed as requested

Hi , I am trying to consumer to apache camel but its not working

static Properties generateProperties() {
	Properties properties = new Properties();
	properties.put("bootstrap.servers", BOOTSTRAP_SERVERS);

	try {
		properties.put("client.id", InetAddress.getLocalHost().getHostName());
	} catch (Exception e) {
		System.out.println(e);
	}
	properties.put("acks", "all");
	properties.put("key.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
	properties.put("value.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
	properties.put("group.id", "cbmconsu");
	properties.put("security.protocol", "SSL");
	properties.put("ssl.protocol", "SSL");
	properties.put("ssl.key.password", "password");
	properties.put("ssl.keystore.location", "cbmconsu.p12");
	properties.put("ssl.keystore.password", "password");
	properties.put("ssl.truststore.location", "ciscoprodtruststore.jks");
	properties.put("ssl.truststore.password", "password");
	properties.put("topic.name", TOPIC);

	return properties;
}

its giving me error incorrect path.. but all my values look appropriate. Can anyone help


Change color button - fake PR

@VonOx here is your PR :)

Thank you @atrovato, it works as expected.


Relation field after running Upgrade CLI is required but should be optional

This was my initial Prisma 1 datamodel:
type User {
  id: ID! @id
  email: String @unique
  name: String!
  profile: Profile
  role: Role! @default(value: CUSTOMER)
  jsonData: Json
}

type Profile {
  id: ID! @id
  bio: String
  user: User! @relation(link: INLINE)
}

I ran the Upgrade CLI and fixed all issues with the printed SQL statements. Then I re-introspected and finally ran the Upgrade CLI another time to add the remaining fixes to the Prisma schema.
The final output I got from the CLI was this:
model User {
  email    String?   @unique
  id       String    @default(cuid()) @id
  jsonData Json?
  name     String
  role     User_role @default(CUSTOMER)
  Profile  Profile?
}

model Profile {
  bio  String?
  id   String  @default(cuid()) @id
  user String? @unique
  User User    @relation(fields: [user], references: [id])
}

The Post model currently throws an error because there's a mismatch with the relation field: The user foreign key field is optional, but the User relation field is required. This throws this error in the Prisma schema:

It's a bit weird because it seems like the foreign key was already optional in the Prisma 1 database schema while it was required in the Prisma 1 datamodel (so probably a bug in Prisma 1?). Not quite sure how to handle this, we could either generate SQL statements to make the FK required as well so that introspection works correctly or accept that the upgrade will turn a required into an optional relation.

Interesting. I'll add an SQL statement that makes the field non-optional, since that's the intent in DM1.

Turns out MySQL is quite complicated, I've punted on that for now until someone requests it. See #56 for more details.


mustBeOverridden assumes "mixin ... on ___" should also override

https://dartpad.dev/?id=58007a077bd1de41faf19187566c2d80
import 'package:meta/meta.dart';

void main() {
  for (int i = 0; i < 5; i++) {
    print('hello ${i + 1}');
  }
}

base class Value {
  @override
  @mustBeOverridden
  bool operator==(Object other);

  @override
  @mustBeOverridden
  int get hashCode;
}

base mixin MultiValue on Value {
  // warning: Missing concrete implementations of = and hashCode.
}

I'd assume this is the annotation being a bit too strict or some weird interaction with mixins/base.

Generally, I'd probably allow any abstract class to ignore the must-override requirement.
As long as any concrete subclass has an override since the must-override declaration, it should be fine. That ensures any instance is overriding.

I'll give this a shot sometime soon to see if I remember how to contribute to the SDK.

CL out: https://dart-review.googlesource.com/c/sdk/+/364206.


Add missing semicolon to make the "Hide Panel" option work

Hi! I noticed that the "Hide Panel" setting wasn't working properly due to a missing semicolon in the "display: none" property.
Thank you for creating this extension!

@nagata-yoshiteru feel free to publish the update whenever your free! Thanks!

@cristiano605 Thank you for fixing the bug!
I'll merge this PR and publish new version.
Thanks!


[NETBEANS-54] Module Review api.visual

Changed the license in the examples-readme.txt.

Looks good


improve tooling

implement some of the recommendations of https://learn.scientific-python.org/development/guides/repo-review/

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
160

Relevant Lines:
160

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
160

Relevant Lines:
160

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
160

Relevant Lines:
160

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
160

Relevant Lines:
160

💛  - Coveralls


Redirect handler fails when getting drive items using Graph sdk

See https://github.com/microsoftgraph/msgraph-sdk-go/issues/485
I'm trying to get the contents of a drive item. When I use the SDK client to make the call, I get a 400. However, when I curl the same URL, it works.
Details
Here's roughly what happens:

Client calls https://graph.microsoft.com/v1.0/drives/<drive-id>/items/<item-id>/content.graphClient.DrivesById(driveId).ItemsById(itemId).Content().Get(ctx, nil)

API returns 302 to https://mytech.sharepoint.com/_layouts/15/download.aspx?UniqueId=ugly-gu-id&Translate=false&tempauth=some.jwt.token&ApiVersion=2.0
After client redirects, the API returns 400 with the message

Our services aren't available right now

We're working to restore all services as soon as possible. Please check back soon.
0123

However, If I curl the redirect URL, e.g.
curl "https://mytech.sharepoint.com/_layouts/15/download.aspx?UniqueId=ugly-gu-id&Translate=false&tempauth=some.jwt.token&ApiVersion=2.0" > my.docx

the API returns a valid file.
Someone in the original thread suggested that the problem is here:

The fix should probably go here:
https://github.com/microsoft/kiota-http-go/blob/53e6b699af82a23d2cac857f9d4e699e9362cc46/redirect_handler.go#L158
The URL's host is checked in order to drop the Authorization header if it's different, but the Host: header is never updated.

Thanks @eric-millin for reporting this.
Is this something you'd be willing to submit a pull request for?

@baywet. Theoretically. I looked at it with a PR in mind, but wasn't sure if the unupdated Host header is indeed the bug. I haven't been working with SDK recently so haven't had a chance to play with it.

Closing at request of @rkodev


Update pt-rPT translations based on YSmhXQDd6Z submit

See https://github.com/dmfs/opentasks/pull/427#issuecomment-330954675

@YSmhXQDd6Z Would you please double-check the diff of this pull request here, that these are the changes you intended?:
https://github.com/dmfs/opentasks/pull/429/files
(It looks good as far as I can tell.)


[newrelic-logging] hostPath on OpenShift 4.13

Bug description
newrelic-logging doesn't run on OpenShift 4.13
Version of Helm and Kubernetes

Helm 3.13.3
OpenShift 4.13.23 (Kubernetes 1.26.9+636f2be)

Which chart?
newrelic-logging v1.19.0 (via nri-bundle  v5.0.58)
What happened?
Added required SCCs including this one but there is still a problem with the use of hostPath:
oc adm policy add-scc-to-user privileged system:serviceaccount:newrelic:newrelic-bundle-newrelic-logging

What you expected to happen?
newrelic-logging daemonset should be healthy
How to reproduce it?
Steps to reproduce the problem, as minimally and precisely as possible.

Start an OpenShift 4.13 cluster.
Add the SCCs for the New Relic service accounts (depending on the subchart this is required for Helm to successfully install the bundle).
Install the New Relic chart bundle with defaults for newrelic-logging. Result: newrelic-logging pods enter CrashLoopBackOff with these logs:

│ Fluent Bit v2.2.0                                                                                │
│ * Copyright (C) 2015-2023 The Fluent Bit Authors                                                                                │
│ * Fluent Bit is a CNCF sub-project under the umbrella of Fluentd                                                                                │
│ * https://fluentbit.io                                                                                │
│                                                                                │
│ [2024/01/16 04:01:38] [ info] [fluent bit] version=2.2.0, commit=db8487d123, pid=1                                                                                │
│ [2024/01/16 04:01:38] [ info] [storage] ver=1.5.1, type=memory, sync=normal, checksum=off, max_chunks_up=128                                                                        │
│ [2024/01/16 04:01:38] [ info] [cmetrics] version=0.6.4                                                                                │
│ [2024/01/16 04:01:38] [ info] [ctraces ] version=0.3.1                                                                                │
│ [2024/01/16 04:01:38] [ info] [input:tail:tail.0] initializing                                                                                │
│ [2024/01/16 04:01:38] [ info] [input:tail:tail.0] storage_strategy='memory' (memory only)                                                                                │
│ [2024/01/16 04:01:38] [error] [sqldb] cannot open database /var/log/flb_kube.db                                                                                │
│ [2024/01/16 04:01:38] [error] [input:tail:tail.0] could not open/create database                                                                                │
│ [2024/01/16 04:01:38] [error] failed initialize input tail.0                                                                                │
│ [2024/01/16 04:01:38] [error] [engine] input initialization failed                                                                                │
│ [2024/01/16 04:01:38] [error] [lib] backend failed                                                                                │
│ Stream closed EOF for newrelic/newrelic-bundle-newrelic-logging-mdp2q (newrelic-logging)                                                                                │

Bundle values:
global:
  licenseKey: redacted
  cluster: mycluster
  lowDataMode: false

newrelic-infrastructure:
  enabled: true
  privileged: true

kube-state-metrics:
  enabled: true
  image:
    tag: v2.10.0

newrelic-logging:
  enabled: true

Anything else we need to know?
This didn't seem to happen in OpenShift 4.12 and prior, apparently because defaults were tightened in 4.13.
OpenShift docs suggest all use of hostPath is discouraged in this environment: https://docs.openshift.com/container-platform/4.13/storage/persistent_storage/persistent_storage_local/persistent-storage-hostpath.html
Could local volumes be a solution? https://docs.openshift.com/container-platform/4.13/storage/persistent_storage/persistent_storage_local/persistent-storage-local.html#local-create-cr-manual_persistent-storage-local

Hi @maxlemieux following current install instructions on the public docs should fix the issue.
https://docs.newrelic.com/docs/kubernetes-pixie/kubernetes-integration/installation/kubernetes-integration-install-configure/#install-openshift-container-platform
Using persistence mode none (this is not required) and set fluent-bit containers as privileged.


Add support to run dependency resolution in parallel

Added support to run dependency resolution in parallel. Can be disabled by passing -DuseParallelDependencyResolution=false in mvn command line (true by default) or configuring in pom
Running on presto-main at presto project gives about 50% perf improvement
Without parallel dependency resolution:
$ mvn validate -pl presto-main -Dbuildtime.output.log=true -DuseParallelDependencyResolution=false
...
[INFO]   maven-dependency-versions-check-plugin:check (default) ... [8.988s]
...

Running with parallel resolution:
$ mvn validate -pl presto-main -Dbuildtime.output.log=true
...
[INFO]   maven-dependency-versions-check-plugin:check (default) ... [4.408s]
...

Merged, thanks!


notary-server failed to start due to ssl certificate issue

// notary-server error info
{"level":"fatal","msg":"unable to set up TLS: Error reading X509 key pair (cert: "/etc/notary/notary-signer.crt", key: "/etc/notary/notary-signer.key"): tls: failed to find any PEM data in certificate input. Make sure the key is not encrypted.","time":"2021-11-12T02:32:44Z"}

from the log, it seems that the binary in the notary-server is for the notary-signer, please confirm it. @Jeremy-boo

Because docker buildx has a cache, the basic image of notary-signer is used when constructing notary-server. Before constructing notary-server, execute the docker buildx prune -f command to solve this problem

done


[hacktoberfest] instructions for contributors - list of backlog items - read this first

Thank you for your interest in contributing to Karate ! We have a set of well-documented roadmap items and enhancements proposed here: https://github.com/intuit/karate/projects/3

All you need to do is choose what you wish to work on, look at the Proposed  column - and then we will move the status of that item to Assigned. You can discuss here in this issue, just add a comment.
IMPORTANT: after your first comment here, we will assign the item to you, but we need you to demonstrate intent to work on the item within 5 days. Just create a new issue with a brief comment saying that you are working on it. This will be the issue against which you can submit the final PR (Pull Request). It would be great if you can also provide some details of how you are planning to implement the solution. If we don't hear from you within 5 days, we will move the item back to the pile for anyone else to pick up.
Once your code is ready, just submit a Pull Request (in October 2020) and reference this issue. That's it ! May the Source be with You :) (Or should I say October ;)
To summarize:
A) choose an item you want to work on from the roadmap
B) make a comment below mentioning which item, and we will assign it to you
C) within 5 days create an issue so that we know you are actively working on it (else the item moves back to being un-assigned)
D) when your code is ready (or draft) submit a PR and refer the issue you created in (C)
Contributing to Karate is easy, especially for Java programmers. We have a detailed developer guide here: https://github.com/intuit/karate/wiki/Developer-Guide

Hi, could you please assign https://github.com/intuit/karate/projects/3#card-41317200 to me? Thanks!

@shreyamalik19 done

@Nishant-sehgal done https://github.com/intuit/karate/issues/1181#issuecomment-702666410

Hi, can you pls assign https://github.com/intuit/karate/projects/3#card-41317122 to me?Thank you.

@chaudharydeepak yes go ahead

@ptrthomas Can you assign https://github.com/intuit/karate/issues/1076 to me?

@Nishant-sehgal done

@Nishant-sehgal done

Hi @ptrthomas can you assigne me this ticket :
https://github.com/intuit/karate/projects/3#card-36146380

@sixdouglas done

Hi,
Can you tell me more about what you have in mind in this card:
https://github.com/intuit/karate/projects/3#card-32867382
I would be happy to help you any further but I'm not sure to understand it well.

@sixdouglas that is hard to explain in short and may require you to read the links provided. but the goal is test-case generation. where the user needs to only specify some rules e.g. data-types (where karate has an existing system, e.g. #string #boolean etc) and then some optional additional rules: e.g. "name should be less than 20 chars". and then you get something like this as a result: https://github.com/Endava/cats

@ptrthomas can you assign https://github.com/intuit/karate/issues/1175 to me?

@Nishant-sehgal done

@ptrthomas so let’s put it simple. What you wish to have, is a system that can generate multiple values as query inputs to call the tested system (and so multiple test executions), according to some rules.
In the case of the Endava CATS, the rules are defined in the OpenAPI contract.
If the user defines a schema like this :
{ id: "#number", name: "#string" }
and calls that new 'module' saying he wants 200 possibilities. The module will make 200 calls to the API with a payload corresponding to this schema, but with values generated automatically.
Is that correct?

@sixdouglas yes that's right

@ptrthomas : you can assign the ticket to me. I'll create the issue to discuss it further with you.

@sixdouglas done

@ptrthomas : I would love to try the Github too
https://github.com/intuit/karate/projects/3#card-26888700

@sixdouglas github actions also assigned

Hi, I was wondering if I could do some refactoring around this file? As a karate user, I often find myself reading through this and wishing more/better features could spring up from here if it the design allowed a bit of extension. I am not sure how to go about doing this. I would ideally just fork and create a PR, but it seems like you want contributions done a certain way? Just wanted to make sure first.

@tup916 I'm right now doing a major overhaul of the code, see #1281 and the rewrite branch. I'm leaving the Runner for the end but any ideas and suggestions will help, this is the time, even if this may not align to a hacktoberfest timeline. please comment on 1281 with your ideas to start with even if it is a wishlist, so we can start planning for that

@ptrthomas can you assign https://github.com/intuit/karate/pull/1243 to me?

@Nishant-sehgal yes go ahead. if you comment on that ticket I will assign

@ptrthomas I think I can handle https://github.com/intuit/karate/projects/3#card-26888794

@wpanas done

@ptrthomas - Hi Peter, I am interested in working on - https://github.com/intuit/karate/projects/3#card-30212558. I have some ideas around it and can share on the ticket / issue log itself. Thank you.

@chaudharydeepak that's a good one. take your time - even if you don't make the hacktoberfest deadline

@chaudharydeepak that's a good one. take your time - even if you don't make the hacktoberfest deadline

@ptrthomas - starting to look into it - realizing that possibly I can cover other items like performance metrics etc, as its all kind of encompassing with devtools protocol[chrome] - and really enjoyed the way current drivers are written / designed. Thank you.


not all devices shown -> findmyiphone turned off

He guys!
I love this script! Have been using it a while and it worked great.
I recently stopped sending messages to my iphone so i started investigating. Now for some reason when i try to find the id of my phone it's not showing. With other words, my iphone is no longer showing up when i use $FindMyiPhone->devices. In fact only 4 out of my 10 devices (when i go to https://appleid.apple.com/account/manage i see 10 devices registered) show up.
Is there any limitation or so that could cause this?
thanks a lot!!!!!

ok. i just found out. apparently the geniusbar guys turned off findmyiphone when they fixed my battery. $FindMyiPhone->devices only shows the devices if findmyiphone is turned on.


QMAuthService is missing loginWithTwitter

Hey,
i just tried to implement Twitter Social Auth, but the AuthService Class is missing a loginWithTwitter method, which results in that the isAuthorized variable is not set to true and, for example, the allDialogsWithPageLimit method will always return null as result.
Can you please add this method?
Regards
Dominik

Hi @dpfaffenbauer. loginWithTwitter will be added in the next QMServices release.

Great, thanks. Can you tell me when the next version is going to be released?

Hi @dpfaffenbauer , login with twitter


cuda11.7 ,torch==1.13.1,ubuntu22.04版本下安装失败?

cuda11.7 ,torch==1.13.1,ubuntu22.04版本下安装失败,这个该怎么解决，是版本适配的问题吗
Collecting bmtrain
Downloading bmtrain-0.2.2.tar.gz (58 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.7/58.7 kB 432.6 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /home/jysm/chat/cpm_venv/lib/python3.10/site-packages (from bmtrain) (1.24.1)
Building wheels for collected packages: bmtrain
Building wheel for bmtrain (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [58 lines of output]
running bdist_wheel
/home/jysm/chat/cpm_venv/lib/python3.10/site-packages/torch/utils/cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/utils.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/layer.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/block_layer.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/checkpointing.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/synchronize.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/init.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/init.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/wrapper.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/global_var.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/debug.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/parameter.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/param_init.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/pipe_layer.py -> build/lib.linux-x86_64-cpython-310/bmtrain
copying bmtrain/store.py -> build/lib.linux-x86_64-cpython-310/bmtrain
creating build/lib.linux-x86_64-cpython-310/bmtrain/inspect
copying bmtrain/inspect/model.py -> build/lib.linux-x86_64-cpython-310/bmtrain/inspect
copying bmtrain/inspect/format.py -> build/lib.linux-x86_64-cpython-310/bmtrain/inspect
copying bmtrain/inspect/init.py -> build/lib.linux-x86_64-cpython-310/bmtrain/inspect
copying bmtrain/inspect/tensor.py -> build/lib.linux-x86_64-cpython-310/bmtrain/inspect
creating build/lib.linux-x86_64-cpython-310/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/noam.py -> build/lib.linux-x86_64-cpython-310/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/exponential.py -> build/lib.linux-x86_64-cpython-310/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/warmup.py -> build/lib.linux-x86_64-cpython-310/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/init.py -> build/lib.linux-x86_64-cpython-310/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/linear.py -> build/lib.linux-x86_64-cpython-310/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/cosine.py -> build/lib.linux-x86_64-cpython-310/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/no_decay.py -> build/lib.linux-x86_64-cpython-310/bmtrain/lr_scheduler
creating build/lib.linux-x86_64-cpython-310/bmtrain/benchmark
copying bmtrain/benchmark/utils.py -> build/lib.linux-x86_64-cpython-310/bmtrain/benchmark
copying bmtrain/benchmark/send_recv.py -> build/lib.linux-x86_64-cpython-310/bmtrain/benchmark
copying bmtrain/benchmark/init.py -> build/lib.linux-x86_64-cpython-310/bmtrain/benchmark
copying bmtrain/benchmark/reduce_scatter.py -> build/lib.linux-x86_64-cpython-310/bmtrain/benchmark
copying bmtrain/benchmark/shape.py -> build/lib.linux-x86_64-cpython-310/bmtrain/benchmark
copying bmtrain/benchmark/all_gather.py -> build/lib.linux-x86_64-cpython-310/bmtrain/benchmark
creating build/lib.linux-x86_64-cpython-310/bmtrain/nccl
copying bmtrain/nccl/enums.py -> build/lib.linux-x86_64-cpython-310/bmtrain/nccl
copying bmtrain/nccl/init.py -> build/lib.linux-x86_64-cpython-310/bmtrain/nccl
creating build/lib.linux-x86_64-cpython-310/bmtrain/loss
copying bmtrain/loss/cross_entropy.py -> build/lib.linux-x86_64-cpython-310/bmtrain/loss
copying bmtrain/loss/init.py -> build/lib.linux-x86_64-cpython-310/bmtrain/loss
creating build/lib.linux-x86_64-cpython-310/bmtrain/distributed
copying bmtrain/distributed/ops.py -> build/lib.linux-x86_64-cpython-310/bmtrain/distributed
copying bmtrain/distributed/init.py -> build/lib.linux-x86_64-cpython-310/bmtrain/distributed
creating build/lib.linux-x86_64-cpython-310/bmtrain/optim
copying bmtrain/optim/optim_manager.py -> build/lib.linux-x86_64-cpython-310/bmtrain/optim
copying bmtrain/optim/init.py -> build/lib.linux-x86_64-cpython-310/bmtrain/optim
copying bmtrain/optim/adam_offload.py -> build/lib.linux-x86_64-cpython-310/bmtrain/optim
copying bmtrain/optim/adam.py -> build/lib.linux-x86_64-cpython-310/bmtrain/optim
running build_ext
error: [Errno 2] No such file or directory: '/usr/local/cuda:/usr/local/cuda/bin/nvcc'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for bmtrain
Running setup.py clean for bmtrain
Failed to build bmtrain
ERROR: Could not build wheels for bmtrain, which is required to install pyproject.toml-based projects

+1

同样的问题，cuda11.7, torch1.13.1,ubuntu22.04,python3.9
`Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting bmtrain
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/13/b3/f414fc642070bb5baddab996bc4667bc16ae5f329094bd87ba923a1e7028/bmtrain-0.2.2.tar.gz (58 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in /home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages (from bmtrain) (1.24.3)
Building wheels for collected packages: bmtrain
Building wheel for bmtrain (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [123 lines of output]
running bdist_wheel
/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/utils/cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/parameter.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/init.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/checkpointing.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/param_init.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/debug.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/pipe_layer.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/wrapper.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/init.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/synchronize.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/utils.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/block_layer.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/layer.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/global_var.py -> build/lib.linux-x86_64-cpython-39/bmtrain
copying bmtrain/store.py -> build/lib.linux-x86_64-cpython-39/bmtrain
creating build/lib.linux-x86_64-cpython-39/bmtrain/benchmark
copying bmtrain/benchmark/all_gather.py -> build/lib.linux-x86_64-cpython-39/bmtrain/benchmark
copying bmtrain/benchmark/init.py -> build/lib.linux-x86_64-cpython-39/bmtrain/benchmark
copying bmtrain/benchmark/shape.py -> build/lib.linux-x86_64-cpython-39/bmtrain/benchmark
copying bmtrain/benchmark/reduce_scatter.py -> build/lib.linux-x86_64-cpython-39/bmtrain/benchmark
copying bmtrain/benchmark/utils.py -> build/lib.linux-x86_64-cpython-39/bmtrain/benchmark
copying bmtrain/benchmark/send_recv.py -> build/lib.linux-x86_64-cpython-39/bmtrain/benchmark
creating build/lib.linux-x86_64-cpython-39/bmtrain/nccl
copying bmtrain/nccl/enums.py -> build/lib.linux-x86_64-cpython-39/bmtrain/nccl
copying bmtrain/nccl/init.py -> build/lib.linux-x86_64-cpython-39/bmtrain/nccl
creating build/lib.linux-x86_64-cpython-39/bmtrain/distributed
copying bmtrain/distributed/init.py -> build/lib.linux-x86_64-cpython-39/bmtrain/distributed
copying bmtrain/distributed/ops.py -> build/lib.linux-x86_64-cpython-39/bmtrain/distributed
creating build/lib.linux-x86_64-cpython-39/bmtrain/inspect
copying bmtrain/inspect/init.py -> build/lib.linux-x86_64-cpython-39/bmtrain/inspect
copying bmtrain/inspect/tensor.py -> build/lib.linux-x86_64-cpython-39/bmtrain/inspect
copying bmtrain/inspect/format.py -> build/lib.linux-x86_64-cpython-39/bmtrain/inspect
copying bmtrain/inspect/model.py -> build/lib.linux-x86_64-cpython-39/bmtrain/inspect
creating build/lib.linux-x86_64-cpython-39/bmtrain/loss
copying bmtrain/loss/init.py -> build/lib.linux-x86_64-cpython-39/bmtrain/loss
copying bmtrain/loss/cross_entropy.py -> build/lib.linux-x86_64-cpython-39/bmtrain/loss
creating build/lib.linux-x86_64-cpython-39/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/linear.py -> build/lib.linux-x86_64-cpython-39/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/init.py -> build/lib.linux-x86_64-cpython-39/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/no_decay.py -> build/lib.linux-x86_64-cpython-39/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/exponential.py -> build/lib.linux-x86_64-cpython-39/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/cosine.py -> build/lib.linux-x86_64-cpython-39/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/noam.py -> build/lib.linux-x86_64-cpython-39/bmtrain/lr_scheduler
copying bmtrain/lr_scheduler/warmup.py -> build/lib.linux-x86_64-cpython-39/bmtrain/lr_scheduler
creating build/lib.linux-x86_64-cpython-39/bmtrain/optim
copying bmtrain/optim/optim_manager.py -> build/lib.linux-x86_64-cpython-39/bmtrain/optim
copying bmtrain/optim/adam_offload.py -> build/lib.linux-x86_64-cpython-39/bmtrain/optim
copying bmtrain/optim/init.py -> build/lib.linux-x86_64-cpython-39/bmtrain/optim
copying bmtrain/optim/adam.py -> build/lib.linux-x86_64-cpython-39/bmtrain/optim
running build_ext
/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/utils/cpp_extension.py:387: UserWarning: The detected CUDA version (11.3) has a minor version mismatch with the version that was used to compile PyTorch (11.7). Most likely this shouldn't be a problem.
warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda))
building 'bmtrain.nccl._C' extension
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/csrc
gcc -pthread -B /home/yjy/anaconda3/envs/cpm/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/yjy/anaconda3/envs/cpm/include -I/home/yjy/anaconda3/envs/cpm/include -fPIC -O2 -isystem /home/yjy/anaconda3/envs/cpm/include -fPIC -Icsrc/nccl/build/include -I/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/include -I/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/include/TH -I/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.3/include -I/home/yjy/anaconda3/envs/cpm/include/python3.9 -c csrc/nccl.cpp -o build/temp.linux-x86_64-cpython-39/csrc/nccl.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
g++ -pthread -B /home/yjy/anaconda3/envs/cpm/compiler_compat -shared -Wl,-rpath,/home/yjy/anaconda3/envs/cpm/lib -Wl,-rpath-link,/home/yjy/anaconda3/envs/cpm/lib -L/home/yjy/anaconda3/envs/cpm/lib -L/home/yjy/anaconda3/envs/cpm/lib -Wl,-rpath,/home/yjy/anaconda3/envs/cpm/lib -Wl,-rpath-link,/home/yjy/anaconda3/envs/cpm/lib -L/home/yjy/anaconda3/envs/cpm/lib build/temp.linux-x86_64-cpython-39/csrc/nccl.o -L/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/lib -L/usr/local/cuda-11.3/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda_cu -ltorch_cuda_cpp -o build/lib.linux-x86_64-cpython-39/bmtrain/nccl/_C.cpython-39-x86_64-linux-gnu.so
building 'bmtrain.optim._cuda' extension
creating build/temp.linux-x86_64-cpython-39/csrc/cuda
gcc -pthread -B /home/yjy/anaconda3/envs/cpm/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /home/yjy/anaconda3/envs/cpm/include -I/home/yjy/anaconda3/envs/cpm/include -fPIC -O2 -isystem /home/yjy/anaconda3/envs/cpm/include -fPIC -I/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/include -I/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/include/TH -I/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.3/include -I/home/yjy/anaconda3/envs/cpm/include/python3.9 -c csrc/adam_cuda.cpp -o build/temp.linux-x86_64-cpython-39/csrc/adam_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-qkbd394p/bmtrain_1e5b558c47da47f8b09d7978555abe57/setup.py", line 74, in
setup(
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/init.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 325, in run
self.run_command("build")
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 84, in run
_build_ext.run(self)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 843, in build_extensions
build_ext.build_extensions(self)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
_build_ext.build_extension(self, ext)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
objects = self.compiler.compile(
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 600, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 581, in unix_wrap_single_compile
cflags = unix_cuda_flags(cflags)
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 548, in unix_cuda_flags
cflags + _get_cuda_arch_flags(cflags))
File "/home/yjy/anaconda3/envs/cpm/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1793, in _get_cuda_arch_flags
raise ValueError(f"Unknown CUDA arch ({arch}) or GPU not supported")
ValueError: Unknown CUDA arch (8.9) or GPU not supported
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for bmtrain
Running setup.py clean for bmtrain
Failed to build bmtrain
Installing collected packages: bmtrain
Running setup.py install for bmtrain ... error
error: subprocess-exited-with-error`

似乎是因为缺少了 nvcc， 试试装一下 conda install cuda-nvcc -c nvidia