text:
Configure or disable Eslint Rule "Import/First" - blocks me from compiling

I get this error in my console every time I try to run the react-app.
    ./src/RadioGroup.jsx
      Line 10:  Import in body of module; reorder to top  import/first
      Line 11:  Import in body of module; reorder to top  import/first
      Line 12:  Import in body of module; reorder to top  import/first

The issue is that compiling this RadioGroup.tsx:
import * as React from "react";
import { Component } from "react";
import Button from 'react-bootstrap/lib/Button'
import ButtonGroup from 'react-bootstrap/lib/ButtonGroup'

/**
 * A ButtonGroup whose buttons act like a radio button.
 * Options should be passed as a list of [value, display] tuples.
 * Buttons are set up so you can use e.target.name and e.target.value in your
 * onChange handler like you would with regular form inputs.
 */
class RadioGroup extends Component<any, any> {
    render() {
        let { disabled, name, onChange, options, value, ...props } = this.props
        return <ButtonGroup {...props}>
            {options.map(option =>
                <Button
                    key={option[0]}
                    bsStyle={option[0] === value ? 'primary' : 'default'}
                    children={option[1]}
                    disabled={disabled}
                    name={name}
                    onClick={onChange}
                    value={option[0]}
                />
            )}
        </ButtonGroup>
    }
})

export default RadioGroup

Gives this .jsx output:
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
            t[p[i]] = s[p[i]];
    return t;
};
import * as React from "react";
import { Component } from "react";
import Button from 'react-bootstrap/lib/Button';
import ButtonGroup from 'react-bootstrap/lib/ButtonGroup';
/**
 * A ButtonGroup whose buttons act like a radio button.
 * Options should be passed as a list of [value, display] tuples.
 * Buttons are set up so you can use e.target.name and e.target.value in your
 * onChange handler like you would with regular form inputs.
 */
class RadioGroup extends Component {
    render() {
        let _a = this.props, { disabled, name, onChange, options, value } = _a, props = __rest(_a, ["disabled", "name", "onChange", "options", "value"]);
        return <ButtonGroup {...props}>
            {options.map(option => <Button key={option[0]} bsStyle={option[0] === value ? 'primary' : 'default'} children={option[1]} disabled={disabled} name={name} onClick={onChange} value={option[0]}/>)}
        </ButtonGroup>;
    }
}
export default RadioGroup;

Issue being that it seems like let _a = this.props, { disabled, name, onChange, options, value } = _a, props = __rest(_a, ["disabled", "name", "onChange", "options", "value"]); automatically places some code in top of the file. Which gives me the "Import/first" error which in turn means I can't compile.
I have tried adding eslint settings to ignore the rule/file in my package.json, but doesn't seem to have any effect.
Any idea what I can do to either disable this rule or somehow fix this?
Manually I can just copy the import statements to the top of the jsx file, but this isn't practically if I have to do that every time I compile. ;-)
npm -v 3.8.6
node -v 6.0.0
npm ls react-scripts -- react-scripts@1.0.10
Win10
Chrome, but error is also showing in cmd.
I searched though the issues and google but didn't get further in finding any solutions after a couple of hours.

I'd file a bug with typescript and ask that they make imports always be at the top.
That said, you should be able to add a comment to the file:
//eslint-disable import/first

I don’t think we’ll be changing the lint rules to accommodate compile-to-JS languages. There are too many edge cases like this. I hope the workaround @Timer suggested is reasonable in the meantime, and maybe we’ll support TypeScript more directly in the future.

Thanks for the quick reply and suggestion. :)
I'll use //eslint-disable import/first instead.

Thanks. Only block comment seems to work for me.
/* eslint-disable import/first */

.....

That eslint disable line is pretty ridiculous, with strict linting being forced in 2.0 I can't run at all because the typescript compiler is ordering imports incorrectly in every single file. Am I really supposed to disable the rule in EVERY file??

authors: ArcticZeroo Crowdedlight Timer arunvelsriram gaearon

repo: facebookincubator/create-react-app

license: mit


text:
Add "Adding Router" recipe

Should walk you through installing the new React Router v4 and point to its Quick Start which contains an example ready to be pasted into App.js.

Do somebody already doing this?

Wondering if this deviates somewhat from spirit of the project.  I was also wondering the same about react-bootstrap section (instead of general guidelines to import css) in the user guide.   And, it would appear to be endorsing a particular lib, esp. for beginners.
I like how you reason regarding NOT to include redux (#630).
With that said, I do use redux, react router, bootstrap in my project. They are great for my use cases.

Redux is an opinionated solution for a problem you might encounter in a month after starting building your app. Routing is something almost all SPAs need, so I think it’s warranted.
Bootstrap section was added because many people did it the wrong way, or thought it’s impossible. We needed to show a happy path there.

I'd also like to see at least an add-on for react-router, and agree that this is something all SPA's need.
I'm happy to help, but uncertain how to proceed with helping :)

I've never messed with React but I've managed to get setup really quickly with this repo (with my little knowledge of front-end).
Would be extremely useful to see how easy it is to get multiple pages setup with this app using react-router. 👍

I've been poking around the docs for react-router and I feel like I have a pretty good understanding now.  I do wish there was a better quick start, but the learning curve isn't monumental.
I'm keeping all my routing logic in index.js, in fact that's all that index.js is used for in my app.  The HugeApp sample in react-router gave me some ideas on how to break that up a little, but for now this is working well for me.  Hope that helps.

source: gharchive/issue

authors: bgian cloudmu gaearon graham-sportsmgmt i1skn

license_type: permissive

license_source: bigquery


text:
Add WebStorm >2017 launchEditor Support

WebStorm changed the format to open files from the command line in the latest versions.
Relates to #2406.
https://www.jetbrains.com/help/webstorm/2017.1/opening-files-from-command-line.html
Tested manually on my windows machine.

This looks great. Thank you!

source: gharchive/pull-request

authors: gaearon wirmar


text:
error: binding reference of type ‘MemoryPool*&’ to ‘MemoryPool* const’ discards qualifiers

Problem description
This problem occurs when trying to compile with gcc12.1. This is a bug(Wrong overload selected in base class) of gcc12.1, , and it has been fixed in 12.2.
velox/vector/FlatVector-inl.h:111:19: error: binding reference of type ‘facebook::velox::memory::MemoryPool*&’ to ‘facebook::velox::memory::MemoryPool* const’ discards qualifiers
111 |       BaseVector::pool_,
    |       ~~~~~~~~~~~~^~~~~
velox/vector/DictionaryVector-inl.h:165:19: error: binding reference of type ‘facebook::velox::memory::MemoryPool*&’ to ‘facebook::velox::memory::MemoryPool* const’ discards qualifiers
165 |       BaseVector::pool_,
    |       ~~~~~~~~~~~~^~~~~

Users who encounter this problem need to upgrade gcc12.1 to 12.2 or make the following changes to the code.
Change `BaseVector::pool_` to `FlatVector::pool_` in velox/vector/FlatVector-inl.h:111.
Change `BaseVector::pool_` to `DictionaryVector::pool_` in velox/vector/DictionaryVector-inl.h:165.

System information
Velox System Info v0.0.2
Commit: ece80e07c571eb7bf67d7965c8a30f674425ec7b
CMake Version: 3.25.2
System: Linux-5.10.0-1.0.0.21
Arch: x86_64
C++ Compiler: /usr/bin/g++
C++ Compiler Version: 12.1.0
C Compiler: /usr/bin/gcc
C Compiler Version: 12.1.0
CMake Prefix Path: /usr/local;/usr;/;/opt/local/cmake-3.25.2-linux-x86_64;/usr/local;/usr/X11R6;/usr/pkg
CMake log
No response

Thank you for your report and solution!
As this is a bug in gcc 12.1 I am going to close this as completed as I don't think it makes sense to introduce edge-case handling for a very recent minor release that was superseded within 6 month.
But should anyone come across this error you report will make it easy to fix so thank you!

authors: assignUser jackylee-ch

repo: facebookincubator/velox

license_source: github-api


text:
Presto Aggregate Max(Nan) yields non Nan value

Bug description
Currently presto aggregate function max seems to ignore NaN . As can be seen from the queries below.
c++ ======================================
presto:feed> select max(x) from (values 4.0,nan(),null) T(x);
   4.0

presto:feed> select max(x) from (values nan(),nan(),null) T(x);
 -1.7976931348623157E308

presto:feed> select min(x) from (values 4.0,nan(),null) T(x);
   NaN

presto:feed> select min(x) from (values nan(),nan(),null) T(x);
   NaN

java =====================================
presto:feed> select max(x) from (values 4.0,nan(),null) T(x);
   4.0

presto:feed> select max(x) from (values nan(),nan(),null) T(x);
   NaN

presto:feed> select min(x) from (values 4.0,nan(),null) T(x);
   4.0

presto:feed> select min(x) from (values nan(),nan(),null) T(x);
   NaN

System information
N/A
Relevant logs
No response

Notice that in Java, for some reason, the order matters:
presto:di> select max(x) from (values 4.0,nan(),null) T(x);;
 _col0
-------
   4.0
(1 row)

presto:di> select max(x) from (values nan(),4.0,null) T(x);
 _col0
-------
   NaN
(1 row)

This might be a bug in Java. Worth creating an issue in prestodb to ask.

Created issue here : https://github.com/prestodb/presto/issues/21877 .

authors: kgpai mbasmanova


text:
fix: Add support for sm5x CUDA archs to breeze

Code was limited to sm60 and above previously. This makes it compile for sm50 too, which is the default for nvcc.
Also adds a ubsan build type and fixes some issues that caused building without tracing enabled to fail.

@Yuhta some build fixes

@Yuhta Please review this when you have a chance, thanks!

Not urgent, but would be nice if you can run some of the tests in https://github.com/facebookincubator/velox/blob/main/.github/workflows/linux-build-base.yml

@Yuhta Yes, happy to add that. Should we limit it to OpenMP or can we also run CUDA tests? And how about also running some tests on MacOS?

@dreveman If we can run GPU tests we can also enable CUDA tests, otherwise let's just enable OpenMP for now.
@assignUser Can we run GPU tests on GitHub action now?

Can we run GPU tests on GitHub action now?

No that stalled out a while ago #9527

@dreveman If your team has bandwidth to help setting up GPU on GitHub action it would be nice.  We are only running some very minimal sanity check for breeze/CUDA inside Wave.

authors: Yuhta assignUser dreveman


text:
[Substrait to Velox] Add conversion for hash join

Add substrait-to-velox conversion for JoinRel. Since substrait doesn't distinguish between different kinds of physical join types, we'll convert JoinRel to hash join by default.
This PR depends on https://github.com/facebookincubator/velox/pull/1554. Will rebase after https://github.com/facebookincubator/velox/pull/1554 gets merged.

@marin-ma The second commit looks, but it needs a test. I suggest to add conversion from Velox to substrait as well and then extend the existing round-trip test.

@ZJie1 is working on conversion from Velox to substrait. She will raise a PR for this part.

substrait doesn't distinguish between different kinds of physical join types

Do you know if there are plan to support different join types? Should we open an issue with Substrait? CC: @jacques-n

substrait doesn't distinguish between different kinds of physical join types

Do you know if there are plan to support different join types? Should we open an issue with Substrait? CC: @jacques-n

I've asked in this issue before https://github.com/substrait-io/substrait/issues/189
It's in their plan, but we don't have the people to do it right now.

@marin-ma Rong, thank you for clarifying. It seems to be that this PR is blocked on #1554 and on additional work to translate join node from Velox to Substrait + test. Let's work on #1554 then.

For reference, the related Substrait issue should be relatively simple rote work (since it is simply writing a proto for the already defined specification).

Looks like this PR is still needed. @zhejiangxiaomai

authors: jacques-n marin-ma mbasmanova rui-mo


text:
Add velox_dwio_parquet_table_scan_test into ctest

velox_dwio_parquet_table_scan_test is not added into ctest. CI can not track it.

Hi @Yuhta, would please review this PR. just one line.

@zhejiangxiaomai ParquetTableScanTest.decimalSubfieldFilter test is failing in linux-adapters CI. Can you take a look?

@zhejiangxiaomai ParquetTableScanTest.decimalSubfieldFilter test is failing in linux-adapters CI. Can you take a look?

Ok, I will check it.

I run it locally. It is passed.

Hi @majetideepak , linux-adapters CI is passed now. Would you merge it?

Thanks, @zhejiangxiaomai. @Yuhta can you please help merge this? Thanks.

Thanks.

@kgpai can you help merge this small change? Thanks!

authors: majetideepak zhejiangxiaomai


text:
Support complex type 'compare' in 3-arg min_by and max_by Presto aggregates

Presto's min_by and max_by with 3 args support complex type for the compare param, such as array.
Fixes #7469

@mbasmanova Could you please review this PR?

Could someone please review this PR? Thanks！ @mbasmanova @kagamiori @kgpai

Thank you for this @f0rest9999 ! This PR will take me a bit of time, please give me a couple of days to review.

Thanks for the review, I'll take the time to think about and fix.

Throw an exception when the key col which participate in comparison contains null.

This is a bit tricky. See kNullAsIndeterminate in CompareFlags.h and #7703

nit: This class is very similar to MinMaxByNComplexTypeAccumulator save only difference is that here the compare is comples and there the value is complex, I am curious if there is a way to merge both into 1 (without adding too much templating so its hard to follow).

@mbasmanova Already fixed.

That's a good suggestion. Could you open an issue and see if anyone is interested? While I probably haven't had a lot of time to look into how to implement this recently, and I prefer to get this non-simple Function API PR done first to support complex types. Is that all right?
And I'll spend some time looking at how to test "Aggregation Fuzzer using Presto". Thanks.

Have you run Aggregation Fuzzer using Presto as source before? In the process of running, I found some problems.
@mbasmanova @kgpai
When I run the arbitrary functions for test (from https://facebookincubator.github.io/velox/develop/testing/fuzzer.html) , an error will be reported.
./velox_aggregation_fuzzer_test \
                --seed ${RANDOM} \
                --only "arbitrary" \
                --duration_sec 3600 \
                --logtostderr=1 \
                --minloglevel=0 \
                --repro_persist_path=/tmp/aggregate_fuzzer_repro \
                --enable_sorted_aggregations=true \
                --presto_url=http://127.0.0.1:8080
I20240327 14:04:16.002938 3310529 HiveConnector.cpp:69] Hive connector test-hive created with maximum of 20000 cached file handles.
I20240327 14:04:16.003876 3310529 AggregationFuzzerBase.cpp:576] Total functions: 1 (1 signatures)
I20240327 14:04:16.004051 3310529 AggregationFuzzerBase.cpp:580] Functions with at least one supported signature: 1 (100.00%)
I20240327 14:04:16.004269 3310529 AggregationFuzzerBase.cpp:586] Functions with no supported signature: 0 (0.00%)
I20240327 14:04:16.004276 3310529 AggregationFuzzerBase.cpp:589] Supported function signatures: 1 (100.00%)
I20240327 14:04:16.004280 3310529 AggregationFuzzerBase.cpp:595] Unsupported function signatures: 0 (0.00%)
I20240327 14:04:16.004335 3310529 AggregationFuzzer.cpp:325] ==============================> Started iteration 0 (seed: 7063)
I20240327 14:04:16.020104 3310529 AggregationFuzzerBase.cpp:366] Executing query plan:
-- Aggregation[SINGLE [g0] a0 := arbitrary(ROW["c0"]) ORDER BY c0 ASC NULLS LAST] -> g0:ARRAY<BOOLEAN>, a0:TIMESTAMP
  -- Values[1000 rows in 10 vectors] -> c0:TIMESTAMP, g0:ARRAY<BOOLEAN>
