Support for headers like Content-Disposition or Content-Type with putObject

As suggested in https://community.k6.io/t/s3serviceerror-using-s3client/5586/4, it would be nice to be able to add some headers like Content-Disposition or Content-Type when using AWS PutObject.
Looking at the code  it seems we always pass empty headers, maybe we could add a parameter to the putObject() function to optionally indicate additional headers. I might be wrong and there is an option to do that already.
    /**
     * Adds an object to a bucket.
     *
     * You must have WRITE permissions on a bucket to add an object to it.
     *
     * @param  {string} bucketName - The bucket name containing the object.
     * @param  {string} objectKey - Key of the object to put.
     * @param  {string | ArrayBuffer} data - the content of the S3 Object to upload.
     * @throws  {S3ServiceError}
     * @throws  {InvalidSignatureError}
     */
    putObject(bucketName: string, objectKey: string, data: string | ArrayBuffer) {
        // Prepare request
        const method = 'PUT'
        const host = `${bucketName}.${this.host}`

        const signedRequest = this.signature.sign(
            {
                method: method,
                protocol: 'https',
                hostname: host,
                path: `/${objectKey}`,
                headers: {},
                body: data,
            },
            {}
        )

        const res = http.request(method, signedRequest.url, signedRequest.body, {
            headers: signedRequest.headers,
        })
        this._handle_error('PutObject', res)
    }

This is a good point! 🤝
I looked into the documentation, and the canonical way to do that, in my view, would be to define a PutObjectRequestParameters interface (or class) containing all the various options, which we map to headers in the context of the function call: serializing what needs to be serialized, etc.
Then the putObject method would look like: putObject(bucketName: string, objectKey: string, data: string | ArrayBuffer, parameters: PutObjectRequestParameters = {})
Here's my proposal for the interface, based on what's described in the documentation. I believe most fields should be optional, and that some of them (such as server side encryption related ones) could be grouped under a dedicated interface themselves:
// TODO: all the field could/should be optional. Some fields depend on each other, like
// the ones related to server-side encryption, and should probably be grouped together into
// their own dedicated interface, embedded in this one?
export interface PutObjectRequestParameters {
    /**
     * The canned ACL to apply to the object.
     *
     * This action is not supported by Amazon S3 on Outposts.
     */
    ACL: CannedACL

    /**
     * Can be used to specify caching behavior along the request/reply chain.
     *
     * For more information, see https://www.rfc-editor.org/rfc/rfc9111#name-cache-control.
    */
    CacheControl: string

    /**
     * Specifies presentational information for the object.
     *
     * For more information, see https://www.rfc-editor.org/rfc/rfc6266#section-4.
     */
    ContentDisposition: string

    /**
     * Specifies what content encodings have been applied to the object and thus
     * what decoding mechanisms must be applied to obtain the media-type referenced
     * by the ContentType option.
     *
     * For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#field.content-encoding.
     */
    ContentEncoding: string

    /**
     * The language the content is in.
     */
    ContentLanguage: string

    // TODO: we should make sure this is automatically computed, and override it with the
    // one from the options if it's provided.
    /**
     * Size of the body in bytes. This parameter is useful when the size of the body cannot be
     * determined automatically.
     *
     * For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#name-content-length.
     */
    ContentLength: string

    /**
     * The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864.
     * This header can be used as a message integrity check to verify that the data is the same data that
     * was originally sent.
     *
     * Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity
     * check.
     */
    ContentMD5: string

    /**
     * A standard MIME type describing the format of the contents.
     *
     * For more information, see https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type.
     */
    ContentType: string

    /**
     * The date and time at which the object is no longer cacheable.
     *
     * For more information, see https://www.rfc-editor.org/rfc/rfc7234#section-5.3.
     */
    ChecksumAlgorithm: string

    /**
     * Can be used as a data integrity check to verify that the data received is the same data that was originally sent.
     * Specifies the base64-encoded, 32-bit CRC32 checksum of the object.
     *
     * For more information, see Checking object integrity in the Amazon S3 User Guide.
     */
    ChecksumCRC32: string

    /**
     * Can be used as a data integrity check to verify that the data received is the same data that was originally sent.
     * Specifies the base64-encoded, 32-bit CRC32C checksum of the object.
     *
     * For more information, see Checking object integrity in the Amazon S3 User Guide.
     */
    ChecksumCRC32C: string

    /**
     * Can be used as a data integrity check to verify that the data received is the same data that was originally sent.
     * Specifies the base64-encoded, 160-bit SHA-1 digest of the object.
     *
     * For more information, see Checking object integrity in the Amazon S3 User Guide.
     */
    ChecksumSHA1: string

    /**
     * Can be used as a data integrity check to verify that the data received is the same data that was originally sent.
     * Specifies the base64-encoded, 256-bit SHA-256 digest of the object.
     *
     * For more information, see Checking object integrity in the Amazon S3 User Guide.
     */
    ChecksumSHA256: string

    /**
     * The date and time at which the object is no longer cacheable.
     *
     * For more information, see https://www.rfc-editor.org/rfc/rfc7234#section-5.3.
     */
    Expires: string

    /**
     * Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.
     *
     * This action is not supported by Amazon S3 on Outposts.
     */
    GrantFullControl: string

    /**
     * Allows grantee to read the object data and its metadata.
     *
     * This action is not supported by Amazon S3 on Outposts.
     */
    GrantRead: string

    /**
     * Allows grantee to read the object ACL.
     *
     * This action is not supported by Amazon S3 on Outposts.
     */
    GrantReadACP: string

    /**
     * Allows grantee to write the ACL for the applicable object.
     * This action is not supported by Amazon S3 on Outposts.
     */
    GrantWriteACP: string

    /**
     * The server-side encryption algorithm used when storing this object in Amazon S3.
     */
    ServerSideEncryption: ServerSideEncryption

    /**
     * By default, Amazon S3 uses the STANDARD Storage Class to store newly created objects.
     * The STANDARD storage class provides high durability and high availability.
     * Depending on performance needs, you can specify a different Storage Class.
     *
     * Amazon S3 on Outposts only uses the OUTPOSTS Storage Class.
     *
     * For more information, see Storage Classes in the Amazon S3 User Guide.
     */
    StorageClass: StorageClass

    /**
     * If the bucket is configured as a website, redirects requests for this object
     * to another object in the same bucket or to an external URL.
     *
     * Amazon S3 stores the value of this option in the object metadata.
     */
    WebsiteRedirectLocation: string

    /**
     * Specifies the algorithm to use to when encrypting the object
     */
    SSECustomerAlgorithm: ServerSideEncryption

    /**
     * Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data.
     * This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key.
     * The key must be appropriate for use with the algorithm specified in the SSECustomerAlgorithm option.
     */
    SSECustomerKey: string

    /**
     * Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
     * Amazon S3 uses this option for a message integrity check to ensure that the encryption key was transmitted without error.
     */
    SSECustomerKeyMD5: string

    /**
     * If the ServerSideEncryption option is present and has the value of aws:kms, this header specifies the ID of the AWS
     * Key Management Service (AWS KMS) symmetrical encryption customer managed key that was used for the object.
     *
     * If you specify ServerSideEncryption=aws:kms, but do not provide SSEKMSKeyId, Amazon S3 uses the AWS managed key
     * to protect the data. If the KMS key does not exist in the same account issuing the command, you must use the full
     * ARN and not just the ID.
     */
    SSEKMSKeyId: string

    /**
     * Specifies the AWS KMS Encryption Context to use for object encryption.
     *
     * The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.
     */
    SSEKMSEncryptionContext: string

    /**
     * Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption with
     * server-side encryption using AWS KMS (SSE-KMS). Setting this option to true causes Amazon S3
     * to use an S3 Bucket Key for object encryption with SSE-KMS.
     *
     * Specifying this option with a PUT action doesn’t affect bucket-level settings for S3 Bucket Key.
     */
    BucketKeyEnabled: boolean

    /**
     * Confirms that the requester knows that they will be charged for the request.
     * Bucket owners need not specify this parameter in their requests.
     *
     * For information about downloading objects from Requester Pays buckets, see
     * Downloading Objects in Requester Pays Buckets in the Amazon S3 User Guide.
     */
    RequestPayer: RequestPayer

    // TODO: we don't have a construct for this yet. Something along the lines of Record<string, string>
    // should do. Also, the recent SQS PR added a form url encoding function that would prove useful here.
    /**
     * The tag-set for the object.
     *
     * The tag-set must be encoded as URL Query parameters.
     */
    Tagging: string

    /**
     * The Object Lock mode that you want to apply to this object.
     */
    ObjectLockMode: ObjectLockMode

    /**
     * The timestamp of the date and time when you want this object's Object Lock to expire.
     */
    ObjectLockRetainUntilDate: number

    /**
     * Specifies whether a legal hold will be applied to this object.
     *
     * For more information about S3 Object Lock, see Object Lock.
     */
    ObjectLockLegalHoldStatus: ObjectLockLegalHold

    /**
     * The account ID of the expected bucket owner.
     */
    ExpectedBucketOwner: string
}

/**
 * The S3CannedACL type is a string union of the possible S3 canned ACLs.
 */
export type CannedACL = "private" | "public-read" | "public-read-write" | "authenticated-read" | "aws-exec-read" | "bucket-owner-read" | "bucket-owner-full-control"

