Not require redis dependencies if not configured to use redis

Is it possible to either

make the pip install automatically include the package below or
not require it be installed if not using redis?

This error comes from a
python3 -m pip install -U setuptools_rust
python3 setup.py install

but it does not work out of the box as seen below
Traceback (most recent call last):
  File "/usr/local/bin/taky", line 33, in <module>
    sys.exit(load_entry_point('taky==0.8.3.dev23+gfbdab7f', 'console_scripts', 'taky')())
  File "/usr/local/bin/taky", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/local/lib/python3.10/importlib/metadata/__init__.py", line 162, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/local/lib/python3.10/site-packages/taky-0.8.3.dev23+gfbdab7f-py3.10.egg/taky/__init__.py", line 1, in <module>
    from pkg_resources import get_distribution, DistributionNotFound
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'packaging>=21.3' distribution was not found and is required by redis

Hey, coming back to this now... I seem to remember you and I had an issue with this earlier in a CentOS / Fedora container. Can you help me replicate this with your environment?


Flickering / stretching on keyboard toggle

Whenever the keyboard is shown or hidden, the visible view part of the app does get stretched for a short time, resulting in a ugly user experience. Is there any way to prevent this?
The app is using a simple Polymer . Whenever one clicks on it, the keyboard appears and the whole view port of the app gets streched for a short time until the keyboard is finished sliding in. When the keyboard is sliding out again, it gets streched again, the oposite direction.
For some reason, this only happens when running the app with cca run android --device. Running it inside the "App Dev Tool" with cca push does not flicker.

I also have an example app, which does show this behavior: https://github.com/longsleep/polymer-mobile-cca-example

I did some digging and found that changing windowSoftInputMode from adjustResize to adjustPan in platforms/android/AndroidManifest.xml resolves the flickering. Not sure why and if the adjustResize is the default.
As this setting has issues with some web apps i think the default should either be changed to adjustResize or the value should be added to manifest.mobile.json

I've also seen this issue. It seems unique to crosswalk. Crosswalk appear to have a number of issues related to presenting a clean layout. Between this issue and flickering on start up and backgrounding its very challenging to get a polished looking application.

@longsleep adjustPan worked for me as well, thanks for the tip. Were you able to add this to the config.xml or are you modifying the AndroidManifest.xml directly?
Also, is anyone able to comment on why the default is adjustResize?

There's a somewhat confusing discussion here:
https://issues.apache.org/jira/browse/CB-4404
I don't think there's a <preference> for it in cordova, but perhaps there should be.

@agrieve I tried android:windowSoftInputMode="adjustPan", but I'm pretty sure that didn't work. I'll need read over the ticket more.
On the subject of adjustResize, the flicker we're seeing seems like a bug in crosswalk, its not present when using the system webview.
I've done a screen capture of the flickering:
https://drive.google.com/file/d/0B0EqPYsVdSGFZ1JwcWdmOURsamM/view?usp=sharing

@longsleep @FreakTheMighty  Thx for the solution, I have the some problem, but, how change windowSoftInputMode dynamically?

@GustavoCostaW you can just create a hook. Create a directory called "after_prepare" in your project/hooks directory. In there, create a file with the following contents:
#!/bin/bash

if [ -f "platforms/android/AndroidManifest.xml" ]; then
	echo "Changing 'windowSoftInputMode' from 'adjustResize' to 'adjustPan' in AndroidManifest.xml to prevent flickering"
	sed -i 's/android:windowSoftInputMode="adjustResize"/android:windowSoftInputMode="adjustPan"/' platforms/android/AndroidManifest.xml
fi

thx @sebasi

Beware! Using adjustPan will cause app freeze on android 4.1 when soft keyboard appears, there is relative issue: https://crosswalk-project.org/jira/si/jira.issueviews:issue-html/XWALK-3652/XWALK-3652.html . I confirmed it on my MI2 Android 4.1, but on my Nexus9 5.1, it works fine.

@agrieve @Imskull @sebasi @longsleep @FreakTheMighty  I fix the issue setting:
XWalkPreferences.setValue(XWalkPreferences.ANIMATABLE_XWALK_VIEW, false);
in XWalkCordovaView.java in the plugin.

Setting AdjustPan It is bad for the user experience, because there is no scroll.

@GustavoCostaW That works AMAZING~~~~! I just wanted to publish my app with this big/annoying/stupid issue today, you save me! thank you.

Pull request to fix this upstream:
https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview/pull/37

@agrieve why ANIMATABLE_XWALK_VIEW is false default?

I am trying to apply this pacth in my ionic app and have the following in my XWalkCordovaView.java:
boolean prefAnimatable = preferences == null ? false : preferences.getBoolean("CrosswalkAnimatable", false);
boolean manifestAnimatable = ai.metaData == null ? false : ai.metaData.getBoolean("CrosswalkAnimatable");
if (prefAnimatable || manifestAnimatable) {
// Slows it down a bit, but allows for it to be animated by Android View properties.
XWalkPreferences.setValue(XWalkPreferences.ANIMATABLE_XWALK_VIEW, false);
}
However when I build the app, the flickering still happens. Am I missing a step? I essentially made the file change and rebuild. Any help is appreciated!


Display a warning when using chemiscope.show inside a sphinx-gallery example

chemiscope.show() won't crash when processed by sphinx-gallery, just issue a warning.
Also, returns an HTML error message to be displayed e.g. by sphinx-gallery
A stop-gap solution to allow including chemiscope in example noteboox while we see how to implement #276

@Luthaf if you agree to merge this, can you also make a release so we can start incorporating chemiscopes into the software-cookbook?

I think we should solve #292 before we can do a release. I'll comment over there as well


Add 2 approvals to CONTRIBUTING

- Summary
Adds info on number of approvals required on a PR. See https://github.com/netlify/netlify-cms/pull/368.
This wasn't mentioned to me when I became a contributor, so I added it to the docs.
- A picture of a cute animal (not mandatory but encouraged)

I'm going to close this for lack of activity. I'm working on writing a better contributing guide, I'll put a PR up this week.


v6.2.0 does not build

Trying to build the latest release using ./gradlew assembleRelease from the commit the tag points to leads to a crash:
Configuration cache state could not be cached: field `__classpath__` of `com.android.build.gradle.internal.lint.LintTool` bean found in field `__lintTool__` of task `:app:lintVitalAnalyzeRelease` of type `com.android.build.gradle.internal.lint.AndroidLintAnalysisTask`: error writing value of type 'org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection'
> Dependency verification failed for configuration ':app:detachedConfiguration1'
  23 artifacts failed verification:
    - commons-codec-1.10.jar (commons-codec:commons-codec:1.10) from repository MavenRepo
    - groovy-3.0.17.jar (org.codehaus.groovy:groovy:3.0.17) from repository MavenRepo
    - groovy-3.0.17.pom (org.codehaus.groovy:groovy:3.0.17) from repository MavenRepo
    - httpclient-4.5.6.jar (org.apache.httpcomponents:httpclient:4.5.6) from repository MavenRepo
    - httpclient-4.5.6.pom (org.apache.httpcomponents:httpclient:4.5.6) from repository MavenRepo
    - intellij-core-31.5.2.jar (com.android.tools.external.com-intellij:intellij-core:31.5.2) from repository Google
    - intellij-core-31.5.2.pom (com.android.tools.external.com-intellij:intellij-core:31.5.2) from repository Google
    - kotlin-compiler-31.5.2.jar (com.android.tools.external.com-intellij:kotlin-compiler:31.5.2) from repository Google
    - kotlin-compiler-31.5.2.pom (com.android.tools.external.com-intellij:kotlin-compiler:31.5.2) from repository Google
    - kotlin-reflect-1.9.20.jar (org.jetbrains.kotlin:kotlin-reflect:1.9.20) from repository MavenRepo
    - kotlin-reflect-1.9.20.pom (org.jetbrains.kotlin:kotlin-reflect:1.9.20) from repository MavenRepo
    - lint-31.5.2.jar (com.android.tools.lint:lint:31.5.2) from repository Google
    - lint-31.5.2.pom (com.android.tools.lint:lint:31.5.2) from repository Google
    - lint-api-31.5.2.jar (com.android.tools.lint:lint-api:31.5.2) from repository Google
    - lint-api-31.5.2.pom (com.android.tools.lint:lint-api:31.5.2) from repository Google
    - lint-checks-31.5.2.jar (com.android.tools.lint:lint-checks:31.5.2) from repository Google
    - lint-checks-31.5.2.pom (com.android.tools.lint:lint-checks:31.5.2) from repository Google
    - lint-gradle-31.5.2.jar (com.android.tools.lint:lint-gradle:31.5.2) from repository Google
    - lint-gradle-31.5.2.pom (com.android.tools.lint:lint-gradle:31.5.2) from repository Google
    - play-sdk-proto-31.5.2.jar (com.android.tools:play-sdk-proto:31.5.2) from repository Google
    - play-sdk-proto-31.5.2.pom (com.android.tools:play-sdk-proto:31.5.2) from repository Google
    - uast-31.5.2.jar (com.android.tools.external.org-jetbrains:uast:31.5.2) from repository Google
    - uast-31.5.2.pom (com.android.tools.external.org-jetbrains:uast:31.5.2) from repository Google
  If the artifacts are trustworthy, you will need to update the gradle/verification-metadata.xml file. For more on how to do this, please refer to https://docs.gradle.org/8.9/userguide/dependency_verification.html#sec:troubleshooting-verification in the Gradle documentation.

That worked well with the previous one. So am I missing something here, or was maybe something missed to commit/push that's needed to build? Building on Debian Bookworm here with JDK 17, in case it matters.

./gradlew --dependency-verification lenient assembleRelease will make it build

There currently is an issue with gradle/AS and metadata verification

Thanks, that helped! Builds now, though I had to patch out the call to signingConfigs.getByName as it failed at the signing part (I need an unsigned APK anyway to compare yours against). Now it not only builds, but also results in a Reproducible Build again – thanks!
For background: Reproducible Builds, special client support and more in our repo :wink:

I'll update the gradle build to prevent exceptions when missing the signing config, that should make it easier for you.

