Adds check to str method on the Note model for created attribute.

Closes #6533
What's Changed

Adds a check to str method on the Note model for the self.created attribute prior to accessing the .isoformat() method.
Screenshots

TODO

[x] Explanation of Change(s)
[x] Added change log fragment(s) (for more information see the documentation)
[ ] Attached Screenshots, Payload Example
[ ] Unit, Integration Tests
[ ] Documentation Updates (when adding/changing features)
[ ] Example App Updates (when adding/changing features)
[ ] Outline Remaining Work, Constraints from Design

Issue is related to a colleagues message in the #nautobot slack https://networktocode.slack.com/archives/C01NWPK6WHL/p1731693528819929

Just commenting here to confirm this fixes the notes issue I reported in slack. Thanks Josh!


Accordion Updates

This PR makes some updates to the accordion component. It includes adjustments to the padding of the Accordion.Title and Accordion.Body components to tighten it up a little bit.
It also includes a fix for an issue where you would open an Accordion.Section containing a form and then tab into next Accordion.Section and open it resulting in the previous Accordion.Section being closed and then tabbing back to the previous Accordion.Section. On tabbing back, it would tab into the hidden form forcing the user to hit shift+tab several times to return the previous Accordion.Section.
This PR includes a change to the Collapsible component to add a is-closed class. This class is used by the Accordion to hide the contents of the Accordion.Body when the Accordion is closed. This prevents the above mentioned behaviour from occurring. Now the user can always return the previous Accordion.Section by pressing shift+tab once. This is demonstrated in the video below which shows keyboard navigation through an Accordion with an embedded form.

Coverage remained the same at 100.0% when pulling f16d1b6a4e06cc22dbafa294bb684e52292a5512 on update-accordion into 6727d90430e13cbd4998783bed9d3c73e18ae4d7 on master.


chore(infra/biome): rule useSelfClosingElements

Summary
Related to issue #7182

Checklist

[ ] Tests updated (or not required).
[ ] Documentation updated (or not required).

Nice code, thanks!


Open new browser window with the page if you just posted to a personal booru by saving

Is your feature request related to a problem? Please describe
Not really a problem, but I like to make sure an asset got submitted to my configured personal Danbooru instance after saving.
Also, to make some manual edits to the post if needed. Saves clicks and is a good visual aid it actually passed! :)
Describe the solution you'd like
See title
Describe alternatives you've considered
More agony, more pain, more clicks. /s :P
Additional context
n/a

I updated the danbooru.js file, you can use this one which should support this feature.
Make sure to read the new docs as well that explains how to enable it and install the necessary dependency: danbooru.md.


Copyright notice header autonomy scaffold incorrect

The copyright notice header for auto-generated files via autonomy scaffold fsm produces incorrect output.
Ex:
#   Copyright 2021 Valory AG
#   Copyright 2018-2019 Fetch.AI Limited

This is from an autogenerated file generated on 2022/09/05.
The year for Valory is 2021, I think it should be 2022, as in some of the other autogenerated files it was 2022.
Furthermore, I think only Valory should be listed as a copyright holder.

I would go further and say we should make it: f"Copyright {year} {author}"

I only find these after scaffolding, low priority:
./__init__.py:#   Copyright 2018-2019 Fetch.AI Limited
./my_model.py:#   Copyright 2018-2020 Fetch.AI Limited


Update plan-for-government-gcc.md

Planned feature: https://domoreexp.visualstudio.com/MSTeams/_workitems/edit/460108

@David-Rosenthal - please review

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.

@cowitkow I'm closing these 3 PRs without merging, per @daro: "We'll be shortly redirecting that section to the Teams Service Description."


Support centos7 service locate at /usr/lib/systemd/

https://github.com/laoshanxi/app-manager/commit/a71b20e44762fb206e32db51559a035adade1a0a


Add lib for token sharing between wear and phone

WHAT
Add lib for token sharing between wear and phone.
WHY
Provide default implementation for recommended authentication method: Pass tokens using the data layer.
HOW

Add auth-data-phone module and provide TokenRepository to be used to send token from the phone app;
Add TokenListenerService to auth-data module to be used to receive token from the watch app;
Add auth-sample-phone with a phone auth sample app to share token with the wear auth sample app;
Update auth-sample-wear to use TokenListenerService;

Apologies for the large size PR. Improvements to the phone sample app will be added in a separate PR.
Checklist :clipboard:

[x] Add explicit visibility modifier and explicit return types for public declarations
[x] Run spotless check
[x] Run tests
[x] Update metalava's signature text files

This looks great! I have a question:
Do you think that there is the need to support more than one token? If I'm reading it right, then this currently supports one token between phone and watch?
I am wondering, are there scenarios where more than one token might be needed? e.g.

There is one phone, but multiple watches, which need separate tokens
There is one phone, one watch, but multiple services being used, so multiple tokens needed?

(I'm only throwing these ideas out there, I don't have concrete examples of either right now)

@garanj good questions, I guess we could improve the api to associate a key to each token stored.
Will merge this and submit follow up PRs addressing comments and improvements.


utils/gems: use env shebang when installing gems

This allows switching between portable and system Ruby without having to manually reinstall the gem.
This wasn't an issue previously under Bundler as we used a shim which had its own shebang.
This fix does not affect existing installs, so anybody who updated in the last 8 hours will have the issue if they switch Rubies in the future. This will eventually fix itself when we next update Bundler.

Review period skipped due to critical label.


Bundle app for OSX

This pull request adds the capability to generate an OSX .app bundle for the Mintlayer node's graphical user interface (Node-GUI).
Install the cargo-bundle utility:
cargo install cargo-bundle

Generate the OSX .app bundle:
cargo bundle --release --bin node-gui

the .app bundle is located at:
target/release/bundle/osx/Mintlayer Node.app

I've tested this on OSX, didn't try cross-chain compiling.

So apparently this doesn't work on other machines and needs signatures.

Signature will be done via CI, so this is still a required step.


Add [Steam] Service badges WIP

This adds multiple badges which comes from what data can be fetched by the Steam WEB API
The API documentation can be found here with the import bits being:

GetCollectionDetails
GetPublishedFileDetails

Since this is my first request into this repo, I would like for people to tell me where I can improve if possible.
I have run the tests on my local server but I may have not added all the required tests if so do tell, please!
This pull request resolves #2121

Hello @TagnumElite, thank you for your first contribution to Shields! I haven't gone through your implementation in details yet, but one of the tests seems to be failing when run on the CI. 😉

I haven't gone through your implementation in details yet

I've already started looking over this one. It is quite a large PR adding 7 badges so will probably be useful for a couple of us to look over at some point, but we'll end up duplicating the same points if we both look over it now (again). Maybe wait until I've done a first pass so we don't waste time picking up the same issues.
There is a review app at https://shields-staging-pr-2130.herokuapp.com/

Thanks for submitting your first contribution. This looks like a great start. I've left some comments inline but I don't think any of them are major. I also have a few points which don't really fit inline in the diff:

I've updated the PR title so that it includes "[steam]". This tells the CI build to run the service tests you've defined in services/steam/steam.tester.js. As @pyvesb notes it looks like there is a failing test. Can you have a look: https://circleci.com/gh/badges/shields/15783
Also If I call https://shields-staging-pr-2130.herokuapp.com/steam/favorites/100.svg it renders [favorites | undefined]. I think that's the same issue.

I'm not a big fan of lime as a colourscheme e.g:

We tend to use brightgreen in this context. Its a bit easier on the eye :)

How about we move the 'subscriptions' and 'favorites' badges into the 'rating' category?

Hmmm, duplicate commits???

I could also be a bad person and should burn if I do do it, but I am sure I can just, delete the commits or revert to a previous commit. I know this is heavily frowned upon though.
I suspect that making a new pull request would be better and sections so I will be doing that while implementing the changes you asked for unless asked otherwise.

I will be creating a new pull request without the mess above.


Selected text and copied text should go to separate clipboards — standard X11 clipboard behavior

When selecting text, you should be able to paste it into terminal (or other applications) with middle mouse click. PRIMARY clipboard should be used for this.
Also when selecting text and choosing copy, when pasted into vim (terminal), vim hangs for a while, and pastes something old instead. CLIPBOARD clipboard should be used for this
Tested with vim -u DEFAULTS -U NONE -i NONE
https://specifications.freedesktop.org/clipboards-spec/clipboards-latest.txt

Thanks for the link, this is all news to me as a casual X11 user.
I'll have to dig into the SDL source code to see what exactly SDL_SetClipboardText() does in practice, and if there is any way to influence the behavior. Of course, there is always the option of using X11 APIs directly for this, but I would prefer a more cross-platform solution...

To call xclip behind the scenes is fine with me, but I think xlib is the way to go if not SDL have a way to do it.

I'll have to take a much closer look at the Xlib APIs. If it turns out to be not too complicated, it is indeed better to not call external tools just for accessing the clipboard.

Interesting new feature in SDL 2.26:

Added SDL_SetPrimarySelectionText(), SDL_GetPrimarySelectionText(), and SDL_HasPrimarySelectionText() to interact with the X11 primary selection clipboard


wait command fails due to empty data being returned from docker logs

After upgrading to Docker 1.7 we started to have problems with wait command which was timing out as it was giving up reading from logs due to first two reads in header not containing expected data (the declaredLength being 0). PR fixes this issue.

Thanks ! Applied path to integration


Mandy AI

testing

Yes, it seems we have to merge it, because of this repo was forked many times...


Spacing layout missing

Hello,
In the demo-version (demo) there is a spacing-layout option in the layout settings. However, I've noticed this is not available in the latest release. Can you tell me how I can implement this spacing layout option in a project?
Thnx!

Yeah it seems the demo and Repo are different, several items in the demo , not in the repo,  I ended up having to rip the demo

Yeah it seems the demo and Repo are different, several items in the demo , not in the repo,  I ended up having to rip the demo


[Bug] Fix bugs in importing

Closes #203
Closes #208

Codecov Report

Merging #247 (07d5627) into master (fff1829) will decrease coverage by 0.10%.
The diff coverage is 28.57%.