/**
 * The S3ServerSideEncryption type is a string union of the possible S3 server-side encryption algorithms.
 */
export type ServerSideEncryption = "AES256" | "aws:kms"

/**
 * The Request Payer type is a string union of the possible S3 request payer values.
 */
export type RequestPayer = "requester"

/**
 * The Object Lock Mode type is a string union of the possible S3 object lock modes.
 */
export type ObjectLockMode = "GOVERNANCE" | "COMPLIANCE"

/**
 * The Object Lock Legal Hold type is a string union of the possible S3 object lock legal hold values.
 */
export type ObjectLockLegalHold = "ON" | "OFF"

PS: I don't know how familiar with Typescript you might be, so I'd like to clarify that interfaces here are used to give a hint to the typescript compiler, and javascript interpreter as to the shape of the object we pass in 👍🏻
Let me know what you think, this is just a proposal 🤝


Add script which removes redundant rows

@yunhailuo Please review.

Possibly out of scope here, I also feel gdc.py can be a separate module altogether (maybe named as pyGDC or something like that`) so that others can use it.

Failing test fixed in #40.

Failing test fixed in #40.

I'm not sure why the test would be fixed in another PR. It's caused by this PR, right?

Failing test fixed in #40.

I'm not sure why the test would be fixed in another PR. It's caused by this PR, right?

No, data was updated in GDC, so it was failing.

I've been thinking about and started to feel maybe request on File endpoint and get info through cases might work as long as it's not too big for memory:

Filter:

{
    "files.access": "open",
    "files.data_category": "Sequencing Reads",
}

Expand (based on Mary's list; you can do fields if you want to):

[
    'cases.demographic',
    'cases.diagnoses',
    'cases.exposures',
    'cases.family_histories',
    'cases.project',
    'cases.samples',
    'cases.samples.portions',
    'cases.samples.portions.slides',
    'cases.tissue_source_site',
]

One you got the JSON, you got a list of dict. You can transform it into a big dict which will be keyed on sample ID.  While transforming, you can skip samples if their ID already exists.

So, what I am doing:

Get all the sample ids from files endpoint.
Get all the fields/expands from cases endpoint using those sample ids.

So, what I am doing:

Get all the sample ids from files endpoint.
Get all the fields/expands from cases endpoint using those sample ids.

That also works. But wouldn't it be two (actually four) calls rather than one (actually two) call?

This is an example for one (actually the first of the two; size=1) call request.

 It should work. I'm wondering if you need files.data_category. Is data_category itself a field for the File endpoint?

I'm wondering if you need files.data_category. Is data_category itself a field for the File endpoint?

Not really sure. But, a couple of submitter.sample_ids field gets vacant if data category is not included in the filter.

I'm wondering if you need files.data_category. Is data_category itself a field for the File endpoint?

Not really sure. But, a couple of submitter.sample_ids field gets vacant if data category is not included in the filter.

OK. I mean if this will work:
{
    "op":"and",
    "content":[
        {"op":"in","content":{"field":"cases.project.project_id","value":["TCGA-CHOL"]}},
        {"op":"in","content":{"field":"data_category","value":["Sequencing Reads"]}}
        ]
}

@yunhailuo, Yes, it works.

Great. Is it now clear what you could do? Or you need more clarification?

Will add more detailed tests once the implementation is approved.

@yunhailuo Please review.

@yunhailuo, please review.

Overall, my personal guideline is to

Very first and important, make all reasonable changes if needed;
Make less changes if possible so that it's easy for coding and review, and hopefully with less confusions or mistakes.

Thanks! This clearly looks much cleaner. Please review now @yunhailuo.

Thanks! Its already in the slack.

Planning to use the code of this PR for CPTAC-3 phenotype data.

Closing in favor of #91.


Active key bug

More times then not when i use my active key for anything i get logged out.
edit:
I think i found the problem, well when it happens.
On page load of new a refresh you're logged out instantly.
Currently using firefox on windows 10 it also happened on chrome as well.

You are getting logged out after you use your active key?

Yes, ive tried everything including choosing to stay logged in.
You get logged out after a refresh of the page in these cases:
After submitting the active key for promotion

On reload or going to a different page it logs me out.

After submitting the active key in internal market

On reload or going to a different page it logs me out.

Issues actual


Rename "test" led device to "file"

IMPORTANT: Please don´t commit to master, we will test your changes first at the beta branch!
1. Tell us something about your changes

see above.

2. If this changes affect the .conf file. Please provide the changed section

any reference to the test device type needs to be changed to file
if "output" is omitted, it now defaults to /dev/null

3. Reference a issue (optional)
#536

Can you Chance the branch in to beta, than i can merge it :)

How ?

Done


link reduceBy to groupBy

Why do you want this link?  Just because groupBy is implemented with reduceBy?

I've seen the reduceBy example and its description:
 * This function is basically a more general [`groupBy`](#groupBy) function.

Good enough for me.


can't disconnect wallet

What version of Wallet are you using?
beta3
What is happening?
I opened the fuel wallet beta2, and  connected the web  https://fuellabs.github.io/swayswap .  It can't mint the assets (step 4) ,because the wallet haven't update to beta3.
steps to reproduce
I opened the fuel wallet beta2, and  connected the web  https://fuellabs.github.io/swayswap .  It can't mint the assets (step 4) ,because the wallet haven't update to beta3.  But after I updated the wallet, I reconnect the wallet and open the swaysway. The web is direct jumping to step4 (mint assets), and still can't work  and can't disconnect the wallet to start again.
How it should behave?
need a  disconnect button.
What os are you seeing the problem on?
None
What browser?
Chrome
What is your browser version?
No response

@hussiwong, thanks for reporting. Please make sure the Wallet you are using is on the latest version the version is shown on the sidebar at the bottom. It should be 0.7.2 or bigger.
The current version is already compatible with the beta-3 network and should work correctly.


set new language propertries in admin area

Is there a way to set the language flag and currency for a new language in the admin backend currently?

@bpiltz
No, the default language can be set in config.php file.


kaldialign install error

windows10 python==3.8
logs:
(icefall) PS D:\PyCharm Projects\icefall> pip install -r requirements.txt
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://pypi.ngc.nvidia.com
Collecting kaldilm
Using cached kaldilm-1.13-cp38-cp38-win_amd64.whl
Collecting kaldialign
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/30/1e/ec6129e4c26dc5be08aef1ebc5dd4aba3465e77877aa01533f65ca7aac43/kaldialign-0.2.tar.gz (39 kB)
Preparing metadata (setup.py) ... done
Collecting sentencepiece>=0.1.96
-win_amd64.whl (1.1 MB)
Collecting tensorboard
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/80/49/a5ec29886ef823718c8ae54ed0b3ad7e19066b5bf21cec5038427e6a04c4/tensorboard-2.10.1-py3-none-an
y.whl (5.9 MB)
Collecting typeguard
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9a/bb/d43e5c75054e53efce310e79d63df0ac3f25e34c926be5dffb7d283fb2a8/typeguard-2.13.3-py3-none-any.
whl (17 kB)
Collecting multi_quantization
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5e/a4/31a8052dc173b8fd9c580f717a4dd337d1c9a41a4004bbcd706fc0f4c1b1/multi_quantization-0.1.1-py3-n
one-any.whl (16 kB)
Collecting onnx
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/03/ab/f8850b030d912e1d48ddca9e94df7fa93b151bf5d12c2d056847a367ac4d/onnx-1.12.0-cp38-cp38-win_amd6
4.whl (11.5 MB)
Collecting onnxruntime
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/36/84/276c11a89f3625415f4c16b87dcc46dbb6fea8fd6a28276a05d1f6f3fb6f/onnxruntime-1.12.1-cp38-cp38-w
in_amd64.whl (5.8 MB)
Collecting onnx_graphsurgeon
Using cached https://developer.download.nvidia.cn/compute/redist/onnx-graphsurgeon/onnx_graphsurgeon-0.3.20-py2.py3-none-any.whl (39 kB)
Collecting markdown>=2.6.8
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/86/be/ad281f7a3686b38dd8a307fa33210cdf2130404dfef668a37a4166d737ca/Markdown-3.4.1-py3-none-any.wh
l (93 kB)
Collecting google-auth<3,>=1.6.3
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/be/65/3126b832ae3a8c7446820a9603b4b73e39ade43995922665f128f5aa53ab/google_auth-2.11.1-py2.py3-non
e-any.whl (167 kB)
Collecting werkzeug>=1.0.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c8/27/be6ddbcf60115305205de79c29004a0c6bc53cec814f733467b1bb89386d/Werkzeug-2.2.2-py3-none-any.wh
l (232 kB)
Requirement already satisfied: setuptools>=41.0.0 in d:\anaconda3\envs\icefall\lib\site-packages (from tensorboard->-r requirements.txt (line 4)) (65.4.0)
Collecting google-auth-oauthlib<0.5,>=0.4.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b1/0e/0636cc1448a7abc444fb1b3a63655e294e0d2d49092dc3de05241be6d43c/google_auth_oauthlib-0.4.6-py2
.py3-none-any.whl (18 kB)
Requirement already satisfied: wheel>=0.26 in d:\anaconda3\envs\icefall\lib\site-packages (from tensorboard->-r requirements.txt (line 4)) (0.37.1)
Collecting tensorboard-data-server<0.7.0,>=0.6.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/74/69/5747a957f95e2e1d252ca41476ae40ce79d70d38151d2e494feb7722860c/tensorboard_data_server-0.6.1-
py3-none-any.whl (2.4 kB)
Collecting absl-py>=0.4
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a5/b8/fc74a554a6fc7f26744c883ebfe405cf49c1f1320f13ee874aee47c70e1d/absl_py-1.2.0-py3-none-any.whl
(123 kB)
Requirement already satisfied: numpy>=1.12.0 in d:\anaconda3\envs\icefall\lib\site-packages (from tensorboard->-r requirements.txt (line 4)) (1.22.4)
Collecting protobuf<3.20,>=3.9.2
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e0/68/e8ecfac5dd594b676c23a7f07ea34c197d7d69b3313afdf8ac1b0a9905a2/tensorboard_plugin_wit-1.8.1-p
y3-none-any.whl (781 kB)
Collecting requests<3,>=2.21.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.w
hl (62 kB)
Collecting h5py
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fd/d2/6e712fa82db13e63af29122611dc58e4fbcffda3035efd70afe96f3a0a90/h5py-3.7.0-cp38-cp38-win_amd64
.whl (2.6 MB)
Requirement already satisfied: torch in d:\anaconda3\envs\icefall\lib\site-packages (from multi_quantization->-r requirements.txt (line 6)) (1.12.1)
Requirement already satisfied: typing-extensions>=<IP_ADDRESS> in d:\anaconda3\envs\icefall\lib\site-packages (from onnx->-r requirements.txt (line 7)) (4.3.0)
Collecting coloredlogs
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a7/06/3d6badcf13db419e25b07041d9c7b4a2c331d3f4e7134445ec5df57714cd/coloredlogs-15.0.1-py2.py3-non
e-any.whl (46 kB)
Collecting flatbuffers
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d7/0d/b5bfb553a6ac66d6ec2b6d7f1e814a908fba7188356ac94bb36ae3d905c3/flatbuffers-2.0.7-py2.py3-none
-any.whl (26 kB)
Collecting sympy
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2d/49/a2d03101e2d28ad528968144831d506344418ef1cc04839acdbe185889c2/sympy-1.11.1-py3-none-any.whl
(6.5 MB)
Requirement already satisfied: packaging in d:\anaconda3\envs\icefall\lib\site-packages (from onnxruntime->-r requirements.txt (line 8)) (21.3)
Collecting cachetools<6.0,>=2.0.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/68/aa/5fc646cae6e997c3adf3b0a7e257cda75cff21fcba15354dffd67789b7bb/cachetools-5.2.0-py3-none-any.
whl (9.3 kB)
Collecting pyasn1-modules>=0.2.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/95/de/214830a981892a3e286c3794f41ae67a4495df1108c3da8a9f62159b9a9d/pyasn1_modules-0.2.8-py2.py3-n
one-any.whl (155 kB)
Collecting rsa<5,>=3.1.4
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/49/97/fa78e3d2f65c02c8e1268b9aba606569fe97f6c8f7c2d74394553347c145/rsa-4.9-py3-none-any.whl (34 k
B)
Collecting six>=1.9.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.wh
l (11 kB)
Collecting requests-oauthlib>=0.7.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6f/bb/5deac77a9af870143c684ab46a7934038a53eb4aa975bc0687ed6ca2c610/requests_oauthlib-1.3.1-py2.py
3-none-any.whl (23 kB)
Collecting importlib-metadata>=4.4
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d2/a2/8c239dc898138f208dd14b441b196e7b3032b94d3137d9d8453e186967fc/importlib_metadata-4.12.0-py3-
none-any.whl (21 kB)
Collecting charset-normalizer<3,>=2
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/db/51/a507c856293ab05cdc1db77ff4bc1268ddd39f29e7dc4919aa497f0adbec/charset_normalizer-2.1.1-py3-n
one-any.whl (39 kB)
Collecting idna<4,>=2.5
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fc/34/3030de6f1370931b9dbb4dad48f6ab1015ab1d32447850b9fc94e60097be/idna-3.4-py3-none-any.whl (61
kB)
Collecting urllib3<1.27,>=1.21.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6f/de/5be2e3eed8426f871b170663333a0f627fc2924cc386cd41be065e7ea870/urllib3-1.26.12-py2.py3-none-a
ny.whl (140 kB)
Collecting certifi>=2017.4.17
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1d/38/fa96a426e0c0e68aabc68e896584b83ad1eec779265a028e156ce509630e/certifi-2022.9.24-py3-none-any
.whl (161 kB)
Collecting MarkupSafe>=2.1.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2c/81/91062a81ac8a18f557f12e2618475b53878755c016c9914c8aa207155c4e/MarkupSafe-2.1.1-cp38-cp38-win
_amd64.whl (17 kB)
Collecting humanfriendly>=9.1
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f0/0f/310fb31e39e2d734ccaa2c0fb981ee41f7bd5056ce9bc29b2248bd569169/humanfriendly-10.0-py2.py3-non
e-any.whl (86 kB)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in d:\anaconda3\envs\icefall\lib\site-packages (from packaging->onnxruntime->-r requirements.txt (l
ine 8)) (3.0.9)
Collecting mpmath>=0.19
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d4/cf/3965bddbb4f1a61c49aacae0e78fd1fe36b5dc36c797b31f30cf07dcbbb7/mpmath-1.2.1-py3-none-any.whl
(532 kB)
Collecting pyreadline3
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/56/fc/a3c13ded7b3057680c8ae95a9b6cc83e63657c38e0005c400a5d018a33a7/pyreadline3-3.4.1-py3-none-any
.whl (95 kB)
Collecting zipp>=0.5
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f0/36/639d6742bcc3ffdce8b85c31d79fcfae7bb04b95f0e5c4c6f8b206a038cc/zipp-3.8.1-py3-none-any.whl (5
.6 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/62/1e/a94a8d635fa3ce4cfc7f506003548d0a2447ae76fd5ca53932970fe3053f/pyasn1-0.4.8-py2.py3-none-any.
whl (77 kB)
Collecting oauthlib>=3.0.0
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/92/bb/d669baf53d4ffe081dab80aad93c5c79f84eeac885dd31507c8c055a98d5/oauthlib-3.2.1-py3-none-any.wh
l (151 kB)
Building wheels for collected packages: kaldialign
Building wheel for kaldialign (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-38
creating build\lib.win-amd64-cpython-38\extensions
copying extensions_init_.py -> build\lib.win-amd64-cpython-38\extensions
running build_ext
building 'kaldialign' extension
creating build\temp.win-amd64-cpython-38
creating build\temp.win-amd64-cpython-38\Release
creating build\temp.win-amd64-cpython-38\Release\extensions
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD
-IC:\Users\JHC-L1022\AppData\Local\Temp\pip-install-4pa0y1n_\kaldialign_d8c1fe3fd22c4958886911520cf0ce5d/extensions -ID:\Anaconda3\envs\icefall\include -I
D:\Anaconda3\envs\icefall\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\include" "-IC:\Program Files
(x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10
\include\10.0.20348.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0
.20348.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\cppwinrt" /EHsc /Tpextensions/align.cpp /Fobuild\temp.win-amd64-cpython-3
8\Release\extensions/align.obj -std=c++11 -Wno-register -Wno-unused-function -Wno-unused-local-typedefs -funsigned-char
cl: 命令行 error D8021 :无效的数值参数“/Wno-register”
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe' failed w
ith exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for kaldialign
Running setup.py clean for kaldialign
Failed to build kaldialign
Installing collected packages: tensorboard-plugin-wit, sentencepiece, pyreadline3, pyasn1, mpmath, kaldilm, kaldialign, flatbuffers, zipp, urllib3, typegua
rd, tensorboard-data-server, sympy, six, rsa, pyasn1-modules, protobuf, oauthlib, MarkupSafe, idna, humanfriendly, h5py, charset-normalizer, certifi, cache
tools, absl-py, werkzeug, requests, onnx, multi_quantization, importlib-metadata, grpcio, google-auth, coloredlogs, requests-oauthlib, onnxruntime, onnx_gr
aphsurgeon, markdown, google-auth-oauthlib, tensorboard
Running setup.py install for kaldialign ... error
error: subprocess-exited-with-error
× Running setup.py install for kaldialign did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running install
D:\Anaconda3\envs\icefall\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build
and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-38
creating build\lib.win-amd64-cpython-38\extensions
copying extensions_init_.py -> build\lib.win-amd64-cpython-38\extensions
running build_ext
building 'kaldialign' extension
ith exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> kaldialign
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

@KajiMaCN
Please use
 pip install --verbose -U git+https://github.com/csukuangfj/kaldialign.git@pybind11

as a temporary solution.
I am creating a PR. After it getting merged, you can use
pip install --verbose kaldialign

So does it fix your issue?

So does it fix your issue?

Yes, the issue was solved.

@KajiMaCN Please use
 pip install --verbose -U git+https://github.com/csukuangfj/kaldialign.git@pybind11

as a temporary solution.
I am creating a PR. After it getting merged, you can use
pip install --verbose kaldialign

Ok, I'll try to do it.
pip install --verbose kaldialign  can it be used now？

pip install --verbose kaldialign can it be used now？

Yes. Please post the error messages if it does not work for you.

collect2: error: ld returned 1 exit status
CMakeFiles/_kaldialign.dir/build.make:121: recipe for target '_kaldialign.cpython-37m-x86_64-linux-gnu.so' failed
make[2]: *** [_kaldialign.cpython-37m-x86_64-linux-gnu.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/_kaldialign.dir/all' failed
make[1]: *** [CMakeFiles/_kaldialign.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

pip install --verbose kaldialign can it be used now？

Yes. Please post the error messages if it does not work for you.

Click:
https://github.com/pzelasko/kaldialign/issues/new
error: subprocess-exited-with-error
_ python setup.py bdist_wheel did not run successfully.
_ exit code: 1
__> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.

@wwfcnu
Could you post all of the logs?
It is impossible to figure out what happened from such a limited error message.

@wwfcnu
Could you post all of the logs?
It is impossible to figure out what happened from such a limited error message.
pip install --verbose kaldialign
Using pip 22.3.1 from /usr/local/python3.7.10/lib/python3.7/site-packages/pip (python 3.7)
Collecting kaldialign
Using cached kaldialign-0.4.tar.gz (23 kB)
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info
writing /tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file '/tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Building wheels for collected packages: kaldialign
Running command python setup.py bdist_wheel
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/kaldialign
copying kaldialign/init.py -> build/lib.linux-x86_64-3.7/kaldialign
running build_ext
For fast compilation, run:
export KALDIALIGN_MAKE_ARGS="-j"; python setup.py install
Setting make_args to '-j4'
Setting PYTHON_EXECUTABLE to /usr/local/python3.7.10/bin/python3.7
build command is:

              cd build/temp.linux-x86_64-3.7

              cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/local/python3.7.10/bin/python3.7 -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-wapz

lo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/lib.linux-x86_64-3.7/kaldialign /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c77
4ac
              make -j4 install

-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Downloading pybind11 https://github.com/pybind/pybind11/archive/v2.6.0.tar.gz
-- pybind11 is downloaded to /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/temp.linux-x86_64-3.7/_deps/pybind11-src
-- pybind11 v2.6.0
-- Found PythonInterp: /usr/local/python3.7.10/bin/python3.7 (found version "3.7.10")
-- Found PythonLibs: /usr/local/python3.7.10/lib/libpython3.7m.a
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/temp.linux-x86_64-3.7
Scanning dependencies of target _kaldialign
[ 33%] Building CXX object CMakeFiles/_kaldialign.dir/extensions/kaldialign.cpp.o
[ 66%] Building CXX object CMakeFiles/_kaldialign.dir/extensions/kaldi_align.cpp.o
[100%] Linking CXX shared module _kaldialign.cpython-37m-x86_64-linux-gnu.so
/usr/bin/ld: /usr/local/python3.7.10/lib/libpython3.7m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a s
hared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/_kaldialign.dir/build.make:121: recipe for target '_kaldialign.cpython-37m-x86_64-linux-gnu.so' failed
make[2]: *** [_kaldialign.cpython-37m-x86_64-linux-gnu.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/_kaldialign.dir/all' failed
make[1]: *** [CMakeFiles/_kaldialign.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py", line 149, in
license="Apache licensed, as found in the LICENSE file",
File "/usr/local/python3.7.10/lib/python3.7/site-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/local/python3.7.10/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 325, in run
self.run_command("build")
File "/usr/local/python3.7.10/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 325, in run
self.run_command("build")
File "/usr/local/python3.7.10/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/python3.7.10/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run
_build_ext.run(self)
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py", line 70, in build_extension
"\nBuild kaldialign failed. Please check the error message.\n"
Exception:
Build kaldialign failed. Please check the error message.
You can ask for help by creating an issue on GitHub.
Click:
https://github.com/pzelasko/kaldialign/issues/new
error: subprocess-exited-with-error
_ python setup.py bdist_wheel did not run successfully.
_ exit code: 1
__> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /usr/local/python3.7.10/bin/python3.7 -u -c '
exec(compile('"'"''"'"''"'"'
This is  -- a caller that pip uses to run setup.py

- It imports setuptools before invoking setup.py, to enable projects that directly
import from distutils.core to work with newer packaging standards.
- It provides a clear error message when setuptools is not installed.
- It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so
setuptools doesn'"'"'t think the script is -c. This avoids the following warning:
manifest_maker: standard file '"'"'-c'"'"' not found".
- It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute setup.py since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
file = %r
sys.argv[0] = file
if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py'"'"',), "", "exec"))' bdi
st_wheel -d /tmp/pip-wheel-7wogfr
cwd: /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/
Building wheel for kaldialign (setup.py) ... error
ERROR: Failed building wheel for kaldialign
Running setup.py clean for kaldialign
Running command python setup.py clean
running clean
removing 'build/temp.linux-x86_64-3.7' (and everything under it)
removing 'build/lib.linux-x86_64-3.7' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.7' does not exist -- can't clean it
removing 'build'
Failed to build kaldialign
Installing collected packages: kaldialign
Running command Running setup.py install for kaldialign
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/kaldialign
copying kaldialign/init.py -> build/lib.linux-x86_64-3.7/kaldialign
running build_ext
For fast compilation, run:
export KALDIALIGN_MAKE_ARGS="-j"; python setup.py install
Setting make_args to '-j4'
Setting PYTHON_EXECUTABLE to /usr/local/python3.7.10/bin/python3.7
build command is:
              cd build/temp.linux-x86_64-3.7

              cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/local/python3.7.10/bin/python3.7 -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-wapz

lo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/lib.linux-x86_64-3.7/kaldialign /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c77
4ac
              make -j4 install

-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Downloading pybind11 https://github.com/pybind/pybind11/archive/v2.6.0.tar.gz
-- pybind11 is downloaded to /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/temp.linux-x86_64-3.7/_deps/pybind11-src
-- pybind11 v2.6.0
-- Found PythonInterp: /usr/local/python3.7.10/bin/python3.7 (found version "3.7.10")
-- Found PythonLibs: /usr/local/python3.7.10/lib/libpython3.7m.a
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/temp.linux-x86_64-3.7
Scanning dependencies of target _kaldialign
[ 33%] Building CXX object CMakeFiles/_kaldialign.dir/extensions/kaldialign.cpp.o
[ 66%] Building CXX object CMakeFiles/_kaldialign.dir/extensions/kaldi_align.cpp.o
[100%] Linking CXX shared module _kaldialign.cpython-37m-x86_64-linux-gnu.so
/usr/bin/ld: /usr/local/python3.7.10/lib/libpython3.7m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a s
hared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/_kaldialign.dir/build.make:121: recipe for target '_kaldialign.cpython-37m-x86_64-linux-gnu.so' failed
make[2]: *** [_kaldialign.cpython-37m-x86_64-linux-gnu.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/_kaldialign.dir/all' failed
make[1]: *** [CMakeFiles/_kaldialign.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py", line 149, in
license="Apache licensed, as found in the LICENSE file",
File "/usr/local/python3.7.10/lib/python3.7/site-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/local/python3.7.10/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/install.py", line 545, in run
File "/usr/local/python3.7.10/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/python3.7.10/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run
_build_ext.run(self)
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py", line 70, in build_extension
"\nBuild kaldialign failed. Please check the error message.\n"
Exception:
Build kaldialign failed. Please check the error message.
You can ask for help by creating an issue on GitHub.
Click:
https://github.com/pzelasko/kaldialign/issues/new
error: subprocess-exited-with-error
_ Running setup.py install for kaldialign did not run successfully.
_ exit code: 1
__> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /usr/local/python3.7.10/bin/python3.7 -u -c '
exec(compile('"'"''"'"''"'"'
This is  -- a caller that pip uses to run setup.py

- It imports setuptools before invoking setup.py, to enable projects that directly
import from distutils.core to work with newer packaging standards.
- It provides a clear error message when setuptools is not installed.
- It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so
setuptools doesn'"'"'t think the script is -c. This avoids the following warning:
manifest_maker: standard file '"'"'-c'"'"' not found".
- It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute setup.py since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
file = %r
sys.argv[0] = file
if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py'"'"',), "", "exec"))' ins
tall --record /tmp/pip-record-luou2ts3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/python3.7.10/include
/python3.7m/kaldialign
cwd: /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/
Running setup.py install for kaldialign ... error
error: legacy-install-failure
_ Encountered error while trying to install package.
__> kaldialign
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

@wwfcnu
Could you post all of the logs?
It is impossible to figure out what happened from such a limited error message.

pip install --verbose kaldialign
Using pip 22.3.1 from /usr/local/python3.7.10/lib/python3.7/site-packages/pip (python 3.7)
Collecting kaldialign
Using cached kaldialign-0.4.tar.gz (23 kB)
Running command python setup.py egg_info
running egg_info
creating /tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info
writing /tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file '/tmp/pip-pip-egg-info-kw5x6dzg/kaldialign.egg-info/SOURCES.txt'
Preparing metadata (setup.py) ... done
Building wheels for collected packages: kaldialign
Running command python setup.py bdist_wheel
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/kaldialign
copying kaldialign/init.py -> build/lib.linux-x86_64-3.7/kaldialign
running build_ext
For fast compilation, run:
export KALDIALIGN_MAKE_ARGS="-j"; python setup.py install
Setting make_args to '-j4'
Setting PYTHON_EXECUTABLE to /usr/local/python3.7.10/bin/python3.7
build command is:
          cd build/temp.linux-x86_64-3.7

          cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/local/python3.7.10/bin/python3.7 -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-wapz

lo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/lib.linux-x86_64-3.7/kaldialign /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c77
4ac
          make -j4 install

-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Downloading pybind11 https://github.com/pybind/pybind11/archive/v2.6.0.tar.gz
-- pybind11 is downloaded to /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/temp.linux-x86_64-3.7/_deps/pybind11-src
-- pybind11 v2.6.0
-- Found PythonInterp: /usr/local/python3.7.10/bin/python3.7 (found version "3.7.10")
-- Found PythonLibs: /usr/local/python3.7.10/lib/libpython3.7m.a
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/temp.linux-x86_64-3.7
Scanning dependencies of target _kaldialign
[ 33%] Building CXX object CMakeFiles/_kaldialign.dir/extensions/kaldialign.cpp.o
[ 66%] Building CXX object CMakeFiles/_kaldialign.dir/extensions/kaldi_align.cpp.o
[100%] Linking CXX shared module _kaldialign.cpython-37m-x86_64-linux-gnu.so
/usr/bin/ld: /usr/local/python3.7.10/lib/libpython3.7m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a s
hared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/_kaldialign.dir/build.make:121: recipe for target '_kaldialign.cpython-37m-x86_64-linux-gnu.so' failed
make[2]: *** [_kaldialign.cpython-37m-x86_64-linux-gnu.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/_kaldialign.dir/all' failed
make[1]: *** [CMakeFiles/_kaldialign.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py", line 149, in
license="Apache licensed, as found in the LICENSE file",
File "/usr/local/python3.7.10/lib/python3.7/site-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/local/python3.7.10/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 325, in run
self.run_command("build")
File "/usr/local/python3.7.10/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 325, in run
self.run_command("build")
File "/usr/local/python3.7.10/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/python3.7.10/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run
_build_ext.run(self)
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py", line 70, in build_extension
"\nBuild kaldialign failed. Please check the error message.\n"
Exception:
Build kaldialign failed. Please check the error message.
You can ask for help by creating an issue on GitHub.
Click:
https://github.com/pzelasko/kaldialign/issues/new
error: subprocess-exited-with-error
_ python setup.py bdist_wheel did not run successfully.
_ exit code: 1
__> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /usr/local/python3.7.10/bin/python3.7 -u -c '
exec(compile('"'"''"'"''"'"'
This is -- a caller that pip uses to run setup.py

It imports setuptools before invoking setup.py, to enable projects that directly
import from distutils.core to work with newer packaging standards.
It provides a clear error message when setuptools is not installed.
It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so
setuptools doesn'"'"'t think the script is -c. This avoids the following warning:
manifest_maker: standard file '"'"'-c'"'"' not found".
It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize

try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute setup.py since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
file = %r
sys.argv[0] = file
if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py'"'"',), "", "exec"))' bdi
st_wheel -d /tmp/pip-wheel-7wogfr
cwd: /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/
Building wheel for kaldialign (setup.py) ... error
ERROR: Failed building wheel for kaldialign
Running setup.py clean for kaldialign
Running command python setup.py clean
running clean
removing 'build/temp.linux-x86_64-3.7' (and everything under it)
removing 'build/lib.linux-x86_64-3.7' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.7' does not exist -- can't clean it
removing 'build'
Failed to build kaldialign
Installing collected packages: kaldialign
Running command Running setup.py install for kaldialign
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/kaldialign
copying kaldialign/init.py -> build/lib.linux-x86_64-3.7/kaldialign
running build_ext
For fast compilation, run:
export KALDIALIGN_MAKE_ARGS="-j"; python setup.py install
Setting make_args to '-j4'
Setting PYTHON_EXECUTABLE to /usr/local/python3.7.10/bin/python3.7
build command is:
          cd build/temp.linux-x86_64-3.7

          cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/local/python3.7.10/bin/python3.7 -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-wapz

lo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/lib.linux-x86_64-3.7/kaldialign /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c77
4ac
          make -j4 install

-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Downloading pybind11 https://github.com/pybind/pybind11/archive/v2.6.0.tar.gz
-- pybind11 is downloaded to /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/temp.linux-x86_64-3.7/_deps/pybind11-src
-- pybind11 v2.6.0
-- Found PythonInterp: /usr/local/python3.7.10/bin/python3.7 (found version "3.7.10")
-- Found PythonLibs: /usr/local/python3.7.10/lib/libpython3.7m.a
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/build/temp.linux-x86_64-3.7
Scanning dependencies of target _kaldialign
[ 33%] Building CXX object CMakeFiles/_kaldialign.dir/extensions/kaldialign.cpp.o
[ 66%] Building CXX object CMakeFiles/_kaldialign.dir/extensions/kaldi_align.cpp.o
[100%] Linking CXX shared module _kaldialign.cpython-37m-x86_64-linux-gnu.so
/usr/bin/ld: /usr/local/python3.7.10/lib/libpython3.7m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a s
hared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/_kaldialign.dir/build.make:121: recipe for target '_kaldialign.cpython-37m-x86_64-linux-gnu.so' failed
make[2]: *** [_kaldialign.cpython-37m-x86_64-linux-gnu.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/_kaldialign.dir/all' failed
make[1]: *** [CMakeFiles/_kaldialign.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py", line 149, in
license="Apache licensed, as found in the LICENSE file",
File "/usr/local/python3.7.10/lib/python3.7/site-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/local/python3.7.10/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/install.py", line 545, in run
File "/usr/local/python3.7.10/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/python3.7.10/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/python3.7.10/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/python3.7.10/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run
_build_ext.run(self)
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/local/python3.7.10/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py", line 70, in build_extension
"\nBuild kaldialign failed. Please check the error message.\n"
Exception:
Build kaldialign failed. Please check the error message.
You can ask for help by creating an issue on GitHub.
Click:
https://github.com/pzelasko/kaldialign/issues/new
error: subprocess-exited-with-error
_ Running setup.py install for kaldialign did not run successfully.
_ exit code: 1
__> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /usr/local/python3.7.10/bin/python3.7 -u -c '
exec(compile('"'"''"'"''"'"'
This is -- a caller that pip uses to run setup.py

It imports setuptools before invoking setup.py, to enable projects that directly
import from distutils.core to work with newer packaging standards.
It provides a clear error message when setuptools is not installed.
It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so
setuptools doesn'"'"'t think the script is -c. This avoids the following warning:
manifest_maker: standard file '"'"'-c'"'"' not found".
It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize

try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute setup.py since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
file = %r
sys.argv[0] = file
if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/setup.py'"'"',), "", "exec"))' ins
tall --record /tmp/pip-record-luou2ts3/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/python3.7.10/include
/python3.7m/kaldialign
cwd: /tmp/pip-install-wapzlo4v/kaldialign_bdcf0ba7f4804a45865a280975c774ac/
Running setup.py install for kaldialign ... error
error: legacy-install-failure
_ Encountered error while trying to install package.
__> kaldialign
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

/usr/bin/ld: /usr/local/python3.7.10/lib/libpython3.7m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a s

The error says you are using a statically linked Python.
Could you install a version of Python that provides shared library?
(You are currently using /usr/local/python3.7.10/lib/libpython3.7m.a, but we expect
/usr/local/python3.7.10/lib/libpython3.7m.so)

/usr/local/python3.7.10/lib/libpython3.7m.so

i can't find /usr/local/python3.7.10/lib/libpython3.7m.so

How did you install Python?

How did you install Python?

installed python3.7

I mean which command are you using to install python?

I mean which command are you using to install python?

also tried  pip install --verbose -U git+https://github.com/csukuangfj/kaldialign.git@pybind11

I mean which command are you using to install python?

Download the tgz compressed package of python 3.7 and unzip it

What are the commands you used to build python ?
Could you use
./configure --enable-shared

?
That is, pass --enable-shared to ./configure.

What are the commands you used to build python ?
Could you use
./configure --enable-shared

?
That is, pass --enable-shared to ./configure.

thanks，it works


A couple question about running the app

I cloned the repo and followed readme to do
npm install --save edgegrid
I got this error: npm WARN install Refusing to install edgegrid as a dependency of itself
so I did npm install
How do I run the app?
In which file can I find the '/path/to/.edgerc', and change it according to my env? I have .edgerc in my ~ directory

Hi iyip,
I think you might be a bit confused about how you install node packages. You do not need to clone the project, unless you intend to link to it locally. If you simply want to use the Node Edgegrid module in your Node.js project, you first you have to install node.js in the environment where you plan to run your application (this could be your local machine or a remote server). Next you have to initiate your node.js application, or manually create your package.json file for your node app. Once you've done this, you can then run npm install --save edgegrid from the root of your project. This will download and install the Node Edgegrid project from NPM (https://www.npmjs.com/package/edgegrid) and save it as a dependency of your project.
Then to link to your .edgerc file, you just have to change '/path/to/.edgerc' to the path of the .edgerc file on your machine ('/users/iyip/.edgerc' or whatever it is for your file).
I hope this helps,
Kyle


package: add esmodules build

It looks like the test files are included in the build, I noticed this because when the tests ran I saw double the amount, half coming from the build directory 😛

good catch didn't notice that before haha, should be fixed as of 36199ae

closing due to #87


Overload & and ^ for ciruit.compose and circuit.tensor

Summary
Fixes #6060
Details and comments
The operators & and ^ were overloaded in qiskit.circuit.quantumcircuit to represent, respectively, the methods compose() and tensor()

There you go @kdk !, I was a little busy last week but I could finally take a look at the tests. Let me know if more testing is needed.


WIP: Update PowerShellGet to latest v3 beta

PR Summary
Update PowerShellGet to latest v3 beta. Also add the Compat module for backward compatibility with v2 cmdlets
PR Context

PR Checklist

[ ] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[ ] Summarized changes
[ ] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[ ] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[ ] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[ ] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[ ] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[ ] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and opened an issue in the relevant tool repository. This may include:

[ ] Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode
(which runs in a different PS Host).

[ ] Issue filed:

[ ] Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.

[ ] Issue filed:

[ ] Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).

[ ] Issue filed:

[ ] Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

[ ] Issue filed:

Close this PR assuming #19597 supersedes this one.


[BUG] Duplicate terms appear when searching child terms in Swate Alpha

Describe the bug
When I search child terms to annotate my sheet, I get duplicate terms showing up
To Reproduce
Steps to reproduce the behavior:

Go to Excel and add the 'organism' heading using Swate Alpha
Click on the row under the 'organism' heading and in the 'Ontology search term' window, search 'Arabidopsis'
See error: multiple terms with the same NCBITaxon ontology appear as options to select

Expected behavior
I would expect each option that appears to have a different term id and that duplicates will not be revealed
Screenshots

OS and framework information (please complete the following information):

OS: Windows 11 Pro

Additional context
I assume this has to do with multiple ontologies included in the SwateDB having the NCBITaxon term for Arabidposis imported into their own ontology and Swate Alpha is showing every one of these?

Done! The changes go live with version 0.6.2. 🚀


Show manholes?

Hi, I would like to suggest to add man_made=manhole to the rendering. While manhole=* might additionally explain if the object belongs to the watersystem or to power / telecommunication, currently not all have a appropriate tag. So it might be usefull to indicate this candidates in grey to any of the infrastructure systems?
P.S: I submitted an streetcomplete quest to allow mappers to fill in this detail easily.

I have a deep concern about manole=* key, which is a kind of duplicate of utility=* key.
This had been noticed back in 2021 but nothing was done to tackle this and usage is growing up quickly.
https://wiki.openstreetmap.org/wiki/Talk:Key:manhole
I'm not sure such a specific usage should be encouraged this way while we spend great time to put consistency in things.
To me, it should be refined prior to make anything more on that particular topic.


Fail to Local Training

PyTorch version : 1.6.0+cu101
Experimental Scripts: https://github.com/petuum/adaptdl/blob/master/tutorial/mnist_step_5.py
Command:
# step 1
python3 -m pip install adaptdl
#  step 2
python -u minist_step_5.py

Error Message:
INFO:adaptdl.reducer:rank 0 connecting to <IP_ADDRESS> on port 35479
INFO:adaptdl.reducer:Master waiting for connections on 0
INFO:adaptdl.torch:Initializing torch.distributed using tcp://<IP_ADDRESS>:21129?rank=0&world_size=1
INFO:adaptdl.torch:torch.distributed initialized
/mnt/lustre/wgao/miniconda3/envs/adapt/lib/python3.6/site-packages/torch/nn/parallel/distributed.py:364: UserWarning: Single-Process Multi-GPU is not the recommended mode for DDP. In this mode, each DDP instance operates on multiple devices and creates multiple module replicas within one process. The overhead of scatter/gather and GIL contention in every forward pass can slow down training. Please consider using one DDP instance per device or per module replica by explicitly setting device_ids or CUDA_VISIBLE_DEVICES.
  "Single-Process Multi-GPU is not the recommended mode for "
INFO:adaptdl.torch.epoch:starting at epoch 0
Train Epoch: 0 [0/60000 (0%)]   Loss: 2.321594
Traceback (most recent call last):
  File "mnist_step_5.py", line 144, in <module>
    main()
  File "mnist_step_5.py", line 135, in main
    train(args, model, device, train_loader, optimizer, epoch)
  File "mnist_step_5.py", line 46, in train
    loss.backward()
  File "/mnt/lustre/wgao/miniconda3/envs/adapt/lib/python3.6/site-packages/torch/tensor.py", line 185, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph)
  File "/mnt/lustre/wgao/miniconda3/envs/adapt/lib/python3.6/site-packages/torch/autograd/__init__.py", line 127, in backward
    allow_unreachable=True)  # allow_unreachable flag
RuntimeError

Thanks for the bug report! It looks like I'm unable to reproduce the error... Could you say a bit more about your local environment (what OS, number and model of GPUs, etc.)?

OS Environment:
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Python Version:
Python 3.6.13 :: Anaconda, Inc.

GPU environment
NVIDIA-SMI 418.67       Driver Version: 418.67       CUDA Version: 10.1
Product Name                    : Tesla V100-PCIE-32GB
single GPU

Thanks for your reply.
Hope this is useful for you.

@gaow0007 would you be able to reproduce this error using the changes to adaptdl from https://github.com/petuum/adaptdl/pull/94? It adds better error reporting for the pytorch backward hooks and should help show the actual source of your error.

Thanks a lot! The bug is from that multi shares the same GPUs.  I try another free GPU and it works.
/mnt/lustre/wgao/miniconda3/envs/adapt/lib/python3.6/site-packages/torch/nn/parallel/distributed.py:364: UserWarning: Single-Process Multi-GPU is not the recommended mode for DDP. In this mode, each DDP instance operates on multiple devices and creates multiple module replicas within one process. The overhead of scatter/gather and GIL contention in every forward pass can slow down training. Please consider using one DDP instance per device or per module replica by explicitly setting device_ids or CUDA_VISIBLE_DEVICES.
  "Single-Process Multi-GPU is not the recommended mode for "
INFO:adaptdl.torch.epoch:starting at epoch 0
Train Epoch: 0 [0/60000 (0%)]   Loss: 2.321594
Train Epoch: 0 [640/60000 (1%)] Loss: 1.213756
Train Epoch: 0 [1280/60000 (2%)]        Loss: 1.266023
Train Epoch: 0 [1920/60000 (3%)]        Loss: 0.591474
Train Epoch: 0 [2560/60000 (4%)]        Loss: 0.518585
Train Epoch: 0 [3200/60000 (5%)]        Loss: 0.475598
Traceback (most recent call last):
  File "/mnt/lustre/wgao/miniconda3/envs/adapt/lib/python3.6/site-packages/adaptdl/utils.py", line 27, in wrapper
    return function(*args, **kwargs)
  File "/mnt/lustre/wgao/miniconda3/envs/adapt/lib/python3.6/site-packages/adaptdl/torch/parallel.py", line 133, in _final_callback
    profile_sync_time(self._sync_start.elapsed_time(sync_end) / 1e3)
  File "/mnt/lustre/wgao/miniconda3/envs/adapt/lib/python3.6/site-packages/torch/cuda/streams.py", line 173, in elapsed_time
    return super(Event, self).elapsed_time(end_event)
RuntimeError: CUDA error: invalid resource handle
Traceback (most recent call last):
  File "mnist_step_5.py", line 144, in <module>
    main()
  File "mnist_step_5.py", line 135, in main
    train(args, model, device, train_loader, optimizer, epoch)
  File "mnist_step_5.py", line 46, in train
    loss.backward()
  File "/mnt/lustre/wgao/miniconda3/envs/adapt/lib/python3.6/site-packages/torch/tensor.py", line 185, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph)
  File "/mnt/lustre/wgao/miniconda3/envs/adapt/lib/python3.6/site-packages/torch/autograd/__init__.py", line 127, in backward
    allow_unreachable=True)  # allow_unreachable flag
RuntimeError


No way of undoing delete mode

When you press backspace, the node becomes red, but there's no way of returning it to normal

With #26 you can undo it by moving focus to another component. Still, having a key such as Esc to undo deletion would improve the user experience.


Introduce Stop BlobStore API on server side

Add new request type StopBlobStore on server side and finish the API to
handle stopping BlobStore. This commit involves changes in AmbryRequest,
StorageManager, DiskManager, ServerErrorCode, AdminRequestOrResponseType
and the new file StopBlobStoreAdminRequest.

Codecov Report

Merging #880 into master will decrease coverage by 0.02%.
The diff coverage is 83.75%.

@@             Coverage Diff              @@
##             master     #880      +/-   ##
============================================
- Coverage     66.94%   66.91%   -0.03%
- Complexity     4226     4244      +18
============================================
  Files           356      357       +1
  Lines         27714    27792      +78
  Branches       3516     3530      +14
============================================
+ Hits          18552    18597      +45
- Misses         8208     8232      +24
- Partials        954      963       +9

Impacted Files
Coverage Δ
Complexity Δ

.../main/java/com.github.ambry.store/DiskManager.java
85.57% <0%> (-8.11%)
26 <0> (ø)

...java/com.github.ambry.commons/ServerErrorCode.java
100% <100%> (ø)
1 <0> (ø)
:arrow_down:

...hub.ambry.protocol/AdminRequestOrResponseType.java
100% <100%> (ø)
1 <0> (ø)
:arrow_down:

...thub.ambry.protocol/StopBlobStoreAdminRequest.java
100% <100%> (ø)
9 <9> (?)

...in/java/com.github.ambry.store/StorageManager.java
89.61% <50%> (-2.18%)
21 <1> (+1)

...in/java/com.github.ambry.server/AmbryRequests.java
71.08% <94.73%> (+1.67%)
71 <10> (+12)
:arrow_up:

...in/java/com.github.ambry.store/BlobStoreStats.java
69.61% <0%> (-2.4%)
81% <0%> (-2%)

...b.ambry.network/BlockingChannelConnectionPool.java
63.47% <0%> (-2.18%)
8% <0%> (ø)

.../src/main/java/com.github.ambry.store/Journal.java
89.65% <0%> (-1.73%)
19% <0%> (-1%)

...java/com.github.ambry.store/CompactionManager.java
90% <0%> (-0.72%)
19% <0%> (ø)

... and 2 more

Continue to review full report at Codecov.

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

When the store is stopped, we should also get that reflected in the cluster manager. This may not be immediately possible (since our current schema does not support marking single replicas as UNAVAILABLE, you can only mark whole disks as UNAVAILABLE). Could you open an issue for this?


How to get Browser compatibility

Hi @legraphista ,
I have an another doubt. When I use the node-server-screenshot in firefox browser, It always capture image look like in chrome. There's any ways to change the look of other browser view.

The above image is the view in firefox. When I capture this page, It creates the below image.

This module uses Electron (Chromium) to produce screenshots.

So, there's no way to capture that view on firefox. right ?

No

Then, How to capture that ?

I'm sorry, but this question is out of the module's scope.

Ok. Thank you


Add role_arn settings variable

Description

Adds the role_arn settings variable to avoid any use of the IAM API, which is normally used to resolve a role name to an ARN.
GitHub Issues

#1218 - Support user auth with GetFederationToken

Coverage decreased (-0.007%) to 73.658% when pulling c3b6bc737424216142a05d2037d9ca869a7bb6c5 on cyounkins:master into b1154942f75f1e0e94c90a20a5fdd6696e354168 on Miserlou:master.

Looks good!!

I tested it in my environment, yes.


delay robot message

is there a way to add a bit of a delay before the robot sends the next field? I see you in your GIF you have that, with 3 dots as a loader...I was able to replicate it by showing and hiding fields, but isn't there a cleaner way?

@tadinski you are able to do this using what I describe here
in `flowStepCallback``
new cf.ConversationalForm(<ConversationalFormOptions> {
    formEl: <HTMLFormElement>,
    flowStepCallback (dto: FlowDTO, success: () => void, error: () => void) => boolean {
        console.log(dto);
        setTimeout( () => success(), 1000); // <-- delay the next step
    }
});

what will be es5 code for this ? thanks

new cf.ConversationalForm({
    formEl: document.getElementsByTagName("form")[0],
    flowStepCallback function(dto, success, error) {
        console.log(dto);
        success();
    }
});

I may not understand, but this doesn't seem to work. The timeout fires before the user input is accepted, so it feels like the user's input is being delayed, not the robot's response. Also, this only fires when the field is marked as required.

@jamiecounsell I understand, we will be releasing a minor release today/tmr, will see if I can add something that makes this easier to customise.
As a reference, then we removed the "thinking" logic/delay we had in the beginning because feedback was that it slowed the form process down.

Thanks for the quick response. If you don't get to it, I'll see if I can submit a PR this weekend.


FullHttpRequest  how to get query params

pipeline.addLast("serverCodec", new HttpServerCodec());
pipeline.addLast("aggregator", new HttpObjectAggregator(Integer.MAX_VALUE));

SimpleChannelInboundHandler

channelRead0(ChannelHandlerContext ctx, FullHttpRequest request){
}

netty as server , listen on 8080....
curl --proxy <IP_ADDRESS>:8080 http://ip.sb?name=xxx

I can get query string by request.uri() , it like http://ip.sb?name=xxx
but https , I can't  get it
curl --proxy <IP_ADDRESS>:8080 https://ip.sb?name=xxx

request.uri() return ip.sb:443, not contains query params,  and I don't find how to get it

This has nothing to do with Netty. In your second request, you’re using your Netty server as a proxy to perform tunneling. In this case, the user-agent must send a CONNECT request with only the target host and pory. This is what you see. See https://en.m.wikipedia.org/wiki/HTTP_tunnel

Here is my code.
import io.netty.handler.codec.http.DefaultFullHttpRequest;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.HttpMethod;
import io.netty.handler.codec.http.HttpVersion;

import java.net.URI;
import java.net.URISyntaxException;

public class TestURI {
    public static void main(String[] args) throws URISyntaxException {
        FullHttpRequest fullHttpRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "https://ip.sb?name=xxx");
        System.out.println("Using FullHttpRequest: " + fullHttpRequest.uri());
        System.out.println("Using URI: " + new URI(fullHttpRequest.uri()).getQuery());
    }
}