I20240327 14:04:16.056669 3310541 Task.cpp:1096] All drivers (1) finished for task test_cursor 1 after running for 30 ms.
I20240327 14:04:16.056702 3310541 Task.cpp:1818] Terminating task test_cursor 1 with state Finished after running for 30 ms.
I0327 14:04:16.683683 3310529 Compression.cpp:628] Initialized zstd compressor with compression level 7
I20240327 14:04:16.692608 3310529 FileSink.cpp:123] closing file:fuzzer.dwrf,  total size: 8.36KB
QueryAssertions.cpp:1129: Failure
Failed
Expected 376, got 376
328 extra rows, 328 missing rows
10 of extra rows:
        null | "3784991-02-06T13:52:39.498000000"
        [] | "10265357-09-13T20:16:11.120000000"
        [null] | "55442863-07-23T06:20:47.805000000"
        [null,null] | "60150461-09-15T15:10:55.522000000"
        [null,null,null,null,null,true,null,null] | "55442863-07-23T06:20:47.805000000"
        [null,null,false] | "181669003-06-08T20:15:29.805000000"
        [null,null,false,true,false,false,false,null,true,true,true,true,null,null,false,null,null,true,false] | "105667027-12-16T05:18:40.658000000"
        [null,null,false,true,false,false,false,true,null,false,false,true,false,false,null,true,true,null,null] | "271030430-06-16T08:10:18.450000000"
        [null,null,false,true,false,true,false,false,false,true] | "11883841-03-28T20:43:26.332000000"
        [null,null,true] | "49077045-08-24T05:22:50.606000000"

10 of missing rows:
        null | "104725217-01-14T04:26:14.072000000"
        [] | "100565777-03-15T01:55:31.427000000"
        [null] | "65877250-09-07T18:37:01.933000000"
        [null,null] | "264175230-11-02T07:20:50.204000000"
        [null,null,null,null,null,true,null,null] | "55442863-07-22T14:20:47.805000000"
        [null,null,false] | "181669003-06-08T04:15:29.805000000"
        [null,null,false,true,false,false,false,null,true,true,true,true,null,null,false,null,null,true,false] | "273329593-02-10T01:01:17.785000000"
        [null,null,false,true,false,false,false,true,null,false,false,true,false,false,null,true,true,null,null] | "271030430-06-15T16:10:18.450000000"
        [null,null,false,true,false,true,false,false,false,true] | "11883841-03-28T04:43:26.332000000"
        [null,null,true] | "278842008-11-07T20:43:18.559000000"

Unexpected results
E20240327 14:04:16.891533 3310529 Exceptions.h:69] Line: AggregationFuzzer.cpp:848, Function:verifySortedAggregation, Expression: assertEqualResults( expectedResult.value(), firstPlan->outputType(), {resultOrError.result}) Velox and reference DB results don't match, Source: RUNTIME, ErrorCode: INVALID_STATE
libc++abi: terminating with uncaught exception of type facebook::velox::VeloxRuntimeError: Exception: VeloxRuntimeError
Error Source: RUNTIME
Error Code: INVALID_STATE
Reason: Velox and reference DB results don't match
Retriable: False
Expression: assertEqualResults( expectedResult.value(), firstPlan->outputType(), {resultOrError.result})
Function: verifySortedAggregation
File: AggregationFuzzer.cpp

And when I run max_by, I got this error, while I think MAP<BOOLEAN,BOOLEAN> should not be passed into the function as a compare key, how can I limit it?
./velox_aggregation_fuzzer_test \
                --seed ${RANDOM} \
                --only "max_by" \
                --duration_sec 3600 \
                --logtostderr=1 \
                --minloglevel=0 \
                --repro_persist_path=/tmp/aggregate_fuzzer_repro \
                --enable_sorted_aggregations=true \
                --presto_url=http://127.0.0.1:8080

Error Source: RUNTIME
Error Code: INVALID_STATE
Reason: Unknown input types for max_by (SINGLE) aggregation: SMALLINT, MAP<BOOLEAN,BOOLEAN>, BIGINT
Retriable: False
Function: createNArg
File:MinMaxByAggregates.cpp
Line: 1755

@f0rest9999

That's a good suggestion. Could you open an issue and see if anyone is interested? While I probably haven't had a lot of time to look into how to implement this recently, and I prefer to get this non-simple Function API PR done first to support complex types. Is that all right?

I'm afraid we won't be able to merge this code as is. There is too much copy-paste. The code is too hard to read and reason about. We'll need to simply. I believe the first step would be to convert existing implementation to use Simple Function API. The next step would be to add new logic to it and figure out how to avoid so much copy-paste when doing that. Thanks.

I'm afraid we won't be able to merge this code as is. There is too much copy-paste. The code is too hard to read and reason about. We'll need to simply. I believe the first step would be to convert existing implementation to use Simple Function API. The next step would be to add new logic to it and figure out how to avoid so much copy-paste when doing that. Thanks.

@mbasmanova Thanks for your all review and suggestion, also @kgpai .
The issue can cc@ me. Rewriting to the simple API will take some time. So it probably not be done quickly by me.
During the time, if someone else has implemented it, I will learn how to do it.In short,  I‘m interested in this issue.
I think the reason it's hard to scale is that templates are used in a lot of places, and the function takes two arguments (various types). The combination of these two reasons made it difficult to extend and reuse code under the old framework.
You can close this PR. Thanks!

Have you run Aggregation Fuzzer using Presto as source before? In the process of running, I found some problems. @mbasmanova @kgpai
And when I run max_by, I got this error, while I think MAP<BOOLEAN,BOOLEAN> should not be passed into the function as a compare key, how can I limit it?
./velox_aggregation_fuzzer_test \
                --seed ${RANDOM} \
                --only "max_by" \
                --duration_sec 3600 \
                --logtostderr=1 \
                --minloglevel=0 \
                --repro_persist_path=/tmp/aggregate_fuzzer_repro \
                --enable_sorted_aggregations=true \
                --presto_url=http://127.0.0.1:8080

Error Source: RUNTIME
Error Code: INVALID_STATE
Reason: Unknown input types for max_by (SINGLE) aggregation: SMALLINT, MAP<BOOLEAN,BOOLEAN>, BIGINT
Retriable: False
Function: createNArg
File:MinMaxByAggregates.cpp
Line: 1755

At present, I don't know much about the data-generate process of Fuzzer, seems like a general problem?

Hi @f0rest9999 this might be related to the your PR change as current min_by, max_by doesnt support complex types for comparison. Nevertheless if you can create an issue and add the stack trace I can investigate more.

Hi @f0rest9999 this might be related to the your PR change as current min_by, max_by doesnt support complex types for comparison. Nevertheless if you can create an issue and add the stack trace I can investigate more.

You may have missed this comment. Once you address it, the error should go away.
After the modification according to mbasmanova's suggestion, there is no such problem. Thanks for your attention.

authors: f0rest9999 kgpai mbasmanova


text:
--[Bug fix] Address stage load w/"none" physicsManager

RigidStage objects were not being made if there was no collision asset being constructed.  This would only happen if physicsManager was nullptr (which only happens during certain tests) or if none-type physicsManager is specified.
This makes RigidStage objects if collision assets are not requested, and will attempt to build collisionMeshGroups out of render mesh if no valid collision mesh is specified.
A warning for an unused argument in VisualSensor is also addressed.
Motivation and Context