@@             Coverage Diff              @@
##             master     #247      +/-   ##
============================================
- Coverage     69.83%   69.72%   -0.11%
  Complexity      918      918
============================================
  Files           120      120
  Lines          3216     3221       +5
  Branches        438      439       +1
============================================
  Hits           2246     2246
- Misses          847      850       +3
- Partials        123      125       +2

Impacted Files
Coverage Δ

...java/safeforhall/logic/commands/ImportCommand.java
88.40% <28.57%> (-6.91%)
:arrow_down:

Continue to review full report at Codecov.

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


Istio server operator not honoring revision field

Bug description
The Operator is ignoring the revision field. If I set revision to revision: 1-7-3, I assumed it would create istiod deployment with name istiod-1-7-3. However, the name is just istiod. This blocks me from doing a canary install.
This works as expected if run istioctl manifest generate or istioctl manifest install
[ ] Docs
[ X] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Expected behavior
istiod should be named istiod-<revision>, such as:
istiod-1-7-3-57b66ff9b4-ztgjw           1/1     Running   0          13s

Steps to reproduce the bug
curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.7.3  sh -

./istio-1.7.3/bin/istioctl operator init

kubectl create ns istio-system

kubectl apply -f - <<EOF
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  namespace: istio-system
  name: example-istiocontrolplane
spec:
  profile: demo
  revision: 1-7-3
EOF

k get pods -n istio-system
NAME                                    READY   STATUS    RESTARTS   AGE
istio-egressgateway-669785ffb4-zslp2    1/1     Running   0          52m
istio-ingressgateway-76447f8f85-9295j   1/1     Running   0          52m
istiod-6bbcb9c658-bcpqx                 1/1     Running   0          52m

Version (include the output of istioctl version --remote and kubectl version --short and helm version if you used Helm)
1.7.3
How was Istio installed?
operator
Environment where bug was observed (cloud vendor, OS, etc)
IKS

cc: @sdake

This was fixed in https://github.com/istio/istio/pull/28044
@ostromart I found that you close https://github.com/istio/istio/issues/28299  any reason for that?


Changing Bullet Points on Office Pages

Feedback from @ajbush:

Across the site there are different stylings of bullet points. We would like to make these as cohesive as possible by:
-making bullet points green
-not adding indentation to bullets so that they will align with the content block they exist in.

Luckily, @anselmbradford already took care of point 1, but this PR adjusts the indentation to bring them in with what design wants.
Preview

Notes

To be merged in the next sprint.

@sebworks Brought up the bullets on the related docs:

The indentation is obviously wrong (though this PR prob fixes that?), but should the bullets be there at all?

I don't think the bullets should be there. Can I get clarification from @ajbush or @duelj on this?

I don't think we will need bullets there, bullets with the links isn't a pattern we have been using on other pages I don't think, is it?

I'll look into removing the bullets there.

Hmm, seems like there's a style that's targeting here by mistake.
.sub-page_content ul li:before, .sub-page_content-markup ul li:before {
    content: "▪";
    position: absolute;
    color: #2CB34A;
    font-size: 1.375em;
    line-height: 1;
    left: -0.863636em;
}

Agreed. Right now that's targeting the related links and forms as well. I moved sub-page_content-markup class to more specifically only target the content-markup stuff.

:+1:

Nice fix! :+1:


Dask and ESMPy

This looks like a great project, and I'm looking forward to following its progress! I know the ACME group has been using Dask with ESMPy (https://github.com/ACME-Climate/acme_diags), and I wanted to let you know in case this was something useful to you.

Thanks, that's good to know!
Weirdly, I see both dask and ESMPy in yaml files , but don't really find any use of ESMPy or dask in their python code (acme_diags/acme_diags/).

Ha, that is weird. It must be in the very early stages of development. Anyway, just wanted to bring it to your attention! I'll close the ticket.


ZEVA - Remove Supplementary tab from Reassessments when there is no supplementary report

Title: Remove Supplementary tab from Reassessments when there is no supplementary report
Description: If government has created a reassessment, and there is no associated supplementary report for the supplier, then only 2 tabs should be visible. The Reassessment Recommendation tab and the Reassessment tab. Currently the user still sees the Supplementary Report tab.
Wireframe: https://preview.uxpin.com/ba292bb89debd007a79659b3f657c3649ade8efa#/pages/144446488?mode=fm
Purpose and benefit to user:
Reducing confusion to the user about whether a reassessment has an associated supplementary report or not.
Acceptance Criteria:

Given I am a gov analyst/director, When I am reviewing a reassessment, and there is no associated supplementary report from the supplier, then the supplementary report tab should not be visible,

Development Checklist:

[ ] A
[ ] B
[ ] C

Notes:

Hey team! Please add your planning poker estimate with Zenhub @AlexZorkin @jig-patel @JulianForeman @vibhiquartech @emi-hi


K8SPG-316: Run operator in namespace scope with OLM

CHANGE DESCRIPTION
Problem:
OLM installations don't work because of missing permissions in cluster scope.
Cause:
Operator runs in cluster wide mode if PGO_TARGET_NAMESPACE env variable is empty.
Solution:
Ensure PGO_TARGET_NAMESPACE exists in operator deployment in CSV and use proper role.
CHECKLIST
Jira

[x] Is the Jira ticket created and referenced properly?
[x] Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
[x] Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

[x] Is an E2E test/test case added for the new feature/change?
[x] Are unit tests added where appropriate?

Config/Logging/Testability

[x] Are all needed new/changed options added to default YAML files?
[x] Are the manifests (crd/bundle) regenerated if needed?
[x] Did we add proper logging messages for operator actions?
[x] Did we ensure compatibility with the previous version or cluster upgrade process?
[x] Does the change support oldest and newest supported PG version?
[x] Does the change support oldest and newest supported Kubernetes version?

Test name
Status

init-deploy
passed

demand-backup
passed

start-from-backup
passed

monitoring
passed

We run 4 out of 4

commit: https://github.com/percona/percona-postgresql-operator/pull/411/commits/ed4e99984ada43a689e63728ac62452f5362cfa5
image: perconalab/percona-postgresql-operator:PR-411-ed4e99984


[HELP] Voxels are sometimes not showing up.

I've generated 9 16x16x16 chunks, but some of the voxels have missing sides, or are just not there at all. How can I fix this?

You have not provided enough information for me to help you. Please read some guidelines on submitting issues to open source projects.

What is expected to happen:

There should be 9 chunks loaded (This is true)
Each chunk should have a layer of blocks at the bottom as a "floor".
Each chunk should have blocks where the x and z position within that chunk (z up) are equal.

What happens

The layer of blocks at the bottom are not visible.
None of the blocks at x or z = 15 (the 16th block) are visible.

Source code
https://github.com/Totobird-Creations/bevy-voxel-starter

Thank you for the follow-up info! I will take a look today and see if I can help.

Just so you are aware, none of the voxels on the boundary of the chunk that you mesh will be visible. Boundary voxels are only provided for visibility calculations of the voxels on the interior of the chunk.


Adding docs on getExtendedBusinessEventsContractName

Adding information on how to extend getExtendedBusinessEventsContractName to have extended contract fields display in the Business Events catalog UI.
See bug where this functionality was added in PU50.
https://msdyneng.visualstudio.com/FinOps/_workitems/edit/559461

:white_check_mark: Organization membership check passed
Requester is not a member of the MicrosoftDocs organization.


GROOVY-9517: use inferred right expression type for array checks

https://issues.apache.org/jira/browse/GROOVY-9517

Merged. Thanks.


After clicking on submit button in chrome it just keep on loading