Outputs:
Using FullHttpRequest: https://ip.sb?name=xxx
Using URI: name=xxx

Try using java.net.URI for parsing URI.

It's not a Netty problem. cURL is not sending query string with the request, Here is my code:
import io.netty.handler.codec.http.DefaultFullHttpRequest;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.HttpMethod;
import io.netty.handler.codec.http.HttpVersion;

public class TestURI {
    public static void main(String[] args) {
        FullHttpRequest fullHttpRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "https://ip.sb?name=xxx");
        System.out.println("FullHTTPRequest: " + fullHttpRequest.uri());
    }
}

Output:
FullHTTPRequest:https://ip.sb?name=xxx

It's not a Netty problem. cURL is not sending query string with the request, Here is my code:
import io.netty.handler.codec.http.DefaultFullHttpRequest;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.HttpMethod;
import io.netty.handler.codec.http.HttpVersion;

public class TestURI {
    public static void main(String[] args) {
        FullHttpRequest fullHttpRequest = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "https://ip.sb?name=xxx");
        System.out.println("FullHTTPRequest: " + fullHttpRequest.uri());
    }
}

Output:
FullHTTPRequest: https://ip.sb?name=xxx

thanks,  I konwn how to handle it.  It's more complicated than I thought.


Ability to export a theme file.