How Has This Been Tested
C++ and Python tests have passed

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have completed my CLA (see CONTRIBUTING)
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

The only thing we must yet address here is if we wish to support a "none" stage with a non-kinematic physics environment.  Note :  we do not allow objects to exist with neither render nor collision assets (Which is basically what the "none" stage is) so an argument could be made for not allowing "the void", at least in a non-kinematic environment.

repo: facebookresearch/habitat-sim

license: MIT


text:
How to perform multi-gpu testing?

❓ Questions and Help
Hi, thanks for sharing nice code.
Can you guys teach me how to perform multi-gpu testing? I tried the same code with the multi-gpu training in README, however it causes some bugs.

Hi,
Multi-GPU testing happens by default when you run tools/train_net.py.
If you just want to perform multi-gpu inference, just run
python -m torch.distributed.launch --nproc_per_node=$NGPU tools/test_net.py --config-file /path/to/pre-trained/model.pth

repo: facebookresearch/maskrcnn-benchmark


text:
Does this code support Online Hard Example Mining (OHEM)?

❓ Questions and Help
Does this code support Online Hard Example Mining (OHEM)?

The code currently doesn't support OHEM, but adding it shouldn't be too hard I think. Contributions welcome! :-)

authors: fmassa jario-jin


text:
How to load an OPT-IML checkpoint and use it for inference?

Thanks for your work on OPT-IML.
But I am confused about how to load the OPT-IML checkpoints for inference.
Code
Following the instruction in Inference API, I run the script
python -m metaseq.scripts.reshard_fsdp \
        --input-glob-pattern "/OPT-IML-30B/checkpoint_1_6000-model_part-*.pt" \
        --output-shard-name "/OPT-IML-30B/reshard-checkpoint_1_6000-model_part-*.pt" \
        --num-output-shards 1 --skip-optimizer-state True --unflatten-weights True