What is your Scenario?
After providing the login details on clicking on submit button it keeps on loading. It is working fine on other browsers
Can anyone help me out the cause for this issue.
https://user-images.githubusercontent.com/54062330/155101034-31289719-0dcc-449e-be33-6c9ca8d0bb74.mp4
What is the Current behavior?
After clicking on the button it keeps on loading
What is the Expected behavior?
Should be able to login
What is your public website URL? (or attach your complete example)
https://develop-widget-refactor.bloksports.com/Login
What is your TestCafe test code?
`import { Selector, t } from 'testcafe';
import { Login } from '../../login';
class LoginPage {
public userName: Selector;
public password: Selector;
public submitBtn: Selector;
public homePage: Selector;
public forgotPassword: Selector;
public signUp: Selector;
public errMsg: Selector;
constructor() {
	this.userName = Selector('input[id="username"]');
	this.password = Selector('input[id="password"]');
	this.submitBtn = Selector('button[type="submit"]');
	this.homePage = Selector('div').withExactText('Available balance');
	this.forgotPassword = Selector('a').withExactText('Forgot Password?');
	this.signUp = Selector('div[area="page"] > div > a[href="/register"]');
	this.errMsg = Selector('#login > div > div');
}

async fillLoginForm(login: Login) {
	login.username != null ? await t.typeText(this.userName, login.username) : null;
	login.password != null ? await t.typeText(this.password, login.password) : null;
}

async submit() {
	await t
		.wait(2000)
		.click(this.submitBtn);
}

async signUpLink() {
	await t.click(this.signUp);
}

async forgotPasswordLink() {
	await t.click(this.forgotPassword)
}

}
export default new LoginPage();
`
fixture('Login') 	.page(${EnvironmentVariables.url}${Routing.LOGIN}`)
.beforeEach(async t => {
if (EnvironmentVariables.env == Tags.DEV) t.ctx.loginData = devLogin;
if (EnvironmentVariables.env == Tags.STAGE) t.ctx.loginData = stageLogin;
}).afterEach(async t => {
await Logout.logout();
});
test.meta(CreateMetaData([Tags.DEV, Tags.STAGE]))
('Input valid login credentials using user name', async t => {
await LoginPage.fillLoginForm(t.ctx.loginData.validLoginCredentials);
await LoginPage.submit();
await t.expect(LoginPage.homePage.exists).ok({ timeout: Times.MEDIUM });
}).only;`
Your complete configuration file
No response
Your complete test report
No response
Screenshots
No response
Steps to Reproduce

Enter username and password
Clcik on submit button

TestCafe version
1.18.3
Node.js version
No response
Command-line arguments
testcafe 'chrome --window-size=1920x1080' src/tests -c 1 --reporter spec --url=https://develop-widget-refactor.bloksports.com --env=dev --test-meta dev=true --skipJsErrors
Browser name(s) and version(s)
Chrome 98.0.4758.102
Platform(s) and version(s)
No response
Other
No response

@Dmitry-Ostashev Tried with above code after waiting for 5 minutes still not able to login

Thank you for trying our sample. If you still see the problematic behavior when you run it, this means that we need to reproduce the login process on our side to assist you further with the issue.
Please create a test account on the website and send us the credentials to<EMAIL_ADDRESS>Please also include a written approval from the website owner. It should permit DevExpress personnel to remotely access the website and its internal resources for research/testing/and debugging purposes.


load more progress

Description
Fixes #891
Fixes #946
Notes (out of scope, known issues, hints for reviewing code, ...)  (optional)
...
Test cases

[ ] Case 1:

Given I am the usual user
When I go to this group
And I watch the group
And I go to Activities > SNT > Progress > Chapter view
And I scroll down to the end of the list/table
Then I see a "Load more" button
(optional) And I throttle network to slow connection
And I click on "Load more" button
Then I see the fetching state of the list
Then I see the full list with new appended items
And I load more multiple times until there's no "Load more" button anymore
Then I should the see the whole list (200 items).

[ ] Case 2:

Given I am the usual user
When I go to this group
And I watch the group
And I go to Activities > SNT > Progress > Chapter view
And I disable my network
And I click on "Load more" button
Then the list remains and I see a toast error "Could not load more results, are you connected to the internet?"

[ ] Case 3:

Given I am the usual user
When I go to this group
And I scroll down to the end of the list/table
Then I see a "Load more" button
And I click on "Load more"
Then I see the list enters in fetching state, then new items are appended to the list
And I load more multiple times until there's no "load more" button anymore
Then I should see the whole list

[ ] Case 4:

Given I am the usual user
When I go to this group
And I scroll down to the end of the list/table
Then I see a "Load more" button
And I disable my network
And I click on "Load more" button
Then the list remains and I see a toast error "Could not load more results, are you connected to the internet?"

There is a question pending on your backend request.

In the 1st PR I was dealing with legacy code that was not handling the state as an observable, therefore to apply the factorization to the 1st PR, I would need to refactor it first.
In order to have a sense of how to use it elsewhere, I fixed the "load more" issue for group managers list.

There's a small UI glitch on the alg-grid footer template, I thought it could be dealt with by Aleksandr.

Here is a proposal of a data pager without side-effect nor specific operator:
https://github.com/France-ioi/AlgoreaFrontend/compare/feat/load-more-progress...feat/load-more-progress-dleproposal
I have not tested it, so maybe everything is wrong 😁
If the proposal looks good to you, take the commit (git merge load-more-progress-dleproposal) and continue working on it from that point.
Another change I would do: either it is the data pager which handles everything about the pages, and so it gives pageSize to the service... or it should not know anything about the pages themselves (so no canLoadMore nor pageSize) and just offer the canLoadMorePagedData function for the component to use it.  Option 2 looks better I would say, I don't like that  canLoadMore$ is irrelevant when the state is fetching or error.


ImportError: cannot import name 'ols'

when I run
"from dolo import * " in my Ipynb environment I got following errors :

ImportError: dateutil 2.5.0 is the minimum required version.
ImportError: cannot import name 'ols'

that is strange. Can you give us more details about your python environment ? (python version, conda/pip, windows/linux, ...)

Hi, my python enviroment is following:
"Python 3.5.3 |Anaconda custom (x86_64)| (default, Mar  6 2017, 12:15:08) "
"conda 4.5.11"
thanks

Could you also post the entire traceback?
I remember seeing these errors are few years ago with a very out of date pandas (I'm thinking in the 0.16 range)
posting the whole traceback would let us sort this out

Yes, I agree with @sglyon, it's certainly a pandas version issue, not necessarly a very old version though. You should update all packages, including pandas and dateutil.
But then, dolo assumes python >= 3.6 (for sorted dictionaries among other things) so you'll probably need another anaconda distribution.

Thanks for your responses. I do think it has to do with pandas version. I have tried updated my conda distribution to the most recent. Also upgrade the pandas and etc.
This is my conda information:
conda version : 4.5.11
conda-build version : 1.18.2
python version : 3.5.3.final.0
This is the full trace-back history of the error

ImportError                               Traceback (most recent call last)
 in ()
----> 1 from dolo import *
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/init.py in ()
10 from dolo.misc.dprint  import dprint
11
---> 12 from dolo.algos.commands import *
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/algos/init.py in ()
1 author = 'pablo'
2
----> 3 from .commands import *
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/algos/commands.py in ()
1 # this is for compatibility purposes only
2
----> 3 from dolo.algos.time_iteration import time_iteration
4 from dolo.algos.simulations import simulate, response, tabulate, plot_decision_rule
5 from dolo.algos.value_iteration import evaluate_policy, value_iteration
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/algos/time_iteration.py in ()
1 import numpy
2 from dolo import dprint
----> 3 from dolo.numeric.processes import DiscretizedIIDProcess
4 from dolo.numeric.decision_rule import DecisionRule
5 from dolo.numeric.grids import CartesianGrid
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/numeric/processes.py in ()
9 # should be moved to markov
10 from numba import jit, njit
---> 11 from dolo.numeric.grids import EmptyGrid, CartesianGrid, UnstructuredGrid
12
13 @njit
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/numeric/grids.py in ()
1 from functools import reduce
2 from operator import mul
----> 3 from quantecon import cartesian
4 import numpy as np
5 from numpy import zeros
/Users/Myworld/anaconda/lib/python3.5/site-packages/quantecon/init.py in ()
11 from .discrete_rv import DiscreteRV
12 from .ecdf import ECDF
---> 13 from .estspec import smooth, periodogram, ar_periodogram
14 from .graph_tools import DiGraph
15 from .gridtools import cartesian, mlinspace
/Users/Myworld/anaconda/lib/python3.5/site-packages/quantecon/estspec.py in ()
11 import numpy as np
12 from numpy.fft import fft
---> 13 from pandas import ols, Series
14
15
ImportError: cannot import name 'ols'

You need python >=3.6
Le jeu. 4 avr. 2019 à 00:09, Tao<EMAIL_ADDRESS>a écrit :

Thanks for your responses. I do think it has to do with pandas version. I
have tried updated my conda distribution to the most recent. Also upgrade
the pandas and etc.
This is my conda information:
conda version : 4.5.11
conda-build version : 1.18.2
python version : 3.5.3.final.0
This is the full trace-back history of the error

ImportError Traceback (most recent call last)
in ()
----> 1 from dolo import *
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/init.py in ()
10 from dolo.misc.dprint import dprint
11
---> 12 from dolo.algos.commands import *
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/algos/init.py
in ()
1 author = 'pablo'
2
----> 3 from .commands import *
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/algos/commands.py
in ()
1 # this is for compatibility purposes only
2
----> 3 from dolo.algos.time_iteration import time_iteration
4 from dolo.algos.simulations import simulate, response, tabulate,
plot_decision_rule
5 from dolo.algos.value_iteration import evaluate_policy, value_iteration
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/algos/time_iteration.py
in ()
1 import numpy
2 from dolo import dprint
----> 3 from dolo.numeric.processes import DiscretizedIIDProcess
4 from dolo.numeric.decision_rule import DecisionRule
5 from dolo.numeric.grids import CartesianGrid
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/numeric/processes.py
in ()
9 # should be moved to markov
10 from numba import jit, njit
---> 11 from dolo.numeric.grids import EmptyGrid, CartesianGrid,
UnstructuredGrid
12
13 @njit https://github.com/njit
/Users/Myworld/anaconda/lib/python3.5/site-packages/dolo/numeric/grids.py
in ()
1 from functools import reduce
2 from operator import mul
----> 3 from quantecon import cartesian
4 import numpy as np
5 from numpy import zeros
/Users/Myworld/anaconda/lib/python3.5/site-packages/quantecon/init.py
in ()
11 from .discrete_rv import DiscreteRV
12 from .ecdf import ECDF
---> 13 from .estspec import smooth, periodogram, ar_periodogram
14 from .graph_tools import DiGraph
15 from .gridtools import cartesian, mlinspace
/Users/Myworld/anaconda/lib/python3.5/site-packages/quantecon/estspec.py
in ()
11 import numpy as np
12 from numpy.fft import fft
---> 13 from pandas import ols, Series
14
15
ImportError: cannot import name 'ols'
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/EconForge/dolo/issues/132#issuecomment-479676711, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAQ5KR96rsadvJDugN0v3wP1_MSXzmJ1ks5vdSZ_gaJpZM4cW_9-
.

Thank you.
Finally, I got it solved. Part of the reason was I could not update my python to the latest recent one although I thought I have achieved it. Now once I reinstall and update everything to the most recent, it worked.

Perfect! Closing the issue now


stm32: add disable_ucpdx_dead_battery

Config option to disable the dead battery behaviour on UCPD parts. Option since if you're using UCPD you need to configure that first before disabling (which will probably be done in the driver). also disables unconditionally on G070 and G0B0 since they aren't supposed to have UCPD but do have this feature.
cc @timokroeger but this doesn't depend on the UCPD driver

Great that you had a go at this already!
Can you please wrap the added init code in a pub(crate) fn disbale_ucpd_dead_battery() or similar function?
Then the UCPD driver can re-use this function to switch of the dead-battery support if not expliticly disabled through init.

I'd invert the config fields: make them "enable" instead of "disable", and default to false. This avoids awkward double negations where you have to mentally parse "disable: false" as "enable".
Do we need this in the global embassy-stm32 config? it's confusing that this is controlled both here and in the UCPD driver. IIUC the reason to disable it on init is it's enabled by default so it might interfere with these pins even if you're not using UCPD at all? in this case, would it make sense to unconditionally disable it in embassy_stm32::init() and then have a config setting in UCPD to enable them back? or would that cause a "glitch" at boot where they're disabled for a brief period of time which is unacceptable?

would that cause a "glitch" at boot where they're disabled for a brief period of time which is unacceptable?

From "Universal Serial Bus Type-C Cable and Connector Specification Release 2.3":

"as quickly as practical" sounds to me like a source can disable power immediately when it sees a glitch. So we cannot disable the dead-battery feature unconditonally unfortunately.

oh wow okay. that's unfortunate. LGTM then if we change the config fields to enable instead of `disable.


remove codecov update pipefile.lock

What and why?
software package not required
How to test?
test in environment
Trello
S32 Remove codecov package use from python repos

/deploy morgad

/deploy morgad


TypeError: Cannot read property '0' of undefined when using bright colours in "chalk.keyword()"

Chalk 4.0.0
I'm trying to set a theme for info-messages:
const info = chalk.keyword("blueBright");

But when I execute the code I get:

UnhandledPromiseRejectionWarning: TypeError: Cannot read property '0' of undefined
at Object.keyword (\node_modules\chalk\node_modules\ansi-styles\index.js:15:39)
at Chalk. (\node_modules\chalk\source\index.js:83:77)

At the same time, when I use blueBright colour without theme:
console.log(chalk.blueBright("info"));

everything is working OK.
I tried several bright colours from a list, none of them is working inside of chalk.keyword().

.keyword() accepts CSS keyword names. The list you refer to are methods. Your second example is correct; the method names don't work with the keyword function.


Moving SMI rackhd config file to opt monorail directory

This PR moves the SMI microservice Rackhd config settings file underneath the /opt/monorail directory.  There are two copies of the file.  One for RackHD installed via ansible, and one for RackHD installed as docker containers.
This PR should go around the same time as a PR in on-core that changes the configuration.js to point to the new file location.

This is the related pull request in on-core:
https://github.com/RackHD/on-core/pull/282


java.nio.charset.IllegalCharsetNameException: %s

I met a very strange problem, appear on okhttp version 3.4: under Caused by: Java nio. Charset. IllegalCharsetNameException: %s.I was very confused, why so strange questions.Arguably the server returns the Charset inside is never to appear %s. This is the collapse of the specific log:
   Caused by: java.nio.charset.IllegalCharsetNameException: %s
    at java.nio.charset.Charset.checkCharsetName(Charset.java:197)
    at java.nio.charset.Charset.forName(Charset.java:295)
    at okhttp3.MediaType.charset(SourceFile:103)
    at okhttp3.ResponseBody.charset(SourceFile:159)
    at okhttp3.ResponseBody.string(SourceFile:154)
    at com.bb.h5.container.service.DownloadService$3.onResponse(SourceFile:806)
    at okhttp3.RealCall$AsyncCall.execute(SourceFile:141)
    at okhttp3.internal.NamedRunnable.run(SourceFile:32)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    at java.lang.Thread.run(Thread.java:833)

Currently only found in many devices at a time.

Could you provide a sample URL that has the problem? Typically this indicates that your server is sending down something like this:
Content-Type: application/json; charset=%s

At present, this is the collapse of the background statistics information.And in a lot of equipment is only one device appeared again.I doubt whether information has been hijacked, or error in transmission.

Got it. In that case I recommend you decode the charset manually:
String bodyString = new String(responseBody.bytes(), "YOUR_CHARSET");

Where instead of YOUR_CHARSET you’ll probably put UTF-8, but you could use whatever charset you think the response is encoded with.

No further action for us to take on this! If you think there’s something we can do further, please add an executable test case!

3Q

I just looked at the relevant part of the code, feel so to modify.
MediaType.java
   /**
   * Returns the charset of this media type, or {@code defaultValue} if either this media type
   * doesn't specify a charset, of it its charset is unsupported by the current runtime.
   */
  public Charset charset(Charset defaultValue) {
    try {
      return charset != null ? Charset.forName(charset) : defaultValue;
    } catch (IllegalArgumentException e) {
      return defaultValue; // This charset is invalid or unsupported. Give up.
    } catch(IllegalCharsetNameException e) {
      return defaultValue; //
    }
  }

I saw you before in other issues mentioned, you can refer to the processing of Chrome and Safari.For unknown character, or the wrong, can catch up And return the default utf-8.


Use libreSSL instead of openSSL

I managed to build libpq with LibreSSL, I just need to add an option to choose which dependency we want.

Looks good. This means we can enable SSL with apple clang, right? Or at least we can make changes to make it work

Yes exactly.
I'll test it on my Mac, modify the CLI option and merge


Remove byteorder-dependency?

The byteorder-crate is not strictly needed since 1.32 and could be removed. Dropping a dependency is worth the change IMHO. Is there interest in doing so?

Yep! happy to take a PR to remove it.

Had been on my todo list :)


Update build.yml

Closes #112
🛠 Fixes Issue

👨💻 Changes proposed

Added npm ci instead of npm install.

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Updated PR according to PR template.


Fix spelling error of SSL_get_peer_certificate

This commit fixes the error of macro SSL_get_peer_certificate which was SSL_get1_peer_certifiate and is ow SSL_get1_peer_certificate
What happened?
I was trying to compile Tor trunk with OpenSSL trunk, but I noticed the build failing because of this spelling error.
What changed?
I changed the macro to point to the correct name. Tor now compiles again.
Tristan

duplicate of #12468

Ahh yes I'm sorry, I'm just glad it's fixed :))


[Task]: Slight adjustments to filter header

Task description
As part of the feedback provided by the UI / UX team for v2, some suggestion are around improving the filter header:

Add Done button;
Remove gray background;
Align Payload Filter heading with the checkboxes;
Add an indicator for active filters — see proposed design.

Requirements
See proposed design here.
Acceptance criteria
N/A
Creation checklist

[X] I have assigned this task to the correct people
[X] I have added the most appropriate labels
[X] I have linked the correct milestone and/or project

Fixed in https://github.com/iotaledger/explorer/pull/204.


boot2docker should NOT require VT-X

Hi,
Thanks for making boot2docker and this windows installer available, much appreciated!
I work at a studio developing backend services for VR gaming.  I'm trying to setup dockerized versions of our backend services so that our fronted VR developers can test against these services on their Windows boxes.
The problem is that Occulus and most VR headsets REQUIRE VT-X to be turned OFF for decent performance.  Whereas boot2docker and docker require it to be ON (by virtue of requiring it and also because they're 64-bit).
So we need a 32-bit version of boot2docker and docker to support any kind of Docker containers for VR development since most of the VR headsets require VT-X OFF and 64-bit docker/boot2docker require VT-X ON.
We need to test connecting to docker while the VR headset is running (to see the results of data returned from the dockerized services in the headset's HUD).
I don't know how to do this currently.
Please make a version of docker that is 32-bit and does not require VT-X.
This is a showstopper for us ...
Thanks!

+1, VT-X required is getting in my way

Boot2Docker uses the official releases of Docker - and Docker is not supported on 32bit Linux at this point - and thus, any kind of Docker container will mostly contain 64bit binaries. (Yes, I'm aware of the 32bit i86 and arm projects, but havn't had time to to more than play)
For this to happen, in boot2docker itself, much more continuous testing and infrastructure is required than we have now - we'd all welcome this, but its not at the top of the list.

Sorry, this repository is long-since deprecated in favor of Docker Toolbox (whose usage is now also discouraged in favor of Docker for Windows and Docker for Mac).


Issue with deployment step ind CICD Action

Hi.
Not sure what the issues is caused by, but after opdating the AL-Go to version 3.0 all our CICD pipelines fails.

I suspect that the error has something to do with the two messages below.
Because the Initialize stage shows this in the "complete job"

We do not have github "real" environments, but are using the settings.json in the AL-Go. And secrets for the authcontext and environmentname.
It worked with version 2.4 of AL-Go.
I'll be happy to provide any other information.

So this is my settings.json in the al-go folder

And this is my project secrets:

And i can do a manual deployment afterwards, with the action for that and the point to DEV og TEST and that works.
Thanks

What is the value of the EnvironmentName secrets (is that Dev, Prod and Test)?

Its: "Udvikling", "Production" og "Test"
No quotes off course

Try to remove the 3 environment name secrets and create these settings:
"DeployToDev": {
"EnvironmentName":  "Udvikling"
},
"DeployToProd": {...
etc.

That worked, so we will just use this going forward, great help thanks.
Sorry for posting a question in this, but if you have a short answer it would be a great help.
Is it possible to make the ci/cd action only post to sandboxes and not the production as well?

The CD action will not deploy to production - it will discover that it is a prod environment and abandon.
If you add (Production) to the environment name in the environments setting - (like "PROD (Production)") then it will never create a job for that.

My bad i missed that it was actually skipped, just saw it all ran green on the deployment.
Thanks alot for the help and the great product that al-go for github is for us!


flat dist dir

Part of pull request #22

Just realised https://github.com/mattlewis92/generator-angular-library/pull/27 makes more sense to be part of this PR as they both alter the release script, can you cherry-pick it into this branch please? 😄

Oh and this one as well actually: https://github.com/mattlewis92/generator-angular-library/pull/23/files
Just keep the config one separate, sorry to keep asking for changes!

The check picks are starting to get conflicts and messing up with the linear history.

@giovannicandido I'll just squash all the commits together when I merge this

I just want to check this out locally and double check everything works OK before merging, but everything looks OK by eye 😄

😄 Is a good idea. I use npm link to test locally

@giovannicandido so sorry about the delay on reviewing this, I had surgery this week and have been out of action. Thanks a tonne for your patience and contribution 👍


Add arminveres/mdf-pdf.nvim

Repo URL:
https://github.com/arminveres/md-pdf.nvim
Checklist:

[x] The plugin is specifically built for Neovim, or if it's a colorscheme, it supports treesitter syntax.
[x] The lines end with a .. This is to conform to awesome-list linting and requirements.
[x] The title of the pull request is Add/Update/Remove `username/repo`  (notice the backticks around `username/repo`) when adding a new plugin.
[x] The description doesn't mention that it's a Neovim plugin, it's obvious from the rest of the document. No mentions of the word plugin unless it's related to something else. No .. for Neovim.
[x] The description doesn't contain emojis.
[x] Neovim is spelled as Neovim (not nvim, NeoVim or neovim), Vim is spelled as Vim (capitalized), Lua is spelled as Lua (capitalized), Tree-sitter is spelled as Tree-sitter.
[x] Acronyms should be fully capitalized, for example LSP, TS, YAML, etc.

Thanks for the PR!

Thanks for the review @tversteeg, I force pushed your suggestion, in order not to create unnecessary commits.


Fix minor problems in Containers paragraph

Fix a few minor problems in the 1st paragraph of the Containers section.

<p>@scottaddie,<br />
Thanks for already signing the Contribution License Agreement.
if (Model.CLAstatus == OSSClaDocument.GetCLADocumentStateString(CLADocumentState.Signed))
{
    Your agreement has not been validated yet.
} else if (Model.CLAstatus == OSSClaDocument.GetCLADocumentStateString(CLADocumentState.Approved))
    Your agreement was validated by .NET Foundation.
}
We will now review your pull request.
</p>


RACI Matrix - MOH/CPF Development of Security/Privacy Shared Responsibility Model for Public Cloud

Describe the Issue
MOH is working with the CPF Team to create a security/privacy RACI matrix for the shared responsibility model for security/privacy to be used for compute/storage within the public cloud.
Additional Context
Work will be led by MOH and the CPF Team. MOH (Rick C.) is working on a different RACI matrix (see comment below) with focus on Security/Privacy responsibilities in AWS ASEA. Final draft to be shared with the CPF Team upon completion of MOH/CPF Team engagements.
Acceptance Criteria
.Nick C. has been leading this work;
.Gary to meet with Nick C. and Rick C. to discuss involvement with this work, and division of responsibilities;
.Gary to potentially assist with development of RACI matrix (privacy-related).
.
.
.
.
.
.
Extra Template Info
Definition of Ready
These set of conditions will need to be met in order to bring a ticket into the sprint and start work. Protects the team from unclear requirements.
Issues (Task/Story/Spike) aligned to an EPIC and linked appropriately.
Assigned to the appropriate CPF MEMBER (and is not left blank in ZenHub) at the start of sprint (1st day of the sprint)
Acceptance has been defined for the issue and has been reviewed with CPF team and approved by the necessary approver.
Has been sized and estimated by the delivery team.
Detailed breakdown of the steps required to complete the story in the additional context
Any additional specifications have been documented, reviewed with CPF and approved by the necessary approver.
Acceptance Criteria
A set of pre-defined requirement that need to be met in order to mark the user story as “done”.
It should be testable with no room for interpretation
It should be either “pass” or “fail”
It should be clear enough for business stake holders to understand
As part of the user story, it should be written from the user perspective
A well written acceptance criteria is great for

managing expectations
defining scope
reducing ambiguity
establishing testing criteria for QA
Given (Pre-condition)
When (Action)
Then (Outcome)

Definition of Done
These set of conditions are met for work to be considered as complete on an issue.
All acceptance criteria(s) have been validated.
All the necessary documentation for the issue has been uploaded to Teams.
Functionality has been tested when applicable.
Functionality has been demonstrated to the relevant stakeholders (where applicable).
Story has been scheduled for a Sprint Demo/community update and impacted teams invited to the Demo.
Stories accepted by PO and documented for potential sharing with impacted users.

Documented = Captured in Community Update (CU) deck
Release notes = aspirational goal of providing a bulleted list of features and changes that our users can touch. Was going to store them in our Cloud Pathfinder repo. Can also display to users in the CU

Gary obtained initial draft from Rick's team member Andrew D. Completion of final draft pending further engagements between MOH & CPF Team.

Gary met with Rick C. & Nick C. Latest draft shared with CPF for review/comment.

Nick C. has confirmed that Rick C. will connect with CPF Team with updates to the RACI.

Closed due to no clear requirements - Olena


Update sources-and-scans.md - sampling for tabular data sources.

Updating the doc to mention that we sample the top 128 rows for tabular data sources.

@sidfloyd90 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


Question about default location for json settings files

Hi.
Thank you for making this great library available.
I am wondering if you could clarify what you mean by the settings are looked up by file name by default from the root .config folder?
The test Settings_are_looked_up_by_file_name_by_default_from_json_files_in_the_root_of_the_config_folder() says that the .config root folder is the default location.
However, this test fails if the line Settings.Precedence = null; is commented out.
Further-more, thedefault behavior check in the first part of the test Settings_precedence_set_via_an_environment_variable_overrides_app_config() brings back the settings from the test sub-folder.
Other tests, such as GetFile_uses_stated_precedence() prior to explicitly setting the precedence are also returning settings by default from the test sub-folder.
So, it seems like the default precedence for the location of the json settings file is actually the test sub-folder, unless the precedence is explicitly over-written with null.
Am I missing something?
Kind regards,
Craig.

Hi Craig,
Glad you're finding it useful.
I think the piece of information that wasn't made clear here is that there's a precedence for the Settings.Precedence lookup. You can set it programmatically, but if you don't, Its.Configuration tries to figure it out by looking for it, in order, in:

an environment variable
app.config / web.config
Azure settings

Most of these tests are assuming that the app.config-specified precedence ("test|local") will be in place. The SetUp method calls Settings.Reset() to restore this prior to each test. Setting Settings.Precedence = null in the Settings_are_looked_up_by_file_name_by_default_from_json_files_in_the_root_of_the_config_folder overrides this precedence setting to verify the default if none of those are set.
Hope that makes it clearer.
Jon

Thank you.
That clarifies it.


Add f-component disabled

[Current coverage][cc-pull] is 100%

No coverage report found for master at 5ff97c4.

Powered by Codecov. Last updated by [5ff97c4...37961a3][cc-compare]
[cc-base-branch]: https://codecov.io/gh/andymost/Chronopick/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/andymost/Chronopick/compare/5ff97c448d9ca94686e63316bcf4235bd8e2dece...37961a39cafb4e4a7dfdf5f262c93ab5e3834cea
[cc-pull]: https://codecov.io/gh/andymost/Chronopick/pull/6?src=pr


✨ Android: Return Video size and duration

On Android the video duration and size are not set correctly because CameraX doesn't provide that information in the Callback.
https://github.com/cuvent/react-native-vision-camera/blob/dff8fc71788311c324e6eb80976a6ec50596d3e5/android/src/main/java/com/mrousavy/camera/CameraView%2BRecordVideo.kt#L32-L36
The only workaround for this would be reading the Video's Metadata, but that's an extra overhead I don't want to introduce.
With frame processors I'm going to have to create a custom Video recorder and encoder anyways, I can manually use a stopwatch for this then. So #2 probably fixes this issue.

@mrousavy would love to have feature parity here. Missing the duration for android.

Did you check if it was there?

Nope, I saw this ticket and I knew it wasn't there couple of weeks ago.

Yes, it is there... yarn remove react-native-ffmpeg-kit
:D


[Need HELP] How to update the content of floatingChild

Thank you for providing such a useful plugin.
I want to know how to update the content of floatingChild:
Such as:
                  floatingChild: SizedBox(
                    width: width - 1,
                    height: height / 2.5,
                    child: Container(
                      decoration: BoxDecoration(
                        color: Theme.of(context).primaryColor,
                        borderRadius: BorderRadius.circular(10),
                        border: Border.all(
                          color: Theme.of(context).colorScheme.primary,
                          width: 1.0,
                        ),
                      ),
                      **_child: Text("${str}"),_**
                      //CustomPaint(painter: SpecPainter(context: context)),
                    ),
                  ),

When str has changed and setstate has been called, the str in FloatingOverlay has not changed. The str display is updated only when resize or position is moved.

Yes, this is probably not actually in the same scope as the setState you're using. For this, you can look into using any state management solution you'd like. I'd suggest you try to use StatefulBuilder or even ValueListenableBuilder with a ValueNotifier (my preferred option) or even Streams for Dart/Flutter built-in support.
Little example:
import 'package:flutter/material.dart';

void main() => runApp(
      const MaterialApp(
        home: MyHomePage(),
      ),
    );

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  ValueNotifier<int> _counter = ValueNotifier<int>(0);

  void _incrementCounter() {
    _counter.value++;
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Flutter Demo Home Page'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const Text(
              'You have pushed the button this many times:',
            ),
            ValueListenableBuilder(
              valueListenable: _counter,
              builder: (context, value, _) {
                return Text(
                  '$value',
                  style: Theme.of(context).textTheme.headlineMedium,
                );
              }
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: const Icon(Icons.add),
      ),
    );
  }
}