Is there a way i can export a theme.scss file.
all the components has a scss file that would have a mixin.
the library would export a scss file that can be imported and customised like in angular material.

A solution could be the following:

Bundling SCSS files to one bundled file using a library like https://github.com/SimplrJS/scss-bundle
Copy the theme.scss file to dist folder

wow awsome. that worked :)
thanks


[BUG] It seems that in Mac Catalyst SwiftUI app, after closing a Superwall opened on app start, the whole app becomes unresponsive to clicks!

New issue checklist

[x] I have reviewed the README and documentation
[x] I have searched existing issues and this is not a duplicate
[ ] I have attempted to reproduce the issue and include an example project.

General information

Superwall version: 3.4.5
iOS version(s): Sonoma 14.2.1
CocoaPods/Carthage version (if applicable):
Xcode version: Version 15.2 (15C500b)
Devices/Simulators affected: iOS app running as a Mac Catalyst native app on mac
Reproducible in the demo project? (Yes/No): See below
Related issues:

Describe the bug
I have an iOS app that is also built as a Mac Catalyst app for macs (both intel and Apple Silicon). I am using Superwall, and it is configured to show on app activate (unless the app is purchased). This works great on iOS (both device and simulator), but when I run the exact same code on the mac, the app UI is blocked after closing the paywall.
Specifically, scrolling works, but any clicks (like button clicks) do not. The app behaves as if there was some invisible layer eating all clicks after closing the Superwall webview.
Steps to reproduce