And get the
following bugs
2023-01-07 13:05:54,294 | metaseq.scripts.reshard_fsdp | Loading all sharded checkpoints to CPU
2023-01-07 13:08:02,081 | metaseq.scripts.reshard_fsdp | Resharding state dicts into 1 shard(s)
Traceback (most recent call last):
  File "/opt/conda/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/conda/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/mnt/bd/metaseq/metaseq/scripts/reshard_fsdp.py", line 242, in <module>
    fire.Fire(reshard_fsdp_checkpoints)
  File "/opt/conda/lib/python3.9/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/opt/conda/lib/python3.9/site-packages/fire/core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/opt/conda/lib/python3.9/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/mnt/bd/metaseq/metaseq/scripts/reshard_fsdp.py", line 53, in reshard_fsdp_checkpoints
    resharded_state_dicts = reshard_fsdp_state_dicts(
  File "/mnt/bd/metaseq/metaseq/scripts/reshard_fsdp.py", line 76, in reshard_fsdp_state_dicts
    shard_metadata=[s["shard_metadata"] for s in shard_state_dicts],
  File "/mnt/bd/metaseq/metaseq/scripts/reshard_fsdp.py", line 76, in <listcomp>
    shard_metadata=[s["shard_metadata"] for s in shard_state_dicts],
KeyError: 'shard_metadata'

It seems that the checkpoint loses an important key 'shard_metadata'.
Could you provide any insights on fixing that?

When this came up for OPT, I believe @stephenroller addressed the above via https://github.com/facebookresearch/metaseq/pull/60/files
cc @tangbinh to check difference with new reshard script

Using the convert_to_singleton.py script above runs into a different error when used directly on the IML checkpoints:
['--model-parallel-size', '2', '--distributed-world-size', '2', '--ddp-backend', 'pytorch_ddp', '--task', 'language_modeling', '--bpe-merges', '../OPT-IML-30B/gpt2-merges.txt', '--merges-filename', '../OPT-IML-30B/gpt2-merges.txt', '--b
pe-vocab', '../OPT-IML-30B/gpt2-vocab.json', '--vocab-filename', '../OPT-IML-30B/gpt2-vocab.json', '--bpe', 'hf_byte_bpe', '--path', '../OPT-IML-30B/reshard.pt', '--checkpoint-shard-count', '1', '--use-sharded-state', '../OPT-IML-30B']
2023-01-16 05:49:19 | INFO | metaseq.distributed.utils | initialized host della-l09g7 as rank 1
2023-01-16 05:49:19 | INFO | metaseq.distributed.utils | initialized host della-l09g7 as rank 0
> initializing tensor model parallel with size 2
> initializing pipeline model parallel with size 1
> initializing model parallel cuda seeds on global rank 0, model parallel rank 0, and data parallel rank 0 with model parallel seed: 2719 and data parallel seed: 1
2023-01-16 05:50:29 | INFO | metaseq.checkpoint_utils | Done reading from disk
Traceback (most recent call last):
  File "/projects/GRP/USER/conda_envs/metaseq/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/projects/GRP/USER/conda_envs/metaseq/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/projects/GRP/USER/LLM/metaseq/metaseq/scripts/convert_to_singleton.py", line 174, in <module>
    main()
  File "/projects/GRP/USER/LLM/metaseq/metaseq/scripts/convert_to_singleton.py", line 170, in main
    distributed_utils.call_main(cfg, worker_main)
  File "/projects/GRP/USER/LLM/metaseq/metaseq/distributed/utils.py", line 287, in call_main
    return _spawn_helper(main, cfg, kwargs)
  File "/projects/GRP/USER/LLM/metaseq/metaseq/distributed/utils.py", line 265, in _spawn_helper
    retval = distributed_main(-1, main, cfg, kwargs)
  File "/projects/GRP/USER/LLM/metaseq/metaseq/distributed/utils.py", line 227, in distributed_main
    retval = main(cfg, **kwargs)
  File "/projects/GRP/USER/LLM/metaseq/metaseq/scripts/convert_to_singleton.py", line 119, in worker_main
    models, _model_args, _task = checkpoint_utils.load_model_ensemble_and_task(
  File "/projects/GRP/USER/LLM/metaseq/metaseq/checkpoint_utils.py", line 526, in load_model_ensemble_and_task
    model.load_state_dict(state["model"], strict=strict)
  File "/projects/GRP/USER/LLM/metaseq/metaseq/distributed/fully_sharded_data_parallel.py", line 76, in load_state_dict
    return super().load_local_state_dict(state_dict, strict=strict)
  File "/projects/GRP/USER/LLM/fairscale/fairscale/nn/data_parallel/fully_sharded_data_parallel.py", line 1032, in load_local_state_dict
    output = self._load_state_dict(state_dict, strict)
  File "/projects/GRP/USER/LLM/fairscale/fairscale/nn/data_parallel/fully_sharded_data_parallel.py", line 1008, in _load_state_dict
    return self.module.load_state_dict(state_dict, strict)
  File "/projects/GRP/USER/LLM/fairscale/fairscale/nn/misc/flatten_params_wrapper.py", line 478, in load_state_dict
    return super().load_state_dict(state_dict, strict)
  File "/home/USER/.local/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1671, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for FlattenParamsWrapper:
        Missing key(s) in state_dict: "_fpw_module.decoder.layers.0._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.1._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.2._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.3._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.4._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.5._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.6._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.7._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.8._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.9._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.10._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.11._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.12._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.13._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.14._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.15._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.16._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.17._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.18._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.19._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.20._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.21._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.22._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.23._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.24._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.25._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.26._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.27._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.28._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.29._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.30._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.31._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.32._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.33._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.34._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.35._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.36._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.37._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.38._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.39._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.40._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.41._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.42._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.43._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.44._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.45._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.46._fsdp_wrapped_module.flat_param_0", "_fpw_module.decoder.layers.47._fsdp_wrapped_module.flat_param_0".
        Unexpected key(s) in state_dict: "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.self_attn.qkv_proj.weight", "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.self_attn.qkv_proj.bias", "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.self_attn.out_proj.weight", "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.self_attn.out_proj.bias", "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.self_attn_layer_norm.weight", "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.self_attn_layer_norm.bias", "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.fc1.weight", "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.fc1.bias", "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.fc2.weight", "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.fc2.bias", "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.final_layer_norm.weight", "_fpw_module.decoder.layers.0._fsdp_wrapped_module._fpw_module.final_layer_norm.bias", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.self_attn.qkv_proj.weight", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.self_attn.qkv_proj.bias", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.self_attn.out_proj.weight", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.self_attn.out_proj.bias", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.self_attn_layer_norm.weight", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.self_attn_layer_norm.bias", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.fc1.weight", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.fc1.bias", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.fc2.weight", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.fc2.bias", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.final_layer_norm.weight", "_fpw_module.decoder.layers.1._fsdp_wrapped_module._fpw_module.final_layer_norm.bias", "_fpw_module.decoder.layers.2._fsdp_wrapped

I circumvented this buy setting strict=False on Line 124 of convert_to_singleton.py, but then trying to torch.load the resulting output results in a different error:
[ins] In [1]: import torch

[ins] In [2]: torch.load('restored.pt', torch.device('cpu'))
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[2], line 1
----> 1 torch.load('restored.pt', torch.device('cpu'))

File ~/.local/lib/python3.9/site-packages/torch/serialization.py:777, in load(f, map_location, pickle_module, weights_only, **pickle_load_args)
    772 if _is_zipfile(opened_file):
    773     # The zipfile reader is going to advance the current file position.
    774     # If we want to actually tail call to torch.jit.load, we need to
    775     # reset back to the original position.
    776     orig_position = opened_file.tell()
--> 777     with _open_zipfile_reader(opened_file) as opened_zipfile:
    778         if _is_torchscript_zip(opened_zipfile):
    779             warnings.warn("'torch.load' received a zip file that looks like a TorchScript archive"
    780                           " dispatching to 'torch.jit.load' (call 'torch.jit.load' directly to"
    781                           " silence this warning)", UserWarning)

File ~/.local/lib/python3.9/site-packages/torch/serialization.py:282, in _open_zipfile_reader.__init__(self, name_or_buffer)
    281 def __init__(self, name_or_buffer) -> None:
--> 282     super(_open_zipfile_reader, self).__init__(torch._C.PyTorchFileReader(name_or_buffer))

RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Any thoughts? Happy to be an extra pair of eyes/hands on any work converting OPT-IML.

@suchenzang @stephenroller Could you help elaborate how convert_to_singleton.py helps with this case? It appears to be merging reshard*.pt files, but the OPT-IML checkpoint does not have reshard*.pt. We are encountering errors when converting to reshard*.pt due to missing 'shard_metadata'.

@linmou I think the released OPT-IML checkpoints have already been consolidated, so there's no need to run the script reshard_fsdp.py to merge FSDP shards (that's why each model parallel part *model_part-*.pt doesn't have any shard metadata). You can load these model parallel parts using interactive scripts, for example, following these instructions.

@muhark @xiangjjj I don't think the release OPT-IML checkpoints work with convert_to_singleton.py, which is supposed to merge all model parallel parts (i.e. *model_part-*.pt files) into a singleton and expects inputs to contain flattened FSDP weights.
You don't need to merge the model parallel parts in order to load the checkpoints, though. For example, you can make some config changes following these instructions (e.g. setting MODEL_FILE to /OPT-IML-30B/checkpoint_1_6000.pt) and load these checkpoints as is via the referenced interactive scripts.
That said, if you really want to merge the model parallel parts, please try the new script reshard_mp.py

@tangbinh thanks for the explanation. The OPT-IML 175B checkpoints come with 16 model parallel parts, how can we run with 8 GPUs (MP8) as in the original OPT 175B?

@frankxu2004 If you want to convert from MP16 to MP8, please try the reshard_mp.py script (with --num-output-parts 8).

It's been a while without any update, so I'm closing the issue now. Please let us know if you need further help.

authors: frankxu2004 linmou muhark suchenzang tangbinh xiangdal

repo: facebookresearch/metaseq


text:
Demo error - Module not found: Error: Can't resolve 'process/browser'

Hello, thanks for the great work. I can start the demo using the "Run the app" section of demo.README.md but I receive the following error when the page loads:

In App.tsx, the following files exist. I used the same model to generate the embedding.
const IMAGE_PATH = "/assets/data/dogs.jpg";
const IMAGE_EMBEDDING = "/assets/data/dogs_embedding.npy";
const MODEL_DIR = "/model/sam_onnx_quantized_example.onnx";

Node: v21.6.1
Webpack: 5.90.0
Full output:
yarn run v1.22.21
$ yarn run start-dev
$ webpack serve --config=configs/webpack/dev.js
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: http://localhost:8080/
<i> [webpack-dev-server] On Your Network (IPv4): http://192.168.1.17:8080/
<i> [webpack-dev-server] Content not from webpack is served from '/home/bricklayer/Workspace/segment-anything/demo/public' directory
<i> [webpack-dev-middleware] wait until bundle finished: /

 ERROR  Failed to compile with 2 errors                                                                                9:14:26 AM

 error  in ./node_modules/onnxruntime-web/dist/esm/ort.min.js

Module not found: Error: Can't resolve 'process/browser' in '/home/bricklayer/Workspace/segment-anything/demo/node_modules/onnxruntime-web/dist/esm'
Did you mean 'browser.js'?
BREAKING CHANGE: The request 'process/browser' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

 error  in ./node_modules/onnxruntime-web/dist/esm/ort.min.js

Cannot read properties of undefined (reading 'module')

assets by path *.wasm 84.8 MiB
  asset ort-wasm-simd-threaded.jsep.wasm 18.6 MiB [emitted] [from: node_modules/onnxruntime-web/dist/ort-wasm-simd-threaded.jsep.wasm] [copied]
  asset ort-wasm-simd.jsep.wasm 16.6 MiB [emitted] [from: node_modules/onnxruntime-web/dist/ort-wasm-simd.jsep.wasm] [copied]
  + 5 assets
assets by path assets/ 9.09 MiB
  assets by path assets/data/ 9.09 MiB 4 assets
  asset assets/index.html 532 bytes [emitted] [from: src/assets/index.html] [copied]
  asset assets/scss/App.scss 59 bytes [emitted] [from: src/assets/scss/App.scss] [copied]
assets by path model/*.onnx 55.5 MiB
  asset model/sam_onnx_example.onnx 15.7 MiB [emitted] [from: model/sam_onnx_example.onnx] [copied]
  asset model/sam_vit_h_4b8939.onnx 15.7 MiB [emitted] [from: model/sam_vit_h_4b8939.onnx] [copied]
  asset model/sam_vit_b_01ec64.onnx 15.7 MiB [emitted] [from: model/sam_vit_b_01ec64.onnx] [copied]
  asset model/sam_vit_h_4b8939_quant.onnx 8.35 MiB [emitted] [from: model/sam_vit_h_4b8939_quant.onnx] [copied]
asset main.js 2.18 MiB [emitted] (name: main) 1 related asset
asset index.html 569 bytes [emitted]
runtime modules 27.5 KiB 14 modules
modules by path ./node_modules/underscore/modules/*.js 83.1 KiB 161 modules
modules by path ./node_modules/webpack-dev-server/client/ 71.8 KiB 16 modules
modules by path ./src/ 31.4 KiB 11 modules
modules by path ./node_modules/style-loader/dist/runtime/*.js 5.84 KiB 6 modules
modules by path ./node_modules/webpack/hot/*.js 5.18 KiB 4 modules
modules by path ./node_modules/html-entities/lib/*.js 81.8 KiB 4 modules
modules by path ./node_modules/react-dom/ 1000 KiB 3 modules
modules by path ./node_modules/react/ 85.7 KiB 2 modules
modules by path ./node_modules/onnxruntime-web/dist/ 1.03 MiB 2 modules
modules by path ./node_modules/scheduler/ 17.3 KiB 2 modules
modules by path ./node_modules/css-loader/dist/runtime/*.js 2.74 KiB 2 modules
+ 5 modules

ERROR in ./node_modules/onnxruntime-web/dist/esm/ort.min.js 1801:29786-29793
Module not found: Error: Can't resolve 'process/browser' in '/home/bricklayer/Workspace/segment-anything/demo/node_modules/onnxruntime-web/dist/esm'
Did you mean 'browser.js'?
BREAKING CHANGE: The request 'process/browser' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
resolve 'process/browser' in '/home/bricklayer/Workspace/segment-anything/demo/node_modules/onnxruntime-web/dist/esm'
  Parsed request is a module
  using description file: /home/bricklayer/Workspace/segment-anything/demo/node_modules/onnxruntime-web/dist/esm/package.json (relative path: .)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      /home/bricklayer/Workspace/segment-anything/demo/node_modules/onnxruntime-web/dist/esm/node_modules doesn't exist or is not a directory
      /home/bricklayer/Workspace/segment-anything/demo/node_modules/onnxruntime-web/dist/node_modules doesn't exist or is not a directory
      /home/bricklayer/Workspace/segment-anything/demo/node_modules/onnxruntime-web/node_modules doesn't exist or is not a directory
      /home/bricklayer/Workspace/segment-anything/demo/node_modules/node_modules doesn't exist or is not a directory
      looking for modules in /home/bricklayer/Workspace/segment-anything/demo/node_modules
        existing directory /home/bricklayer/Workspace/segment-anything/demo/node_modules/process
          using description file: /home/bricklayer/Workspace/segment-anything/demo/node_modules/process/package.json (relative path: .)
            using description file: /home/bricklayer/Workspace/segment-anything/demo/node_modules/process/package.json (relative path: ./browser)
              Field 'browser' doesn't contain a valid alias configuration
              /home/bricklayer/Workspace/segment-anything/demo/node_modules/process/browser doesn't exist
      /home/bricklayer/Workspace/segment-anything/node_modules doesn't exist or is not a directory
      /home/bricklayer/Workspace/node_modules doesn't exist or is not a directory
      /home/bricklayer/node_modules doesn't exist or is not a directory
      /home/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
 @ ./src/App.tsx 5:0-51 36:36-59
 @ ./src/index.tsx 8:0-24 12:24-27

ERROR in ./node_modules/onnxruntime-web/dist/esm/ort.min.js
Cannot read properties of undefined (reading 'module')
TypeError: Cannot read properties of undefined (reading 'module')
    at ProvidedDependencyTemplate.apply (/home/bricklayer/Workspace/segment-anything/demo/node_modules/webpack/lib/dependencies/ProvidedDependency.js:134:61)
    at JavascriptGenerator.sourceDependency (/home/bricklayer/Workspace/segment-anything/demo/node_modules/webpack/lib/javascript/JavascriptGenerator.js:221:12)
    at JavascriptGenerator.sourceModule (/home/bricklayer/Workspace/segment-anything/demo/node_modules/webpack/lib/javascript/JavascriptGenerator.js:112:9)
    at JavascriptGenerator.generate (/home/bricklayer/Workspace/segment-anything/demo/node_modules/webpack/lib/javascript/JavascriptGenerator.js:98:8)
    at NormalModule.codeGeneration (/home/bricklayer/Workspace/segment-anything/demo/node_modules/webpack/lib/NormalModule.js:1209:22)
    at /home/bricklayer/Workspace/segment-anything/demo/node_modules/webpack/lib/Compilation.js:3345:22
    at /home/bricklayer/Workspace/segment-anything/demo/node_modules/webpack/lib/Cache.js:91:34
    at Array.<anonymous> (/home/bricklayer/Workspace/segment-anything/demo/node_modules/webpack/lib/cache/MemoryCachePlugin.js:45:13)
    at /home/bricklayer/Workspace/segment-anything/demo/node_modules/webpack/lib/Cache.js:91:19
    at Hook.eval [as callAsync] (eval at create (/home/bricklayer/Workspace/segment-anything/demo/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:19:1)
 @ ./src/App.tsx 5:0-51 36:36-59
 @ ./src/index.tsx 8:0-24 12:24-27

I am facing the same issue

add this entire block to demo/configs/webpack/common.js
      {
        test: /\.m?js/,
        resolve: {
          fullySpecified: false
        }
      },

Adding a 'rules' block in demo/configs/webpack/dev.js worked for me.
module.exports = merge(commonConfig, {  // Find this line in dev.js
  module: {
    rules: [ // Add this block
      { resolve: {
        fullySpecified: false,
        }
      }
    ]
.....

Thank you! Works for me.

add this entire block to demo/configs/webpack/common.js
      {
        test: /\.m?js/,
        resolve: {
          fullySpecified: false
        }
      },

works for me. Thanks!

works for me.. thanks

authors: AnasKunda Mason-McGough brian95827 jmuham kivunova-tech

repo: facebookresearch/segment-anything


text:
Issue with size of tensor while displaying

I have a 4d tensor to display my atari game and it only displays the video when I input the height and width as a square(meaning that I give the same number of dimensions for both the height and width). It does not work when I have different height and width values  How do I fix that?

Can you give more context than 'it does not work' -> Do any errors appear in either the server or frontend console when using different values? What function are you using to render it?
Please refer to the contributing guidelines  and try to provide some more context so that we can better help you solve this issue. Thanks!

I understand that once the 4D image tensor of the form FRAMESxHIEGHTxWIDTHx3, is provided to the tensor argument of the video, it will generate a new window in the visdom server. Now, based on my experiments, the video in the browser could be played only when the images are square (HIEGHT=WIDTH). Otherwise the window will contain a blank video and could not be played. I tested it with Google Chrome 62.0.3202.94, Mozilla Firefox 57.0, and opera 49.0.2725.39.
To the best I can guess, it's probably some convention with CV2 or even THEO.
Also, I made another issue earlier that was deleted just to note that here it is mentioned that each tensor should be of shape LxCxHxW, however, the correct version of this is actually LxHxWxC. I can pull a request for that single line, too if you want.

Ah whoops I missed that that documentation mistake existed outside of the README. A PR would be really appreciated on that front.
I'll do some investigation into why only square videos play, I don't believe we've had that issue in the past.

Hi, how do you think it is now ?

repo: facebookresearch/visdom


text:
Support vertically scrolling slider

I just created a separate package in which I swapped width/height, left/top, x/y, rootMargin order, flexbox direction and so on. Worked fine :)

@adiba link or PR?

Related discussion: https://github.com/faceless-ui/slider/discussions/18

authors: adiba jacobsfletch olivermontes

repo: faceless-ui/slider


text:
Enhance/achromatic

The achromatic result should be relative to the space. Spaces like CAM16, due to adapting luminance and background luminance, can affect what zero chroma looks like in the space. Much like how RYB returns its own achromatic results, so should these spaces.
Resolves #402

@gir-bot lgtm

repo: facelessuser/coloraide


text:
🛑 POST to /feedback is down

In d650d9d, POST to /feedback (https://dev.factiverse.no/v1/feedback) was down:

HTTP code: 502
Response time: 160 ms

Resolved: POST to /feedback is back up in d4587bc.

repo: factiverse/upptime-dev


text:
🛑 agrifam.misiones.gob.ar is down

In 842d988, agrifam.misiones.gob.ar (https://agrifam.misiones.gob.ar/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: agrifam.misiones.gob.ar is back up in cef78b9.


text:
Distribution method

Elasticsearch plugins are usually distributed from a webserver, we should be able to provide a URL that people can use to download and access this plugin.

As spoken https://github.com/fair-search/fair-search.github.io has been created, already the current master snapshot version has been uploaded.


text:
update badge-test repo contents on github, gitlab

to account for recent changes in the config file schema

[x] github.com/fair-software/badge-test
[x] gitlab.com/jspaaks/badge-test

livetests are green again, closing this issue

repo: fair-software/howfairis


text:
Publish version 1.1

... with fixes and improvements.

Experiment -> Sample ref is optional. I think this is a bug.

authors: dtitov sveinugu


text:
Missing argoat.h

System: Debian 10 "Buster" amd64 cleanly installed on a Thinkpad T420; i5-2540M, iGPU, 16GB RAM.
I'm getting a build error when running make:
building object obj/src/main.o
src/main.c:1:10: fatal error: argoat.h: No such file or directory
 #include "argoat.h"
          ^~~~~~~~~~
compilation terminated.
make: *** [makefile:52: obj/src/main.o] Error 1

I did some research and it looks like argoat is your own project. Might wanna add argoat to the source for ly so people don't have to download argoat separately.

Did you run make github before?

Well, looks like I'm a bit of a goof. make github fixes the problem. Next time I'll re-read the instructions.

The same error:

$ make
fatal: not a git repository (or any of the parent directories): .git
building object obj/src/main.o
src/main.c:1:10: fatal error: argoat.h: No such file or directory
1 | #include "argoat.h"
|          ^~~~~~~~~~
compilation terminated.
make: *** [makefile:52: obj/src/main.o] Error 1

$ make github
make: *** No rule to make target 'github'.  Stop.

make github doesn't exist anymore.

See the comments on commit a20d5195a65f2fb67718435225efffa02b81d1bc where the updated way to fetch the submodules is explained. The new method is to clone the repository with --recurse-submodules:
git clone --recurse-submodules https://github.com/fairyglade/ly.git

Whoops. Did it with GitHub cli.

authors: AntonSever RandomGuyDTB devenblake isXander jkrcma

repo: fairyglade/ly

license: WTFPL


text:
Zig Build - Hash Mismatch

When i try to build ly like on the readme explained, i get an error:
Fetch Packages [2/2] zigini... /tmp/ly/build.zig.zon:11:21: error: hash mismatch: expected: 1220e7a99793a0430e0a7c0b938cb3c98321035bc297e21cd0e2413cf740b4923b9f, found: 12200dd136842068a2e82afb6ffd2821128140ca0b0fc59390a9bbe732d929eb75af             .hash = "1220e7a99793a0430e0a7c0b938cb3c98321035bc297e21cd0e2413cf740b4923b9f",                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any ideas how to fix this?

You appear to be using an outdated version of zig. As described in the Dependencies section of readme.md the required version of zig is currently: zig 0.12.0

@dawosch As @CaptainDolphy said, you'll need Zig 0.12.0 to build Ly, as described in the README.

authors: AnErrupTion CaptainDolphy dawosch


text:
Usage and break of builder image listing

Motivation
The new feature of auto listing of builder image totally break the usage of Driverkit inside a deployed Kubernetes Pod.
The function ImageSearch seems to look for the local unix socket, but, as the DinD is an unsafe pratice, this kind of right (accessing Docker socket, so Privileged pods) is not an option I want to deploy.
Resulting ImageSearch to fail, causing the build to fail.
Another problem with the current implementation is the authentication to private repositories that seems not handle. And it seems that the command docker search struggle to work with gitlab container registry,
In another topic, I find putting gcc version inside the builder image name not quite optimum. A solution could be to apply multiple tag to images containing multiple gcc version, i.e.:
driverkit-builder-any-x86_64:gcc-8.0.0, driverkit-builder-any-x86_64:gcc-6.0.0, driverkit-builder-any-x86_64:gcc-5.0.0, ... could point the same image containing the multiple gcc versions avoiding to create ultra long name, creating a better flavoring.
Feature

Fix the usage of Docker SDK Client to be able to search without the Docker unix socket + token/auth management for custom repos
Possible rename/rework of builder images organization

Alternatives
I tried to deep dive the docker SDK, but I can't find a way to fix it.
The usage of Docker search API function add a big complexity while a simple check of present of base image name, with a possible prefix, and with flavoured tag for gcc and with a possible flavoured tagname for target-specific build (other images than anyones) could erase most of that complexity.

Hi @Lowaiz!
Sorry for breaking kubernetes :/ We left the issue and the PR opened for like 2 months because i knew something could go wrong. I also pinged you directly in the PR because i know you are the one using kubernetes; that's unfortunate!

The function ImageSearch seems to look for the local unix socket, but, as the DinD is an unsafe pratice, this kind of right (accessing Docker socket, so Privileged pods) is not an option I want to deploy.
Resulting ImageSearch to fail, causing the build to fail.

Yep i agree, didn't think of this aspect since we just use the docker builder. I think we can easily fix this by providing a --builderindex option that overrides the search logic with a fixed list of images.
It would make a lot of sense too IMHO.

Another problem with the current implementation is the authentication to private repositories that seems not handle. And it seems that the command docker search struggle to work with gitlab container registry,

About gitlab container registry, that's weird :/
About auth, yep i know; i left a comment about that too in the PR. Given we did not support docker login either to download images, i figured it could be implemented as a standalone feat in a follow up PR.

In another topic, I find putting gcc version inside the builder image name not quite optimum. A solution could be to apply multiple tag to images containing multiple gcc version

Well that would be better, but then you lose the ability to lookup a certain tag (like, eg: master); moreover, docker search would just return driverkit-builder-any-x86_64 as it does not differentiate per-tag.
@dwindsor wdyt?
I'd like to also evaluate using falcoctl to list all images in a docker repo (ie: using some pkg from it). @alacuku might have more insights on this.

@Lowaiz

In another topic, I find putting gcc version inside the builder image name not quite optimum. A solution could be to apply multiple tag to images containing multiple gcc version, i.e.:
driverkit-builder-any-x86_64:gcc-8.0.0, driverkit-builder-any-x86_64:gcc-6.0.0, driverkit-builder-any-x86_64:gcc-5.0.0, ... could point the same image containing the multiple gcc versions avoiding to create ultra long name, creating a better flavoring

This one should be the way to go. A single repository for the driverkit-builder images. Tags should be used to differentiate the GCC versions. driverkit should be able to list the driverkit-builder's` tags and decide which one to use based on the required GCC version.
@FedeDP, @dwindsor, falcoctl exposes an OCI package that is used to interact with OCI repositories. The required logic to interact with an authenticated repository and list the tags is already in place. By using falcoctl packages we should be able to address the following issues:

no need for docker search and access to docker socket;
builder images are moved under a single repository in the falcosecurity organization, something like falcosecurity/driverkit-builder. Tags are used for GCC versions;
authentication for private repositories when listing repositories tags and when pulling images.

Let me know what do you think, if it's ok I would like to work on this fix.

Aldo I'd love all of this to be in place! It would be a great improvement.
Big +1 from me! I recalled you guys had done something similar in Falcoctl, but this feat was developed while Falcoctl was still in high pace development therefore we couldn't rely on it.
So, all in all, i think this is the way to go.

Hi @FedeDP and @alacuku ,
First of all, thanks you for the reactivity and the feedbacks!

Sorry for breaking kubernetes :/ We left the issue and the PR opened for like 2 months because i knew something could go wrong. I also pinged you directly in the PR because i know you are the one using kubernetes; that's unfortunate!

I'm sorry, I didn't pay a lot of attention to my Github account lately. Anyway, I always rely on dev env to test updates, so it didn't break any production stuff.

Given we did not support docker login either to download images, i figured it could be implemented as a standalone feat in a follow up PR.

With the hardcoded version of image names and the kubernetes deployment, Driverkit wasn't interacting with the registry, giving the image name directly to the kube, that can pull the image. That's why I didn't need the auth before :D

I think we can easily fix this by providing a --builderindex option that overrides the search logic with a fixed list of images.

falcoctl exposes an OCI package that is used to interact with OCI repositories.

I think both feature could be useful depending on the use cases. The flag for non-complex logic and static image name, avoiding to plug a Container registry, and the falcoctl to be up to date as quickly as possible, when using a lot of automation.
Let me know if you do not have the time for the flag development, I think I can handle it.

First of all, thanks you for the reactivity and the feedbacks!

We don't love to break existing use cases, you know :)
I think Aldo and eventually me will handle the Falcoctl port of the image listing logic; the builderindex flag is safe and makes sense, you are right! (I should've thought about it in the first place!). If you have the bandwidth to work on it, it would be great!
I'm also thinking about how can we better test k8s runner, it seems like you are the only one using it and I want to avoid situations like this one in the future!
Also, would you be interested in joining the driverkit maintainers team? It would be great to have you on board!
cc @dwindsor :)

+1 from me! Thank you @Lowaiz for both your work and reviews! @EXONER4TED

In case you are interested, @Lowaiz , we will need to open a vote: poll-issue between repo maintainers, as stated in falcosecurity governance: https://github.com/falcosecurity/evolution/blob/main/GOVERNANCE.md#maintainership

Huge +1 from me as well if interested 👍

authors: EXONER4TED FedeDP Lowaiz alacuku dwindsor

repo: falcosecurity/driverkit


text:
falco-driver-loader-legacy weird logs at startup (bug?)

Describe the bug
When starting falco-driver-loader-legacy I get the following:
$ docker run -i -t --privileged -v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro -v /boot:/host/boot:ro -v /lib/modules:/host/lib/modules:ro -v /usr:/host/usr:ro -v /etc:/host/etc falcosecurity/falco-driver-loader-legacy:master
* Setting up /usr/src links from host
Unknown driver: /usr/bin/falco

Usage:
  falco-driver-loader [driver] [options]

Available drivers:
  module        kernel module (default)
  bpf           eBPF probe

Options:
  --help         show brief help
  --clean        try to remove an already present driver installation
  --compile      try to compile the driver locally (default true)
  --download     try to download a prebuilt driver (default true)
curl: (22) The requested URL returned error: 404
Unable to find a prebuilt falco module
Consider compiling your own falco driver and loading it or getting in touch with the Falco community
  --source-only  skip execution and allow sourcing in another script using * Running falco-driver-loader for: falcoversion=0.36.0-211+071910e, driver version=6.0.1+driver, arch=x86_64, kernel release=5.19.0-1026-aws, kernel version=27~22.04.1
* Running falco-driver-loader with: driver=module, compile=yes, download=yes

================ Cleaning phase ================

* 1. Check if kernel module 'falco' is still loaded:
- OK! There is no 'falco' module loaded.

This does not happen if I run docker ... --entrypoint bash and then execute /docker-entrypoint.sh from there.

How to reproduce it

Expected behaviour

Screenshots

Environment

Current Falco master at the time of speaking. Does not happen in released versions.
Additional context

The issue seems related to this line https://github.com/falcosecurity/falco/blob/111a76879ba5917a83becc211110dd4130c4fae0/docker/driver-loader-legacy/Dockerfile#L130
Why do we need to call the ./docker-entrypoint.sh with argument /usr/bin/falco ?

repo: falcosecurity/falco


text:
🛑 Tesscut is down

In 19acd56, Tesscut (https://mast.stsci.edu/tesscut) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tesscut is back up in b8aee8d.

repo: falkben/mast-status


text:
BMS error RS232

Hello, i have a pace bms and a Waveshare RS232 to eth connect and this error. Baud rate 9600 device and bms.
Can you help me?
2024-11-18 15:51:10,893 - pacebms_rs232 - DEBUG - analog data recieved: 5F
2024-11-18 15:51:10,893 - pacebms_rs232 - DEBUG - Trying to parse analog data
2024-11-18 15:51:10,893 - pacebms_rs232 - DEBUG - fields: ['5F']
2024-11-18 15:51:10,893 - pacebms_rs232 - ERROR - An error occurred: list index out of range
2024-11-18 15:51:10,893 - pacebms_rs232 - DEBUG - Trying to prepare analog request
2024-11-18 15:51:10,893 - pacebms_rs232 - DEBUG - analog request: b'~25FF4642E002FFFCDA\r'
2024-11-18 15:51:10,894 - pacebms_rs232 - DEBUG - Trying to send analog request
2024-11-18 15:51:10,894 - pacebms_rs232 - DEBUG - analog request sent
2024-11-18 15:51:10,894 - pacebms_rs232 - DEBUG - Trying to receive analog data
2024-11-18 15:51:10,915 - bms_comm - DEBUG - Received data from BMS: F4
2024-11-18 15:51:10,915 - pacebms_rs232 - DEBUG - analog data recieved: F4
2024-11-18 15:51:10,915 - pacebms_rs232 - DEBUG - Trying to parse analog data
2024-11-18 15:51:10,915 - pacebms_rs232 - DEBUG - fields: ['F4']
2024-11-18 15:51:10,915 - pacebms_rs232 - ERROR - An error occurred: list index out of range
2024-11-18 15:51:10,915 - pacebms_rs232 - DEBUG - Trying to prepare analog request
2024-11-18 15:51:10,915 - pacebms_rs232 - DEBUG - analog request: b'~25FF4642E002FFFCDA\r'
2024-11-18 15:51:10,915 - pacebms_rs232 - DEBUG - Trying to send analog request
2024-11-18 15:51:10,916 - pacebms_rs232 - DEBUG - analog request sent
2024-11-18 15:51:10,916 - pacebms_rs232 - DEBUG - Trying to receive analog data
2024-11-18 15:51:10,936 - bms_comm - DEBUG - Received data from BMS: 64
2024-11-18 15:51:10,936 - pacebms_rs232 - DEBUG - analog data recieved: 64
2024-11-18 15:51:10,936 - pacebms_rs232 - DEBUG - Trying to parse analog data
2024-11-18 15:51:10,936 - pacebms_rs232 - DEBUG - fields: ['64']
2024-11-18 15:51:10,937 - pacebms_rs232 - ERROR - An error occurred: list index out of range
2024-11-18 15:51:10,937 - pacebms_rs232 - DEBUG - Trying to prepare analog request
2024-11-18 15:51:10,937 - pacebms_rs232 - DEBUG - analog request: b'~25FF4642E002FFFCDA\r'
2024-11-18 15:51:10,937 - pacebms_rs232 - DEBUG - Trying to send analog request
2024-11-18 15:51:10,937 - pacebms_rs232 - DEBUG - analog request sent
2024-11-18 15:51:10,937 - pacebms_rs232 - DEBUG - Trying to receive analog data
2024-11-18 15:51:10,959 - bms_comm - DEBUG - Received data from BMS: 2E
2024-11-18 15:51:10,959 - pacebms_rs232 - DEBUG - analog data recieved: 2E
2024-11-18 15:51:10,959 - pacebms_rs232 - DEBUG - Trying to parse analog data
2024-11-18 15:51:10,960 - pacebms_rs232 - DEBUG - fields: ['2E']
2024-11-18 15:51:10,960 - pacebms_rs232 - ERROR - An error occurred: list index out of range
2024-11-18 15:51:10,960 - pacebms_rs232 - DEBUG - Trying to prepare analog request
2024-11-18 15:51:10,960 - pacebms_rs232 - DEBUG - analog request: b'~25FF4642E002FFFCDA\r'
2024-11-18 15:51:10,960 - pacebms_rs232 - DEBUG - Trying to send analog request
2024-11-18 15:51:10,960 - pacebms_rs232 - DEBUG - analog request sent
2024-11-18 15:51:10,960 - pacebms_rs232 - DEBUG - Trying to receive analog data
2024-11-18 15:51:10,980 - bms_comm - DEBUG - Received data from BMS: 00
2024-11-18 15:51:10,981 - pacebms_rs232 - DEBUG - analog data recieved: 00
2024-11-18 15:51:10,981 - pacebms_rs232 - DEBUG - Trying to parse analog data
2024-11-18 15:51:10,981 - pacebms_rs232 - DEBUG - fields: ['00']
2024-11-18 15:51:10,981 - pacebms_rs232 - ERROR - An error occurred: list index out of range
2024-11-18 15:51:10,981 - pacebms_rs232 - DEBUG - Trying to prepare analog request
2024-11-18 15:51:10,981 - pacebms_rs232 - DEBUG - analog request: b'~25FF4642E002FFFCDA\r'
2024-11-18 15:51:10,981 - pacebms_rs232 - DEBUG - Trying to send analog request
2024-11-18 15:51:10,981 - pacebms_rs232 - DEBUG - analog request sent
2024-11-18 15:51:10,981 - pacebms_rs232 - DEBUG - Trying to receive analog data

2024-11-20 19:40:17,433 - pacebms_rs232 - DEBUG - analog data recieved: ~25FF4642E002FFFCDA
2024-11-20 19:40:17,433 - pacebms_rs232 - DEBUG - Trying to parse analog data
2024-11-20 19:40:17,433 - pacebms_rs232 - DEBUG - fields: ['25', 'FF', '46', '42', 'E0', '02', 'FF', 'FC', 'DA']
2024-11-20 19:40:17,433 - pacebms_rs232 - ERROR - Invalid command or response code: 46 42
2024-11-20 19:40:17,433 - pacebms_rs232 - DEBUG - analog data parsed: None
2024-11-20 19:40:17,433 - pacebms_rs232 - DEBUG - Trying to prepare analog request
2024-11-20 19:40:17,433 - pacebms_rs232 - DEBUG - analog request: b'~25FF4642E002FFFCDA\r'
2024-11-20 19:40:17,434 - pacebms_rs232 - DEBUG - Trying to send analog request
2024-11-20 19:40:17,434 - pacebms_rs232 - DEBUG - analog request sent
2024-11-20 19:40:17,434 - pacebms_rs232 - DEBUG - Trying to receive analog data
2024-11-20 19:40:17,458 - bms_comm - DEBUG - Received data from BMS: ~25FF4642E002FFFCDA
2024-11-20 19:40:17,458 - pacebms_rs232 - DEBUG - analog data recieved: ~25FF4642E002FFFCDA
2024-11-20 19:40:17,458 - pacebms_rs232 - DEBUG - Trying to parse analog data
2024-11-20 19:40:17,459 - pacebms_rs232 - DEBUG - fields: ['25', 'FF', '46', '42', 'E0', '02', 'FF', 'FC', 'DA']
2024-11-20 19:40:17,459 - pacebms_rs232 - ERROR - Invalid command or response code: 46 42
2024-11-20 19:40:17,459 - pacebms_rs232 - DEBUG - analog data parsed: None
2024-11-20 19:40:17,459 - pacebms_rs232 - DEBUG - Trying to prepare analog request
2024-11-20 19:40:17,460 - pacebms_rs232 - DEBUG - analog request: b'~25FF4642E002FFFCDA\r'
2024-11-20 19:40:17,460 - pacebms_rs232 - DEBUG - Trying to send analog request
2024-11-20 19:40:17,460 - pacebms_rs232 - DEBUG - analog request sent
2024-11-20 19:40:17,460 - pacebms_rs232 - DEBUG - Trying to receive analog data

I tried again and it doesn't work. Can someone please help me?

repo: fancyui/Gobel-Battery-HA-Addon


text:
Error in rank hinge loss

https://github.com/faneshion/MatchZoo/blob/50422a5bc973d27b8c507122aa3f41e633366893/matchzoo/losses/rank_losses.py#L16
I am not an expert but this seems to be wrong.
All loss functions use y_true and y_pred
This function only uses y_pred
References:
https://github.com/keras-team/keras/blob/468f080c98f06780c950e5a78c9eeeaf9fff002e/keras/losses.py#L38
@uduse @bwanglzu @yangliuy

Oh
just realized MZ has all y_true as alternate 1 and 0
so, here the assumption about y_true has been made.
Maybe this should change in 2.0?
Will close the issue after discussion.

I think the code is correct, but the implementation is kind of not easy to read, we'll clean it in 2.0, thanks! @aneesh-joshi

@bwanglzu The implementation is correct.
I misunderstood due to the underlying assumption that the correct and wrong options alternate.
Should I close the issue?

@aneesh-joshi please, thanks :+1:

authors: aneesh-joshi bwanglzu

repo: faneshion/MatchZoo


text:
tests and some refactorings

replaces previous PR, which had mocha instead of jest

i will refactor it to ts today, and i don't think fs.readfile need to test

authors: fansenze robertmaier

repo: fansenze/snowpack-plugin-stylus


text:
内网节点或个人pc加入公网或局域网集群

为缓解服务器资源压力，开发者内网或个人pc本地安装docker，通过在线脚本安装客户端，一键加入集群，开发者本地docker化调试！！！无视操作系统，只有docker！！！

你想表达啥

authors: Mountains-and-rivers fanux

repo: fanux/sealos


text:
bug: Unreliable sync times

What is the bug?
I have faced many issues with moderate to prolonged sync times from my hub to the Warpcast app.
While testing the "make-cast" tutorial today, I saw instant results for my newly created casts. Then, suddenly, I stopped seeing results for multiple minutes (1 within a minute, another within 5 minutes, and numerous now at 10minutes+).
While testing the "write-data" tutorial Yesterday from two accounts, it took up to 3 hours for profile picture changes to propagate, while casts that occurred after the PFP messages were published had quicker sync times.
How can it be reproduced? (optional)
I am not able to reliably reproduce or identify what is causing this.
Additional context (optional)
All messages are broadcast, and the results are OK. So far, I have not permanently lost any messages sent but have had up to multi-hour wait times.

Just an update my casts have now all come through after ~ 20-30 minutes each

I'm going to close this as the cast error I mentioned earlier is a result of the warpcast app not updating on desktop vs. mobile. However, the PFP changes from yesterday had still taken hours, and normal casts seem prioritized over it. Will query my hashes against your hub in the future

we've added more instrumentation around this, and aren't seen propagation delays across nodes. @alexpaden, any chance its related to your infra? have you seen more of this since you opened the issue?

I did not have many issues with this after the first month I posted it, infra was via DO and I don't think it was the problem since I have continued using it since (switching to neynar)

authors: alexpaden varunsrin

repo: farcasterxyz/hub-monorepo


text:
svelte-native-preprocessor isn't running with current webpack config

if you change
https://github.com/farfromrefug/ns-forecastie/blob/be357a1073840068f0aa112122367581dfc4a24e/webpack.config.js#L448-L456
to
  preprocess: [require('svelte-preprocess')(
                                        {
                                            typescript: {
                                                compilerOptions: {
                                                    module: 'es6'
                                                }
                                            }
                                        }), svelteNativePreprocessor()]
                                ,

then it works as expected

Oh so that is my issue damn ! You think it fixes the span issue ?

Actually I am.using app.webpack.config.js. I need to remove the other one to get the default n one. But my app one must have the same issue

authors: farfromrefug halfnelson

repo: farfromrefug/ns-forecastie


text:
[Bug] rust plugin sass(v0.3.1) does not watch scss files imported with @import or @use

Steps to reproduce
git clone https://github.com/niuiic/gallery
pnpm i
pnpm dev --filter website

Modify apps/website/src/style/element/adaptation.scss, set --unit-length: calc(1rem / 16); to --unit-length: calc(1rem / 1);.
Same to issue #742. I can not reopen it, thus there is a new issue.
What is expected?
The size of everything on the page becomes very large.
What is actually happening?
Nothing happened.
Cli doesn't output file change log.
System Info
System:
    OS: Linux 6.1 Gentoo Linux
    CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
    Memory: 13.49 GB / 15.59 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 21.1.0 - /run/user/1000/fnm_multishells/1472_1700530242263/bin/node
    npm: 10.2.0 - /run/user/1000/fnm_multishells/1472_1700530242263/bin/npm
    pnpm: 8.10.5 - /run/user/1000/fnm_multishells/1472_1700530242263/bin/pnpm
  npmPackages:
    @farmfe/core: ^0.14.2 => 0.14.2

### Any additional comments?

_No response_

I think there is something wrong with cache. Sometimes it works, but sometimes not.

I'll take a look

It does have bug when working with cache and css modules + @use / @import, I'll fix it

you can set persistentCache: false to it would work as expected

repo: farm-fe/farm


text:
updateRecall doesn't support floating point scores

Version: "ebisu-js": "^2.0.0"
The python implementation of Ebisu currently supports floating point values for updateRecall:
>>> import ebisu
>>> model = (2,2,24)
>>> recall_score = .7
>>> dt = 24
>>> ebisu.updateRecall(model, recall_score, 1, dt)
(1.9157925909193039, 1.9157925909193065, 27.597608238946)

I find this useful in my application because I'm ripping out my Anki SM2 implementation in favor of this, and, I'd like to continue providing multiple "recall score" options to the user. Currently, when I provide a recall_score in the range [0,1], I get some sort of error:
> const ebisu = require('ebisu-js')
> ebisu.updateRecall([2,2,24], .7, 1, 24)
Uncaught RangeError: Invalid array length
    at Object.updateRecall (/home/alex/projects/ltt/frontend/shared/node_modules/ebisu-js/index.js:102:31)

Ah yes, this JavaScript port is lagging Ebisu 😓, the Python implementation is 2.1 which is where soft-binary quizzes were added (floating point “successes”), and this repo is still 2.0, see the changelog https://github.com/fasiha/ebisu/blob/gh-pages/CHANGELOG.md
#12 is tracking this feature. Let me see if I can get this JS port to 2.1, I don’t think it will be hard.

@fasiha Do you have a timeline? I'd be happy to contribute. :)

Thanks @BieniekAlexander, yeah! I'm just in the process of translating https://github.com/fasiha/ebisu/blob/gh-pages/ebisu/ebisu.py to TypeScript, using ChatGPT for the bulk of the work 😆, I'm hoping to finish it this weekend but will be more than happy to receive a PR if you get there first!

@BieniekAlexander I'd love any feedback in my PR upgrading this package to 2.1, in #19!

authors: BieniekAlexander fasiha

license: Unlicense


text:
How do I use nbdev for private, offline projects?

Hi!
I would really want to give the nbdev a try for my next project. Unfortunately, I work in a corporate environment and the code I write is not public by default. The dependency on the Github/Gitlab seems pretty hard-wired to me. Where can I get an example of the settings.ini or the full workflow in general, that does not depend on putting my code into any external services?
This issue is pretty much a duplicate of https://github.com/fastai/nbdev/issues/446, which unfortunately got closed on non-substantive grounds.

I use nbdev with private repos (but on github).
I think as far as github requirements go, it's really only the docs and github actions that are github specific - which aren't critical to the rest of nbdev working.
You can still generate docs and host them elsewhere, or not at all, and github actions just run some checks using nbdev_diff_nbs and nbdev_test_nbs.

Thank you @igorbrigadir  for the answer.
Do you happen to know, what should I put in the required fields of the settings.ini, that concern the Github-related functionality? The fields are marked as required in the official documentation of nvdev.

As far as i can tell, in https://github.com/fastai/nbdev_template/blob/master/settings.ini i don't think it matters what you put in, you can put whatever non github urls you like - nbdev itself will still work and generate scripts etc, if you're using a different git repo. Maybe the docs might break, and you may need some extra edits to get them deployed someplace in non github if you need.

authors: adamryczkowski igorbrigadir

repo: fastai/nbdev


text:
📝 Update includes in docs/en/docs/how-to/custom-docs-ui-assets.md

Updated docs/how-to/custom-docs-ui-assets.md to the new include syntax.
related to https://github.com/fastapi/fastapi/issues/12554

Hi @philipokiokio, thanks for your interest in contributing to FastAPI. I had to do some spacing tweaks, but it's ready now, thanks! :rocket:

Thank you @alejsdev

authors: alejsdev philipokiokio

repo: fastapi/fastapi


text:
EWMA optimised for 2D datasets

New Feature

[x] Code conforms to style guide
[ ] Doctests
[x] Unit-tests
[x] Documentation
[x] New line item in releases.md
[ ] Info added to literature directory

Bug Report

[ ] Minimal repro in a test function

Summary
Additional EMWA function optimised for 2D data sets (updated the benchmarking notebook so you can see the relative gains).
Dense data sets only (no NaNs).

This is awesome, those timings are amazing :smile:
I was thinking of cutting a 2018.1 release tonight (for obvious reasons), did you want to get this merged ahead of that?

re: merge, it can wait - no big deal. :)
I didn't just blast the old implementation as I thought it would be more useful to be able to compare and contrast etc.  But that's why Codacy hates me (apparently dupe code etc etc)

We can fold it into a more general fn in the new year.

Sounds good - let me know when you're wanting a merge!

repo: fastats/fastats


text:
[FEAT] print path all all logo files in fastfetch on windows installed via choco

Be sure to read FAQ before submitting a new issue.
Wanted features:
a cmd to print the file path that contains all logos

Motivation:
It'd be easier to edit the file just like in neofetch

fastfetch --print-logos

fastfetch --print-logos

no what i meant was the location of the file that contains logos , similar to the neofetch file in /usr/bin

Logos were compiled in the binaries. You can't find it.

authors: CarterLi Dxuian

repo: fastfetch-cli/fastfetch


text:
TypeBox no longer requires explicit configuration of kind and modifier keywords

Prerequisites

[X] I have written a descriptive issue title
[X] I have searched existing issues to ensure the issue has not already been raised

Issue
Hi. Just a heads up. I've recently published a new version of TypeBox that should mitigate the need to configure AJV for the kind and modifier keywords. As of @sinclair/typebox@0.24.0, the kind and modifier keywords have been replaced as symbol property keys. This seems to sidestep the AJV strict checks allowing TypeBox schemas to be used without any explicit configuration.
Before
const StringKind = Symbol('StringKind')

const T = {
   kind: StringKind
   type: 'string'
}

After
const Kind = Symbol('TypeBox.Kind')

const T = {
   [Kind]: 'String' // AJV should ignore properties defined as symbols
   type: 'string'
}

The TypeBox type provider will continue to function with this existing kind and modifier configuration, however it may be good to remove the ajvTypeBoxPlugin export and update the documentation accordingly.
Current
import Fastify from 'fastify'
import { ajvTypeBoxPlugin, TypeBoxTypeProvider } from '@fastify/type-provider-typebox'

const fastify = Fastify({
  ajv: {
    plugins: [ajvTypeBoxPlugin]
  }
}).withTypeProvider<TypeBoxTypeProvider>()

Update
import Fastify from 'fastify'

import { TypeBoxTypeProvider } from '@fastify/type-provider-typebox'

const fastify = Fastify().withTypeProvider<TypeBoxTypeProvider>()

@mcollina Yup, just preparing one now for review :)

@mcollina Submitted on https://github.com/fastify/fastify-type-provider-typebox/pull/20

@sinclairzx81 This is a really nice improvement 👌🏻

repo: fastify/fastify-type-provider-typebox


text:
Scan/run_tests will succeed if build fails

🔑
New Issue Checklist

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
We are using danger and the danger-junit plugin to report test result back to the Pull Request as comments. So I set up the following in our Fastfile:
desc 'Run all the enabled tests'
lane :test do |options|
  run_tests(
    scheme: "Some Project",
    device: 'iPhone 8',
    code_coverage: true,
    fail_build: false
  )
end

Everything was perfect until someone broke the tests so they could no longer compile but Fastlane kept ending in fastlane.tools finished successfully 🎉.
If I change fail_build to true then the CI job will fail on compile errors but there will be nothing for danger to report on if a test fail since it will also fail the CI job.
Complete output when running fastlane, including the stack trace and command used

DEBUG [2018-04-19 20:37:45.07]: Checking if there are any plugins that should be loaded...
DEBUG [2018-04-19 20:37:45.07]: Loading 'fastlane-plugin-update_project_codesigning' plugin
INFO [2018-04-19 20:37:45.07]: gem 'fastlane-plugin-update_project_codesigning' is already installed
DEBUG [2018-04-19 20:37:45.08]: Loading 'fastlane-plugin-tpa' plugin
INFO [2018-04-19 20:37:45.08]: gem 'fastlane-plugin-tpa' is already installed
DEBUG [2018-04-19 20:37:45.08]: Loading 'fastlane-plugin-prepare_build_resources' plugin
INFO [2018-04-19 20:37:45.08]: gem 'fastlane-plugin-prepare_build_resources' is already installed
DEBUG [2018-04-19 20:37:45.09]: Loading 'fastlane-plugin-versioning' plugin
INFO [2018-04-19 20:37:45.09]: gem 'fastlane-plugin-versioning' is already installed
INFO [2018-04-19 20:37:45.26]: ---------------------------
INFO [2018-04-19 20:37:45.26]: --- Step: opt_out_usage ---
INFO [2018-04-19 20:37:45.26]: ---------------------------
INFO [2018-04-19 20:37:45.26]: Disabled upload of used actions
INFO [2018-04-19 20:37:45.26]: Driving the lane 'test' 🚀
INFO [2018-04-19 20:37:45.26]: -----------------------
INFO [2018-04-19 20:37:45.26]: --- Step: xcversion ---
INFO [2018-04-19 20:37:45.26]: -----------------------
INFO [2018-04-19 20:37:45.26]: gem 'xcode-install' is already installed
DEBUG [2018-04-19 20:37:45.99]: Found Xcode version 9.3 at /Applications/Xcode-9.3.app satisfying requirement 9.3
INFO [2018-04-19 20:37:45.99]: Setting Xcode version to /Applications/Xcode-9.3.app for all build steps
INFO [2018-04-19 20:37:45.99]: -----------------------
INFO [2018-04-19 20:37:45.99]: --- Step: run_tests ---
INFO [2018-04-19 20:37:45.99]: -----------------------
INFO [2018-04-19 20:37:46.16]: $ xcodebuild -showBuildSettings -scheme Some\ Project -project ./SomeProject.xcodeproj
...
INFO [2018-04-19 20:41:23.93]: ▸ Testing failed:
INFO [2018-04-19 20:41:23.93]: ▸ Use of undeclared type 'X'
INFO [2018-04-19 20:41:23.93]: ▸ Use of undeclared type 'Y'
INFO [2018-04-19 20:41:23.93]: ▸ Use of undeclared type 'Z'
INFO [2018-04-19 20:41:23.93]: ▸ Use of undeclared type 'A'
INFO [2018-04-19 20:41:23.93]: ▸ Use of undeclared type 'A'
INFO [2018-04-19 20:41:23.93]: ▸ Use of undeclared type 'A'
INFO [2018-04-19 20:41:23.93]: ▸ Use of unresolved identifier 'X'
INFO [2018-04-19 20:41:23.93]: ▸ Use of unresolved identifier 'X'
INFO [2018-04-19 20:41:23.93]: ▸ Use of unresolved identifier 'X'
INFO [2018-04-19 20:41:23.93]: ▸ Use of unresolved identifier 'X'
INFO [2018-04-19 20:41:24.11]: ▸ ** TEST FAILED **
INFO [2018-04-19 20:41:24.11]: ▸ The following build commands failed:
INFO [2018-04-19 20:41:24.11]: ▸ CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
INFO [2018-04-19 20:41:24.12]: ▸ CompileSwift normal x86_64 /Users/.../Tests/XTests.swift
INFO [2018-04-19 20:41:24.12]: ▸ CompileSwift normal x86_64 /Users/.../Tests/B.swift
INFO [2018-04-19 20:41:24.12]: ▸ (3 failures)
...
ERROR [2018-04-19 20:41:28.19]: Exit status: 65
INFO [2018-04-19 20:41:28.41]: Successfully generated documentation at path '/Users/.../fastlane/README.md'
DEBUG [2018-04-19 20:41:28.43]: All plugins are up to date
INFO [2018-04-19 20:41:28.43]: fastlane.tools finished successfully 🎉
DEBUG [2018-04-19 20:41:28.43]: All plugins are up to date

Environment

🚫 fastlane environment 🚫
Stack

Key
Value

OS
10.13.4

Ruby
2.3.0

Bundler?
true

Git
git version 2.15.1 (Apple Git-101)

Installation Source
~/.rvm/gems/ruby-head/bin/fastlane

Host
Mac OS X 10.13.4 (17E199)

Ruby Lib Dir
~/.rvm/rubies/ruby-head/lib

OpenSSL Version
OpenSSL 1.0.2d 9 Jul 2015

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode-9.3.app/Contents/Developer/

Xcode Version
9.3

System Locale

Error

No Locale with UTF8 found 🚫

fastlane gems

Gem
Version
Update-Status

fastlane
2.92.1
✅ Up-To-Date

Loaded fastlane plugins:

Plugin
Version
Update-Status

fastlane-plugin-update_project_codesigning
0.2.0
✅ Up-To-Date

fastlane-plugin-tpa
1.1.0
✅ Up-To-Date

fastlane-plugin-prepare_build_resources
1.0.4
✅ Up-To-Date

fastlane-plugin-versioning
0.3.4
✅ Up-To-Date

Loaded gems

Gem
Version

executable-hooks
1.3.2

bundler-unload
1.0.2

rubygems-bundler
1.4.4

bundler
1.16.0

io-console
0.4.6

rake
12.3.1

CFPropertyList
3.0.0

public_suffix
2.0.5

addressable
2.5.2

atomos
0.1.2

babosa
1.0.2

curb
0.9.4

fastimage
2.1.1

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

dotenv
2.2.2

emoji_regex
0.1.1

excon
0.62.0

multipart-post
2.0.0

faraday
0.15.0

unf_ext
0.0.7.5

unf
0.1.4

domain_name
0.5.20180417

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

faraday_middleware
0.12.2

gh_inspector
1.1.3

jwt
2.1.0

little-plugger
1.1.4

multi_json
1.13.1

logging
2.2.2

memoist
0.16.0

os
0.9.6

signet
0.8.1

googleauth
0.6.2

httpclient
2.8.3

mime-types-data
3.2016.0521

mime-types
3.1

declarative
0.0.10

declarative-option
0.1.0

uber
0.1.0

representable
3.0.4

retriable
3.1.1

google-api-client
0.13.6

json
2.1.0

mini_magick
4.5.1

multi_xml
0.6.0

plist
3.4.0

rubyzip
1.2.1

security
0.1.3

naturally
2.1.0

simctl
1.6.4

slack-notifier
2.3.2

terminal-notifier
1.8.0

unicode-display_width
1.3.2

terminal-table
1.8.0

tty-screen
0.6.4

tty-cursor
0.5.0

tty-spinner
0.8.0

word_wrap
1.0.0

claide
1.0.2

colored2
3.1.2

nanaimo
0.2.5

xcodeproj
1.5.7

rouge
2.0.7

xcpretty
0.2.8

xcpretty-travis-formatter
1.0.0

badge
0.9.1

cork
0.3.0

nap
1.1.0

open4
1.3.4

claide-plugins
0.9.2

faraday-http-cache
1.3.1

git
1.3.0

kramdown
1.16.2

no_proxy_fix
0.1.2

sawyer
0.8.1

octokit
4.8.0

danger
5.5.12

httparty
0.16.2

gitlab
4.3.0

danger-gitlab
6.0.0

ox
2.9.2

danger-junit
0.7.4

thor
0.20.0

danger-swiftlint
0.10.1

fastlane-plugin-prepare_build_resources
1.0.4

fastlane-plugin-tpa
1.1.0

fastlane-plugin-update_project_codesigning
0.2.0

fastlane-plugin-versioning
0.3.4

xcode-install
2.3.1

generated on: 2018-04-19

Sad to disappoint you @fastlane-bot but it is not 😀

@mbogh I think this is because you have fail_build: false. If you set this to true (or remove it), things should be 👌 for you

@joshdholtz if I do fail_build: true then the build fails if the test fail.

State
On build errors
On test failures

fail_build
true
🔴
🔴

fail_build
false
💚
💚

Wish

🔴
💚

@mbogh Ohhhhhh, I totally see now 👀 Sorry about that! 🙃 I will look into 💪
Sent with GitHawk

No problem at all, might also be an odd request 🙃
Let me know if there is anything I can do to help. I am unsure how to add this without breaking existing setups.

@joshdholtz any progress on this or maybe you can give me a pointer towards how to best solve this.

@mbogh Hey sorry! I remember starting to look into this but then I think I got sidetracked 😔 But I got a solution now. Can you test this PR out for me? 😊 #12916

@joshdholtz thanks a lot, looking forward to get this into our project so I can delete my nasty workaround 💯

authors: joshdholtz mbogh

repo: fastlane/fastlane


text:
access keychain problem

When i login to ssh  from remote machine, archive does not run.
** ARCHIVE FAILED **
The following build commands failed:
PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/batur/Library/Developer/Xcode/DerivedData/TEST.me-fdcjhspnujwocydxoemczolxjqry/Build/Intermediates.noindex/ArchiveIntermediates/TEST.me/IntermediateBuildFilesPath/TEST.me.build/Release-iphoneos/TEST.me.build/Script-5D56CD1B1CB17387F4D2AFCF.sh
(1 failure)
[13:33:45]: Exit status: 65
+-------------+-------------------------+
|           Build environment           |
+-------------+-------------------------+
| xcode_path  | /Applications/Xcode.app |
| gym_version | 2.100.1                 |
| sdk         | iPhoneOS11.4.sdk        |
+-------------+-------------------------+
[13:33:45]: ▸ total size is 3486413  speedup is 1.00
[13:33:45]: ▸ Code Signing /Users/batur/Library/Developer/Xcode/DerivedData/TEST.me-fdcjhspnujwocydxoemczolxjqry/Build/Intermediates.noindex/ArchiveIntermediates/TEST.me/InstallationBuildProductsLocation/Applications//TEST.app/Frameworks/AFNetworking.framework with Identity iPhone Developer: Batur Orkun (3CRRLC7B32)
[13:33:45]: ▸ /usr/bin/codesign --force --sign 87BB867A4CA34351A50D64EFD1E66DAA467C11D3 --keychain=/Users/batur/Library/Keychains/login.keychain --preserve-metadata=identifier,entitlements '/Users/batur/Library/Developer/Xcode/DerivedData/TEST.me-fdcjhspnujwocydxoemczolxjqry/Build/Intermediates.noindex/ArchiveIntermediates/TEST.me/InstallationBuildProductsLocation/Applications//TEST.app/Frameworks/AFNetworking.framework'
[13:33:45]: ▸ /Users/batur/Library/Developer/Xcode/DerivedData/TEST.me-fdcjhspnujwocydxoemczolxjqry/Build/Intermediates.noindex/ArchiveIntermediates/TEST.me/InstallationBuildProductsLocation/Applications//TEST.app/Frameworks/AFNetworking.framework: errSecInternalComponent
[13:33:45]: ▸ Command /bin/sh failed with exit code 1

    unlock_keychain(
         path: "/Users/batur/Library/Keychains/login.keychain",
         password: "*******",
         #set_default: true
    )
    sh "security unlock-keychain -p ******* /Users/batur/Library/Keychains/login.keychain"

    build_ios_app(
          workspace: "ios/me.xcworkspace",
          scheme: "me",
          configuration: "Release",
          xcargs: "OTHER_CODE_SIGN_FLAGS=--keychain=\"/Users/batur/Library/Keychains/login.keychain\""
     )

are you running this on jenkins?
I ran into the same issue, I was using setup_jenkins, but apparently its not unlocking the keychain... I added :
unlock_keychain(
      path: "login.keychain",
      password: ENV['LOGIN_KEYCHAIN_PASSWORD']
    )

and now it works.... talk about frustrating...

hi JAManfredi
i am not using jenkins. i wrote my CI by using just fastlane.
if i run my bash script in terminal, everything works fine. but if i run it in cronjob or remote shell, i have an error about ARCHIVING. i thought it was a restriction on keychain and certificates. so i tried cert and sigh but could not solve this problem. At last, i decided to use AppleScript. i open a new terminal and run it on this terminal.
#!/usr/bin/env bash

osascript -e 'tell app "Terminal"
do script "/Users/batur/run.sh ios deploy"
end tell'

@baturorkun You may want to look at this stackoverflow issue. This is less of a fastlane issue but more of a security issue with keychain, mac, and ssh - https://apple.stackexchange.com/a/250572
Your keychain isn't automatically unlocked when using an ssh session so there is some configuring you would need to do if you do want to get this to work properly.
It looks like you figured out a solution but I still wanted to drop this information in here 😊 Going to close this since you found a workaround and since I posted another solution.
Happy fastlaning! 🚀

are you running this on jenkins?
I ran into the same issue, I was using setup_jenkins (which worked), but apparently its not unlocking the keychain now?? ... I added :
unlock_keychain(
      path: "login.keychain",
      password: ENV['LOGIN_KEYCHAIN_PASSWORD']
    )

and now it works.... talk about frustrating...

Wow wow wow..... very frustrating, spent days on this and a quick change. I originally told it the passowrd, and its supposed to default to the login keychain. But in my instance the keychain needed to be called login.keychain-db

authors: Boojs JAManfredi baturorkun joshdholtz