Please let me know if you were able to solve your problem!


Hide and make widget invisible when using captureMotionWithStream()

Hi, thanks for the great work!
Is it possible to hide the Render widget (e.g. the AnimatedExampleWidget in main.dart) when using the captureMotionWithStream,
I wish to render and record the widget in the background by not showing the rendering process.
CaptureMotionFromWidgetWithStream sounds like the feature I want, but I have no idea how to modify it in main.dart.
I would appreciate any help.

Sure. CaptureMotionFromWidgetWithStream  has a widget parameter input. This function will provide your widget a off-screen context, from which it is being build.
Thefore you can simply do:
final stream = controller.captureMotionFromWidgetWithStream(AnimatedExampleWidget(), ...);

This code is not written in your widget tree, but you can put it in your initState() for example.

If you display the animation don't use ...fromWidget. Nonetheless I believe that is an issue in your code. Please try your problem with a default widget and compare if the issue still arises.
I am unable to determine what's going wrong just from your text, but you might be required to preload the data in your initstate and then pass it to your to-be-rendered widget.

var stream = _renderController.captureMotionFromWidgetWithStream(
context,
Scaffold(
body: Column(
mainAxisSize: MainAxisSize.min,
children: [
Image.asset(
'assets/images/template2/lord_ganesh.png',
height: 240,
width: 240,
fit: BoxFit.contain,
),
],
),
),
const Duration(seconds: 5));
         This always give "No MediaQuery widget ancestor found." Error