Create an iOS app that also runs as Mac Catalyst app:

Add Superwall
Open superwall paywall
Close superwall paywall with the close button
Try to click around the app - no control reacts on clicks

Other Information
These are Superwall logs I see in Xcode console. I tried to get more info about A JavaScript exception occurred, but it doesn't show up when debugging the webview in Safari debug mode, so it seems like this is happening when Superwall reads the values from the webview?
But anyway, I get the same messages in iOS, and the app works fine there after closing the superwall.
▿ 2024-01-19T23:49:05.997Z ‼ [Superwall] [paywallPresentation] - ERROR: Paywall Already Presented: 1 key/value pair
  ▿ (2 elements)
    - key: "info"
    ▿ value: 1 key/value pair
      ▿ (2 elements)
        - key: "message"
        - value: "Superwall.shared.isPaywallPresented is true"
2024-01-19T23:49:05.998Z ℹ [Superwall] [paywallPresentation] - INFO: Skipped paywall presentation: paywall_already_presented
▿ 2024-01-19T23:49:05.999Z ‼ [Superwall] [paywallPresentation] - ERROR: Paywall Already Presented: 1 key/value pair
  ▿ (2 elements)
    - key: "info"
    ▿ value: 1 key/value pair
      ▿ (2 elements)
        - key: "message"
        - value: "Superwall.shared.isPaywallPresented is true"