Eh, it actually was a one-liner, and is set up now – so no need to adjust:
  - tag: v6.2.0
    apks:
      - apk_pattern: app-release\.apk
        apk_url: https://github.com/Tommy-Geenexus/exif-eraser/releases/download/v6.2.0/app-release.apk
        build:
          - sed -r '/signingConfigs.getByName/d' -i app/build.gradle.kts
          - chmod +x gradlew
          - ./gradlew --dependency-verification lenient assembleRelease
          - mv app/build/outputs/apk/release/*unsigned.apk /outputs/unsigned.apk

I have that with so many apps, that sed line I add in less than a minute after skimming the corresponding build.gradle[.kts].
Should you already have changed it, please let me know so I adjust the recipe on the next update. No need to carry unnecessary commands, though in this case it wouldn't even fail I guess (just find nothing to replace, maybe).
You can find the results here, and the full recipe here, if you're curious :wink:

Should you already have changed it, please let me know so I adjust the recipe on the next update.

getByName has been replaced by findByName which simply returns null, that should fix building release without a config
(see https://github.com/Tommy-Geenexus/exif-eraser/commit/c3b18629cd09b308c3905b60ee3d76b8a9236220)

New release built fine and is RB, thanks!


Still getting network image failures

Hello,
I've been trying to setup a test to use this package for network image but I'm still getting the exception thrown.
Widget makeOther() {
  return MaterialApp(
    home: ProfilePage(),
  );
}

testWidgets('Profile Page', (WidgetTester tester) async {
      await mockNetworkImagesFor(
        () async => await tester.pumpWidget(
          makeOther(),
        ),
      );

I get the following exception thrown
══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
The following NetworkImageLoadException was thrown resolving an image codec:
HTTP request failed, statusCode: 400,

Any ideas on what's going wrong?

@campovski  Could you give an update to this?

I have updated the dependencies and hopefully version 2.0.1 should now work for you all since the tests are passing.
@xapatjb4 In case it still does not work for you, I would need more information about the ProfilePage() source in order to be able to assist you further.

I still have version ^1.1.0 because of other dependencies, but mine also doesn't work.

@SilkeNL On second thought you are right. The old version does not work with Flutter 2 and we do not plan to support it. The 1.1.0 version should only be used with legacy codebases, those using Flutter 1.

Gotcha, I have flutter 2 so closing issue since support is not planned

This still does not work for me (Flutter 3.3.10). It works if you run the tests using flutter test, but not using flutter run <test_file>. Even if you use the minimal example from the project description (which btw throws an error because async and await are missing there.


Writer XML encoding

Move the encoding schema "UTF-8" as an attribute of the WRITER class (by default UTF-8, but it can be modified in UTF-16).
See issue #298 for details.

Cleanup of open issues:
This topic is older than one year:  Unless someone comments that this topic should be kept as an open issue I'll close this in about two weeks time.

Please check my sample code at http://scn.sap.com/thread/3801086 showing problems with UTF-8 using ixml.

I understand that the issue is about rendering all Unicode characters, which has been solved by #743 and #757, so closing.


percentileCont() Function

please assign this to me. Im working on this

pleas assign me to this issue.


License on pypi incorrectly marked as GPLv3

see https://pypi.org/project/pygam/0.8.0/ under License

This issue does not seem to be resolved as a new version of pyGAM would need to be published to PyPi to pickup the change.


stm32g4: CANFD correct message_ram offset of can2 and can3

The dedicated message_ram area of the can instances starts directly after it's predecessor's one.
This commit fixes can2 and can3 support for stm32g4 series.
Fixes: #36075

This PR definitely fixes the problem, but I have no idea why!
The msg_sram is hard-wired, so there is no choice for the start address, but as mentioned by @ABOSTM, the start address from the RM has other values.

The RM has several inconsistencies regarding the size and start address of the msg ram.
Considering all statements in the RM I believe the values proposed in this PR should be correct.
On the one hand it states 1KB memory blocks and the start addresses as mentioned by @ABOSTM.
But on the other hand the following definitions object this:
44.1 FDCAN introduction
A 0.8-Kbyte message RAM per FDCAN instance implements filters, receive FIFOs, transmit
event FIFOs and transmit FIFOs.
In the dedicated message ram chapter (section 44.3.3):
... is configured to allocate up to 212 words in it. (which is exactly 0x350 bytes).
In case of multiple instances the RAM start address for the FDCANn is computed by end
address + 4 of FDCANn-1, and the FDCANn end address is computed by FDCANn start
address + 0x0350 - 4.
An example in the same section of the RM(with some edits of how I think it it meant to be):
FDCAN1:
– start address 0x0000
– end address 0x0350 0x034C (as in Figure 668)
FDCAN2:
– start address = 0x0350 0x034C (FDCAN1 end address) + 4 = 0x0354 0x0350
– end address = 0x0354 0x0350(FDCAN2 start address) + 0x0350 - 4 = 0x06A0 0x069C

I have now also checked against the hal_fdcan driver and can confirm that it uses the same definitions:
Size calculation:
https://github.com/STMicroelectronics/STM32CubeG4/blob/e762fe2ce800cf6c18a1868a3aabc7e9351751bd/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_fdcan.c#L236
with:
SRAMCAN_SIZE = sizeof(STD_FILTER) + sizeof(EXT_FILTER) + sizeof(RX_FIFO_0) + sizeof(RX_FIFO1) +  sizeof(TX_EVENT_FIFO) + sizeof(TX_FIFO_QUEUE) = (28*4 + 8*8 + 3*72 + 3*72 + 3*8 + 3*72) = 848 = 0x350
CAN instance address offset.
https://github.com/STMicroelectronics/STM32CubeG4/blob/e762fe2ce800cf6c18a1868a3aabc7e9351751bd/Drivers/STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_fdcan.c#L3399-L3412


MM-42344: Eliminate unnecessary tooltip divs added for links

Summary
This PR eliminates the unnecessary multiple tooltip container divs addition for links. With the changes, tooltip container div is only added on mouseover and removed on mouseleave
Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/19721
Jira ticket: https://mattermost.atlassian.net/browse/MM-42344
Screenshots
To be added
Release Note
NONE

Hello @sinansonmez,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

E2E tests not automatically triggered, because PR has no approval yet. Please ask a developer to review and then try again to attach the QA label.

Currently this PR only include my previous changes in original PR.
Could you please add "Setup Cloud Test Server" label. I would like to discuss some strange behaviour I see in this.
Maybe you can assign this to @hmhealey and @mickmister as they were the reviewer of my original PR

@hmhealey @mickmister I implemented my original solution here. Please see below my brief analysis about it.
When I started to think how to implement Harrison's suggestion mentioned in Jira ticket, I see some strange behaviour which I wanted to discuss with you:

flickering of tooltip is only happening on pull requests' links (mostly on open PRs and when you hover towards the end of the link)
on issues' links there is no flickering at all

Please see the screen recording below. You can also check yourself in the test server
I have two possible explanations / related comments on this which I would like to see what you think

This is happening because we are applying event listeners to all childNodes here. When I try to change and apply eventListeners to only first child, issues' links still work as expected but pull requests don't work anymore (i.e. no tooltip is shown and error is thrown because first child is undefined)
When I check the implementation of pull request tooltips in the plugin I don't see major difference compared to issues (except these lines). Am I missing something here?

Please let me know what do you think and any guidance would be really helpful
https://user-images.githubusercontent.com/37421564/176398694-d19ba02f-36b3-4918-ad8f-132a5f8527c7.mov

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

I am closing the PR, as I couldnt progress much compared to my solution in the original PR.


No way to interrupt PacketPeerUDP.wait()

Godot version: v3.2.stable.official
OS/device including version: macOS 10.15.3
Issue description:
I'm starting a new thread with PacketPeerUDP listening to specific port with wait. Unfortunately there is no way to tell it to stop because I want it to listen only in the right
time. I tried

Calling close
Calling listen with other port

Steps to reproduce:
var thread = Thread.new()
var socket = PacketPeerUDP.new()

func _ready():
    thread.start(self, "_do_on_bg")
    yield(get_tree().create_timer(1), "timeout") # Let the thread settle
    socket.close()
    socket.listen(0)
    thread.wait_to_finish() # Deadlocked forever

func _do_on_bg(_null):
    if socket.listen(789) != OK:
        print("Failed")
        return

    while socket.wait() == OK:
        print("Received connection")

Minimal reproduction project:
wait-repro.zip

I found a workaround. One can put a message (a death pill) to the socket
socket.set_dest_address("<IP_ADDRESS>", 789)
socket.put_packet("Time to stop".to_ascii())
...
while socket.wait() == OK:
    var data = socket.get_packet().get_string_from_ascii()
    if data == "Time to stop":
        return

The poison pill approach is likely the best we can do here. @Calinou you can probably close this

Marginally related but I think the same technique could be applied for killing a thread, worth documenting that too (I've never done this though). https://godotengine.org/qa/76386/is-it-possible-to-kill-a-thread


[CLI] GCS handler uses backslash as path separator under windows

Description
When adding artifact references to a GCS bucket, paths to the individual files within the bucket will be constructed using os.path.join, creating backslashes under windows instead of forward slashes. This causes problems further down the line, as GCS does not recognize backslashes and thus fails to identify the files.
Wandb features
I am using code presented in this article.

Run the following code:

import wandb

run = wandb.init(project="debug", job_type="upload")
# path to my remote data directory in Google Cloud Storage
bucket = "gs://<bucket_name>/<dir_name>"
# create a regular artifact
dataset_at = wandb.Artifact("debug", type="raw_data")
# creates a checksum for each file and adds a reference to the bucket
# instead of uploading all of the contents
dataset_at.add_reference(bucket)
run.log_artifact(dataset_at)

Check the artifact files on wandb.ai, they will have filepaths of the form gs://<bucket_name>/<dir_name>\<fname>

Possible fix
I solved the issue on my end by replacing all instances of os.path.join in this method to a concat with a forward slash. It might have unwanted side effects.
Environment

OS: Windows 10 Home ver 1803
Environment: Desktop
Python Version: 3.7.5
Wandb version: wandb==0.12.9

Hi @CorentinJ!
Thanks for pointing this out. I have created a ticket for our engineering team about this, and we should have a fix out for this soon. I'll let you know as soon as I have some news on the status of this ticket.
Thanks,
Ramit

Hi @CorentinJ!
This issue should now be resolved in our latest release of our SDK : wandb 0.12.16. Please let us know if you still find issues with this!
Thanks,
Ramit

Closing this issue out, if you have any other concerns please feel free to reopen this issue and we can continue the discussion!


SEO: home page needs a description

This isn't cool:

In an effort to resolve this, I think we can put put something on the home page by way of introduction.
WDYT of the following, @ElevnLi, @geezacoleman?

That looks good Joel!

Fixed


delete llvm.assume calls

PR changes:

Delete llvm.assume declaration and its calls: as llvm.assume will require SPV_KHR_expect_assume extension which is not supported by Vulkan at the moment. So, we delete it for now. llvm.assume is a compiler hint so should be safe to ignore. One of the CTS tests that was affected: basic/test_basic kernel_call_kernel_function.
Print a meaningful error when there is unsupported llvm intrinsic call or unhandled function declaration/definition: the current code will handle unsupported llvm intrinsic calls or unlinked function declarations by treating them as llvm::Constants and eventually will fail with ("unsupported Constant???") error. That should be handled so any future call for llvm intrinsic that is not supported or unlinked function declarations is identified.
Fix make_test.py for passing ir module to it
Catch the error when kernel argument have no meta data: This is to prevent segmentation fault when we use -cl-kernel-info option and kernel argument have no meta data.

Related issues

https://github.com/google/clspv/issues/712 : Not an example for llvm.assume but the failed function declaration in the issue example should give a more concise error message with this PR.

This contribution is being made by Codeplay on behalf of Samsung.

Looks good, but please look into the Windows build failures.


Invalid dropdown menu positioning for textarea when line-height is not set

This is what happens when the line-height is not set in textarea:

In such case the line-height is calculated by taking height of the cloned editor. By default textarea has 2 rows. This means that the calculated line-height is 2 times bigger than it should be. A fix for this issue is proposed in pull-request #144

I couldn't reproduce the issue. What browser are you using?

I checked this on Chrome and Edge. Actually I checked this out as you did and I got the same result - so it's not a matter of the browser. However, if you set line-height to unset the computed value is still in pixels, because it could be derived from other styles. But if you set it to normal, then the computed value is also normal and the issue can be reproduced.


pytest unit test fail in ludwig Docker container

Describe the bug
pytest unit test fails in Docker container built from ludwig Dockerfile.
To Reproduce
Steps to reproduce the behavior:

Bild Ludwig Docker image: cd ludwig &&  docker build  -t ludwig .
Run Ludwig docker container: docker run -it --rm  --entrypoint /bin/bash ludwig
Within the container execute the following:

cd /ludwig
pytest  -v tests/integration_tests/test_api.py

Expected behavior
The tests should have passed, instead of failing
Screenshots
root@a69758374059:/ludwig# pytest  -v tests/integration_tests/test_api.py
======================================================== test session starts =========================================================
platform linux -- Python 3.6.8, pytest-5.0.0, py-1.8.0, pluggy-0.12.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /ludwig
collected 1 item
tests/integration_tests/test_api.py::test_api_intent_classification ERROR                                                      [100%]
=============================================================== ERRORS ===============================================================
__________________________________________ ERROR at setup of test_api_intent_classification __________________________________________
file /ludwig/tests/integration_tests/test_api.py, line 72
def test_api_intent_classification(csv_filename):
E       fixture 'csv_filename' not found

  available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
  use 'pytest --fixtures [testpath]' for help on them.

/ludwig/tests/integration_tests/test_api.py:72
========================================================== warnings summary ==========================================================
/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py:15
/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
/usr/local/lib/python3.6/dist-packages/tensorflow/contrib/lite/python/init.py:26
/usr/local/lib/python3.6/dist-packages/tensorflow/contrib/lite/python/init.py:26: PendingDeprecationWarning: WARNING: TF Lite has moved from tf.contrib.lite to tf.lite. Please update your imports. This will be a breaking error in TensorFlow version 2.0.
_warnings.warn(WARNING, PendingDeprecationWarning)
-- Docs: https://docs.pytest.org/en/latest/warnings.html
================================================ 2 warnings, 1 error in 2.68 seconds =================================================
root@a69758374059:/ludwig# exit
Environment (please complete the following information):

OS: MacOS 10.14.5, Docker Desktop forMac <IP_ADDRESS>
Version
Python version: 3.6.8 (from ludwig Dockerfile)
Ludwig version: 0.1.2

*Additional context
I noticed PR #403 Commit 3533a4b removed the imports for the required pytest fixtures from tests/integration_tests/test_api.py, e.g.,
from tests.fixtures.filenames import csv_filename

Is there a different way to run the pytest tests?  If desired, I can submit a PR to add the missing imports.  I just need some guidance.

@jimthompson5802 good catch. Yeah, that happens because pycharm is not good at dealing with fixtures. Yes, it would be great if you could add a PR to add the deleted import.
Thanks a lot :)


Version 3.0.2

Landed in https://github.com/metarhia/impress/commit/df46a03e2f20edde89338ce51a0ff50ac2bf1554


Sketch mesure plugin not working - Sketch 52

just updated Sketch today (sketch 52)
after update, Measure plugin is no longer working.
any solution? thx

just updated Sketch today (sketch 52)
after update, Measure plugin is no longer working.
any solution? thx

Me and some friends are having the same issue.
When you try to export artboards, nothing happends. :( Help!

Same here.

Please update Measure to use with Sketch 52, many thanks.

Please update Measure to use with Sketch 52, many thanks.

I've just updated Measure but It doesn't work anyway. Has anyone solved this issue?

Mine was already updated (from the plugins manager) and it's still not working.

Temporary solution, but got 51.3 dmg here

Measure already updated but still not working

Same here - this is a great plug in .... would be nice to know how to solve the issue. I use the export feature to create the index.htm out of my files. I depend on it....

Mee too, with sketch 52 is broken

I´ve got the last version of measure and it still doesn't work. Hope be a
solucion soon
On Wed, Oct 3, 2018 at 10:51 AM Manuel Colombo<EMAIL_ADDRESS>wrote:

Mee too, with sketch 52 is broken
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/utom/sketch-measure/issues/469#issuecomment-426689516,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJ39YqxKim2LgKLaEoMq4wscG8kYbnFnks5uhNz9gaJpZM4XE5lF
.

--
A l b e r t o   A g u i l a r
  www.albertvision.com <http://www.albertvision.com>    |   Senior

UX/Visual Designer

having this issue too.

do they even response? how come they never reply?

do they even response? how come they never reply?

looks like it takes a few days to either reply or fix and reply

having the same issue, this is an important plugin for me.

same issue here!

Same issue. The work stopped. Please update!

Same issue! The work stopped! Please update!

I'd love to see an update for this plugin! thanks for your work

After update to Sketch 52 I can not make export  my works by plugin Sketch measure. Please, update!

Doesn't work with Sketch 52/52.1
After reading all the previous "Measure doesn't work with latest Sketch update" tickets, it looks like we should ALWAYS expect that Measure will take some time (hard to determine how long) to catch up with the most current Sketch update; that's just how it is, evidently.

@MacAndor Your my hero! Please keep working hard!

The last pull request is working for me

Temp fix available on my fork, created a pull request.

@MacAndor How can I get your fix? I downloaded the zip file from your github but that didn't do anything. Please help!

https://github.com/MacAndor/sketch-measure/archive/master.zip

@MacAndor Yea thats the one I installed. Not sure why its not working on my machine.

I gave it a try to fix it here:
Fix for Sketch v52 and v52.1 - With Inspector / Mark Property (and more) working
You can get the file from the fork. Give it a try and see if it works for you:
Repository
Download the zip file from the fork
I hope it helps someone out there :)

Is this fix intended to fix the Export feature as well?

@Roninnanaki: it should be. Did it work for you?

Is this fix intended to fix the Export feature as well?

For me, this fork doesn't work. After hitting the toolbar, sketch will crash.

@wearebeta thanks for reporting.
I'm guessing the crash happened when you used the toolbar to mark overlays?
I just pushed a fix for that. Please give it a try.
Download the latest zip file from the fork

do they even response? how come they never reply?

This is free open source software.  "They" is likely one person who was at work when you complained about the response time.  Which is why other free tools like Paddy are throwing the towel in.  Show some love and respect to those that save all of us time.  It's not their fault that Bohemian ships breaking changes with most releases.

@ellunium
thank you for your new updated file. Working fine now : ) Appreciated your help.

@ellunium you're a savior! I just downloaded the zip, ran the .sketchplugin file and replaced. Now it works. Thank god.

Please note, that there are now 11 Issues that basically say the same thing: Sketch Measure is broken with the latest releases of Sketch.
Posting yet another issue saying exactly the same thing IS NOT HELPFUL, so I'm leaving this message here so it cross-references all other issues currently present, and hopefully prevents others from filing yet another similar issue.
These issues which are all the same - and should be referencing this one - are #468, #471, #472, #473, #475, #476, #477, #479, #481, #482 and this one.
Sketch Measure developers: please review the fix from @ellunium, which might enable you to close these 11 issues at once.

@wearebeta thanks for reporting.
I'm guessing the crash happened when you used the toolbar to mark overlays?
I just pushed a fix for that. Please give it a try.
Download the latest zip file from the fork

Thanks!!! It works. Any way to donate?

@wearebeta the plugin menu has a Donate option to donate to the plugin's author (@utom).
Plugins > Sketch Measure > Donate

@wearebeta thanks for reporting.
I'm guessing the crash happened when you used the toolbar to mark overlays?
I just pushed a fix for that. Please give it a try.
Download the latest zip file from the fork

Thanks!!! It works. Any way to donate?

Unfortunately, It is not work

@wearebeta thanks for reporting.
I'm guessing the crash happened when you used the toolbar to mark overlays?
I just pushed a fix for that. Please give it a try.
Download the latest zip file from the fork

@ellunium This one worked for me when using "spec export" from my sketch library. Thanks!


Test is incomplete

💡 Summary
Flesh out the test_log_levels() test function so that it verifies that the correct log level has been assigned.
Motivation and context
As it stands, test_log_levels() would still pass if example.example.main() set the log level to DEBUG no matter what command-line arguments were passed to it..
See the discussion here.
Acceptance criteria

[ ] test_log_levels() verifies that the log level is assigned correctly.

Nice catch in the fallible nature of that test.


Triggers Chrome and half the world's AVs?

What is this new version doing that would cause half the world's AVs to flag it, and make Chrome refuse to download it with no option to continue at own risk?
https://www.virustotal.com/gui/file/2198c71f1bbf4809a1f4af58e0b11aac9c33edfee0be7ef29f6fe798dc7b6e8d/detection
v1.5 only triggers 3 AVs, and isn't flagged by Chrome.

Duplicate of #7


"Vâlcele" is listed in the drop-down menu

Description:
"Vâlcele" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Vâlcele" in the search bar.
Expected results
The location is listed in the drop-down menu as "Vâlcele, Bacău (Târgu Ocna)".


The time for gps.getSatXYZ(nav,1,arr) function

Hi @scivision  Thanks for your effort in this package.
when I use following function, I found that the output satellite position is not right. Because if I use the output satellite position to calculate the gps receiver's position,  gps receiver's position is wrong.
satpos1 = gps.getSatXYZ(nav,1,arr)
satpos2 = gps.getSatXYZ(nav,2,arr)
satpos3 = gps.getSatXYZ(nav,3,arr)

the parameter arr in function gps.getSatXYZ is the UTC time from .obs file? I use the following code to get the time for function gps.getSatXYZ.
arr_test = np.array([gps_receiver_time + datetime.timedelta(minutes=i) for i in range(2)])#make sure the length of arr_test is not 0

gps_receiver_time is the UTC time provided by .obs file.
and then compute satellite 3 position:
satellite_position=gps.getSatXYZ(nav,3,arr_test)

do you have any idea about this issue?
Best
Welson

I don't think there's a getSatXYZ in this package?

Hi， @scivision  sorry for this mistake.
the functionsatellite_position=gps.getSatXYZ(nav,3,arr_test) is acquired from another package, sorry for this .
Best
Welson


Allow .spec.postgresqlVersion in Cluster definition

Currently cloudnative-pg uses a clever convention to retrieve the postgres major version from its own image tag.
As a feature request, allow overriding this convention with an explicit configuration setting, for example, "postgresqlVersion". If specified, this setting would be used by validation code and other logic in place of the tag.
The motivation is a tool called Skaffold. For rapid iteration in dev mode, skaffold generates an image digest to use as a tag and pushes it directly to docker daemon. The image digest ensures that there is never an inconsistency where the kubernetes has the wrong version of an image. The cnpg webhook validation rejects these images.

Hi @aran
Yes, this is used to avoid using images 15 in a cluster that was created with version 14, that will produce a lots of issues, and it's not a minor problem that can be solved easily, major upgrades in PostgreSQL can come with lots of problems to solve, imagine if someone just put a different version (greater or lower) in the storage, that will be a big mess.
Do you have an idea on how to solve that issue? someone putting a version greater or lower than the one in the storage?
Turning this into a discussion
Best Regards!


Show git repository folder when inside a git repo

Trying to fix #141.
It shows the git project root folder and the folders inside.

I'm open for all feedback! Thanks!

Thanks for the feedback, that was what i was looking for. I have no experience with hg but will look into it once i got the git repo to work.

@sfarzy What is the current status of this PR? Can we exclude hg repo's for now and do that in a separate PR? Do you want it included? I have no experience with hg, so if you could help me on that part you can push it to this branch?

This PR is already great. Providing hg support into this would cover one more use case or we could add it later. Let's also wait for opinion from @denysdovhan.

@RolfKoenders Using  $var:t performs way better than basename. Please take a look at https://github.com/denysdovhan/spaceship-zsh-theme/issues/173#issue-243301420 and zsh modifiers

@sfarzy Cool! Will take a look!

@RolfKoenders what the progress with hg implementation?
P.S: This PR breaks the basic behavior, so it's gonna be released as a part of v3.0.

I'm gonna rewrite this at #148


Deployment UX

v1beta1.Deployment is not supported. This should be supported
v1beta2.Deployment is not supported. This should be supported
all of the fields from the different types above should get consolidated into our deployment object.
containers and other podTemplateSpec fields should be pulled up to the top level key in koki Short syntax
labels within the container should be pulled up into the top level label key (if the values are not the same, that is invalid spec anyways I believe - please verify this)
minReadySeconds should be called min_ready
progressDeadlineSeconds should be called progress_deadline
revisionHistoryLimit should be called max_revs
maxSurge should be called max_extra
maxUnavailable should be extracted from the formula (replicas - parallelism)
(int32) parallelism should be the inverse of maxUnavailable

"max_unavailable" has stronger meaning than "parallelism" in the context of rolling updates. The rest we should do as you've described.


Laravel 11.x Support

Hi can you add laravel 11 support?
No breaking changes expected, so only the composer.json needs an update!

Composer was updated!

Thanks a lot!


Using this in a Google environment

Feature Description
I have a client that is using GSuite Gmail and all phishing campaigns get flagged as "This message seems dangerous".  I know this is a good thing but the client wants to train employees. Is there any setting in KP that can bypass this?
Alternatives Solutions
I am also trying to look into allowing my campaign through GSuite as well.
Example Use Case

Getting past email filter is getting harder and harder every day it seems. I personally target gmail accounts when creating my phishing campaigns as they have one of the roughest ones to get the email to inbox.
There are a couple of plugins that have been designed to help lower the spam score of emails being sent. These plugins can be installed through the plugin manager from inside the client.
The first plugin is message padding. This will add random text in the plain text part of the email to pad it out.
Alternatively the second option, which I tend to use more often, is the message plain text which will strip out the html from your phish to create the plain text version. This causes both parts to match up closely as possible, thus lowering the spam score.
I also highly recommend reading this warroom blog about spam evasion
.
Other then that it is just trial and error to get your phish through your targets filter, which is beyond the scope of the Phishing Framework, and up to the creativity, passion and drive of the user.

Thanks wolfthefallen
It looks like message padding and message plaintext is no longer compatible with the newest version of KP. I will check out warrooms blog.

For the two Plugins you are probably missing a required package. If you hover over the compatbility label it will give you a pop over stating what you are missing

once you identify the missing package from the king-phisher folder use the pipenv install command to install the missing package. Or you can use the dev branch which will auto install missing packages for you.
/opt/king-phisher> pipenv install <package name>

Appreciate it.

So I installed the packages (bs3 and markovify) rebooted but still shows no.

Yeah @wolfthefallen that shouldn't be necessary any more. The latest version of King Phisher will install missing dependencies for you automatically when you try to install the plugin. If that's not working we'd need to see the debug logs to figure out why.

Where do I get the debug files from?

https://github.com/securestate/king-phisher/wiki/Frequently-Asked-Questions#how-do-i-generate-verbose-logging-output

What is the other way to install dependency other that pipenv?

Ya I cannot get the required package installed. Debug is not showing anything that I can see. I tried  "pipenv install markovify" and "pip install markovify".  As well as bs4.

can you please provide the output of the verbose log inside of three ``` at the beginning and end so it keeps its formatting correct.

'''root@KingServer:/opt/king-phisher# ./KingPhisherServer -f -L DEBUG server_config.yml
DEBUG    target diretory: /opt/king-phisher
INFO     checking for the pipenv environment
DEBUG    pipenv path: '/usr/local/bin/pipenv'
DEBUG    pipenv Pipfile: /opt/king-phisher/Pipfile
Loading .env environment variables…
DEBUG    king phisher version: 1.13.0-beta3 (rev: 0fb812ed5dfd) python version: 3.5.3
DEBUG    plugin dependency path: /root/.local/lib/king-phisher/python3.5/site-packages
INFO     using default ssl cert file '/etc/letsencrypt/live/aceparking.tech/fullchain.pem'
INFO     listening on <IP_ADDRESS>:80
INFO     listening on <IP_ADDRESS>:443 with ssl
INFO     serving files has been enabled
INFO     initializing database connection with driver postgresql
DEBUG    postgresql-setup was not found
DEBUG    postgresql service is already running via systemctl
DEBUG    current database schema version: 9 (latest)
DEBUG    connected to postgresql database: king_phisher
INFO     restored 0 valid sessions and skipped 0 expired sessions from the database
DEBUG    use pam service 'sshd' for authentication
DEBUG    forked an authenticating process with pid: 1231
INFO     the job manager has been started
INFO     adding new job with id: db5d3966-3db8-4cf2-b3e0-e0db38c01e46 and callback function: _maintenance
INFO     adding new job with id: 9cdcc9e2-1bcc-4e2f-8d37-fa6087e41143 and callback function: ping_all
DEBUG    web socket manager worker running in tid: 0x7fbd8ffe5700
DEBUG    initialized the table api dataset (schema version: 8)
INFO     including 4 custom http headers
INFO     server running in process: 1197 main tid: 0x7fbd9af2e700
INFO     dropped privileges to the nobody account
DEBUG    executing job with id: db5d3966-3db8-4cf2-b3e0-e0db38c01e46 and callback function: maintenance
DEBUG    running periodic maintenance tasks
DEBUG    executing job with id: 9cdcc9e2-1bcc-4e2f-8d37-fa6087e41143 and callback function: ping_all
DEBUG    <IP_ADDRESS>:35766 tid: 0x7fbd87fff700 running http request handler
DEBUG    calling RPC method rpc_version()
INFO     <IP_ADDRESS> "RPC /version HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35768 tid: 0x7fbd87fff700 running http request handler
DEBUG    received request with sequence number 0 and action 'authenticate'
DEBUG    sent request with sequence number 0 and action 'authenticate'
DEBUG    pam returned code: 0 reason: 'Success' for user sysadmin after 0.01 seconds
DEBUG    received response with sequence number 0
INFO     user sysadmin has successfully authenticated
DEBUG    sent response with sequence number 0
INFO     successful login request from <IP_ADDRESS> for user sysadmin
INFO     <IP_ADDRESS> "RPC /login HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35770 tid: 0x7fbd87fff700 running http request handler
INFO     <IP_ADDRESS> "GET //ws/events/json HTTP/1.1" 101 -
INFO     web socket has been connected
DEBUG    <IP_ADDRESS>:35772 tid: 0x7fbd877fe700 running http request handler
INFO     <IP_ADDRESS> "RPC /graphql HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35774 tid: 0x7fbd877fe700 running http request handler
INFO     <IP_ADDRESS> "RPC /config/get HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35776 tid: 0x7fbd877fe700 running http request handler
INFO     <IP_ADDRESS> "RPC /graphql HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35778 tid: 0x7fbd877fe700 running http request handler
INFO     <IP_ADDRESS> "RPC /graphql HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35780 tid: 0x7fbd877fe700 running http request handler
INFO     <IP_ADDRESS> "RPC /graphql HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35782 tid: 0x7fbd877fe700 running http request handler
DEBUG    calling RPC method rpc_events_subscribe('db-messages', attributes=['id', 'campaign_id'], event_types=['deleted', 'inserted', 'updated'])
INFO     <IP_ADDRESS> "RPC /events/subscribe HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35784 tid: 0x7fbd877fe700 running http request handler
DEBUG    calling RPC method rpc_events_subscribe('db-visits', attributes=['id', 'campaign_id'], event_types=['deleted', 'inserted', 'updated'])
INFO     <IP_ADDRESS> "RPC /events/subscribe HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35786 tid: 0x7fbd877fe700 running http request handler
DEBUG    calling RPC method rpc_events_subscribe('db-credentials', attributes=['id', 'campaign_id'], event_types=['deleted', 'inserted', 'updated'])
INFO     <IP_ADDRESS> "RPC /events/subscribe HTTP/1.1" 200 -
DEBUG    executing job with id: 9cdcc9e2-1bcc-4e2f-8d37-fa6087e41143 and callback function: ping_all
DEBUG    received message (len: 16 opcode: 0x0a fin: True)
DEBUG    processing pong (opcode: 0x0a) message
DEBUG    <IP_ADDRESS>:35788 tid: 0x7fbd877fe700 running http request handler
DEBUG    calling RPC method rpc_version()
INFO     <IP_ADDRESS> "RPC /version HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35790 tid: 0x7fbd877fe700 running http request handler
INFO     <IP_ADDRESS> "RPC /graphql HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35792 tid: 0x7fbd877fe700 running http request handler
INFO     <IP_ADDRESS> "RPC /graphql HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35794 tid: 0x7fbd877fe700 running http request handler
INFO     <IP_ADDRESS> "RPC /graphql HTTP/1.1" 200 -
DEBUG    <IP_ADDRESS>:35796 tid: 0x7fbd877fe700 running http request handler
INFO     <IP_ADDRESS> "RPC /graphql HTTP/1.1" 200 -
'''

Need your verbose logs from your king phisher client ./KingPhisher -L DEBUG with you going through the actions of trying to have the plugin installed through the plugin manager.

How do you install a plugin in the Plugin Manager?  I does not allow me to click on anything marked No.

Please provide me the first 20 lines of the verbose log out of the client when starting it, this will provide me the version and dependency versions you are currently using.

'''[root:/usr/share/king-phisher]# ./KingPhisher -L DEBUG
WARNING  it is not necessary to run the king phisher client as root
(main.py:83646): Gtk-WARNING **: 15:41:19.320: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "RegisterClient" with signature "ss" on interface "org.xfce.Session.Manager" doesn't exist
WARNING  /usr/lib/python3/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Passing one of 'on', 'true', 'off', 'false' as a boolean is deprecated; use an actual boolean (True/False) instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
WARNING  /usr/lib/python3/dist-packages/mpl_toolkits/basemap/init.py:1704: MatplotlibDeprecationWarning: The axesPatch function was deprecated in version 2.1. Use Axes.patch instead.
limb = ax.axesPatch
WARNING  /usr/lib/python3/dist-packages/mpl_toolkits/basemap/init.py:1707: MatplotlibDeprecationWarning: The axesPatch function was deprecated in version 2.1. Use Axes.patch instead.
if limb is not ax.axesPatch:
'''
This is all that comes up

run ./KingPhisher --version and please provide me the out put.. Looks like Kali did something weird again.

'''
root:/usr/share/king-phisher]# ./KingPhisher --version
WARNING  it is not necessary to run the king phisher client as root
(main.py:84397): Gtk-WARNING **: 15:48:31.133: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "RegisterClient" with signature "ss" on interface "org.xfce.Session.Manager" doesn't exist
WARNING  /usr/lib/python3/dist-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: Passing one of 'on', 'true', 'off', 'false' as a boolean is deprecated; use an actual boolean (True/False) instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
WARNING  /usr/lib/python3/dist-packages/mpl_toolkits/basemap/init.py:1704: MatplotlibDeprecationWarning: The axesPatch function was deprecated in version 2.1. Use Axes.patch instead.
limb = ax.axesPatch
WARNING  /usr/lib/python3/dist-packages/mpl_toolkits/basemap/init.py:1707: MatplotlibDeprecationWarning: The axesPatch function was deprecated in version 2.1. Use Axes.patch instead.
if limb is not ax.axesPatch:
'''

thank you, I am going to go beat on my Kali image and see if I can recreate this. Please make sure your system is fully up-to-date apt update && apt upgrade

Yes I have done this.
Should I use a clean Debian install as the client?

We support all operating systems located at: https://github.com/securestate/king-phisher/wiki/Advanced-Installation#install-script-supported-flavors
I believe the current issue is how Kali has packaged it for the their apt distributions. If you want to use Kali with the issues I am currently seeing, you will have to save off your server_config.yml file (If you are running both the client and the server off of the same machine). Remove King Phisher via apt then follow the simple install process located at: INSTALL.md .. Once installed with this method just move your server_config.yml into the new king-phisher folder (by default with the INSTALL.md method it will be at /opt/king-phisher)

No worries. Thanks

If you still have King Phisher installed through Kali's apt manager can you please provide the output from apt search king-phisher and grep version_info /usr/share/king-phisher/king_phisher/version.py


Colab support

Just a heads up there seems to be some trouble getting warp running on colab. Installation itself can be patched through this
!export CUDA_HOME=/usr/local/cuda-11.1
!git clone https://github.com/NVIDIA/warp
%cd /content/warp
!python build_lib.py --cuda_path /usr/local/cuda-11.1
!pip install -e .

But there still seems to be an issue with running kernels that call an external function (wp.func), which I'm trying to track down.

warp works fine in Google Colab now:
!pip install warp-lang
import warp
warp.init()


New logo

Develop a new logo in a square format (not a rectangle as it is today).

https://landerapp.com/blog/wp-content/uploads/2018/08/tags.jpg
https://c8.alamy.com/comp/J2R81M/large-pile-of-various-clothing-brand-label-tags-removed-from-newly-J2R81M.jpg

I dont think this deserves discussions at this stage. Closing on. We can always reopen this if needed.


Change matplotlib (+ numpy) to optional extra

Remove need for matplotlib by default (and NumPy, transitively), per #222.
To enable matplotlib usage, install via
pip install sphinx-needs[matplotlib]
# equivalent via [all]
pip install sphinx-needs[all]

Add a note about needbar/needpie also needing matplotlib in pyproject.toml (not visible till now)
Needbar and needpie directives both need matplotlib, but could fail imports if the optional dependency is not installed. Accomodate failure by raising a specific and useful error message via ImportError
Directive-specific docs updated with versionchanged warning about that dependency now being optional.
High impact, high priority

[X] Evaluate impact of feature-gating on test suite (disable/run tests differently? tests for optional import?)
[X] Check with maintainers what level of documentation would be good enough to announce this big (breaking) change
[X] Set up local dev environment to run tests in (see comments)

Cosmetic, minor

[X] Confirm the optional/extra lib name "matplotlib" is OK (I considered needpie for feature that needed it, but then discovered needbar also uses it, and more may use it in future)
[X] Confirm with maintainers the importerror message is good enough
[X] Confirm with maintainers the directive docs entry is good enough
[X] Check with maintainers what to do about implicit (transitive) dependency on NumPy (see comment in needbar.py)
[X] Update the nextversion message in directives for versionchanged block
[x] Add docs/changelog.rst entry
[x] Add myself to Authors

Revisited this: Rebased the whole thing (without plantuml side), and tried to use it as a future user would.
Created https://github.com/OverkillGuy/sphinx-needs-test, a sample repo from my personal cookiecutter (soon to be published), which first adds just sphinx-needs WITHOUT matplotlib, from my rebased PR.
I demonstrate in README how installing sphinx-needs as-is doesn't pull matplotlib/numpy but still builds a doc with requirements. That's tagged v0.2.0 on main branch.
Then, in the use-matplotlib branch of the repo, I first (bd1acb8) add a needpie, which fails building (no matplotlib but we're attempting to use it), and in the next commit (95d103f) I use the matplotlib optional, and buildign docs works again.
Having not done this usage test before, I spotted that merely importing needbar.py and needpie.py would crash the whole app, as the process_needbar function etc are used in any case.
Adapted the checks accordingly: At import time, failure to import now sets a global MATPLOTLIB_AVAILABLE=False, and a new function error_on_missing_matplotlib(), injected at key matplotlib usage locations, raises as expected when MATPLOTLIB_AVAILABLE is False.
Overall I feel like this (finally) demonstrates that this PR is mature enough on the code side to at least be usable. I'd like to bring the PR into more thorough review.

Thanks for the changes.
I agree that this PR should be merged soon.
We discussed also internally, if some functions should be moved to an external package, like sphinx-needs-analyzis or so. But no decision here.
So I think this feature can be merged. Will do a review next week, as I have no possibility to do it right now.

Anything that's blocking this? Willing to help if needed.

Making a pass at rebasing right now, sending soon.

Rebased locally, tests all red for now: Looks like a couple core places in the codebase are importing matplotlib since I made the PR.
Investigating, hopefully this can be cordonned off as before, nothing major...

Right, that's me rebased, errors fixed (had to shuffle about the error message a bit), and tested, see procedure below.
Ready for review!
Test procedure
Using https://github.com/OverkillGuy/sphinx-needs-test.
on branch= main (version 0.2.0) DOES NOT use matplotlib, observe the make install docs works
Then check out commit bd1acb8 which ADDS needbar use, causing crash like so:

And check out 95d103f aka use-matplotlib branch, which adds the extras= ["matplotlib"], restoring the make docs feature.

Applied all comments, ready for rereview.
Took the assumption that this is a breaking change = 2.0 is the "versionchanged" when the directives were optional.

Good catch on last mention of sphinxcontrib-needs in PR.
However grepping for the old name reveals a LOT of links pointing to previous github repo, previous docs URLs etc. Do we care?

Hi @OverkillGuy, are you planning to tackle this or do you need help?

Hey, I tried to add tests but I'm bumping against the existing layout that doesn't make much sense. Definitely need help.
Points I notice:

noxfile's run_tests target tries to make test but still does pip install -r docs/requirements.txt, which just doesn't look like a necessary step (still fails many tests if I don't).
same run_tests target also brings in manually different versions of sphinx + docutils, which again sound like should be wrapped in a func to abtract the docs/requirements.txt + these.
The docs/requirements.txt import matplotlib explicitly, despite these being required by no obvious docs target, instead needed in the main app's main deps (and now optional)

So, I need input on what to do:

It feels right to remove matplotlib from docs/requirements.txt (but it breaks EVERYTHING)
It feels right to remove all this docs/requirements.txt from the run_tests bit (but it breaks even more things)
I would like to add a test on the normal run_test target that tries to import needbar/needpie, get an importerror and call that a PASS
I would like to add a new noxfile target that says "install main deps + matplotlib extra" and run another kind of test that tries to import needbar/needpie and SUCCEED.

Any advice on that?

Heya @OverkillGuy  as you can see I'm making quite a few changes at the moment 😅 but I'll circle back round and have a look at this PR soon cheers
But yeh I agree the poetry/nox setup etc can be a bit of a pain lol

Hi @OverkillGuy , I did you a favor and merged master, see over at: https://github.com/OverkillGuy/sphinxcontrib-needs/pull/1
Regarding your questions I have some suggestions:
Conditional test execution with matplotlib installed: use a pytest marker pytest.mark.matplotlib on the relevant tests. The following should be marked from my tests (fail with an ImportError):

test_complex_builders.py::test_doc_complex_latex
test_complex_builders.py::test_doc_complex_singlehtml
test_needpie.py::test_doc_build_html
test_needpie.py::test_sphinx_api_needpie
test_needs_filter_data.py::test_doc_needs_filter_code
test_needpie_with_zero_needs.py::test_needpie_with_zero_needs
test_needs_filter_data.py::test_doc_needs_filter_data_html

Configure nox to do two separate testruns (with nox.parametrize):

install matplotlib, run pytest
don't install matplotlib, run pytest -m "not matplotlib"

I am not sure about the need for doc/requirements.txt for the tests, perhaps @ubmarco or @chrisjsewell can shed some light. This step should probably be skipped for the no-matplotlib testrun. Alternatively you can replace the call with
pip install $(grep -ivE "matplotlib" docs/requirements.txt)
to install everything in that file except matplotlib.
Don't hesitate to ask in case of more questions.

Here's another idea if you want to be more specific. Instead of wrapping the entire function function you can do this.
import importlib
from contextlib import nullcontext

import pytest

@pytest.fixture(scope="session", name="raises_on_missing_matplotlib")
def fixture_raises_on_missing_matplotlib():
    try:
        importlib.import_module("matplotlib")
        return nullcontext()
    except ImportError as err:
        return pytest.raises(ImportError)

def test_something(raises_on_missing_matplotlib):
  with raises_on_missing_matplotlib:
     print()

It seems like we're not making any progress here. Shall I submit a draft with the proposed fixture?

It seems like we're not making any progress here. Shall I submit a draft with the proposed fixture?

Sorry, things have come up on my side, compounded with lack of vision on my side for the nox/testing, I'd appreciate a submission to get me going in the right direction yes!
Apologies to make this a burden, I hoped to deliver this turnkey

may be superceded by #1061

#1061 was merged, doing same. Thanks for all of your patience!


fix watchdir delete not work

fix watchdir delete not work
fix readdir kv.key not decode_base64

Many thanks.


Invalid Syntax in index.py

Is this only for me? if yes then can anyoen tell how to resolve this. pls help.

Update your Python version

ok thanks i got it.


add undo executor for multi update sql

What would you like to be added:

Why is this needed:

大佬 这里

这是 @陈逸韬 大佬

pls add me to assignees

don in
https://github.com/seata/seata-go/pull/481


[Feature Request] Synchronize the header clock with the computer clock

Is your feature request related to a problem? Please describe.
Right now the header clock updates every 60 seconds based on the time the page was loaded. This causes the clock to be off sync with the computer clock. And if several tablets are running lovelace with compact-custom-header, their header clock gets updated at different times.
Describe the solution you'd like
I propose making the following changes to "compact-custom-header.js":
After line 1027 add the line:
let seconds = date.getSeconds();
Then change line 1041 from:
window.setTimeout(() => updateClock(clock, clockFormat), 60000);
to:
window.setTimeout(() => updateClock(clock, clockFormat), (60 - seconds) * 1000);
This will cause the clock to update at '00' seconds, causing it to change in sync with the computer clock, and with all the other tablets.

Might be overthinking it, but maybe something like this:
    if (sync) {
      window.setTimeout(() => updateClock(clock, clockFormat), 60000);
    } else {
      window.setTimeout(() => {
        sync = true;
        updateClock(clock, clockFormat)
      }, (60 -  date.getSeconds()) * 1000);
    }

That way the first update happens at zero and the timeout still only runs every 60. It'll be in the next release, thanks!

That's not necessary (you are overthinking it).
The first update will always happen when the page loads and the clock gets displayed, since the "setTimeout" happens after the initial "updateClock".
The second update happens at the '00' seconds, because the difference between 60 and the page load seconds is how many seconds are left till '00'. So if the page loads at '55' seconds, the second update will happen 5 seconds later (60 - 55 = 5).
Every other update after that, happens at 60 seconds minus the time it took to process the "updateClock" (usually less than 1 second), so it will always update at '00'.
I have used that algorithm before several times, plus I made the changes on my local copy, and it works just fine by itself.

If you only sync it initially, then add 60 seconds every time afterwards, you start accumulating the process time of "updateClock" to the 60 seconds on every pass, and eventually it will start to drift off again.
This way the "next" update is calculated on every update, so when the the accumulated time adds up to 1 second, it will trigger at 59 seconds, and it will re-sync automatically.

You're right, totally overthinking it. Was thinking it wasn't recalculating each time. Thanks!

By the way, great add-on. Thanks.


Add Podverse

[x] Project URL:
[x] Update contents.json instead of README
[x] One project per pull request
[x] Screenshot included
[x] Avoid iOS or open-source in description as it is assumed
[x] Use this commit title format if applicable: Add app-name by @github-username
[x] Use approved format for your entry

Please let me know if there is anything else we should add, and thank you for maintaining this list!

Thank you!!


incorrect behavior in input-number component

in increase and decrease methods of the component we want to update 'currentValue' of the component but the code instead is updating 'value' prop.
increase () {     ...     const newValue = this.value || 0;   // this is a wrong, it must be this.currentValue     ... }
the same is true for decrease() method as well
in line 160 and 167
ElementUI version
1.2.1
OS/Browers version
macOS/Chrome 56
Steps to reproduce
just create a  component and use it you will see that it does not work.

Are you encountering any bug of InputNumber? You could reproduce it here if you are.

if you don't include the value prop or  equally v-model on the  component it would not work correctly. see it for yourself.
http://jsfiddle.net/swt0q9vm/

All form component should bind v-model or at least value. Not just InputNumber.


Allow accordian panel contents to be elements

Allow accordian panel contents to be elements instead of just strings

Current coverage is 99.73% (diff: 100%)

Merging #991 into master will not change coverage

@@             master       #991   diff @@
==========================================
  Files           140        140
  Lines          2304       2304
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           2298       2298
  Misses            6          6
  Partials          0          0

Powered by Codecov. Last update c3bcaa3...d2d3ca3

Looks good, thanks much!

Released in<EMAIL_ADDRESS>


[Bug] Alerting profiles event_type_filters change every time.

Similar to https://github.com/dynatrace-oss/terraform-provider-dynatrace/issues/61 but for event type filters.
~ resource "dynatrace_alerting_profile" "NAME" {
        id           = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
        # (2 unchanged attributes hidden)

      ~ event_type_filters {

          ~ predefined_event_filter {
              ~ event_type = "PROCESS_HIGH_GC_ACTIVITY" -> "OSI_HIGH_CPU"
                # (1 unchanged attribute hidden)
            }
        }
      ~ event_type_filters {

          ~ predefined_event_filter {
              ~ event_type = "PROCESS_MEMORY_RESOURCE_EXHAUSTED" -> "OSI_LOW_DISK_SPACE"
                # (1 unchanged attribute hidden)
            }
        }
      ~ event_type_filters {

          ~ predefined_event_filter {
              ~ event_type = "OSI_HIGH_CPU" -> "PROCESS_MEMORY_RESOURCE_EXHAUSTED"
                # (1 unchanged attribute hidden)
            }
        }
      ~ event_type_filters {

          ~ predefined_event_filter {
              ~ event_type = "OSI_LOW_DISK_SPACE" -> "PROCESS_HIGH_GC_ACTIVITY"
                # (1 unchanged attribute hidden)
            }
        }

        # (3 unchanged blocks hidden)
    }

is it possible to apply the same fix that was applied in Issue #61 to event_type_filters or a possible solution for this?

Fixed with todays upcoming release

This issue has been fixed with Release v1.11.0.


Improved Download Functionality

I am currently working on a function that deals with downloads. This will include functions, configs and archives from wither github of other external urls.
This is a little complicated however once complete will make dealing with files much easier.

:+1:

Getting back to working on the development branch after some busy times for me. The last main hurdle is the  details function. This needs a overhaul. Once the new more streamlined development branch is released I can focus on adding new features and servers

:+1:  :+1:  !
I'll be able to give a hand for testing/debugging if needed, probably in around a week.


sealer run kubernetes:v1.20.15-test success but cluster not work

What happen?
I run sealer run registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes:v1.20.15-test as what #1763 said, and sealer
didn't report error. But node is NotReady, and there is no pod in kube-system
[root@k8s-master-xx ~]# kubectl get no
NAME            STATUS     ROLES                  AGE   VERSION
k8s-master-xx   NotReady   control-plane,master   17m   v1.20.15
[root@k8s-master-xx ~]# kubectl get all -A
NAMESPACE         NAME                                   READY   STATUS             RESTARTS   AGE
tigera-operator   pod/tigera-operator-558ccbcb84-kw5m7   0/1     CrashLoopBackOff   5          17m

NAMESPACE     NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)                  AGE
default       service/kubernetes   ClusterIP   <IP_ADDRESS>    <none>        443/TCP                  17m
kube-system   service/kube-dns     ClusterIP   <IP_ADDRESS>   <none>        53/UDP,53/TCP,9153/TCP   17m

NAMESPACE     NAME                        DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR            AGE
kube-system   daemonset.apps/kube-proxy   0         0         0       0            0           kubernetes.io/os=linux   17m

NAMESPACE         NAME                              READY   UP-TO-DATE   AVAILABLE   AGE
kube-system       deployment.apps/coredns           0/2     0            0           17m
tigera-operator   deployment.apps/tigera-operator   0/1     1            0           17m

NAMESPACE         NAME                                         DESIRED   CURRENT   READY   AGE
kube-system       replicaset.apps/coredns-86dfcb4f6f           2         0         0       17m
tigera-operator   replicaset.apps/tigera-operator-558ccbcb84   1         1         0       17m

I noticed there are containers:
[root@k8s-master-xxx ~]# docker ps -a
CONTAINER ID        IMAGE                    COMMAND                  CREATED             STATUS                     PORTS               NAMES
6b8e6a9c350c<PHONE_NUMBER>7e             "operator"               4 minutes ago       Exited (1) 2 minutes ago                       k8s_tigera-operator_tigera-operator-558ccbcb84-kw5m7_tigera-operator_f7f6f86b-b06f-40c3-a592-69cfde3eb4e5_5
3497aa205c57        sea.hub:5000/pause:3.2   "/pause"                 19 minutes ago      Up 19 minutes                                  k8s_POD_tigera-operator-558ccbcb84-kw5m7_tigera-operator_f7f6f86b-b06f-40c3-a592-69cfde3eb4e5_0
03b7120e5ab7        0369cf4303ff             "etcd --advertise-cl…"   19 minutes ago      Up 19 minutes                                  k8s_etcd_etcd-k8s-master-32_kube-system_b5968553636a25d26d0b4e4bbd25e688_0
30ef77cd7034        323f6347f5e2             "kube-apiserver --ad…"   19 minutes ago      Up 19 minutes                                  k8s_kube-apiserver_kube-apiserver-k8s-master-32_kube-system_a0487ceb0b1e32c438ccce1e98c59882_0
c9d7c4bfe48f        9155e4deabb3             "kube-scheduler --ad…"   19 minutes ago      Up 19 minutes                                  k8s_kube-scheduler_kube-scheduler-k8s-master-32_kube-system_5be81472e5ae6e5467d525de0ebc71b5_0
5696753da03c        d6296d0e06d2             "kube-controller-man…"      20 minutes ago      Up 20 minutes                                  sealer-registry

Error logs of container 6b8e6a9c350c as follow:
E1012 07:53:46.154472       1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.22.3/tools/cache/reflector.go:167: Failed to watch *v1.BGPConfiguration: failed to list *v1.BGPConfiguration: bgpconfigurations.crd.projectcalico.org is forbidden: User "system:serviceaccount:tigera-operator:tigera-operator" cannot list resource "bgpconfigurations" in API group "crd.projectcalico.org" at the cluster scope
E1012 07:54:28.101046       1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.22.3/tools/cache/reflector.go:167: Failed to watch *v1.BGPConfiguration: failed to list *v1.BGPConfiguration: bgpconfigurations.crd.projectcalico.org is forbidden: User "system:serviceaccount:tigera-operator:tigera-operator" cannot list resource "bgpconfigurations" in API group "crd.projectcalico.org" at the cluster scope
{"level":"error","ts":1665561306.0906863,"logger":"controller.apiserver-controller","msg":"Could not wait for Cache to sync","error":"failed to wait for apiserver-controller caches to sync: timed out waiting for cache to be synced","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:221\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/manager/internal.go:696"}
{"level":"error","ts":1665561306.0917573,"logger":"controller.tigera-installation-controller","msg":"Could not wait for Cache to sync","error":"failed to wait for tigera-installation-controller caches to sync: timed out waiting for cache to be synced","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:221\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/manager/internal.go:696"}
{"level":"error","ts":1665561306.091953,"msg":"error received after stop sequence was engaged","error":"failed to wait for tigera-installation-controller caches to sync: timed out waiting for cache to be synced"}
{"level":"error","ts":1665561306.0919867,"msg":"error received after stop sequence was engaged","error":"leader election lost"}
{"level":"error","ts":1665561306.0921135,"logger":"setup","msg":"problem running manager","error":"failed to wait for apiserver-controller caches to sync: timed out waiting for cache to be synced"}

There is a deployment of coredns:
NAMESPACE         NAME                              READY   UP-TO-DATE   AVAILABLE   AGE
kube-system       deployment.apps/coredns           0/2     0            0           17m

I'm confused why coredns isn't running, and whether it cause cluster not work?
Relevant log output?
output of sealer run:

[root@k8s-master-xx ~]# sealer run registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes:v1.20.15-test -m xx.xx.xxx.xx
93a4ec00160fd76e5da279eb4bc787cdf716e8112ab10386e3cf62e25625610f
+ image_dir=/var/lib/sealer/data/my-cluster/rootfs/scripts/../images
···
+ docker info
Client:
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.8.1-docker)
  scan: Docker Scan (Docker Inc., v0.17.0)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 21
 Server Version: 19.03.14-sealer
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: systemd
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ea765aba0d05254012b0b9e595e995c09186427f
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.17.1-1.el7.elrepo.x86_64
 Operating System: CentOS Linux 7 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 7.772GiB
 Name: k8s-master-xx
 ID: FXHB:4RFC:B43I:TMBY:T4XP:7YPR:RKOL:O2RX:2E4M:N4CS:5GJF:LHD7
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: true
 Insecure Registries:
  <IP_ADDRESS>/8
 Live Restore Enabled: true

+ load_images
···
2022-10-12 15:03:37 [INFO] [kube_certs.go:307] API server altNames: {map[apiserver.cluster.local:apiserver.cluster.local k8s                             -master-32:k8s-master-32 kubernetes:kubernetes kubernetes.default:kubernetes.default kubernetes.default.svc:kubernetes.defau                             lt.svc kubernetes.default.svc.cluster.local:kubernetes.default.svc.cluster.local localhost:localhost] map[xx.xx.xxx.xx:xx.xx.xxx.xx <IP_ADDRESS>:<IP_ADDRESS> <IP_ADDRESS>:<IP_ADDRESS> xxxxxxxxxxxx <IP_ADDRESS>:<IP_ADDRESS> ::1:::1]}

2022-10-12 15:03:37 [INFO] [kubeconfig.go:266] [kubeconfig] Writing "admin.conf" kubeconfig file

2022-10-12 15:03:37 [INFO] [kubeconfig.go:266] [kubeconfig] Writing "controller-manager.conf" kubeconfig file

2022-10-12 15:03:37 [INFO] [kubeconfig.go:266] [kubeconfig] Writing "scheduler.conf" kubeconfig file

2022-10-12 15:03:37 [INFO] [kubeconfig.go:266] [kubeconfig] Writing "kubelet.conf" kubeconfig file

+ disable_firewalld
···
# set by ack-distro
···
* Applying /etc/sysctl.d/99-sysctl.conf ...
···
+ systemctl enable kubelet
2022-10-12 15:03:37 [INFO] [init.go:155] start to init master0...

2022-10-12 15:03:38 [INFO] [init.go:182] join command is: kubeadm join  apiserver.cluster.local:6443 --token clegla.86r53vde                             jt9cm12w \
    --discovery-token-ca-cert-hash sha256:0b2080327d677ea0e09d261ec3e9024804046246d826b2f11b457b1ed2a09a09 \
    --control-plane --certificate-key 6aeae2959d81436531013433871284fd2e5230f117d77af14607785c50328707

2022-10-12 15:03:38 [INFO] [runtime.go:116] Succeeded in creating a new cluster, enjoy it!

customresourcedefinition.apiextensions.k8s.io/bgpconfigurations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/bgppeers.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/blockaffinities.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/caliconodestatuses.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/clusterinformations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/felixconfigurations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/globalnetworkpolicies.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/globalnetworksets.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/hostendpoints.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipamblocks.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipamconfigs.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipamhandles.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ippools.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/ipreservations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/kubecontrollersconfigurations.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/networkpolicies.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/networksets.crd.projectcalico.org created
customresourcedefinition.apiextensions.k8s.io/apiservers.operator.tigera.io created
customresourcedefinition.apiextensions.k8s.io/imagesets.operator.tigera.io created
customresourcedefinition.apiextensions.k8s.io/installations.operator.tigera.io created
customresourcedefinition.apiextensions.k8s.io/tigerastatuses.operator.tigera.io created
namespace/tigera-operator created
podsecuritypolicy.policy/tigera-operator created
serviceaccount/tigera-operator created
clusterrole.rbac.authorization.k8s.io/tigera-operator created
clusterrolebinding.rbac.authorization.k8s.io/tigera-operator created
deployment.apps/tigera-operator created
installation.operator.tigera.io/default created
apiserver.operator.tigera.io/default created
53f0cbaf126916fd6051e5c211e9fec8121024f8956a503298957dbce3c205bd

Error logs of tigera-operatoras container follow:
E1012 07:53:46.154472       1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.22.3/tools/cache/reflector.go:167: Failed to watch *v1.BGPConfiguration: failed to list *v1.BGPConfiguration: bgpconfigurations.crd.projectcalico.org is forbidden: User "system:serviceaccount:tigera-operator:tigera-operator" cannot list resource "bgpconfigurations" in API group "crd.projectcalico.org" at the cluster scope
E1012 07:54:28.101046       1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.22.3/tools/cache/reflector.go:167: Failed to watch *v1.BGPConfiguration: failed to list *v1.BGPConfiguration: bgpconfigurations.crd.projectcalico.org is forbidden: User "system:serviceaccount:tigera-operator:tigera-operator" cannot list resource "bgpconfigurations" in API group "crd.projectcalico.org" at the cluster scope
{"level":"error","ts":1665561306.0906863,"logger":"controller.apiserver-controller","msg":"Could not wait for Cache to sync","error":"failed to wait for apiserver-controller caches to sync: timed out waiting for cache to be synced","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:221\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/manager/internal.go:696"}
{"level":"error","ts":1665561306.0917573,"logger":"controller.tigera-installation-controller","msg":"Could not wait for Cache to sync","error":"failed to wait for tigera-installation-controller caches to sync: timed out waiting for cache to be synced","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:221\nsigs.k8s.io/controller-runtime/pkg/manager.(*controllerManager).startRunnable.func1\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/manager/internal.go:696"}
{"level":"error","ts":1665561306.091953,"msg":"error received after stop sequence was engaged","error":"failed to wait for tigera-installation-controller caches to sync: timed out waiting for cache to be synced"}
{"level":"error","ts":1665561306.0919867,"msg":"error received after stop sequence was engaged","error":"leader election lost"}
{"level":"error","ts":1665561306.0921135,"logger":"setup","msg":"problem running manager","error":"failed to wait for apiserver-controller caches to sync: timed out waiting for cache to be synced"}

Some logs of etcd container:
[root@k8s-master-32 ~]# docker logs -f 03b7120e5ab7
[WARNING] Deprecated '--logger=capnslog' flag is set; use '--logger=zap' flag instead
2022-10-12 07:37:59.808765 I | etcdmain: etcd Version: 3.4.13
2022-10-12 07:37:59.808852 I | etcdmain: Git SHA: ae9734ed2
2022-10-12 07:37:59.808863 I | etcdmain: Go Version: go1.12.17
2022-10-12 07:37:59.808873 I | etcdmain: Go OS/Arch: linux/amd64
2022-10-12 07:37:59.808884 I | etcdmain: setting maximum number of CPUs to 4, total number of available CPUs is 4
[WARNING] Deprecated '--logger=capnslog' flag is set; use '--logger=zap' flag instead
2022-10-12 07:37:59.809130 I | embed: peerTLS: cert = /etc/kubernetes/pki/etcd/peer.crt, key = /etc/kubernetes/pki/etcd/peer.key, trusted-ca = /etc/kubernetes/pki/etcd/ca.crt, client-cert-auth = true, crl-file =
2022-10-12 07:37:59.813810 I | embed: name = k8s-master-xx
2022-10-12 07:37:59.813860 I | embed: data dir = /var/lib/etcd
2022-10-12 07:37:59.813884 I | embed: member dir = /var/lib/etcd/member
2022-10-12 07:37:59.813938 I | embed: heartbeat = 100ms
2022-10-12 07:37:59.813958 I | embed: election = 1000ms
2022-10-12 07:37:59.813968 I | embed: snapshot count = 10000
2022-10-12 07:37:59.813992 I | embed: advertise client URLs = https://xx.xx.xxx.xx:2379
2022-10-12 07:37:59.835252 I | etcdserver: starting member fb0e721c0902c955 in cluster 3ff442b65d352e96
raft2022/10/12 07:37:59 INFO: fb0e721c0902c955 switched to configuration voters=()
raft2022/10/12 07:37:59 INFO: fb0e721c0902c955 became follower at term 0
raft2022/10/12 07:37:59 INFO: newRaft fb0e721c0902c955 [peers: [], term: 0, commit: 0, applied: 0, lastindex: 0, lastterm: 0]
raft2022/10/12 07:37:59 INFO: fb0e721c0902c955 became follower at term 1
raft2022/10/12 07:37:59 INFO: fb0e721c0902c955 switched to configuration voters=(18090522217929689429)
2022-10-12 07:37:59.838139 W | auth: simple token is not cryptographically signed
2022-10-12 07:37:59.849918 I | etcdserver: starting server... [version: 3.4.13, cluster version: to_be_decided]
2022-10-12 07:37:59.852807 I | etcdserver: fb0e721c0902c955 as single-node; fast-forwarding 9 ticks (election ticks 10)
raft2022/10/12 07:37:59 INFO: fb0e721c0902c955 switched to configuration voters=(18090522217929689429)
2022-10-12 07:37:59.856996 I | etcdserver/membership: added member fb0e721c0902c955 [https://<IP_ADDRESS>:2380] to cluster 3ff442b65d352e96
2022-10-12 07:37:59.860546 I | embed: ClientTLS: cert = /etc/kubernetes/pki/etcd/server.crt, key = /etc/kubernetes/pki/etcd/server.key, trusted-ca = /etc/kubernetes/pki/etcd/ca.crt, client-cert-auth = true, crl-file =
2022-10-12 07:37:59.861316 I | embed: listening for metrics on http://<IP_ADDRESS>:2381
2022-10-12 07:37:59.861566 I | embed: listening for peers on xx.xx.xxx.xx:2380
raft2022/10/12 07:38:00 INFO: fb0e721c0902c955 is starting a new election at term 1
raft2022/10/12 07:38:00 INFO: fb0e721c0902c955 became candidate at term 2
raft2022/10/12 07:38:00 INFO: fb0e721c0902c955 received MsgVoteResp from fb0e721c0902c955 at term 2
raft2022/10/12 07:38:00 INFO: fb0e721c0902c955 became leader at term 2
raft2022/10/12 07:38:00 INFO: raft.node: fb0e721c0902c955 elected leader fb0e721c0902c955 at term 2
2022-10-12 07:38:00.040257 I | etcdserver: setting up the initial cluster version to 3.4
2022-10-12 07:38:00.042315 N | etcdserver/membership: set the initial cluster version to 3.4
2022-10-12 07:38:00.042555 I | etcdserver/api: enabled capabilities for version 3.4
2022-10-12 07:38:00.042662 I | etcdserver: published {Name:k8s-master-32 ClientURLs:[https://<IP_ADDRESS>:2379]} to cluster 3ff442b65d352e96
2022-10-12 07:38:00.043648 I | embed: ready to serve client requests
2022-10-12 07:38:00.045547 I | embed: ready to serve client requests
2022-10-12 07:38:00.049823 I | embed: serving client requests on xx.xx.xxx.xx:2379
2022-10-12 07:38:00.053566 I | embed: serving client requests on <IP_ADDRESS>:2379
2022-10-12 07:38:23.188645 W | etcdserver: read-only range request "key:\"/registry/services/endpoints/default/kubernetes\" " with result "range_response_count:1 size:420" took too long (270.622163ms) to execute
2022-10-12 07:38:28.512699 W | etcdserver/api/etcdhttp: /health error; QGET failed etcdserver: request timed out (status code 503)
2022-10-12 07:38:28.515693 W | wal: sync duration of 1.75577417s, expected less than 1s
2022-10-12 07:38:28.622703 W | etcdserver: read-only range request "key:\"/registry/leases/kube-system/kube-scheduler\" " with result "range_response_count:1 size:489" took too long (1.694819186s) to execute
2022-10-12 07:38:28.623125 W | etcdserver: request "header:<ID:14507646683098849265 > lease_revoke:<id:495583cb20fb1e4f>" with result "size:28" took too long (106.64124ms) to execute
2022-10-12 07:38:28.623956 W | etcdserver: read-only range request "key:\"/registry/serviceaccounts/kube-system/node-controller\" " with result "range_response_count:1 size:242" took too long (1.691472226s) to execute
2022-10-12 07:38:28.624189 W | etcdserver: read-only range request "key:\"/registry/health\" " with result "range_response_count:0 size:5" took too long (601.18423ms) to execute
2022-10-12 07:38:37.513856 I | etcdserver/api/etcdhttp: /health OK (status code 200)
2022-10-12 08:05:31.942537 W | etcdserver: request "header:<ID:14507646683098861153 username:\"kube-apiserver-etcd-client\" auth_revision:1 > txn:<compare:<target:MOD key:\"/registry/leases/kube-system/kube-controller-manager\" mod_revision:3539 > success:<request_put:<key:\"/registry/leases/kube-system/kube-controller-manager\" value_size:441 >> failure:<request_range:<key:\"/registry/leases/kube-system/kube-controller-manager\" > >>" with result "size:16" took too long (386.806927ms) to execute

Some logs of apiserver:
W1012 15:38:04.705755       1 genericapiserver.go:425] Skipping API batch/v2alpha1 because it has no resources.
W1012 15:38:04.752292       1 genericapiserver.go:425] Skipping API discovery.k8s.io/v1alpha1 because it has no resources.
W1012 15:38:04.792462       1 genericapiserver.go:425] Skipping API node.k8s.io/v1alpha1 because it has no resources.
W1012 15:38:04.828482       1 genericapiserver.go:425] Skipping API rbac.authorization.k8s.io/v1alpha1 because it has no resources.
W1012 15:38:04.849886       1 genericapiserver.go:425] Skipping API scheduling.k8s.io/v1alpha1 because it has no resources.
W1012 15:38:04.878260       1 genericapiserver.go:425] Skipping API storage.k8s.io/v1alpha1 because it has no resources.
W1012 15:38:04.888204       1 genericapiserver.go:425] Skipping API flowcontrol.apiserver.k8s.io/v1alpha1 because it has no resources.
W1012 15:38:04.910303       1 genericapiserver.go:425] Skipping API apps/v1beta2 because it has no resources.
W1012 15:38:04.910415       1 genericapiserver.go:425] Skipping API apps/v1beta1 because it has no resources.
I1012 15:38:10.073795       1 crdregistration_controller.go:111] Starting crd-autoregister controller
I1012 15:38:10.074081       1 shared_informer.go:240] Waiting for caches to sync for crd-autoregister
E1012 15:38:10.161120       1 controller.go:152] Unable to remove old endpoints from kubernetes service: StorageError: key not found, Code: 1, Key: /registry/masterleases/<IP_ADDRESS>, ResourceVersion: 0, AdditionalErrorMsg:
E1012 15:38:21.351620       1 customresource_handler.go:669] error building openapi models for installations.operator.tigera.io: ERROR $root.definitions.io.tigera.operator.v1.Installation.properties.spec.properties.componentResources.items.<array>.properties.resourceRequirements.properties.limits.additionalProperties.schema has invalid property: anyOf
ERROR $root.definitions.io.tigera.operator.v1.Installation.properties.spec.properties.componentResources.items.<array>.properties.resourceRequirements.properties.requests.additionalProperties.schema has invalid property: anyOf
ERROR $root.definitions.io.tigera.operator.v1.Installation.properties.spec.properties.nodeUpdateStrategy.properties.rollingUpdate.properties.maxSurge has invalid property: anyOf
ERROR $root.definitions.io.tigera.operator.v1.Installation.properties.spec.properties.nodeUpdateStrategy.properties.rollingUpdate.properties.maxUnavailable has invalid property: anyOf
ERROR $root.definitions.io.tigera.operator.v1.Installation.properties.status.properties.computed.properties.componentResources.items.<array>.properties.resourceRequirements.properties.limits.additionalProperties.schema has invalid property: anyOf
ERROR $root.definitions.io.tigera.operator.v1.Installation.properties.status.properties.computed.properties.componentResources.items.<array>.properties.resourceRequirements.properties.requests.additionalProperties.schema has invalid property: anyOf
ERROR $root.definitions.io.tigera.operator.v1.Installation.properties.status.properties.computed.properties.nodeUpdateStrategy.properties.rollingUpdate.properties.maxSurge has invalid property: anyOf
ERROR $root.definitions.io.tigera.operator.v1.Installation.properties.status.properties.computed.properties.nodeUpdateStrategy.properties.rollingUpdate.properties.maxUnavailable has invalid property: anyOf

What you expected to happen?
sealer run successfully and cluster works properly
How to reproduce it (as minimally and precisely as possible)?
sealer run registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes:v1.20.15-test -m xx.xx.xxx.xx

Anything else we need to know?
No response
What is the version of Sealer you using?
{"gitVersion":"unknown","gitCommit":"50b1c7aa","buildDate":"2022-10-12 12:00:38","goVersion":"go1.17.7","compiler":"gc","platform":"linux/amd64"}
What is your OS environment?
CentOS Linux 7
What is the Kernel version?
Linux 5.17.1-1.el7.elrepo.x86_64
Other environment you want to tell us?

Cloud provider or hardware configuration:
Install tools:
Others:

@jsparter ,could you pls to check the content kubeadm.yaml  cat /etc/kubernetes/kubeadm.yaml | grep PodSecurityPolicy

@kakaZhou719
[root@k8s-master-xx ~]# cat /etc/kubernetes/kubeadm.yaml | grep PodSecurityPolicy
    enable-admission-plugins: PodSecurityPolicy,NodeRestriction

oh, if we set PodSecurityPolicy in ClusterConfiguration at kubeadm.yaml, this admission plugin will restrict  the pod creation. pls update you cluster image and try again.

oh, if we set PodSecurityPolicy in ClusterConfiguration at kubeadm.yaml, this admission plugin will restrict the pod creation. @Stevent-fei already update this cluster image, pls update you cluster image and try again.

@kakaZhou719 pull the same image, and can not make calico running. there is operator's log
E1013 02:44:35.832437       1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.22.3/tools/cache/reflector.go:167: Failed to watch *v1.BGPConfiguration: failed to list *v1.BGPConfiguration: bgpconfigurations.crd.projectcalico.org is forbidden: User "system:serviceaccount:tigera-operator:tigera-operator" cannot list resource "bgpconfigurations" in API group "crd.projectcalico.org" at the cluster scope
E1013 02:44:58.665221       1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.22.3/tools/cache/reflector.go:167: Failed to watch *v1.BGPConfiguration: failed to list *v1.BGPConfiguration: bgpconfigurations.crd.projectcalico.org is forbidden: User "system:serviceaccount:tigera-operator:tigera-operator" cannot list resource "bgpconfigurations" in API group "crd.projectcalico.org" at the cluster scope

and if edit the clusterrole for bgpconfigurations, still not working:
{"level":"error","ts":1665629324.9539669,"logger":"controller.tigera-installation-controller","msg":"Reconciler error","name":"tigera-operator-token-frnml","namespace":"tigera-operator","error":"Could not resolve CalicoNetwork IPPool and kubeadm configuration: IPPool <IP_ADDRESS>/10 is not within the platform's configured pod network CIDR(s) [<IP_ADDRESS>/16]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"}
{"level":"error","ts":1665629325.0432544,"logger":"controller_installation","msg":"ResourceReadError","Request.Namespace":"","Request.Name":"calico","ResourceReadError":"Error querying installation","error":"Could not resolve CalicoNetwork IPPool and kubeadm configuration: IPPool <IP_ADDRESS>/10 is not within the platform's configured pod network CIDR(s) [<IP_ADDRESS>/16]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"}
{"level":"error","ts":1665629325.043346,"logger":"controller.tigera-installation-controller","msg":"Reconciler error","name":"calico","namespace":"","error":"Could not resolve CalicoNetwork IPPool and kubeadm configuration: IPPool <IP_ADDRESS>/10 is not within the platform's configured pod network CIDR(s) [<IP_ADDRESS>/16]","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.7/pkg/internal/controller/controller.go:214"}

oh, if we set PodSecurityPolicy in ClusterConfiguration at kubeadm.yaml, this admission plugin will restrict the pod creation. @Stevent-fei already update this cluster image, pls update you cluster image and try again.

@kakaZhou719 I pulled this image again, but I found that imageId dosen't change, and the problem still here
REPOSITORY                                              TAG             IMAGE ID       CREATED        SIZE
registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes   v1.20.15-test   93a4ec00160f   28 hours ago   865 MB