I have to use the animations and render them in background.
Using captureMotionFromWidgetWithStream() creates certain issue..
Is there any way I can communicate with you ?? Would be a great help to me.


requestHooks() response order changed from v1.3 to v1.4

What is your Test Scenario?
I have two different RequestMock() that have the same onRequestTo() URL and different responses, one is applied on fixture and the other one directly on test.
What is the current behaviour?
As of now, v1.8, but from v1.4, the response comes from the mock applied to fixture, in v1.3 the behaviour was different, the response came from the one applied to test.
This was neither listed as a breaking change nor as a change at all so I think is a bug.
What is the Expected behaviour?
I think the correct behaviour was the one from v1.3, so we can overwrite mocks applied to fixture to have the possibility to test error responses inside the same fixture and not in a different one.
What is your web application and your TestCafe test code?
I have created a repository containing the example code and the instructions to run the code: macarie/testcafe-requestmock-priority.
In v1.3 you can see that the output under the <h1> is test, in v1.4 is fixture.
Your Environment details:

testcafe version: v1.3 and v1.4
node.js version: v13.5.0
browser name and version: Chrome 79
platform and version: macOS 10.15.2

Hi @macarie. We discussed this issue deeply, so I want to explain the situation from my point of view. The pre-1.4 versions incorrectly discarded fixture request hooks in favor of test request hooks. @miherlosev fixed it by concatenating test hooks after fixture hooks and applying fixture hooks first.
We think that it is the correct behavior since you can have multiple request hooks at the same time. Fixtures are declared before tests, so it seems logical that all fixture-related objects are executed in the first part.
The only problem here is RequestMocks. They can set only a single response value for a matching request. When dealing with singular values, it seems natural that the last executed code path should set an effective value.
So we should improve RequestMocks to apply the last passed response value from the last RequestMock instead of the first one and keep the current hook execution order. It should be done in DevExpress/testcafe-hammerhead and we will be happy to give you some directions about it. Despite we really like the idea behind this enhancement, I have to reject your current pull request in order to focus on improving testcafe-hammerhead.