2024-01-19T23:49:05.999Z ℹ [Superwall] [paywallPresentation] - INFO: Skipped paywall presentation: paywall_already_presented
▿ 2024-01-19T23:49:06.012Z ‼ [Superwall] [paywallViewController] - ERROR: Error Evaluating JS: 2 key/value pairs
  ▿ (2 elements)
    - key: "info"
    ▿ value: 1 key/value pair
      ▿ (2 elements)
        - key: "message"
        - value: "  window.paywall.accept64(\'W3sicGF5d2FsbF9pZGVudGlmaWVyIjoieWYtcmVkZWVtLWRlbW9jb250ZW50LTg5MDEtMjAyMy0wNS0yNCIsInBheXdhbGxfaWQiOiI3NjU0IiwiZXZlbnRfbmFtZSI6InBheXdhbGxfb3BlbiJ9XQ==\');"
  ▿ (2 elements)
    - key: "error"
    - value: Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=0, WKJavaScriptExceptionMessage=TypeError: undefined is not an object, WKJavaScriptExceptionColumnNumber=0, NSLocalizedDescription=A JavaScript exception occurred} #0
      - super: NSObject

As setting up a new app with a separate Superwall is a bit tedious, I would appreciate if you could first try enabling building as Mac Catalyst app for some of your testing apps, and see if you can reproduce the issue there. If not, I will see if I can create a minimal reproduction sample, but so far it seems that just running any SwiftUI Superwall enabled app as Mac Catalyst mac app should trigger this.

