URL Parser Unable to Handle IPv6 Addresses

This seems to be a regression between 0.6.0 and master. The issue currently exists on master and I'm not exactly sure why, but it is very easy to reproduce.
extern crate iron;
extern crate hyper;

use hyper::StatusCode;
use iron::prelude::*;

fn test_handler(_: &mut Request) -> IronResult<Response> {
    Ok(Response::with((StatusCode::OK, "Test response\n")))
}

fn main() {
    Iron::new(test_handler).http("[::1]:9292");
}

Running the code above has Iron successfully listen on the port. Using curl the request fails with a 400 Bad Request like so:
$ curl -v http://[::1]:9292/
*   Trying ::1...
* TCP_NODELAY set
* Connected to ::1 (::1) port 9292 (#0)
> GET / HTTP/1.1
> Host: [::1]:9292
> User-Agent: curl/7.59.0
> Accept: */*
>
< HTTP/1.1 400 Bad Request
< content-length: 0
< date: Sun, 31 Mar 2019 22:01:34 GMT
<
* Connection #0 to host ::1 left intact

And the server produces the following error when I setup and configure the rust logger:
ERROR 2019-03-31T22:01:01Z: iron::iron: Error creating request:
    Couldn't parse requested URL: invalid IPv6 address

on my system it work perfectly
curl outptut
*   Trying [::1]:9292...
* Connected to ::1 (::1) port 9292
> GET / HTTP/1.1
> Host: [::1]:9292
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 200 OK
< Content-Length: 14
< Content-Type: text/plain
< Date: Fri, 12 Apr 2024 17:34:27 GMT
<
Test response
* Connection #0 to host ::1 left intact

rust code
extern crate iron;

use iron::prelude::*;
use iron::status;

fn test_handler(_: &mut Request) -> IronResult<Response> {
    Ok(Response::with((status::Ok, "Test response\n")))
}

fn main() {
    Iron::new(test_handler).http("[::1]:9292");

```}


Implement I2C

Implement I2C based on the wpilibc I2C.cpp implementation. Fixes #51

All the transaction calls are ioctl calls, and ioctl will return -1 and set errno on error. Best to expose the errno, I think.
I'm not sure what the return value is on success. It might be only 0 that is returned on success, or it could be the number of words transacted. Someone should probably eventually verify that.
Either way, definitely expose the errno. Take a look at the SPI PR if you're unsure.

it's worth looking into the ioctl calls, but because WPILib only gives bool at the moment, we can be fairly confident its just success/failure. The HAL docs aren't specific on the meaning of a > 0 return.


Incompatibility with gitignore spec

What version of Turborepo are you using?
1.3.1
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
I was debugging an issue where running "test" across the repo was always a cache miss.
All files changed by tests (find . -type f -mmin -2) were excluded by git (node_modules, test coverage output, turbo caches).
On a hunch I changed an ignore pattern in a workspace package:
# /packages/foo/.gitignore

## from
/coverage

## to
coverage

And now I'm getting consistent hashes for the build and cache hits.
/coverage is important in gitignore for matching specific paths as opposed to any directory, say, /coverage but not /src/coverage so I'd consider my change as a workaround rather than a fix.
Expected Behavior
The following ignore rule should exclude /packages/foo/coverage from the cache hash algorithm.
# /packages/foo/.gitignore
/coverage

See the git docs, especially this point:

If there is a separator at the beginning or middle (or both) of the pattern, then the pattern is relative to the directory level of the particular .gitignore file itself. Otherwise the pattern may also match at any level below the .gitignore level.

To Reproduce
Check out the proof-of-concept here:
https://github.com/robations/turbo-vs-ignore
(assumes you have the pnpm exec available)
Thanks for reading!

Seeing the age on this one and we've come a long way with globbing since this time. If I had to guess, this is likely fixed.
If anyone is still seeing this, please open up a fresh issue so we know to take a look!


Request is throttled and retry via decorator

Is it possible for the make_request or MWS API call methods like Finances.list_financial_events to handle MWS throttle error?
In the old versions, I was able to wrap methods like Orders.list_orders with a decorator that retries when it catches a throttled condition, and retry certain times with increasing pause in between. But now with this new implementation of deprecating Finances.list_financial_events_by_next_token and replace it with
    @utils.next_token_action('ListFinancialEvents')
    def list_financial_events(self, financial_event_group_id=None, amazon_order_id=None, posted_after=None, posted_before=None, max_results=None, next_token=None)

Adding a retry logic via decorator does not seem to work anymore. Maybe due to how my decorator works and interfere with the decorator @utils.next_token_action('ListFinancialEvents')?
I used the decorator from this url with some minor change:
https://www.saltycrane.com/blog/2009/11/trying-out-retry-decorator-python/
Any thoughts?

I have these working by using the Tenacity module, works a treat.
We have discussed including this functionality in the library but we've not got there yet.

This seems a very important feature to make this library useful. I would not be able to use it without adding this retry logic. Can you add this into your feature list to be implemented?
Thanks

@threemonks my original issue is #37
However, I closed this as the tenacity library did this in a fantastic way and was something else for us to not have to support.
Have you checked the tenacity library out ? I can show you an example of my current working setup if you would like ?

Yes, that would be much appreciated.

looks like I've already done it in #37
https://github.com/python-amazon-mws/python-amazon-mws/issues/37#issuecomment-523973893
let me know if you need more help with that

Thanks. That seems would require me to create a wrapper function for each API call that could be throttled, and apply the decorator to each such wrapper function? That is doable, but would be cleaner and nicer if the throttle is built into the library code as throttling happens in almost all MWS API calls.

Correct, you would need to wrap the API call in the tenacity decorator, but its quite easy to extract the calls from the code.
For including this in the library, as I said it has been mooted but there are other more pressing priorities first


Upload: It should be possible to select multiple files one after the other

Currently, if you click the "files to upload" button and select a single file, the previously selected files are removed again. It should be possible to select one file after the other, especially since the metadata file and the source files are in different directories.

Did you test this on ui: https://verification.komputing.org/ or remix plugin?

On the ui.


[Feature Request]: Optimise user proxy agent prompts when using allowed_or_disallowed_speaker_transitions

Is your feature request related to a problem? Please describe.
I am working with a group chat with 11 agents that has to do very long form processes taking up to an even over 10 minutes to complete with gpt 4 turbo. A problem I am facing is the cost of the whole conversation reaches $10+ and i have been trying to optimise this.
I have taken a look at the logs and i can see that the prompt for the user proxy agent to decide which assistant agent to use next is extremely long with my agent setup and their descriptions. I decided to implement the user of allowed_or_disallowed_speaker_transitions thinking it would reduce the size of these prompts as it would only include the agents that are allowed in the next step of the process. However, ive checked the logs after the change and the prompts are still including all the agents.
Describe the solution you'd like
Change the user proxy prompt to append only the agents listed as an allowed transition from the current agent to the next one.
For example:
say that the allowed transitions where set up as:
allowed_transitions = {         agent1: [agent2, agent3],         agent2: [agent3],         agent3: [agent4],         agent4: [agent5],         agent5: [agent1]     }
We init the chat and  agent 1 has just responded so the overseer prompts to determine the next agent.
instead of the prompt being this:
You are in a role play game. The following roles are available:\nagent1:agent1 description, agent2: agent 2 description, agent3: agent 3 description, agent4: agent 4 description, agent5: agent 5 description\n\nRead the following conversation.\nThen select the next role from ['agent1','agent2','agent3','agent4','agent5',] to play. Only return the role.',
it should instead be the following as only agent 2 and 3 are allowed transitions:
You are in a role play game. The following roles are available:\nagent2: agent 2 description, agent3: agent 3 description,\n\nRead the following conversation.\nThen select the next role from ['agent2','agent3',] to play. Only return the role.',
Additional context
please let me know if you need more info or if there are solutions to this im not aware of.

Thanks @Nathan-Intergral. Instead of user proxy prompt I assume you meant GroupChat's speaker selection message and speaker selection prompts?
To reduce cost, you can try to truncate the messages processed by each agent using message history transformation: https://microsoft.github.io/autogen/docs/topics/long_contexts.

Thanks for the suggestion. If you would like to make a PR, please add @joshkyh @freedeaths as reviewers.

Thanks @Nathan-Intergral. Instead of user proxy prompt I assume you meant GroupChat's speaker selection message and speaker selection prompts?
To reduce cost, you can try to truncate the messages processed by each agent using message history transformation: https://microsoft.github.io/autogen/docs/topics/long_contexts.
@marklysze has worked extensively on the group chat's prompts. @afourney and @jtrugman has lots of experience with long-context group chat.

Thanks for the suggestion, ill definitely give that a try and see what i find.

Thanks for the suggestion. If you would like to make a PR, please add @joshkyh @freedeaths as reviewers.

@sonichi Thanks, ill look at making that PR today.

@sonichi I have taken a look at the documentation for transforming, however TransformMessages and transforms dont seem to be present in the current released version? I see some notes in the version history that this was migrated from compressible agent, however all i can currently access is that compressible agent code.

TransformMessages is replaced by more general transform module: https://microsoft.github.io/autogen/docs/topics/long_contexts/ cc @WaelKarkoub

@sonichi I have taken a look at the documentation for transforming, however TransformMessages and transforms dont seem to be present in the current released version? I see some notes in the version history that this was migrated from compressible agent, however all i can currently access is that compressible agent code.

Which version of AutoGen do you have installed?

@Nathan-Intergral you should be able to use the transforms, you can follow this notebook https://microsoft.github.io/autogen/docs/notebooks/agentchat_transform_messages/ for guidance as well. Just make sure you're using the correct Python environment that you have AutoGen installed in

@Nathan-Intergral you should be able to use the transforms, you can follow this notebook https://microsoft.github.io/autogen/docs/notebooks/agentchat_transform_messages/ for guidance as well. Just make sure you're using the correct Python environment that you have AutoGen installed in

@WaelKarkoub You are correct, my version had not updated in my venv correctly.. Thank you!


da: add submit, get context timeouts

Overview
This PR adds context with sane default timeouts to submit and get blob methods on the DA client. Fixes #1036
Checklist

[x] New and updated code has appropriate documentation
[x] New and updated code has new and/or updated testing
[x] Required CI checks are passing
[x] Visual proof for any user facing features like CLI or documentation updates
[x] Linked issues closed with keywords

Summary by CodeRabbit

Refactor

Implemented timeouts for block submission and retrieval to enhance performance and reliability.

@tuxcanfly is there a way to test this? i don't think it is addressing any problem.

@gupadhyaya added test case for context timeout. The submit call relies on a sync endpoint in core and can stall the block submission loop if we don't use a context deadline, see: https://gist.github.com/tuxcanfly/207ab3dc1fac4bb9c38bedad2a053f18


[Function Expose] codeunit 6529 "Item Tracking Navigate Mgt." - SearchValueEntries

In codeunit 6529 "Item Tracking Navigate Mgt." please change the visibility of the procedure SearchValueEntries to global.
Thank you

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Darknet tutorial front end issues

File yolo.cfg exists, skip.
File yolo.weights exists, skip.
File libdarknet.so exists, skip.
Traceback (most recent call last):
  File "from_darknet.py", line 134, in <module>
    darknet_lib = __darknetffi__.dlopen('./' + darknet_lib)
  File "/usr/local/lib/python3.6/site-packages/cffi/api.py", line 141, in dlopen
    lib, function_cache = _make_ffi_library(self, name, flags)
  File "/usr/local/lib/python3.6/site-packages/cffi/api.py", line 802, in _make_ffi_library
    backendlib = _load_backend_lib(backend, libname, flags)
  File "/usr/local/lib/python3.6/site-packages/cffi/api.py", line 797, in _load_backend_lib
    raise OSError(msg)
OSError: cannot load library './libdarknet.so': dlopen(./libdarknet.so, 2): no suitable image found.  Did find:
	./libdarknet.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00
	/Users/bryanscott/nnvm/nnvm/tutorials/libdarknet.so: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00.  Additionally, ctypes.util.find_library() did not manage to locate a library called './libdarknet.so'

I can't get the tutorial for darknet to run, I have installed everything, the checks pass for "libdarknet.so" but then it tells me It cannot locate the library. I am on MacOSX

I also tried using the libdarknet.a and darknet from the webpage, and get the same error

@Bryanscott13  the issue is the lib mismatch for MacOSX.
you can download code from https://github.com/siju-samuel/darknet.git and do a make
use that lib

Thanks, that fixed the issue.


Update nestedSortable

Updating jQuery UI to address CVE-2010-5312 breaks list sorting due to $.ui.isOverAxis being removed. This update to nestedSortable 2.1a fixes sorting.

Closing. Needs to be done, but needs the jQuery UI update, too, which I didn't include in this PR.


Add featured scenarios, replacing presets

Adds the ability for admins to "feature" a scenario. Featured scenarios appear on the front page under "Start an existing scenario" where presets were previously located.
This PR:

Adds a migration that creates the featured scenarios database table and model.
Creates a new<EMAIL_ADDRESS>admin user, with a random password.
Fetches the list of presets from ETEngine, creates a new ETEngine scenario for each one, then creates a saved scenario and featured scenario.
Adds links and forms for creating a featured scenario.

A featured scenario is created by clicking "Feature this scenario" from the saved scenario page (available only to admins):

This shows a form allowing the user to set:

Group - the group in which the featured scenario will appear on the front page.
Custom English and Dutch titles and descriptions.

I haven't loaded the featured scenario form in-place, like the "Edit title and description" feature does, as this will only be used by admins. I didn't feel the extra effort was worth it.
When a scenario has been featured, the custom English or Dutch titles and descriptions will be shown rather than the title or description which was set on the saved scenario.
A featured scenario may be edited:

This allows setting new titles or descriptions and changing the group.
At the bottom of the page, the scenario may be "unfeatured". The user is warned that the custom localized titles will be removed, and the scenario will revert back to the old settings. This is to allow them the opportunity to copy one of the localized descriptions prior to deleting.

Some translations are needed before merging. Please and thank you!

"Feature this scenario" links
"Unfeature this scenario" information and warnings
Featured scenario form labels
Featured scenario form buttons

I haven't removed presets from ETEngine, Atlas, or ETSource yet. We should do this eventually, but migrating the presets into saved scenarios require that they still be available in ETEngine.
Including @ChaelKruip @marliekeverweij @MartLubben.

Very nice! I really like it! 🎉
I added the Dutch translations and had a quick spin with the new feature. It works great. One little nitpicky thing, when I'm newly featuring a scenario the 'unfeature' button still appears in the top right of the form. Not sure if that's worth doing something about as the features only for admins 😄  Once again, nice work
🎉

One little nitpicky thing, when I'm newly featuring a scenario the 'unfeature' button still appears in the top right of the form.

Good catch. I've fixed it. 👍


changing qty works

Front-end

[ ] Update the quantity in cart for each product

Back-end:

[ ] Setup API route to update qty in the cart
[ ] Setup API route to add to cart

fixed dotenv


Targets - gpio_is_connected() for STM targets where it was not implemented

Should be available for all mbed targets

@0xc0170 : Looks OK, let's see how it builds in Travis and we can merge before new SDK release.

This PR will produce a merge conflict with #877 because of NUCLEO_F070.
And your change (but only for F070) is already included there.

@ohagendorf thanks for notification, I'll resolve those conflicts afterwards (will merge probably tomorrow), need to land this today.


Delete initial fromStore.load()

Description

Questions
Answers

Why?
Allows load fromStore with extra filter (params)

BC breaks?
no

Tests exists & pass?
yes

Related tickets?
https://issues.shopware.com/issues/SW-18672

How to test?
none

Requirements met?
yes

You can simply overwrite the refreshStore method and add your own extra parameters. Therefore we won't merge your changes.
For more information about our contribution guidelines, see https://developers.shopware.com/contributing/contribution-guideline/.


[Chip] Migrate component [Avatar] Support children, change default colors

[x] PR has tests / docs demo, and is linted.
[x] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[x] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

Issues:

~I've changes the default colours for Avatar, but directly, not with palette - I could use some guidance on what should or shouldn't be added to palette.~
~Not sure I'm applying styles to sub-components in the most optimal way - I've had to add a bunch of SubComponentClassName props. Not sure that's such a bad thing in and of itself, but again would welcome guidance.~
~I should probably separate the Avatar and Chip changes, but one was dependant on the other, so are lumped together for now.~
~I had some difficulty finding the right selector one of the tests: Chip.spec.js:64~
Chip probably needs more test cases. Suggestions welcome!

~Oh, and to agree on children vs icon prop (or both) for Avatar - I've added children so we can compare, but I'm wide open on it.~

circleci is baarfing on npm run test:coverage but it's fine locally...

Looks like whatever was up with the coverage test got fixed and the tests automatically re-run, but it was still failing on the visual regression test due to my changes to Avatar, meaning I was premature in removing  "PR: Needs Revision". I've updated the Avatar baseline images for now.

@oliviertassinari I've switched to your preferred API. Take a look!
In doing so, I also removed the iconClassName prop that I previously added to Avatar.
This makes Avatar simpler, and removes an otherwise redundant prop from Avatar (users can style the Avatar icon directly), but it does make the Chip code more complex. I'm open to your suggestion on what's preferable here.

@oliviertassinari Okay, I've pushed those updates. My replies to your review comments may be hidden now.
A few outstanding things:

Keyboard focus isn't working and I'm not sure why. (It's working on master).
Would it make sense for a click on the delete icon to only emphasize the delete icon, and not the whole chip? If so, how would I implement that that? event.stopPropagation?
Should I disable the Avatar image regression test? A test that always fails and as a result means the rest of the tests don't run seems worse than no test!

Keyboard focus isn't working and I'm not sure why. (It's working on master).

I don't think that we need that feature at the Chip component level. For instance, look at the angular material examples: https://material.angularjs.org/latest/demo/chips.

Would it make sense for a click on the delete icon to only emphasize the delete icon

Good question, looking at the other implementation, I would answer no.
They tend to consider the chip as a single unit.

Angular:
Materializecss:

Should I disable the Avatar image regression test?

No, it's not because we broke a test that we should delete it. Fixing it would be much better.

http://<IP_ADDRESS>:3333/#/ListItem/AvatarListItem

You can reproduce that on the list demo.
I think that we are close 🚢 .

Going to pick up these loose ends tomorrow. Thanks so much for putting up with me!

Thanks so much for putting up with me!

No, thanks for taking care of that component!

Keyboard focus isn't working and I'm not sure why. (It's working on master).

I don't think that we need that feature at the Chip component level. For instance, look at the angular material examples: https://material.angularjs.org/latest/demo/chips.

I wouldn't read too much in to what material.angularjs.org are doing - it's a pretty ugly implementation.
Are you saying we shouldn't apply any focus style, and let the parent component watch for focus and apply focus styles to chip? That doesn't seem right to me.

Would it make sense for a click on the delete icon to only emphasize the delete icon

Good question, looking at the other implementation, I would answer no. They tend to consider the chip as a single unit.

Again, I wouldn't ready too much into that - they don't apply hover or active styes to the chip or close button, so there's no difference anyway. react-toolbox applies hover style to the close button, but nothing else.
That reminds me though - what's the preferred prop name for the close button? it's onRequestDelete at the moment, but on onCloseClick / onDeleteClick or onClickClose / onClickDeleteto match onClick are possible candidates.

Should I disable the Avatar image regression test?

No, it's not because we broke a test that we should delete it. Fixing it would be much better.

I didn't say delete, I said disable. :smile: I'm talking about the regression test that you said has a race-condition. If it can be fixed - go for it!
I fixed the docs demo issue you mentioned, which was simply because I had not updated it  to follow the revised API. (Incidentally, react-toolbox is using the same composed API, and similar code to that we just replaced with props...)

Regarding focus - I'd forgotten that in master Chip is using EnhancedButton which handles the keyboard focus etc.
ButtonBase didn't exist (I don't think) when I started porting Chip to jss-themes-experiment, so this just uses a vanilla div. What to do? We need keyboard control for accessibility.

I realised the reason keyboard focus wasn't working is that Chip on master uses EnhancedButton which takes care of it, along with default keyboard event handling. I don't think ButtonBase existed when I originally started porting Chip to jss-theme-experiment.
I have started to implement the relevant functionality in Chip, but I'm wonder if I should instead use ButtonBase. It's a lot of code to drag along for a few functions, but using it is more DRY than reimplementing existing keyboard handing in Chip...

it's a pretty ugly implementation.

Well, at least, it's kind of do the job. A co-worker started implementing that component at the office with our own style guild. I will see what we can learn from that.

Are you saying we shouldn't apply any focus style, and let the parent component watch for focus

For the use case I was thinking of, chips wouldn't be keyboard focusable. The parent component would manually apply the focus state depending on it's own state.

Should we channel all events through onChange?

I'm not convinced. I don't think that some variations are going to hurt. Users will still have to look at the documentation to know how to use it correctly. Either it's the right callback property name or how to filter events.

We're back to the failing ImageAvatar

Ewww, we gonna need to address that flaky test.

I'm wonder if I should instead use ButtonBase

I think that I would definitely use it if I needed the ripple effect or having a button rendered in the DOM.

it's a pretty ugly implementation.
Well, at least, it's kind of do the job.

True - they have a Chips component. Our chip is pretty useless without one! 😅
By "ugly" I meant the visual appearance of the chip - I notice they have have hover and click styling on their todo-list.

A co-worker started implementing that component at the office with our product style guides. I will see what we can learn from that.

👍

For the use case I was thinking of, chips wouldn't be keyboard focusable. The parent component would manually apply the focus state depending on it's own state.

I know they're not directly comparable, but thinking of Chip as a subcomponent for some kind of input, I'm looking at Tab and BottomNavigationButton as analogs. They're both keyboard focusable without dependance on their parent component - albeit handled by ButtonBase.
If you're happy for me to leave it as is for now, we can revisit this in the context of a ChipInput / ChipAutoComplete if anyone tackles that.

I think that I would definitely use the ButtonBase if I needed the ripple effect or having a button rendered in the DOM.

It doesn't need to ripple, or focus ripple. It should probably be a button though as it's an interactive element that can be clicked etc. That would fix the jsx-a11y/no-static-element-interactions error.
I don't think we need to use `ButtonBase just for that though.

@oliviertassinari I had a couple of questions regarding your line comments (in case the revisions have hidden any of them).


Unused variable errors

When building with GCC 5, hostboot errors out due to unused variable warnings:
In file included from ../../../src/include/usr/targeting/common/predicates/predicateisfunctional.H:58:0,
                 from ../../../src/include/usr/targeting/common/predicates/predicates.H:34,
                 from ../../../src/include/usr/targeting/common/commontargeting.H:39,
                 from compdesc.C:31:
../../../src/include/usr/targeting/common/targetservice.H:137:22: error: ‘TARGETING::MASTER_PROCESSOR_CHIP_TARGET_SENTINEL’ defined but not used [-Werror=unused-variable]
 static Target* const MASTER_PROCESSOR_CHIP_TARGET_SENTINEL
                      ^

A workaround is to build with -Wno-unused-variable.

I suspect the targetservice.H error is a real one, due to GCC trying harder to know what is a constant expression and what isn't. Unfortunately it considers the sizeof() call to not be constant, which seems a little surprising.
The compiler defines __SIZEOF_POINTER__, so an option would be to use that instead.

Another error. This one looks real:
In file included from errlud_i2c.C:33:0:
i2c.H:79:23: error: ‘I2C::g_I2C_NEST_FREQ_MHZ’ defined but not used [-Werror=unused-variable]
 static uint64_t g_I2C_NEST_FREQ_MHZ = i2cGetNestFreq();
                       ^
cc1plus: all warnings being treated as errors
../../../src/build/mkrules/cc.rules.mk:33: recipe for target '../../../obj/modules/i2c/errlud_i2c.o' failed

Current effort is to able to compile of GCC7, so, closing this one.


Can't import latest versions ng-inline-svg - only with version 9.2.X

I'm trying to use your module, but I getting this error:
ERROR in src/app/app.module.ts:3:33 - error TS2307: Cannot find module 'ng-inline-svg'. 3 import { InlineSVGModule } from 'ng-inline-svg';
Well, obviously, I had been installed the module correctly.
Versions 9.2.0 and 9.2.1 have this error for me, but with the version 9.0.0 works.

Try 9.2.2? I screwed up what was included in the published artifacts in 9.2.1, so I've unpublished that.

Ther version 9.2.2 is ok. Thanks


simple-bar website is down

the website in About section is down
https://www.jeantinland.com/toolbox/simple-bar

Indeed, I'm rewriting this part of my website and I forgot to add a message. I also updated the url in the "About" section!
Thanks for the report!

Thanks.

The landing page is back online! :)


CORE-16318: State Manager Configuration

Add new polymorphic section under the current messaging configuration
section to hold state manager settings.
👮🏻👮🏻👮🏻 !!!!  DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:

[X] Have you run the unit, integration and smoke tests as described here?
[X] If you added public APIs, did you write the JavaDocs?
[X] If the changes are of interest to application developers, have you added them to the changelog (/docs/source/changelog.rst), and potentially the release notes (/docs/source/release-notes.rst)?
[X] If you are contributing for the first time, please read the contributor agreement now and add a comment to this pull request stating that your PR is in accordance with the Developer's Certificate of Origin.

Thanks for your code, it's appreciated! :)

Changes split from https://github.com/corda/corda-api/pull/1223.


Add a checkbox to toggle Tool hotkeys.

A followup to #1238

Would love to get a review before the Melodic release. Should be quick...

FYI I won't be making any more PR's until this gets approved. I think that's fair.
The hotkeys are very annoying to me and I think there are hundreds of users out there who don't realize why their interactive markers have suddenly disappeared. (Hint: it's because they pressed a hot key and didn't realize it)

FYI I won't be making any more PR's until this gets approved. I think that's fair.

We'll get to this pull request as soon as we have some time to do so. I'm sorry to hear you won't be making any additional pull requests (assuming you have some ready) until this is approved, but if your intention is to make this go faster or get us to pay more attention to it by withholding future improvements, that's not going to work because it doesn't give us any extra time in which to look at these things.

The hotkeys are very annoying to me and I think there are hundreds of users out there who don't realize why their interactive markers have suddenly disappeared. (Hint: it's because they pressed a hot key and didn't realize it)

Our inability to get this in before the release or having time since to look at it has nothing to do with how useful it is, and everything to do with time constraints. We will get to it when we have time, that's the best we can do.
Sorry, and thanks for your patience.

Yep.  Or not even reviewed.

Maybe just pass the concept that the natives are restless up the command chain...

Status?

They are too busy even to hire an intern to review these minor pull requests.

Dear @AndyZe,
I took over maintainership for rviz recently and I'm trying to merge all open PRs.
As this one had conflicts, I rebased and cleaned up a little bit in my own fork: https://github.com/rhaschke/rviz/tree/toggle-hotkeys
Doing so, I stumbled over your commit message in https://github.com/ros-visualization/rviz/pull/1243/commits/78b7c2f45610b894dcaec25a795f77c7198bcfcd:

Disable hotkeys works with the Preferences dialog, but logic is flipped?

Looking into this issue in more detail, I think that Tool::access_all_keys_ is the wrong variable to use.
This variable determines whether key presses should be handled by the current tool, even though the pressed key corresponds to a selection hotkey for another tool. This is a private property of the specific tool and, in my opinion, completely unrelated to your goal of disabling all tool selection hotkeys.
I'm not even sure that this was your actual goal. Selecting the NavGoal tool and actually sending a goal message should be two different things, right?
A really clean solution would be to make hotkeys completely configurable. Then, one could selectively disable specific hotkeys only.

:+1:  I'm glad somebody responsive took ownership!  Unfortunately my personal motivation and available time to fix this issue is gone  :/

Unfortunately my personal motivation and available time to fix this issue is gone.

While I can understand your disappointment, please contribute to this issue.
I "just" took maintainership to save this project from death, although I'm already heavily busy with maintaining MoveIt! and several other projects. I cannot to this job without the active help of the community.
I thought that I could quickly merge this PR after resolving the conflicts. But I think, this PR is conceptually wrong. Either you can clarify, why I am wrong or you can propose a valid solution.

Like many people, I often type in a different window while I have RViz open, and that was causing some safety issues. For my use case, I wanted a way to disable ALL hotkeys.
I agree that enabling or disabling individual hotkeys would be a nice feature and it would also accomplish what I needed. Is it worth implementing at this stage in RViz for ROS1? How would it be implemented? I'm not sure

You are probably right that nobody has resources to implement individual hotkeys...
However, your current approach doesn't work out as well. I was thinking about a global flag used in ToolManager to suppress all hotkeys.
Could you please explain in more detail your safety issue. Just pressing 'g' only switches to the NavGoal tool. To actually send a goal, you also need to interact with the mouse, don't you?
By the way, another option to disable NavGoal, is to simply remove the tool. Would this be an option for you as well?

I think what happened was, the student opened a terminal with Ctrl+Alt+t and started typing. Then he clicked back in RViz to change the view, accidentally sending a base motion command. I've also seen people accidentally press 'm' which hides the interactive marker. Then they can't move the robot.
I think your global flag idea sounds promising. I should have some bandwidth in about a week.

I think your global flag idea sounds promising. I should have some bandwidth in about a week.

Great. Thanks a lot. You probably want to start off my already rebased branch: https://github.com/rhaschke/rviz/tree/toggle-hotkeys

Closing in favour of #1363.


no rules expected this token in macro call

Hello! I have this example code:
use error_chain::error_chain;

error_chain! {
    errors {
        ParseMail

        // An error appeared, when it tried to parse the body of the mail!
        ParseBody() {
            description("Couldn't get the body of the parsed mail."),
            display(""),
        }
    }
}

fn main() {
}

If I run cargo check then I'm getting the following error message:
error: no rules expected the token `=>`
  --> src/main.rs:3:1
   |
3  | / error_chain! {
4  | |     errors {
5  | |         ParseMail
6  | |
...  |
12 | |     }
13 | | }
   | |_^ no rules expected this token in macro call
   |
   = note: this error originates in the macro `impl_error_chain_kind` (in Nightly builds, run
with -Z macro-backtrace for more info)

What am I doing wrong?

I've also tried this as shown in the quickstart.rs:
#[macro_use]
extern crate error_chain;

error_chain! {
    errors {
        ParseMail

        ParseBody() {
            description("Couldn't get the body of the parsed mail."),
            display(""),
        }
    }
}

fn main() {
}

but I'm getting the same error message.

Ok, it was due to the empty brackets (()). Removing them like this:
error_chain! {
    errors {
        ParseMail

        // An error appeared, when it tried to parse the body of the mail!
        ParseBody {
            description("Couldn't get the body of the parsed mail."),
            display(""),
        }

        /// An error appeared, when it tried to parse/get an attachment!
        ParseAttachment

        ParseFetch

        ForgotHeader(missing_header: String) {
            description(
                concat![
                "Couldn't parse the mail to a sendable mail ",
                "because a header is missing."
            ]),
            display("Missing header: '{}'", missing_header),
        }
    }
}

works.


initial user stories

adding user stories

Here are some additional thoughts, we see right now some discussion regarding the support time for a given release. Hence, I would appreciate it if we could have an ability to see if a given release is still supported.
Likewise, we had some ideas to have support with diminished qualities. Meaning: That some of the supported release would only receive updates when they are critical. I think this should also be able to be seen.


APK Size.

Hi!
Does sinch have a way to get this lib just for app-app calling?
17 MB is too big and it will increase my APK.
We have another way / solution for this problem?
Thanks

Hi,
Please consider using Android App Bundle publishing format (which will become mandatory in 2021 for Google Play). More info here: https://developers.sinch.com/docs/voice-android-cloud-miscellaneous#note-on-sinch-sdk-size
Best regards,
Victor


Server Online Checks not working properly

Current Behavior
hi, the server online detection is not working if the online confirmation is in the first console output of the Server:
for example:
you have the online detection on "Dotnet" and this word is in the first output of the server, it wont work

also the ^C is not working properly for server stopping (and yes, my app supports softkills)
Expected Behavior
It should set the server to online
^C should stop the server
Steps to Reproduce
set the startup check to something that is printed in the first line, start the server
Panel Version
v2 ea
Daemon Version
v2 ea
Wings Version
wings garbage
Games and/or Images Affected
No response
Docker Image
No response
Error Logs
No response
Is there an existing issue for this?

[X] I have searched the existing issues before opening this issue.
[X] I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
[X] I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.

Include panel ans daemon logs for the ^C issue

There are basically no logs, and the server is no stopping

when you click on stop, the server transitions to the stopping state and nothing happens

Which gameserver? Could be also a Gameserverproblem

what do you mean exactly? the online detection or the ^C ?

As i stated earlier in the discord, your application probably does not respond to a SIGINT call

oh okay, i will check on that, thanks

the online detection is still an issue tho


When re-rendering a ListView of Swipeables after removing an item that is opened, the next item renders open

I have a ListView where each item is a Swipeable. Each one has a leftButton that removes the item from the list. When the ListView is re-rendered, the following item starts open. The ListView is recreated in render(), triggered by state change from redux.
What could be causing this?

Same issue with @zznull,  not worked to set currentlyOpenSwipeable as null, and the ListView is re-rendered after deleted on item.

@zznull  Are you resolved this issue? I fixed it to use recenter() function.
For example as swipeable-example.js in current project, it not worked if you just set this.state.currentlyOpenSwipeable as null, but it worked to use this.state.currentlyOpenSwipeable.recenter();

Same issue with @zznull. I also fixed it with a recenter function

@PanRu Thanks, I fixed this bug by your method
here is my example:
`    _renderItem = () => {
const { currentlyOpenSwipeable } = this.state;
const rightButtons = [
  <TouchableOpacity onPress={() =>
       this.state.currentlyOpenSwipeable.recenter();
      // your code
}>
    <Text style={styles.delete}>delete</Text>
  </TouchableOpacity>
];

const onOpen = (event, gestureState, swipeable) => {
  if (currentlyOpenSwipeable && currentlyOpenSwipeable !== swipeable) {
    currentlyOpenSwipeable.recenter();
  }

  this.setState({ currentlyOpenSwipeable: swipeable });
};
const onClose = () => currentlyOpenSwipeable.recenter();

return (
  <View>
    <Swipeable
      rightButtons={rightButtons}
      onRightButtonsOpenRelease={onOpen}
      onRightButtonsCloseRelease={onClose}>
    </Swipeable>
  </View>
)

}
`
by the way, English is not my first language  :)

+1 have the same issue

just add key prop and it works.
for example:
return (
        <Swipeable
          key={id}
          rightButtons={rightButtons}
          onRightButtonsOpenRelease={onOpen}
          onRightButtonsCloseRelease={onClose}>
        </Swipeable>
    )

@wilsonIs Comment helped a lot! Thank you


Transparent background buffer

Now, Radeon Rays's out framebuffer is RGB not RGBA.
Does Radeon Rays have plan to render on the transparent buffer? (without HDR background color)

@generalistr6 , you mean to have alpha = 0 for background and >0 for rendered pixels?

@yozhijk Yes, exactly I do. Do you have plane to make it possible?

@generalistr6 yes, we can do that, assigning to me.


Optimal control for gate compilation

Title:
Optimal control for gate compilation
Summary:
This demo showcases the optimization of pulse programs to produce digital quantum gates.
To this end, a brief introduction to pulse programming and optimal control is given, followed by
the definition of a useful pulse shape and two exemplary optimizations to compile a CNOT and  Toffoli
gate, respectively.
Relevant references:
TBD

Thanks @alvaro-at-xanadu for the thorough review! :)
I incorporated all but a few changes, the others I answered in the comments here. Let me know how to proceed with those :)

Thanks a lot @alvaro-at-xanadu
Left an answer to the last open point (which should also be resolved now) and resolved the other closed ones.
I switched from infidelity/cost functions/minimization to fidelity/profit/maximization, matching the image of "climbing mount fidelity" :)
Also made the images a bit larger, as they were already made with the total size in mind, unlike the previous sketches.

[SC-37123]


add prompt for module description - fixes #57

Thanks :)

Just noticed there is a tiny flaw – there is like a 5% chance that the build is failing because of the test regex:
assert.fileContent('package.json', /"description": "My (\w)+ module",/);

In my case, the generated description was 'My hunky-dory module', which does not match the regex.

@JonnyBurger , nice catch. You are right, I forgot that the superb module returns values with minimal punctuation. Looking over the superb word list, the RegExp would need to be updated to accept hyphens and apostrophes.


Enable private field promotion for flutter_tools

New feature in upcoming Dart 3.2. See https://github.com/dart-lang/language/issues/2020. Feature is enabled by bumping the min SDK version to 3.2.
Part of https://github.com/flutter/flutter/issues/134476.

Woohoo, excited about this!


"error: attribute must be applied to a static variable" when compiling

I cloned the repo and run cargo run --release. The process of compilation was not finished due to the following error:
Compiling olm-rs v0.5.0
error: attribute must be applied to a `static` variable
  --> /home/jerzy/.cargo/registry/src/github.com-1ecc6299db9ec823/olm-rs-0.5.0/src/account.rs:41:5
   |
41 |     #[used]
   |     ^^^^^^^

error: attribute must be applied to a `static` variable
  --> /home/jerzy/.cargo/registry/src/github.com-1ecc6299db9ec823/olm-rs-0.5.0/src/inbound_group_session.rs:29:5
   |
29 |     #[used]
   |     ^^^^^^^

error: attribute must be applied to a `static` variable
  --> /home/jerzy/.cargo/registry/src/github.com-1ecc6299db9ec823/olm-rs-0.5.0/src/outbound_group_session.rs:30:5
   |
30 |     #[used]
   |     ^^^^^^^

error: attribute must be applied to a `static` variable
  --> /home/jerzy/.cargo/registry/src/github.com-1ecc6299db9ec823/olm-rs-0.5.0/src/session.rs:34:5
   |
34 |     #[used]
   |     ^^^^^^^

error: aborting due to 4 previous errors

error: could not compile `olm-rs`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

When I repeated the attempt with --verbose I got the following output from the compiler:
Running `rustc --crate-name olm_rs --edition=2018 /home/jerzy/.cargo/registry/src/github.com-1ecc6299db9ec823/olm-rs-0.5.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="deserialization"' --cfg 'feature="serde"' --cfg 'feature="serde_json"' -C metadata=b157c7051a06e790 -C extra-filename=-b157c7051a06e790 --out-dir /home/jerzy/rumatui/target/release/deps -L dependency=/home/jerzy/rumatui/target/release/deps --extern getrandom=/home/jerzy/rumatui/target/release/deps/libgetrandom-2876f5851e514e72.rmeta --extern olm_sys=/home/jerzy/rumatui/target/release/deps/libolm_sys-83cc2e8b5962926b.rmeta --extern serde=/home/jerzy/rumatui/target/release/deps/libserde-fc9870fbedeeacc2.rmeta --extern serde_json=/home/jerzy/rumatui/target/release/deps/libserde_json-c49d8bd238e2c4e4.rmeta --extern zeroize=/home/jerzy/rumatui/target/release/deps/libzeroize-c8c4f35876105ecb.rmeta --cap-lints allow -L /home/jerzy/rumatui/target/release/build/olm-sys-17d37e7a7ca77f18/out/build`
       Fresh image v0.23.7
error: attribute must be applied to a `static` variable
  --> /home/jerzy/.cargo/registry/src/github.com-1ecc6299db9ec823/olm-rs-0.5.0/src/account.rs:41:5
   |
41 |     #[used]
   |     ^^^^^^^

error: attribute must be applied to a `static` variable
  --> /home/jerzy/.cargo/registry/src/github.com-1ecc6299db9ec823/olm-rs-0.5.0/src/inbound_group_session.rs:29:5
   |
29 |     #[used]
   |     ^^^^^^^

error: attribute must be applied to a `static` variable
  --> /home/jerzy/.cargo/registry/src/github.com-1ecc6299db9ec823/olm-rs-0.5.0/src/outbound_group_session.rs:30:5
   |
30 |     #[used]
   |     ^^^^^^^

error: attribute must be applied to a `static` variable
  --> /home/jerzy/.cargo/registry/src/github.com-1ecc6299db9ec823/olm-rs-0.5.0/src/session.rs:34:5
   |
34 |     #[used]
   |     ^^^^^^^

error: aborting due to 4 previous errors

error: could not compile `olm-rs`

Caused by:
  process didn't exit successfully: `rustc --crate-name olm_rs --edition=2018 /home/jerzy/.cargo/registry/src/github.com-1ecc6299db9ec823/olm-rs-0.5.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="deserialization"' --cfg 'feature="serde"' --cfg 'feature="serde_json"' -C metadata=b157c7051a06e790 -C extra-filename=-b157c7051a06e790 --out-dir /home/jerzy/rumatui/target/release/deps -L dependency=/home/jerzy/rumatui/target/release/deps --extern getrandom=/home/jerzy/rumatui/target/release/deps/libgetrandom-2876f5851e514e72.rmeta --extern olm_sys=/home/jerzy/rumatui/target/release/deps/libolm_sys-83cc2e8b5962926b.rmeta --extern serde=/home/jerzy/rumatui/target/release/deps/libserde-fc9870fbedeeacc2.rmeta --extern serde_json=/home/jerzy/rumatui/target/release/deps/libserde_json-c49d8bd238e2c4e4.rmeta --extern zeroize=/home/jerzy/rumatui/target/release/deps/libzeroize-c8c4f35876105ecb.rmeta --cap-lints allow -L /home/jerzy/rumatui/target/release/build/olm-sys-17d37e7a7ca77f18/out/build` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed

Ahh crap! It's because of matrix-sdk but I think you can get around by using an older compiler (temporarily, I'll make a PR to update olm-rs in the sdk, or you could if you were interested?)
Thanks for the interest!!

I'm too much of a newbie in Rust for such an update. I  appreciate your help.

I'll let you know when I get to fix this. In the mean time if you want
rustup install 1.45 minimal
rustup run 1.45 cargo r --release

would be the commands to do what you were doing. I'm not sure if 1.45 is the newest version that would actually work, I feel like I noticed it doing this a few weeks ago so maybe any compiler before 1.53 :shrug:

Thanks, I managed to launch the app having compiled it with version 1.45.
P.S. When I run  error: invalid toolchain name: 'minimal'
it failed and I got the output:
error: invalid toolchain name: 'minimal'

So I decided to skip the word minimal, like so:
rustup install 1.45 && rustup run 1.45 cargo r --release
and it worked fine.

I was just reminded that because it was only a patch release running cargo update would have fixed it also :facepalm: so that would have been easier, sorry!

I have just run cargo updateand then cargo run --release and I got the same error

"error: attribute must be applied to a static variable"


frameworkres doesn't look in subdirectories

Affected modules(s): frameworkres
APKs that are in sub-directories of /system/framework/ are not picked up by frameworkres.

Fixed: https://github.com/jakev/dtfmods-core/commit/13b9571d8ef49eed5012dd7791351f9c54b5a815


Add GCP composition, examples and uptest

Description of your changes
Add GCP composition, examples and uptest
I have:

[x] Read and followed Upbound's contribution process.
[ ] Run make reviewable to ensure this PR is ready for review.
[ ] Added backport release-x.y labels to auto-backport this PR, as appropriate.

How has this code been tested
 k get claim
NAME                                                                SYNCED   READY   CONNECTION-SECRET                      AGE
sqlinstance.dbaas.upbound.io/configuration-dbaas-aws-mariadb        True     True    configuration-dbaas-aws-mariadb        5h56m
sqlinstance.dbaas.upbound.io/configuration-dbaas-aws-postgresql     True     True    configuration-dbaas-aws-postgresql     5h56m
sqlinstance.dbaas.upbound.io/configuration-dbaas-azure-mariadb      True     True    configuration-dbaas-azure-mariadb      5h56m
sqlinstance.dbaas.upbound.io/configuration-dbaas-azure-postgresql   True     True    configuration-dbaas-azure-postgresql   5h56m
sqlinstance.dbaas.upbound.io/configuration-dbaas-gcp-mysql          True     True    configuration-dbaas-gcp-mysql          5h10m
sqlinstance.dbaas.upbound.io/configuration-dbaas-gcp-postgresql     True     True    configuration-dbaas-gcp-postgresql     5h10m

=== CONT  kuttl
    harness.go:402: run tests finished
    harness.go:511: cleaning up
    harness.go:553: skipping cluster tear down
    harness.go:554: to connect to the cluster, run: export KUBECONFIG="/Users/xnull/upbound/configuration-dbaas/kubeconfig"
--- PASS: kuttl (1743.44s)
    --- PASS: kuttl/harness (0.00s)
        --- PASS: kuttl/harness/case (1742.96s)
PASS
16:30:54 [ OK ] running automated tests

uptest below

/test-examples

/test-examples


socket.timeout: timed out

I've been struggling with this issue since more than an year now. I've tried multiple libraries, even the official rcon library for Python, but I've got the same issue everytime.
Server
I've a server for Counter Striker 1.6, running on AWS virtual machine. The installation was done following this article: https://linuxgsm.com/servers/csserver
The server is running fine, I'm able to play, run rcons as admin within game server, and even used HLSW for sending rcon commands remotely. All these works for me, but I'm not able to connect to my server using any of the rcon library.
Logs
[2022-09-19 20:25:50,426][INFO] rcon.extended_commands extended_commands.py:connection_pool:86 | Initializing Rcon connection pool of size 20
[2022-09-19 20:26:05,062][ERROR] rcon manage.py:<module>:56 | Unexpected error.
Traceback (most recent call last):
  File "C:\somendra\learning\hll_rcon_tool\manage.py", line 44, in <module>
    from rcon.cli import cli, init
  File "C:\somendra\learning\hll_rcon_tool\rcon\cli.py", line 192, in <module>
    for name, func in inspect.getmembers(ctl):
  File "C:\Users\SMeena\AppData\Local\Programs\Python\Python39\lib\inspect.py", line 351, in getmembers
    value = getattr(object, key)
  File "C:\Users\SMeena\AppData\Local\Programs\Python\Python39\lib\functools.py", line 993, in __get__
    val = self.func(instance)
  File "C:\somendra\learning\hll_rcon_tool\rcon\extended_commands.py", line 90, in connection_pool
    rcon._connect()
  File "C:\somendra\learning\hll_rcon_tool\rcon\commands.py", line 87, in _connect
    self.conn.connect(
  File "C:\somendra\learning\hll_rcon_tool\rcon\connection.py", line 27, in connect
    self.sock.connect((host, port))
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
ConnectionRefusedError(10061, 'No connection could be made because the target machine actively refused it', None, 10061, None)

Process finished with exit code 1

I'm sure I'm doing something wrong, or may be missing some major step.
This has become a major blocker for my project as this is the most important part. Can someone help me with this issue?

 Even if you were to resolve the above connection error you would not be able to use this.
As for the actual error, as implied, the server you're attempting to connect to is refusing your connection. The IP address was found, but either no application is listening on the port you provided, or a firewall is preventing the connection. See this comment for more information.
If you want further support from us I'll have to ask you to ask for it in our Discord instead, as this isn't a bug with our tool, but rather with how you've configured your server.
Lastly, as a side note, I don't think the RCON library you mentioned (I assume it's this one?) is an official library. The only official libraries for creating socket connections are socket and asyncio (for asynchronous socket connections).

Apologies for placing the question at wrong place. I'll take help on the discord.
Thanks for your help @timraay


feat (Response) : add info for debugDescription

add parameters info for debugDescription of DataResponse and DownloadResponse
Issue Link :link:

Goals :soccer:

Implementation Details :construction:

Testing Details :mag:

Thanks for the PR! It's unlikely we'll be doing another release of Alamofire 4, but I'll keep this PR around until 5 is fully released.

@rain2540 Looks like we'll be doing a 4.9.1 release after all. If you can update your PR to use the debugDescription implementation from Alamofire 5, which includes the body data, we can make this PR part of that release.

I've updated my PR to use the debugDescription implementation from Alamofire 5, which includes the body data.

Turns out your changes are incompatible with Alamofire 4. Please resubmit your PR with a building version. You can use the Alamofire 5 implementation as an example, but you can't copy the code directly.

@jshier I've resubmitted my PR #2976


[Bug?]:  Creating a new Solid Start using Bun throws an error

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
Running bunx create solid throws the following error:
error: could not determine executable to run for package create
Using pnpm dlx works just fine.
Expected behavior 🤔
Expected the project to be created.
Steps to reproduce 🕹
Steps:

Run bunx create solid

Context 🔦
No response
Your environment 🌎
System:
    OS: macOS 14.2.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 308.13 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.8.0 - ~/.asdf/installs/nodejs/20.8.0/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.1.0 - ~/.asdf/plugins/nodejs/shims/npm
    pnpm: 8.10.2 - /opt/homebrew/bin/pnpm
    bun: 1.0.15 - /opt/homebrew/bin/bun
  Managers:
    Cargo: 1.72.1 - /opt/homebrew/bin/cargo
    Homebrew: 4.2.12 - /opt/homebrew/bin/brew
    pip3: 22.2.2 - ~/.pyenv/shims/pip3
    RubyGems: <IP_ADDRESS> - /usr/bin/gem

My understanding is there is a difference between bunx create solid and bun create solid. That the latter is what should be run. But I admit I don't know enough about this.
The CLI is maintained here: https://github.com/solidjs-community/solid-cli. I'd transfer the issue but it is outside of our immediate org.

Ok got the answer:

Thanks @ryansolid!


[REQUEST] Respect PY_COLORS environment variable

PY_COLORS is a very popular method for forcing ANSI mode on or off in a command line application.
Basically undefined means keeping application default behavior, likely auto-detection. Having it PY_COLORS=0 means application will not use any ANSI codes and PY_COLORS=1 will force ANSI mode regardless if terminal reports it or not.
For me personally is not a big deal as I already have code in applications I work with, but it would prove useful to have this directly into rich, so any user of rich would get this for free.
An implementation example can be seen at https://github.com/ansible-community/molecule/blob/20e1fa8a23308a9103e2dbdb4d3c4ae1ffe59c9d/molecule/logger.py#L42-L48
That is very useful feature to have when running on CI as you do not want to end-up defining 50-100 environment variables only to control ANSI behavior.

It would be useful to force color on. The only related standard I know is NO_COLOR which disables color, which Rich supports.
I gather this is from PyTest originally? Which I see also supports a FORCE_COLOR env var.
FORCE_COLOR and NO_COLOR compliment each other and give you complete control over ansi output. I suspect PyTest added PY_COLOR as an override when the other env vars were in use by test code, hence the specific prefix of PY. Popular or not, it's may be a mistake to view it as some kind of standard beyond PyTest.

That is very useful feature to have when running on CI as you do not want to end-up defining 50-100 environment variables only to control ANSI behavior.

Let's not exaggerate.

I think it comes from python itself, but I do not remember exactly. I do agree that the PY_ prefix it does not make much sense as this behaviour could apply to any tools.
I am aware of existence of https://no-color.org/ movement but sadly it lacked no color but sadly it started with a broken design and lacks any drivers for fixing these. See https://github.com/jcs/no_color/issues/29 (and linked ticket on how others reacted, xkcd reference as bonus)
You can see my old ticket from https://github.com/jcs/no_color/issues/79 which didn't get any feedback.

It's definitely not a Python thing or it would be documented here.
I'll give it some thought, but with the lack of a real standard, it's hard to know what the "right thing" is to do.

I was having a look at implementing this. What colour mode should PY_COLORS turn on?
https://github.com/willmcgugan/rich/blob/c3db5a8c0d48a2a1e27a2accde155bedd879181a/rich/console.py#L279-L284
I assume ColorSystem.WINDOWS on Windows, but I'm unsure for other platforms.
Or will it be enough to just turn off this clause?
https://github.com/willmcgugan/rich/blob/c3db5a8c0d48a2a1e27a2accde155bedd879181a/rich/console.py#L465-L466

It should probably set the force_terminal attribute if not explicitly set.
However, I've pretty much rejected PY_COLOR as its not really an established standard.
FORCE_COLOR seems better, but is still problematic. In some apps FORCE_COLOR set to anything enables color, but I've also see FORCE_COLOR=1 enable color and FORCE_COLOR=0 disable it.
And I've also see CLICOLOR used.
Since its not clear exactly what is the right thing to do, I'd prefer to leave it up to the developer to implement.

I agree with you that at this point, due to divergence in the wild, it does not make sense to make a change. I will close the ticket with the note that we should reopen it once we have an emerging winner in that area.

Is there any downside for Rich supporting all of these environment variables? It sounds to me like they are all established standards, I'm not sure why there has to be a single winner..

(You could even add the GITHUB_ACTIONS env var to the list, which is how I ended up here  👀 - x-ref #52)

They not really standards, since they're not documented by any kind of authority. And not all that established, since relatively few apps support them.
They're also implemented inconsistently, for instance on some apps FORCE_COLOR=0 would force color on because anything other than empty string is considered True, but some apps would treat "0" as false and disable color. And if I implement more than one, what if they conflict?
If I was to add support for these env vars, then I've baked that in to all apps using Rich, which means that if I change it in the future when / if a standard emerges @willmcgugan is going to get a lot of angry mentions.
So I'd rather to leave it up to the developer what env vars they should support. It's only a line or two to set force_color on the Console constructor.
I may yet relent on this. I try to be pragmatic!

If anyone is curious, I ended up with https://github.com/ansible-community/molecule/blob/master/lib/molecule/console.py#L40-L60 implementation, which is bit hilarious but should produce decent results.
Anything around terminal is lacking standards, because there is no authority and too many use-cases. Until major players would team-up to join some kind of movement we will still need to rely on guesstimates. My respect goes to those that tried to reuse existing approaches instead of creating MYAPP_WANTS_COLOR kind of approaches.
It took a good number of years to see the hyperlink ANSI extensions being adopted by various terminals and there is no official standard for it. Colorama project refused my patch to add support for links due to lack of standards. Attempts to do the same for defining collapsable sections sadly didn't materialize yet.

Yes, for future googlers wanting to copy and paste, here was my workaround to do the same with our codebase: https://github.com/nf-core/tools/pull/760/files (bit simpler / more crude, includes direct detection for GitHub Actions).


DHCP-client package preconditions

The installer currently automatically adds the 'isc-dhcp-client' to the package list if 'ip_addr=dhcp' is set in the configuration file (which is the default setting).
People who are using the 'preset=base' setting to prevent installation of any networking packages but still want to use the DHCP feature during the installation phase are not able to de-select the 'isc-dhcp-client'.
This pull request proposes to add an additional precondition for this package to ensure it is only automatically installed when really needed.

👍


[chore] Add "DNF Automatic" to Vale at Red Hat rules

DNF Automatic has a listing for incorrect capitalization in the Red Hat supplementary style guide.

Add the term in the form bad: good to the .vale/fixtures/RedHat/CaseSensitiveTerms.yml rule.
Update the test fixtures:

.vale/fixtures/RedHat/CaseSensitiveTerms/testinvalid.adoc
.vale/fixtures/RedHat/CaseSensitiveTerms/testvalid.adoc

Use DNF automatic|dnf automatic: DNF Automatic in the rule.
PR must be reviewed and all tests must pass before merging.

Please assign this issue to me.

Fixed in #663


usResourceCompiler needs a verbose option

In the current implementation the only way to see some output in the terminal when the resource compiler is run, is by rebuilding the tool with preprocessor flag DEBUG_TRACE set. A command line option "-v" would be helpful.

This sounds like a useful addition. Since -v is often associated with version information, what do you think about -V for verbose and -VV for "extra" verbose, e.g. including "debug" output?

I like the idea of verbose levels in general but I think it is an overkill for this tool right now. The single verbose mode fits the need and if there is a requirement in the future to classify the messages, we can consider the very-verbose mode as an enhancement.
Also, with different levels of verbosity we do need guidelines on how to classify the log messages.
I will change the verbose mode short name to "-V" instead of "-v".


Kivy sdl2 DLL Load failed

Python: 3.6.4
OS: Windows 10
Kivy: 1.10.0
Kivy installation method:
python -m pip install --upgrade pip wheel setuptools
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy.deps.gstreamer
python -m pip install kivy.deps.angle
python -m pip install kivy
python -m pip install kivy_examples
python -m pip install Pillow
python -m pip install cython
python -m pip install PyEnchant

Description
Hi, I am trying to run the example code from the install Kivy. The following is the error I receive back. Any help would be great. I have tried looking at previous enquiries about similar problems, but nothing suggested on them has worked so far.
[INFO   ] [Logger      ] Record log in C:\Users\DoddJ\.kivy\logs\kivy_18-03-26_52.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_pil, img_gif (img_sdl2, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: pil(['text_sdl2'] ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
  File "C:\Users\dev.DoddJ\AppData\Local\Programs\Python\Python36-32\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Users\dev.DoddJ\AppData\Local\Programs\Python\Python36-32\lib\site-packages\kivy\core\window\window_sdl2.py", line 26, in <module>
    from kivy.core.window._window_sdl2 import _WindowSDL2Storage

[CRITICAL] [App         ] Unable to get a Window, abort.
 Exception ignored in: 'kivy.properties.dpi2px'
 Traceback (most recent call last):
   File "C:\Users\dev.DoddJ\AppData\Local\Programs\Python\Python36-32\lib\site-packages\kivy\utils.py", line 496, in __get__
     retval = self.func(inst)
   File "C:\Users\dev.DoddJ\AppData\Local\Programs\Python\Python36-32\lib\site-packages\kivy\metrics.py", line 174, in dpi
     EventLoop.ensure_window()
   File "C:\Users\dev.DoddJ\AppData\Local\Programs\Python\Python36-32\lib\site-packages\kivy\base.py", line 127, in ensure_window
     sys.exit(1)
 SystemExit: 1
[CRITICAL] [App         ] Unable to get a Window, abort.

Code and Logs
Code that I am trying to run:
import kivy
kivy.require('1.10.0') # replace with your current kivy version !

from kivy.app import App
from kivy.uix.label import Label

class MyApp(App):

    def build(self):
        return Label(text='Hello world')

if __name__ == '__main__':
    MyApp().run()

what does this say on your system (PowerShell):
python -m pip freeze | select-string cython

@dolang it says
'select-string' is not recognized as an internal or external command,
operable program or batch file.

yeah, sorry that wasn't clear. You need to execute that in PowerShell. It's the replacement for the DOS prompt.
Use Win + x then select it, or type powershell at the command prompt. You will have PS as the first 2 letter of the prompt.

Oh okay. In the powershell it says
`Cython==0.27.3`

Alright, tried to reproduce it with a similar not same environment without luck. Bascially, what the error says is that the sdl2 library is missing. But it should've been installed with python -m pip install kivy.deps.sdl2 which is in your original description somewhere.
I'll have to try reproducing this on another machine again, you could try to pip uninstall ... + pip install ... that dependency in the meantime.

Tried on another machine now, getting the same result (i.e. it works here). What do you have for:
PS  C:\> python -m pip freeze | select-string sdl2

it should give you: kivy.deps.sdl2==0.1.17.
Alternatively, if you have several Python interpreters installed:
PS  C:\> py -3.6 -m pip freeze | select-string sdl2

If one of these two commands doesn't give you the output above, try reinstalling kivy.deps.sdl2.
If they do and it doesn't work, please paste what you get with:
PS C:\> dir C:\Users\dev.DoddJ\AppData\Local\Programs\Python\Python36-32\share\sdl2\bin

Maybe you have to reinstall the 64-bit Python interpreter. (Just a guess, not sure yet.)

I did that and

get kivy.deps.sdl2==0.1.17

I have uninstalled 32-bit and installed 64-bit Python in its place, however, still get this error

H:\untitled2\Scripts\python.exe "C:/Users/DoddJ/PycharmProjects/untitled/KIVY TEST.py"
[INFO   ] [Logger      ] Record log in C:\Users\DoddJ\.kivy\logs\kivy_18-03-28_40.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_pil, img_gif (img_sdl2, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: pil(['text_sdl2'] ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider.

[CRITICAL] [App         ] Unable to get a Window, abort.
 Exception ignored in: 'kivy.properties.dpi2px'
 Traceback (most recent call last):
   File "C:\Users\dev.DoddJ\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\utils.py", line 496, in __get__
     retval = self.func(inst)
   File "C:\Users\dev.DoddJ\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\metrics.py", line 174, in dpi
     EventLoop.ensure_window()
   File "C:\Users\dev.DoddJ\AppData\Local\Programs\Python\Python36\lib\site-packages\kivy\base.py", line 127, in ensure_window
     sys.exit(1)
 SystemExit: 1
[CRITICAL] [App         ] Unable to get a Window, abort.

Process finished with exit code 1

Well, I wasn't sure if 32/64-bit could be the problem here. But can you look if the .dll is actually there?
PS C:\> dir C:\Users\dev.DoddJ\AppData\Local\Programs\Python\Python36\share\sdl2\bin

If it's there, maybe your virus scanner is blocking it, or your firewall (or some other really intrusive software)? This is not something that should happen, imho.

According to earlier comment, you have cython 0.27.3 and the console log says Kivy v1.10.0 ... those versions are not compatible, though I'm not sure exactly why the missing window provider is the first clue to this problem.... Maybe try either using cython 0.25.2 (compatible with 1.10) + reinstall kivy, or alternatively pip install kivy==master with your current cython version?

I am getting this issue also with Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
C:\> python3 -m pip show kivy kivy.deps.glew kivy.deps.sdl2
Name: Kivy
Version: 1.10.0
Summary: A software library for rapid development of hardware-accelerated multitouch applications.
Home-page: http://kivy.org
Author: Kivy Team and other contributors
Author-email<EMAIL_ADDRESS>License: MIT
Location: c:\users\jedingto\appdata\roaming\python\python36\site-packages
Requires: docutils, Kivy-Garden, pygments
Required-by:
---
Name: kivy.deps.glew
Version: 0.1.9
Summary: Repackaged binary dependency of Kivy.
Home-page: http://kivy.org/
Author: Kivy Crew
Author-email<EMAIL_ADDRESS>License: MIT
Location: c:\users\jedingto\appdata\roaming\python\python36\site-packages
Requires:
Required-by:
---
Name: kivy.deps.sdl2
Version: 0.1.17
Summary: Repackaged binary dependency of Kivy.
Home-page: http://kivy.org/
Author: Kivy Crew
Author-email<EMAIL_ADDRESS>License: zlib
Location: c:\users\jedingto\appdata\roaming\python\python36\site-packages
Requires:
Required-by:

running it gives the following:
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from kivy.app import App
[INFO   ] [Logger      ] Record log in C:\Users\jedingto\.kivy\logs\kivy_18-05-17_4.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif (img_sdl2, img_pil, img_ffpyplayer ignored)
>>> from kivy.uix.widget import Widget
>>> class PongGame(Widget):
...  pass
...
>>> class PongApp(App):
...  def build(self):
...   return PongGame()
...
>>> PongApp().run()
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
  File "C:\Users\jedingto\AppData\Roaming\Python\Python36\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Users\jedingto\AppData\Roaming\Python\Python36\site-packages\kivy\core\window\window_sdl2.py", line 26, in <module>
    from kivy.core.window._window_sdl2 import _WindowSDL2Storage

[CRITICAL] [App         ] Unable to get a Window, abort.

Despite the existence of the SDL2 DLL:
dir %AppData%\Python\share\sdl2\bin\SDL2.dll
 Volume in drive C is XXXXXX
 Volume Serial Number is 0000-0000

 Directory of C:\Users\USER\AppData\Roaming\Python\share\sdl2\bin

2018-05-17  11:33 AM         1,254,400 SDL2.dll
               1 File(s)      1,254,400 bytes
               0 Dir(s)  161,199,689,728 bytes free

and I should add that this occurs even if I uninstall kivy.deps.sdl from --user mode and install it into C:\Program Files\Python\share\sdl2 via Administrator Mode, the error is the same:
>>> PongApp().run()
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
  File "C:\Users\jedingto\AppData\Roaming\Python\Python36\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Users\jedingto\AppData\Roaming\Python\Python36\site-packages\kivy\core\window\window_sdl2.py", line 26, in <module>
    from kivy.core.window._window_sdl2 import _WindowSDL2Storage

[CRITICAL] [App         ] Unable to get a Window, abort.

It doesn't even work if I cd right into the directory next to SDL2.dll before running python3

Alright, there are several things at play here:

the .dll has to exist in that directory
the file ...\site-packages\kivy\deps\sdl2\__init__.py gets loaded and points at the .dll
Windows (or some other intrusive software like some virus scanners) itself doesn't block loading it

So far I've been unable to reproduce it, but 3. is something that can't be excluded.
Another thing you could try: open a command prompt and point the PATH directly at the sdl2 folder. Something like:
\> set PATH=C:\Users\USER\AppData\Roaming\Python\share\sdl2\bin;%PATH%

@dolang Well, it seems that adding the SDL2.dll folder to the %PATH% fixes....that error
[INFO   ] [Logger      ] Record log in C:\Users\jedingto\.kivy\logs\kivy_18-05-17_15.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO   ] [OSC         ] using <thread> for socket
[INFO   ] [Window      ] Provider: sdl2
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
  File "C:\Users\jedingto\AppData\Roaming\Python\Python36\site-packages\kivy\core\__init__.py", line 67, in core_select_lib
    cls = cls()
  File "C:\Users\jedingto\AppData\Roaming\Python\Python36\site-packages\kivy\core\window\window_sdl2.py", line 140, in __init__
    super(WindowSDL, self).__init__()
  File "C:\Users\jedingto\AppData\Roaming\Python\Python36\site-packages\kivy\core\window\__init__.py", line 899, in __init__
    self.create_window()
  File "C:\Users\jedingto\AppData\Roaming\Python\Python36\site-packages\kivy\core\window\window_sdl2.py", line 269, in create_window
    self.fullscreen, resizable, state)
  File "kivy\core\window\_window_sdl2.pyx", line 110, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window (kivy\core/window\_window_sdl2.c:2466)
  File "kivy\graphics\cgl.pyx", line 52, in kivy.graphics.cgl.cgl_get_backend_name (kivy\graphics\cgl.c:3044)
  File "kivy\graphics\cgl.pyx", line 60, in kivy.graphics.cgl.cgl_get_backend_name (kivy\graphics\cgl.c:2879)
  File "C:\Program Files\Python36\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 571, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 922, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed

Now, the glew dependency should have a folder right next to it (share\glew\bin). What happens if you add that too?

That was just a clue for me to find out whether the libraries are actually blocked or not. Good thing they aren't.
As said above (point 2.), you can see that if you open the __init__.py in site-packages\kivy\deps\..., but that should work out of the box. Now I need to find a way to break mine exactly like in your case. :smile:

Is this of any use?
>>> import pdb
>>> pdb.run()
KeyboardInterrupt
>>> lamb
KeyboardInterrupt
>>> pdb.run("from kivy.core.window._window_sdl2 import _WindowSDL2Storage")
> <string>(1)<module>()
(Pdb) s
--Call--
> <frozen importlib._bootstrap>(966)_find_and_load()
(Pdb)
> <frozen importlib._bootstrap>(968)_find_and_load()
(Pdb)
--Call--
> <frozen importlib._bootstrap>(143)__init__()
(Pdb)
> <frozen importlib._bootstrap>(144)__init__()
(Pdb)
> <frozen importlib._bootstrap>(145)__init__()
(Pdb)
--Return--
> <frozen importlib._bootstrap>(145)__init__()->None
(Pdb)
--Call--
> <frozen importlib._bootstrap>(147)__enter__()
(Pdb)
> <frozen importlib._bootstrap>(148)__enter__()
(Pdb)
--Call--
> <frozen importlib._bootstrap>(157)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(163)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(164)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(165)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(166)_get_module_lock()
(Pdb)
KeyError: 'kivy.core.window._window_sdl2'
> <frozen importlib._bootstrap>(166)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(167)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(168)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(170)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(171)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(174)_get_module_lock()
(Pdb)
--Call--
> <frozen importlib._bootstrap>(58)__init__()
(Pdb)
> <frozen importlib._bootstrap>(59)__init__()
(Pdb)
> <frozen importlib._bootstrap>(60)__init__()
(Pdb)
> <frozen importlib._bootstrap>(61)__init__()
(Pdb)
> <frozen importlib._bootstrap>(62)__init__()
(Pdb)
> <frozen importlib._bootstrap>(63)__init__()
(Pdb)
> <frozen importlib._bootstrap>(64)__init__()
(Pdb)
--Return--
> <frozen importlib._bootstrap>(64)__init__()->None
(Pdb)
> <frozen importlib._bootstrap>(176)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(187)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(189)_get_module_lock()
(Pdb)
> <frozen importlib._bootstrap>(191)_get_module_lock()
(Pdb)
--Return--
> <frozen importlib._bootstrap>(191)_get_module_lock()->_ModuleLock('...<PHONE_NUMBER>208
(Pdb)
> <frozen importlib._bootstrap>(149)__enter__()
(Pdb)
--Call--
> <frozen importlib._bootstrap>(78)acquire()
(Pdb)
> <frozen importlib._bootstrap>(84)acquire()
(Pdb)
> <frozen importlib._bootstrap>(85)acquire()
(Pdb)
> <frozen importlib._bootstrap>(86)acquire()
(Pdb)
> <frozen importlib._bootstrap>(87)acquire()
(Pdb)
> <frozen importlib._bootstrap>(88)acquire()
(Pdb)
> <frozen importlib._bootstrap>(89)acquire()
(Pdb)
> <frozen importlib._bootstrap>(90)acquire()
(Pdb)
> <frozen importlib._bootstrap>(91)acquire()
(Pdb)
> <frozen importlib._bootstrap>(92)acquire()
(Pdb)
> <frozen importlib._bootstrap>(101)acquire()
(Pdb)
KeyError: 12616
> <frozen importlib._bootstrap>(101)acquire()
(Pdb)
--Return--
> <frozen importlib._bootstrap>(101)acquire()->None
(Pdb)
KeyError: 12616
> <frozen importlib._bootstrap>(149)__enter__()
(Pdb)
--Return--
> <frozen importlib._bootstrap>(149)__enter__()->None
(Pdb)
KeyError: 12616
> <frozen importlib._bootstrap>(968)_find_and_load()
(Pdb)
--Return--
> <frozen importlib._bootstrap>(968)_find_and_load()->None
(Pdb)
KeyError: 12616
> <string>(1)<module>()
(Pdb)
--Return--
> <string>(1)<module>()->None
(Pdb)
KeyError: 12616
> c:\program files\python36\lib\bdb.py(434)run()
-> exec(cmd, globals, locals)
(Pdb)
> c:\program files\python36\lib\bdb.py(435)run()
-> except BdbQuit:
(Pdb)
> c:\program files\python36\lib\bdb.py(438)run()
-> self.quitting = True
(Pdb)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Python36\lib\pdb.py", line 1572, in run
    Pdb().run(statement, globals, locals)
  File "C:\Program Files\Python36\lib\bdb.py", line 434, in run
    exec(cmd, globals, locals)
  File "<string>", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 968, in _find_and_load
  File "<frozen importlib._bootstrap>", line 149, in __enter__
  File "<frozen importlib._bootstrap>", line 101, in acquire
KeyError: 12616

Well,
some further testing reveals that it functions correctly if BOTH kivy.deps.glew AND kivy.deps.sdl2 are installed in Administrator mode.
I think the problem lies with too much being hardcoded into 1site-packages\kivy\deps*_init_.py`
I wonder if there's a more canonical way to add DLLs from Pip packages into the path...?

Good question, but I don't know how the team arrived at their current solution. At least we could narrow it down now, so that's a step forward.
By the way, are you familiar with virtualenv. I normally use those and rarely have problems. So for now you could do (admin):
py -m pip install virtualenv

Normal user account (.venv is my preferred name of the directory of the virtualenv, change as you like):
py -m virtualenv .venv
.venv\Scripts\activate
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy

optionally add: python -m pip install kivy.deps.gstreamer
Hope I got that all right.

Configuration windows 10 python 363 (visual studio 2017):
[INFO   ] [Logger      ] Record log in C:\Users\Laurent\.kivy\logs\kivy_18-08-23_29.txt
[INFO   ] [Kivy        ] v1.10.1
[INFO   ] [Python      ] v3.6.3 (v3.6.3:2c5fed8, Oct  3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] GLEW initialization succeeded
[INFO   ] [GL          ] Backend used <glew>
[INFO   ] [GL          ] OpenGL version <b'4.6.0 NVIDIA 390.77'>
[INFO   ] [GL          ] OpenGL vendor <b'NVIDIA Corporation'>
[INFO   ] [GL          ] OpenGL renderer <b'GeForce GTX 970/PCIe/SSE2'>
[INFO   ] [GL          ] OpenGL parsed version: 4, 6
[INFO   ] [GL          ] Shading version <b'4.60 NVIDIA'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <32>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Text        ] Provider: sdl2
Standard library module invoked user code during import; breakpoints disabled for invoked code.
[INFO   ] [Base        ] Start application main loop
[INFO   ] [GL          ] NPOT texture support is available
[WARNING] [Accordion   ] not enough space for displaying all children
[WARNING] [Accordion   ] need 132px, got 84px
[WARNING] [Accordion   ] layout aborted.
[WARNING] [Accordion   ] not enough space for displaying all children
[WARNING] [Accordion   ] need 132px, got 84px
[WARNING] [Accordion   ] layout aborted.
[INFO   ] [Base        ] Leaving application in progress...
The thread 'MainThread' (0x13ec) has exited with code 0 (0x0).

I 've got same issue and I solve it and my solution is not a good one. I copy all dlls (share/sdl2 share/angle share/glew share/gstreamer) in a repository and I add this repository to  path variable.
I installed kivy using admin right (https://kivy.org/docs/installation/installation-windows.html) and i tried to run using user right (user laurent )then error happens : [CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
Copying all dlls in new folder solves issues. My question is then How can I install kivy to run kivy with user privilege ?
PS sorry I 'm not good in english and python

By the way, are you familiar with virtualenv. I normally use those and rarely have problems. So for now you could do (admin):
py -m pip install virtualenv

Normal user account (.venv is my preferred name of the directory of the virtualenv, change as you like):
py -m virtualenv .venv
.venv\Scripts\activate
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy

I tried using virtualenv and it did not work. I still got a similar error. I also added C:\Program Files\Python37\share\sdl2\bin and C:\Program Files\Python37\share\angle\bin to my PATH already. And I did what I think @LaurentBerger did, copy those two files into another directory, and then add that directory to the path. Using virtualenv with the two PATH options did not work for me as well.
I'm using python 3.7 so I installed kivy.deps.angle instead of kivy.deps.glew
Logs:
[INFO   ] [Logger      ] Record log in C:\Users\henry\.kivy\logs\kivy_18-09-15_16.txt
[INFO   ] [Kivy        ] v1.10.1
[INFO   ] [Python      ] v3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Window      ] Provider: sdl2
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
  File "C:\Users\henry\DOCUME~1\SIDEPR~1\fps\venv\lib\site-packages\kivy\core\__init__.py", line 67, in core_select_lib
    cls = cls()
  File "C:\Users\henry\DOCUME~1\SIDEPR~1\fps\venv\lib\site-packages\kivy\core\window\window_sdl2.py", line 140, in __init__
    super(WindowSDL, self).__init__()
  File "C:\Users\henry\DOCUME~1\SIDEPR~1\fps\venv\lib\site-packages\kivy\core\window\__init__.py", line 968, in __init__
    self.create_window()
  File "C:\Users\henry\DOCUME~1\SIDEPR~1\fps\venv\lib\site-packages\kivy\core\window\window_sdl2.py", line 272, in create_window
    self.fullscreen, resizable, state)
  File "kivy\core\window\_window_sdl2.pyx", line 125, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
  File "kivy\graphics\cgl.pyx", line 52, in kivy.graphics.cgl.cgl_get_backend_name
  File "kivy\graphics\cgl.pyx", line 60, in kivy.graphics.cgl.cgl_get_backend_name
  File "C:\Users\henry\DOCUME~1\SIDEPR~1\fps\venv\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 670, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 583, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 1043, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed

[CRITICAL] [App         ] Unable to get a Window, abort.

On this issue, i've seen mixing libraries architectures (Python in 64 bits, SDL2 in 32 bits), so that's a first stop. And yes, if you mixed the arch, the libraries won't be used at all and Kivy won't work.
Installation of SDL2 via kivy.deps.sdl2 should works.

I am using python 3.7 and i am getting this error. kivy version is 1.10.1
how should i resolve it

same here python 3.7 ,  kivy version is 1.10.1  and tried all ways to load the DLL but shows no mercy.

Please see https://github.com/kivy/kivy/issues/6342.

https://stackoverflow.com/questions/49466785/kivy-error-python-2-7-sdl2-import-error/49477111#49477111
This Solve My Problem Which is The same one you Had
Hope this will help You

I had the same issue. This video may help those who are visual! https://youtu.be/gt-qndBYrCQ

By the way, are you familiar with virtualenv. I normally use those and rarely have problems. So for now you could do (admin):
py -m pip install virtualenv

Normal user account (.venv is my preferred name of the directory of the virtualenv, change as you like):
py -m virtualenv .venv
.venv\Scripts\activate
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy

I tried using virtualenv and it did not work. I still got a similar error. I also added C:\Program Files\Python37\share\sdl2\bin and C:\Program Files\Python37\share\angle\bin to my PATH already. And I did what I think @LaurentBerger did, copy those two files into another directory, and then add that directory to the path. Using virtualenv with the two PATH options did not work for me as well.
I'm using python 3.7 so I installed kivy.deps.angle instead of kivy.deps.glew
Logs:
[INFO   ] [Logger      ] Record log in C:\Users\henry\.kivy\logs\kivy_18-09-15_16.txt
[INFO   ] [Kivy        ] v1.10.1
[INFO   ] [Python      ] v3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Window      ] Provider: sdl2
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
  File "C:\Users\henry\DOCUME~1\SIDEPR~1\fps\venv\lib\site-packages\kivy\core\__init__.py", line 67, in core_select_lib
    cls = cls()
  File "C:\Users\henry\DOCUME~1\SIDEPR~1\fps\venv\lib\site-packages\kivy\core\window\window_sdl2.py", line 140, in __init__
    super(WindowSDL, self).__init__()
  File "C:\Users\henry\DOCUME~1\SIDEPR~1\fps\venv\lib\site-packages\kivy\core\window\__init__.py", line 968, in __init__
    self.create_window()
  File "C:\Users\henry\DOCUME~1\SIDEPR~1\fps\venv\lib\site-packages\kivy\core\window\window_sdl2.py", line 272, in create_window
    self.fullscreen, resizable, state)
  File "kivy\core\window\_window_sdl2.pyx", line 125, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
  File "kivy\graphics\cgl.pyx", line 52, in kivy.graphics.cgl.cgl_get_backend_name
  File "kivy\graphics\cgl.pyx", line 60, in kivy.graphics.cgl.cgl_get_backend_name
  File "C:\Users\henry\DOCUME~1\SIDEPR~1\fps\venv\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 670, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 583, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 1043, in create_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed

[CRITICAL] [App         ] Unable to get a Window, abort.

Try to manually copy glew,sdl2 folders and init.py from ../site-packages/kivy_deps  to ../site-packages/kivy/deps.
It worked for me

For windows 10 If I am installing in a non standard path without virtenv, this works for me:
import os
os.environ["KIVY_NO_ARGS"] = "1"
os.environ['KIVY_IMAGE'] = "pil,sdl2" # use pil instead of SDL2 image if you get the libpng16 error
# you must add to the path the location of your SDL2 binaries
os.environ['PATH'] += ';' + os.path.expandvars('%AppData%\\Python\\share\\glew\\bin')
os.environ['PATH'] += ';' + os.path.expandvars('%AppData%\\Python\\share\\sdl2\\bin')

from kivy.app import App
...

Apparently there are some issues with sdl2 dependency installation on windows. I don't know exactly what is the problem. It might have something to do with the fact that sdl2 package is installing the wrong version of libpng16-16.DLL(206KB). Another solution might be to copy the libpng16-16.DLL(2MB) from gstreamer to your app folder if you get a SDL2_image error.
On MacOS Big Sur: I had to clear the code signing on the sdl2 libs in order to start the app. Found the solution in this pyinstaller commit
https://github.com/pyinstaller/pyinstaller/commit/de511a1c602d0eaf534e0a8e941108891003bac8
install_kivy():
        subprocess.check_call([PYTHON_PATH, '-m', 'pip', 'install', '--user', '--no-cache-dir', 'kivy[base]'])
        user_site_packages_path = site.getusersitepackages()
        SDL2_DYLIB_PATH = os.path.join(user_site_packages_path, './kivy/.dylibs/SDL2')
        SDL2_IMAGE_DYLIB_PATH = os.path.join(user_site_packages_path, './kivy/.dylibs/SDL2_image')
        subprocess.check_call(['codesign', '--remove-signature', SDL2_DYLIB_PATH])
        subprocess.check_call(['codesign', '--remove-signature', SDL2_IMAGE_DYLIB_PATH])
...

This also appears to fail with Microsoft Store versions of Python, as the python3X.dll cannot be found.

Alright, tried to reproduce it with a similar not same environment without luck. Bascially, what the error says is that the sdl2 library is missing. But it should've been installed with python -m pip install kivy.deps.sdl2 which is in your original description somewhere.
I'll have to try reproducing this on another machine again, you could try to pip uninstall ... + pip install ... that dependency in the meantime.

 I was up late trying to fix this. Thank you so much!

Gosh... thank you guys, you saved me a lot of time ^^.


Revert changes in mimeTypes.php from 4a1f2c6b9bc90427e91da73f5e8c8fa33d3c53c1

see https://github.com/yiisoft/yii2/commit/4a1f2c6b9bc90427e91da73f5e8c8fa33d3c53c1#r129302787
restores https://github.com/yiisoft/yii2/pull/19936

Was this the only version check which was accidentally changed?
Since there were 3 checks in the original PR: https://github.com/yiisoft/yii2/pull/19936/files

For FileValidatorTest it is still there:
https://github.com/yiisoft/yii2/blob/master/tests/framework/validators/FileValidatorTest.php#L550
MimeTest was removed in https://github.com/yiisoft/yii2/pull/19951


"Boolean" Attribute type issue , when we select yes then 1 is showing on front end

1)"Boolean" attribute type issue, when we select yes then 1 showing on the front end, it should be "yes"

2)when we set "No" then attribute is not displaying on the front end

Framework Version: 0.1.4
Fixed


Nullable types

Currently phpF does not support the unary "?" notation for nullable types.
Example:
function foo(?int $number): ?int
{
  if ($number === null) {
    $number = 42;
  }

  return $number;
}

The formatted result looks like this:
function foo( ? int $number) : ? int
{
  if ($number === null) {
    $number = 42;
  }

  return $number;
}

The code still works as expected, but it doesn't look right to me.
Reference:
http://php.net/manual/de/migration71.new-features.php#migration71.new-features.nullable-types

Project Abandoned


python312Packages.pytenable: 1.4.22 -> 1.5.0

Changelog: https://github.com/tenable/pyTenable/releases/tag/1.5.0
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

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

8 packages built:

audiness
audiness.dist
faraday-agent-dispatcher
faraday-agent-dispatcher.dist
python311Packages.pytenable
python311Packages.pytenable.dist
python312Packages.pytenable
python312Packages.pytenable.dist