Hi @AndreyBelym, thank you for the response 🙂

The pre-1.4 versions incorrectly discarded fixture request hooks in favor of test request hooks. @miherlosev fixed it by concatenating test hooks after fixture hooks and applying fixture hooks first.

Even if it was just a bug-fix, I would have listed it as a breaking change.
I was upgrading our dependencies and that was hard to debug 😝

We think that it is the correct behavior since you can have multiple request hooks at the same time. Fixtures are declared before tests, so it seems logical that all fixture-related objects are executed in the first part.

Oh, I see, so you want fixture-related code to be run first, and then the test-related code, totally understandable 👍🏼

The only problem here is RequestMocks. They can set only a single response value for a matching request. When dealing with singular values, it seems natural that the last executed code path should set an effective value.
So we should improve RequestMocks to apply the last passed response value from the last RequestMock instead of the first one and keep the current hook execution order. It should be done in DevExpress/testcafe-hammerhead and we will be happy to give you some directions about it.

I understand. I'm not sure if I'll have time to work on it, but if you can open an issue there and give some details about what should be done maybe others can give it a try.
If you could tag me in that issue I'd be grateful.

Despite we really like the idea behind this enhancement, I have to reject your current pull request in order to focus on improving testcafe-hammerhead.

Sure, it was more of a proof of concept than anything. I think it's easier to speak about code when you can see it 😄


error: invalid IP address syntax

Error when running the tangram app:  error: invalid IP address syntax
tangram version: tangram_cli_0.7.0_x86_64-unknown-linux-gnu.tar.gz

Running with root privileges solved the problem.


Add AlterOutboundOperations to add and remove vnext from vmess server

Closes #2320

Hi, is there something that you could not achieve with more generic add outbound and balancer?
We are currently trying to phase out the current more than one server in one outbound construct as it more difficult to control the behavior for the user, and in favor of more generalized many outbound structure.

Hi, If I change the whole config structure, it can be done with the add-outbound API. However, many like me still use the vnext configuration for load balancing, and being able to control it using the API would help.


[PROPOSAL] Remove redundant ExtendedQueueable trait for 3.1.* (also can be removed for 3.0)

Versions

PHP version: 7.4.11
Laravel version: 8.15
Package version: 3.1.25

Description
Hi all.
I investigated the code base and found the ExtendedQueueable trait do the same logic for chain method as in the base Queueable trait.
What do you think about removing this trait?

We'll as soon as we don't support older Laravel versions anymore, currently it's needed to keep the same API and behaviour for all versions

3.0 version support laravel 5.5^ and in this version Queueable trait has chain method

The chain method does exist, yes. But the user wouldn't be able to chain extra jobs, it would remove the internal chain. Our ExtendedQueuable merges the 2 chains so all jobs are executed in the right order

Laravel's chain:
/**
     * Set the jobs that should run if this job is successful.
     *
     * @param  array  $chain
     * @return $this
     */
    public function chain($chain)
    {
        $this->chained = collect($chain)->map(function ($job) {
            return serialize($job);
        })->all();

        return $this;
    }

->chain()->chain() would only keep the last chain
That's why we add the job to the already existing chain instead so we don't loose the already existing chain: https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/src/Jobs/ExtendedQueueable.php#L22

Prerequisites

[x ] Have read and understood:
https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/.github/SUPPORT.md
[x ] Checked if your Laravel Excel version is still supported:
https://docs.laravel-excel.com/3.1/getting-started/support.html#supported-versions
Checked that your question isn't already asked before.
Filled in the entire issue template

Versions

PHP version: 7.2
Laravel version: 5.8
Package version: ^3.1

Description
I have a CSV file with some rows that has text/words that contain a special
character like ñ, what happened is that when I tried to import the file the
words with characters above or alike will be converted to 0. Not sure if it
is related to encoding, I found some solutions in the StackOverflow but
none of them seem to work.
Additional Information
I am using the ToModel
use Maatwebsite\Excel\Concerns\ToModel;
To reproduce this, just try to put a special character in one of the cell
of your CSV, then import it like:
Excel::import(new CsvImport, request()->file('file'));
The resulting inserted data that has a special character will be stored as 0
On Wed, 25 Nov 2020 at 14:33, Patrick Brouwers<EMAIL_ADDRESS>wrote:

Laravel's chain:
/**
* Set the jobs that should run if this job is successful.
*
* @param  array  $chain
* @return $this
*/
public function chain($chain)
{
$this->chained = collect($chain)->map(function ($job) {
return serialize($job);
})->all();
    return $this;
}

->chain()->chain() would only keep the last chain
That's why we add the job to the already existing chain instead so we
don't loose the already existing chain:
https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/src/Jobs/ExtendedQueueable.php#L22
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Maatwebsite/Laravel-Excel/issues/2933#issuecomment-733567714,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALMKRU3VMNWXXFA7SMSOWR3SRTB7VANCNFSM4UCCQW7Q
.

@hirenpatel1903 Please open a new ticket, it's unrelated to this ticket

@patrickbrouwers unfortunately I can't understand why this trait is needed because the code is same for me as in the base Queueable trait and in ExtendedQueueable trait and do the same logic.

@patrickbrouwers ohh, I understand...

@patrickbrouwers thanks for the explanation. We can close this issue.


web 页面无法进行对话、 无法创建知识库