Hey, thanks for reporting. I'm not able to reproduce following the steps you've provided. I tried this within our SwiftUI sample app. Are you able to reproduce within our sample app? I also tried both with an app_launch trigger and just a button to open the paywall.

Realised I was on a slightly older version of Sonoma. I updated my mac and found the issue. When we present a paywall we create a new UIWindow to present from. This wasn't being removed correctly on Mac. This is fixed and will be included in the next release, thanks for reporting!

Awesome, thank you!


chore: revise docs

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 5.85%. Comparing base (bdfc976) to head (f5dfad7).

Additional details and impacted files
@@          Coverage Diff          @@
##            main     #70   +/-   ##
=====================================
  Coverage   5.85%   5.85%
=====================================
  Files          1       1
  Lines        410     410
=====================================
  Hits          24      24
  Misses       386     386

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

@brewmaster012 is this one still relevant?


Write a JavaScript program to move all zeroes to end of array

Description
Write a JavaScript program to move all zeroes to end of array
Input  : arr[] = {1, 2, 0, 4, 3, 0, 5, 0};
Output : arr[] = {1, 2, 4, 3, 5, 0, 0, 0};

Input  : arr[] = {1, 2, 0, 0, 0, 3, 6};
Output : arr[] = {1, 2, 3, 6, 0, 0, 0};