安装了 langchian-chatchat v 0.2.7 和 v 0.2.8 .都可以正常启动，模型也都可以加载。web对话页面、知识库页面都可以正常出现。
但是，在对话页面 输入 “你是谁” , 感觉系统卡死在 “思考中”， 不能生成对话。
系统报错信息：
2023-12-09 03:20:52,048 - _client.py[line:1013] - INFO: HTTP Request: POST http://<IP_ADDRESS>:7861/chat/chat "HTTP/1.1 200 OK"
2023-12-09 03:20:52 | INFO | stdout | INFO:     <IP_ADDRESS>:35782 - "POST /v1/chat/completions HTTP/1.1" 200 OK
2023-12-09 03:20:52,143 - _client.py[line:1729] - INFO: HTTP Request: POST http://<IP_ADDRESS>:20000/v1/chat/completions "HTTP/1.1 200 OK"
2023-12-09 03:20:52 | INFO | httpx | HTTP Request: POST http://<IP_ADDRESS>:20002/worker_generate_stream "HTTP/1.1 200 OK"
2023-12-09 03:22:32 | ERROR | stderr | ERROR:    Exception in ASGI application
2023-12-09 03:22:32 | ERROR | stderr | Traceback (most recent call last):
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_backends/anyio.py", line 34, in read
2023-12-09 03:22:32 | ERROR | stderr |     return await self._stream.receive(max_bytes=max_bytes)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 1203, in receive
2023-12-09 03:22:32 | ERROR | stderr |     await self._protocol.read_event.wait()
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/asyncio/locks.py", line 214, in wait
2023-12-09 03:22:32 | ERROR | stderr |     await fut
2023-12-09 03:22:32 | ERROR | stderr | asyncio.exceptions.CancelledError
2023-12-09 03:22:32 | ERROR | stderr |
2023-12-09 03:22:32 | ERROR | stderr | During handling of the above exception, another exception occurred:
2023-12-09 03:22:32 | ERROR | stderr |
2023-12-09 03:22:32 | ERROR | stderr | Traceback (most recent call last):
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
2023-12-09 03:22:32 | ERROR | stderr |     yield
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_backends/anyio.py", line 32, in read
2023-12-09 03:22:32 | ERROR | stderr |     with anyio.fail_after(timeout):
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/anyio/_core/_tasks.py", line 119, in exit
2023-12-09 03:22:32 | ERROR | stderr |     raise TimeoutError
2023-12-09 03:22:32 | ERROR | stderr | TimeoutError
2023-12-09 03:22:32 | ERROR | stderr |
2023-12-09 03:22:32 | ERROR | stderr | The above exception was the direct cause of the following exception:
2023-12-09 03:22:32 | ERROR | stderr |
2023-12-09 03:22:32 | ERROR | stderr | Traceback (most recent call last):
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_transports/default.py", line 66, in map_httpcore_exceptions
2023-12-09 03:22:32 | ERROR | stderr |     yield
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_transports/default.py", line 249, in aiter
2023-12-09 03:22:32 | ERROR | stderr |     async for part in self._httpcore_stream:
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 361, in aiter
2023-12-09 03:22:32 | ERROR | stderr |     async for part in self._stream:
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_async/http11.py", line 337, in aiter
2023-12-09 03:22:32 | ERROR | stderr |     raise exc
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_async/http11.py", line 329, in aiter
2023-12-09 03:22:32 | ERROR | stderr |     async for chunk in self._connection._receive_response_body(**kwargs):
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_async/http11.py", line 198, in _receive_response_body
2023-12-09 03:22:32 | ERROR | stderr |     event = await self._receive_event(timeout=timeout)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_async/http11.py", line 212, in _receive_event
2023-12-09 03:22:32 | ERROR | stderr |     data = await self._network_stream.read(
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_backends/anyio.py", line 31, in read
2023-12-09 03:22:32 | ERROR | stderr |     with map_exceptions(exc_map):
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/contextlib.py", line 153, in exit
2023-12-09 03:22:32 | ERROR | stderr |     self.gen.throw(typ, value, traceback)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
2023-12-09 03:22:32 | ERROR | stderr |     raise to_exc(exc) from exc
2023-12-09 03:22:32 | ERROR | stderr | httpcore.ReadTimeout
2023-12-09 03:22:32 | ERROR | stderr |
2023-12-09 03:22:32 | ERROR | stderr | The above exception was the direct cause of the following exception:
2023-12-09 03:22:32 | ERROR | stderr |
2023-12-09 03:22:32 | ERROR | stderr | Traceback (most recent call last):
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 426, in run_asgi
2023-12-09 03:22:32 | ERROR | stderr |     result = await app(  # type: ignore[func-returns-value]
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
2023-12-09 03:22:32 | ERROR | stderr |     return await self.app(scope, receive, send)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/fastapi/applications.py", line 1106, in call
2023-12-09 03:22:32 | ERROR | stderr |     await super().call(scope, receive, send)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/applications.py", line 122, in call
2023-12-09 03:22:32 | ERROR | stderr |     await self.middleware_stack(scope, receive, send)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in call
2023-12-09 03:22:32 | ERROR | stderr |     raise exc
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call
2023-12-09 03:22:32 | ERROR | stderr |     await self.app(scope, receive, _send)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/middleware/cors.py", line 83, in call
2023-12-09 03:22:32 | ERROR | stderr |     await self.app(scope, receive, send)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call
2023-12-09 03:22:32 | ERROR | stderr |     raise exc
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call
2023-12-09 03:22:32 | ERROR | stderr |     await self.app(scope, receive, sender)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
2023-12-09 03:22:32 | ERROR | stderr |     raise e
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
2023-12-09 03:22:32 | ERROR | stderr |     await self.app(scope, receive, send)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/routing.py", line 718, in call
2023-12-09 03:22:32 | ERROR | stderr |     await route.handle(scope, receive, send)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
2023-12-09 03:22:32 | ERROR | stderr |     await self.app(scope, receive, send)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/routing.py", line 69, in app
2023-12-09 03:22:32 | ERROR | stderr |     await response(scope, receive, send)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/responses.py", line 270, in call
2023-12-09 03:22:32 | ERROR | stderr |     async with anyio.create_task_group() as task_group:
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 597, in aexit
2023-12-09 03:22:32 | ERROR | stderr |     raise exceptions[0]
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/responses.py", line 273, in wrap
2023-12-09 03:22:32 | ERROR | stderr |     await func()
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/starlette/responses.py", line 262, in stream_response
2023-12-09 03:22:32 | ERROR | stderr |     async for chunk in self.body_iterator:
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/fastchat/serve/openai_api_server.py", line 472, in chat_completion_stream_generator
2023-12-09 03:22:32 | ERROR | stderr |     async for content in generate_completion_stream(gen_params, worker_addr):
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/fastchat/serve/openai_api_server.py", line 657, in generate_completion_stream
2023-12-09 03:22:32 | ERROR | stderr |     async for raw_chunk in response.aiter_raw():
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_models.py", line 990, in aiter_raw
2023-12-09 03:22:32 | ERROR | stderr |     async for raw_stream_bytes in self.stream:
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_client.py", line 146, in aiter
2023-12-09 03:22:32 | ERROR | stderr |     async for chunk in self._stream:
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_transports/default.py", line 248, in aiter
2023-12-09 03:22:32 | ERROR | stderr |     with map_httpcore_exceptions():
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/contextlib.py", line 153, in exit
2023-12-09 03:22:32 | ERROR | stderr |     self.gen.throw(typ, value, traceback)
2023-12-09 03:22:32 | ERROR | stderr |   File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_transports/default.py", line 83, in map_httpcore_exceptions
2023-12-09 03:22:32 | ERROR | stderr |     raise mapped_exc(message) from exc
2023-12-09 03:22:32 | ERROR | stderr | httpx.ReadTimeout
2023-12-09 03:22:32,175 - utils.py[line:24] - ERROR: peer closed connection without sending complete message body (incomplete chunked read)
Traceback (most recent call last):
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_exceptions.py", line 10, in map_exceptions
yield
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_async/http11.py", line 209, in _receive_event
event = self._h11_state.next_event()
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/h11/_connection.py", line 469, in next_event
event = self._extract_next_receive_event()
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/h11/_connection.py", line 419, in _extract_next_receive_event
event = self._reader.read_eof()  # type: ignore[attr-defined]
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/h11/_readers.py", line 204, in read_eof
raise RemoteProtocolError(
h11._util.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_transports/default.py", line 66, in map_httpcore_exceptions
yield
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_transports/default.py", line 249, in aiter
async for part in self._httpcore_stream:
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_async/connection_pool.py", line 361, in aiter
async for part in self._stream:
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_async/http11.py", line 337, in aiter
raise exc
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_async/http11.py", line 329, in aiter
async for chunk in self._connection._receive_response_body(**kwargs):
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_async/http11.py", line 198, in _receive_response_body
event = await self._receive_event(timeout=timeout)
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_async/http11.py", line 208, in _receive_event
with map_exceptions({h11.RemoteProtocolError: RemoteProtocolError}):
File "/root/anaconda3/envs/chatchat/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/Langchain-Chatchat-0.28/server/utils.py", line 22, in wrap_done
await fn
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/langchain/chains/base.py", line 381, in acall
raise e
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/langchain/chains/base.py", line 375, in acall
await self._acall(inputs, run_manager=run_manager)
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/langchain/chains/llm.py", line 275, in _acall
response = await self.agenerate([inputs], run_manager=run_manager)
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/langchain/chains/llm.py", line 142, in agenerate
return await self.llm.agenerate_prompt(
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 501, in agenerate_prompt
return await self.agenerate(
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 461, in agenerate
raise exceptions[0]
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 564, in _agenerate_with_cache
return await self._agenerate(
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/langchain/chat_models/openai.py", line 506, in _agenerate
return await agenerate_from_stream(stream_iter)
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py", line 81, in agenerate_from_stream
async for chunk in stream:
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/langchain/chat_models/openai.py", line 472, in _astream
async for chunk in await acompletion_with_retry(
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/openai/_streaming.py", line 94, in aiter
async for item in self._iterator:
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/openai/_streaming.py", line 107, in stream
async for sse in iterator:
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/openai/_streaming.py", line 98, in _iter_events
async for sse in self._decoder.aiter(self.response.aiter_lines()):
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/openai/_streaming.py", line 190, in aiter
async for line in iterator:
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_models.py", line 966, in aiter_lines
async for text in self.aiter_text():
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_models.py", line 953, in aiter_text
async for byte_content in self.aiter_bytes():
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_models.py", line 932, in aiter_bytes
async for raw_bytes in self.aiter_raw():
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_models.py", line 990, in aiter_raw
async for raw_stream_bytes in self.stream:
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_client.py", line 146, in aiter
async for chunk in self._stream:
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_transports/default.py", line 248, in aiter
with map_httpcore_exceptions():
File "/root/anaconda3/envs/chatchat/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/root/anaconda3/envs/chatchat/lib/python3.10/site-packages/httpx/_transports/default.py", line 83, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)
2023-12-09 03:22:32,200 - utils.py[line:27] - ERROR: RemoteProtocolError: Caught exception: peer closed connection without sending complete message body (incomplete chunked read)
2023-12-09 03:22:42,787 - faiss_cache.py[line:80] - INFO: loading vector store in 'University History OutLine/vector_store/bge-large-zh' from disk.
2023-12-09 03:22:43,194 - SentenceTransformer.py[line:66] - INFO: Load pretrained SentenceTransformer: bge-large-zh
2023-12-09 03:22:53,890 - embeddings_api.py[line:39] - ERROR: [Errno 2] No such file or directory: 'bge-large-zh/1_Pooling/config.json'
2023-12-09 03:22:53,903 - kb_api.py[line:34] - ERROR: TypeError: 创建知识库出错： loop of ufunc does not support argument 0 of type NoneType which has no callable conjugate method
INFO:     <IP_ADDRESS>:42032 - "POST /knowledge_base/create_knowledge_base HTTP/1.1" 200 OK
2023-12-09 03:22:53,905 - _client.py[line:1013] - INFO: HTTP Request: POST http://<IP_ADDRESS>:7861/knowledge_base/create_knowledge_base "HTTP/1.1 200 OK"
INFO:     <IP_ADDRESS>:41910 - "POST /knowledge_base/upload_docs HTTP/1.1" 200 OK
2023-12-09 03:22:57,329 - _client.py[line:1013] - INFO: HTTP Request: POST http://<IP_ADDRESS>:7861/knowledge_base/upload_docs "HTTP/1.1 200 OK"
INFO:     <IP_ADDRESS>:47306 - "POST /knowledge_base/upload_docs HTTP/1.1" 200 OK
2023-12-09 03:23:05,506 - _client.py[line:1013] - INFO: HTTP Request: POST http://<IP_ADDRESS>:7861/knowledge_base/upload_docs "HTTP/1.1 200 OK"
INFO:     <IP_ADDRESS>:53550 - "POST /knowledge_base/upload_docs HTTP/1.1" 200 OK
2023-12-09 03:23:18,233 - _client.py[line:1013] - INFO: HTTP Request: POST http://<IP_ADDRESS>:7861/knowledge_base/upload_docs "HTTP/1.1 200 OK"
2023-12-09 03:23:23,613 - _client.py[line:1013] - INFO: HTTP Request: POST http://<IP_ADDRESS>:20001/list_models "HTTP/1.1 200 OK"
INFO:     <IP_ADDRESS>:53562 - "POST /llm_model/list_running_models HTTP/1.1" 200 OK
2023-12-09 03:23:23,615 - _client.py[line:1013] - INFO: HTTP Request: POST http://<IP_ADDRESS>:7861/llm_model/list_running_models "HTTP/1.1 200 OK"
2023-12-09 03:23:23,671 - _client.py[line:1013] - INFO: HTTP Request: POST http://<IP_ADDRESS>:20001/list_models "HTTP/1.1 200 OK"
INFO:     <IP_ADDRESS>:53562 - "POST /llm_model/list_running_models HTTP/1.1" 200 OK
2023-12-09 03:23:23,672 - _client.py[line:1013] - INFO: HTTP Request: POST http://<IP_ADDRESS>:7861/llm_model/list_running_models "HTTP/1.1 200 OK"
INFO:     <IP_ADDRESS>:53562 - "POST /llm_model/list_config_models HTTP/1.1" 200 OK
2023-12-09 03:23:23,688 - _client.py[line:1013] - INFO: HTTP Request: POST http://<IP_ADDRESS>:7861/llm_model/list_config_models "HTTP/1.1 200 OK"
^C  Stopping...
2023-12-09 03:30:22,497 - startup.py[line:855] - WARNING: Sending SIGKILL to {}
2023-12-09 03:30:22,497 - startup.py[line:855] - WARNING: Sending SIGKILL to {'chatglm3-6b': }
2023-12-09 03:30:22,497 - startup.py[line:855] - WARNING: Sending SIGKILL to
2023-12-09 03:30:22,498 - startup.py[line:855] - WARNING: Sending SIGKILL to
2023-12-09 03:30:22,498 - startup.py[line:855] - WARNING: Sending SIGKILL to
2023-12-09 03:30:22,498 - startup.py[line:855] - WARNING: Sending SIGKILL to
2023-12-09 03:30:22,498 - startup.py[line:866] - INFO: Process status: {}
2023-12-09 03:30:22,498 - startup.py[line:866] - INFO: Process status: {'chatglm3-6b': }
2023-12-09 03:30:22,498 - startup.py[line:866] - INFO: Process status:
2023-12-09 03:30:22,498 - startup.py[line:866] - INFO: Process status:
2023-12-09 03:30:22,498 - startup.py[line:866] - INFO: Process status:
2023-12-09 03:30:22,499 - startup.py[line:866] - INFO: Process status:
Traceback (most recent call last):
File "/root/Langchain-Chatchat-0.28/startup.py", line 880, in
loop.run_until_complete(start_main_server())
File "/root/anaconda3/envs/chatchat/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
self.run_forever()
File "/root/anaconda3/envs/chatchat/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
self._run_once()
File "/root/anaconda3/envs/chatchat/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
handle._run()
File "/root/anaconda3/envs/chatchat/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/root/Langchain-Chatchat-0.28/startup.py", line 778, in start_main_server
cmd = queue.get() # 收到切换模型的消息
File "", line 2, in get
File "/root/anaconda3/envs/chatchat/lib/python3.10/multiprocessing/managers.py", line 818, in _callmethod
kind, result = conn.recv()
File "/root/anaconda3/envs/chatchat/lib/python3.10/multiprocessing/connection.py", line 250, in recv
buf = self._recv_bytes()
File "/root/anaconda3/envs/chatchat/lib/python3.10/multiprocessing/connection.py", line 414, in _recv_bytes
buf = self._recv(4)
File "/root/anaconda3/envs/chatchat/lib/python3.10/multiprocessing/connection.py", line 379, in _recv
chunk = read(handle, remaining)
File "/root/Langchain-Chatchat-0.28/startup.py", line 608, in f
raise KeyboardInterrupt(f"{signalname} received")
KeyboardInterrupt: SIGINT received
(chatchat) root@i-B37F1F75:~/Langchain-Chatchat-0.28# /root/anaconda3/envs/chatchat/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
^C

试试<IP_ADDRESS>
ERROR: peer closed connection without sending complete message body (incomplete chunked read)大概率是模型没有传回来东西或者api出问题

多谢大佬。查了问题出在使用的 vGPU的 license 不对。配置了正确的 license 后，解决了这个问题。


Remove monorepo structure and tooling

When this repo was originally created, we expected to have to create 2 npm packages for web and node. This never materialized so I am removing the unnecessary monorepo structure and tooling. This puts the CHANGELOG at the top level and removes the duplicate READMES, making the repo less complicated to read.

Move contents of packages/main to top level.
Use top level package.json as json of the actual published package instead of maintaining an umbrella package.json that does not represent a real NPM package
Remove lerna and its config
Update paths

Complexity reduction, nice work! 👍


Exit status<PHONE_NUMBER>

##when I exe "npm start",  I get
webpack: Compiled successfully.
npm ERR! code ELIFECYCLE
npm ERR! errno<PHONE_NUMBER>
npm ERR<EMAIL_ADDRESS>start: ng serve --open --disable-host-check
npm ERR! Exit status<PHONE_NUMBER>
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! AppData\Roaming\npm-cache_logs\2017-11-28T06_22_39_188Z-debug.log

NPM version (npm -v):
npm  v5.5.1
Node version (node -v):
node v8.9.1
Node Process (node -p process.versions):
{ http_parser: '2.7.0',
node: '8.9.1',
v8: '6.1.534.47',
uv: '1.15.0',
zlib: '1.2.11',
ares: '1.10.1-DEV',
modules: '57',
nghttp2: '1.25.0',
openssl: '1.0.2m',
icu: '59.1',
unicode: '9.0',
cldr: '31.0.1',
tz: '2017b' }
Node Platform (node -p process.platform):
win32
Node architecture (node -p process.arch):
x64
node-sass version (node -p "require('node-sass').info"):
node-sass       4.7.2   (Wrapper)       [JavaScript]
libsass         3.5.0.beta.2    (Sass Compiler) [C/C++]
npm node-sass versions (npm ls node-sass):
--<EMAIL_ADDRESS>--<EMAIL_ADDRESS>

Can you supply the log in a gist too?

I am also getting the same error. Log file have nothing new what it shows in console.
webpack: Compiled successfully.
npm ERR! code ELIFECYCLE
npm ERR! errno<PHONE_NUMBER>
npm ERR<EMAIL_ADDRESS>start: ng serve -o
npm ERR! Exit status<PHONE_NUMBER>
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm version - 5.5.1

node: 6.9.1
os: win32 x64
@angular/animations: 4.4.6
@angular/common: 4.4.6
@angular/compiler: 4.4.6
@angular/core: 4.4.6
@angular/forms: 4.4.6
@angular/http: 4.4.6
@angular/platform-browser: 4.4.6
@angular/platform-browser-dynamic: 4.4.6
@angular/router: 4.4.6
@angular/cli: 1.2.4
@angular/compiler-cli: 4.4.6
@angular/language-service: 4.4.6

You both seem to be hitting this through the angular-cli, I suggest you file an issue in that repo.

I know this might be a late answer, but you can run npm rebuild node-sass which should fix your given problem. Leaving this for everyone facing the same problem.


chore(main): release 1.0.3

:robot: I have created a release beep boop
1.0.3 (2024-12-17)
Bug Fixes

reference pnpm (df3ead7)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.0.3
:sunflower:


fix: test case issues

fixes for the issues in https://www.notion.so/godialogue/various-test_case-issues-9b9dc972ae764018b2a232c513df3e6e
associated with rasa PR https://github.com/botfront/rasa-for-botfront/pull/39

Rasa fix merged: v2.2.5-bf.3

Rasa fix merged: v2.2.5-bf.3


type issue with date

The timestampFormatter function is expected to return a string, but the format function is expected to receive a Date and there's a default timestampFormatter.
it means :

by default, the type of format is wrong because the received type for timestamp is string, not Date.
the only way to receive a Date is to set explicitly: timestampFormatter: f => f in the options, but the expected type is undefined

could you please disable the implicit default options? or fix the type to receive Date | string?

🤷♂


Add configuration for grub-efi on Minnowboard

Tested that this boots on MinnowMax
Review Score: 11/11


Fix minreq tests

This PR should fix the minimum requirements tests problems from #2045
The problem was that pandas 1.2.0 was released on the 26th December which came with an increase in numpy version dependency to 1.16.5. The napari minimum numpy version is 1.16.0.
I added a script similar to the tools/minreq.py script called tools/minreq_test.py which updates the testing requirements to pin the pandas version to 1.1.5, which has a lower numpy requirement than our 1.16.0.
I also added the running of this script to the CI workflow config

hmm, looks like this didn't work as expected on the CI despite appearing to work locally, looking into it

I had to make sure the script was called prior to installation of the test requirements which makes sense, the tests now get further (no import error for the numpy/pandas business) but get the magicgui segfault you mentioned in #2045

Thanks for this attempt @alisterburt - alternatively could we just bump our min numpy dependency to numpy>=1.16.5. It's only a patch release change for numpy and so should be backwards compatible with 1.16.0, it just looks like they fixed a bug in 1.16.5 which was essential for pandas to move forward.
If @tlambert03/ @jni are ok with bumping to numpy>=1.16.5 maybe @alisterburt you can make a new PR which does only that and we then close this PR. Thoughts?

sounds good, I've put the PR there ready in case the others agree!

Closed by #2050