How to contribute

Comment !assign to assign this issue to yourself
Fork this repository
Create a new branch
Save the solution in program/program/move-all-zeroes-to-end-of-array/MoveAllZeroesToEndOfArray.js
Commit the changes
Create a pull request

!assign

!assgn

!assign


[question] Partial response in included resource

Hi?
I'm in the middle of implementing the partial response feature in a Laravel project. In doing so, responding partial in parent resource was so easy, thanks to the transformer from this library.
// /books?fields=foo,bar

public function transform(Book $book)
{
    $payload = [
        // ...
    ];

    if ($select = request()->input('fields')) {
        $select = explode(',', $select);
        $payload = array_only($payload, $select);
    }

    return $payload;
}

Though, it was not easy with sub resources. The reason is because I was not able to find a way to  pass parsed fields param value to the child transformer.
// What I want to do is make this work. But don't know how...
// /books?include=tags:fields(baz|fiz)

public function includeTags(Book $book, ParamBag $params = null)
{
    list($limit, $offset, $orderCol, $orderBy) = $this->calculateParams($params);

    $tags = $book->tags()->limit($limit)->offset($offset)->orderBy($orderCol, $orderBy)->get();

    return $this->collection($tags new TagTransformer);
}

Not clean though, should I resort to passing the value through the child's constructor. Hope this is not the only way. Any other idea? without touching the underlying league/fractal code.
Thanks in advance.

Not that neat, but I made it work anyway. Now below is possible.
GET /books?fields=tic,tac,toe&include=tags:fields(foo|bar|baz|...)

The code can be found at

https://github.com/appkr/api/blob/master/src/example/AuthorTransformer.php#L8
https://github.com/appkr/api/blob/master/src/TransformerAbstract.php#L8

Any feedback is more than welcomed (^^/). Thanks~


Add configurable support for setting last modified file/directory timestamps (issue #19)

Add configurable support for setting last modified file/directory timestamps. E.g. when a user mounts a DAV share and runs touch or copy/rsync commands with preserve timestamps flags to destination files or directories there. Not enabled by default since it may not be compliant with RFC 4918.
This is a proposed patch for issue #19 .
Tested to work as expected on files and directories with the new mutable_live_props configuration unset, set to [] and
mutable_live_props = ["{DAV:}getlastmodified"]
Please comment or consider for merging.
Cheers, Jonas

Thanks, looks good to me!
Would you also add a line or two to annotated_wsgidav.conf and wsgidav.conf.sample?

Great, I added some notes in those configurations as suggested.
Feel free to modify as you see fit.

Thanks again!


add support for version v1.27.2

Summary

Currently we have support for version v1.24.0 and we need to support  v1.27.2 also
Why is this important?

Are you interested in contributing to this feature?

/assign @claudiubelu

resolved with #11


Create document breaks

When creating a new document, it says "choose template", but there are no options

It still kicks you over to a new page, but you get a 404.

Then things fly off the handle ;)

Then the refresh button didn't work (filed new issue for that https://github.com/tinacms/tinacms/issues/2002)

@jeffsee55 - you mentioned you were thinking about something like this problem today?

It's probably related, @scottgallant what was the URL that gave you the 404?

@jeffsee55 , after adding a new post, I get redirected to that post's url. In this case it's
https://tina-cloud-starter-51pp00m9w-scottgallant.vercel.app/posts/test2
that page is broken, and the /post page is broken.

Closed by https://github.com/tinacms/tinacms/pull/2004


[CONTINT-3753] Bump containerd version to address non applicable CVE-2024-21626

What does this PR do?
This PR bumps containerd version to address CVE-2024-21626.

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes
Generic qa.

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided. Except if the qa/skip-qa label, with required either qa/done or qa/no-code-change labels, are applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

/trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=auto

Sorry for the extra pipeline !

I canceled both extra pipelines

/trigger-ci --variable RUN_ALL_BUILDS=true --variable RUN_KITCHEN_TESTS=true --variable RUN_E2E_TESTS=auto

Triggered a pipeline with e2e tests

/merge

Can you add more details around how the qa was done ? Meant to keep track of it

/merge


style(bridge): Adjust sequence waiting messages

Signed-off-by: atharvkarajgi<EMAIL_ADDRESS>

This PR
The tool was earlier saying "Sequence might be waiting for previous sequences to be finished."  whereas it should have been -  "Sequence is waiting for previous sequences to finish"

Hi @atharvkarajgi,
thank you for your contribution.
The wording of this message was intended, since the Bridge is interpreting the waiting state of a sequence by comparing the sequence.state with the sequence.stages.state, because there was no real waiting status.
With #5526 this was fixed, but the logic in the Bridge (see https://github.com/keptn/keptn/blob/3a646e12e932c17ea22f048268bbd2f8d95c49bf/bridge/client/app/_models/sequence.ts#L141) was not adopted yet.
Since this should be a small change, so that isWaiting() returns true if sequence.state === 'waiting' now, may I ask you to fix this in your PR? Then we can close #4625 with your contribution.

Hey @ermin-muratovic Since this i am still learning "To contribute" to open-source projects!, Can you please guide me with this issue/

@atharvkarajgi Sure, sorry that I'm responding so late.
It would be great if you could change the content of the method below in keptn/bridge/client/app/_models/sequence.ts to be return sequence.state === 'waiting'; and commit it.
https://github.com/keptn/keptn/blob/3a646e12e932c17ea22f048268bbd2f8d95c49bf/bridge/client/app/_models/sequence.ts#L141-L157
This would then not only fix the message itself, but also the behaviour when it is showing up.

@ermin-muratovic I'm sorry for sucha late response. Can you please tell me know what line is it? is it line no. 143  where i need to make  the change "return sequence.state === 'waiting'; and commit it."

@ermin-muratovic I'm sorry for sucha late response. Can you please tell me know what line is it? is it line no. 143 where i need to make the change "return sequence.state === 'waiting'; and commit it."

It's actually removing the the lines 142 - 156 and just adding return sequence.state === 'waiting';


⚠ T:Riza Docs has degraded performance

In 9f8e549, T:Riza Docs (https://docs.triza.dev) experienced degraded performance:

HTTP code: 200
Response time: 4577 ms

Resolved: T:Riza Docs performance has improved in 0eddf09.