View.propTypes has been deprecated

Hi,
View.propTypes has been deprecated in RN 0.44.
Warning: View.propTypes has been deprecated and will be removed in a future version of ReactNative. Use ViewPropTypes instead.
The file:
react-native-swipe-list-view/components/SwipeRow.js
The code:
/**
* Styles for the parent wrapper View of the SwipeRow
*/
style: View.propTypes.style,
Please fix it, thank you very much!
Regards,
Williams Soon

Seems to be important in my opinion ! I don't like very much having an error in the console.
Can someone please fix it ?

This is fixed and will be release in the next version

Fixed in v0.4.2


Enforce black formatting

Enforce black formatting
Run pytest on push on default branch & pull request

we will check it. thanks.

good. thanks.

Test.yml content a special function to download TA lib and I'm not sure right now if the new test methodology performs this download or not on Linux. can you please confirm ? Thanks

I sent the previous consent to quick And forgot to say thank you for the great work.


WIP — update basic order flow to avoid allocating unnecessary memory

Here is at least one more edit that is needed:
This head of the event event also needs to be lifted up (lower in the memory region):
// Derive pointer to start of OrderFulfilled event data.
let eventDataPtr :=
    add(
        OrderFulfilled_baseOffset,
        shl(
            OneWordShift,
            calldataload(
                BasicOrder_additionalRecipients_length_cdPtr // <--- need to change this as well
            )
        )
    )

made the suggested change @Saw-mon-and-Natalie — still seeing failures however 🙃

Also for restricted orders pre and post hook we can reuse the same memory region for spent and received items without copying that region again. Just need to rewrite the memory before the region and make sure to allocate 3 word slots after that region for the order hashes and the 0 length extra data. It should be done in a different PR though.


Docs: Fix DarkLightMode button out of sync

Description

Live version: If you're in light mode and you refresh, it'll make you switch to the light theme again to go to Dark or System.
This fixes it so the actual mode is loaded correctly from _userPreferences instead of just whether or not dark mode is enabled.
Could have literally just been one line:
DarkModeToggle = _userPreferences.DarkLightTheme;

But I wanted to do some refactoring
How Has This Been Tested?

visually
Types of changes

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

https://github.com/MudBlazor/MudBlazor/assets/7112040/0985f5f6-60cf-49b5-82c1-291192846911
Checklist

[X] The PR is submitted to the correct branch (dev).
[X] My code follows the code style of this project.
[ ] I've added relevant tests.

Actually I will just merge since it's only docs, don't think we need two approvals for such obvious bug fixes.
FYI: @henon


Implement unchecked variants of Mat::at* methods

With the exception of 3d lookups, since we don't have a good way
to check the size of >2d matrices.

All you points are valid, we will deal with this at some point


Can it be used for Commercial purposes?

Pretty much as the question says - Can it be used Freely for Commercial purposes?

Yes, as per Apache 2.0 license


bump aws-sdk-* gems for aws-sigv4 compatibility

Description
Bump the aws gems versions.
Issues Resolved
https://github.com/chef-cookbooks/aws/issues/386
Misc
I looked through the changelog, I'm having a hard time finding what would break.
I'm going the version in this branch in our infrastructure and report back but we're not using every resource in this cookbook.
Thanks for reviewing @majormoses

No issues with our fork (but we're not using every single resource, so ymmv).

Cool I should have some time this evening to do some testing, merge, and release this (as well as other unreleased changes).


Add LineChart Component

Hello, Thanks for providing the good open source for us.
I added a line chart component, and it would be a pleasure for me if you review this source and merge it.
Have a good day!

@AnSavvides I removed unnecessary comments and added LineChart Example! Please review the source. :D


Installation of AppImage failed

Hi,
I use lastversion for install some apps, who not provide packages.
On a Fedora 37, I have lastversion installed with pip, with Python version 3.11.3.
lastversion --version
lastversion 2.4.15, up to date

When I launch with root the command lastversion -y install jgraph/drawio-desktop
It begin to download the appimage of the software but when the download is finished, I have this error :
Downloaded drawio-x86_64-21.2.8.AppImage: : 159712.0KB [00:25, 6243.35KB/s]
Traceback (most recent call last):
  File "/usr/local/bin/lastversion", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/lastversion/lastversion.py", line 597, in main
    return install_app_image(app_images[0], install_name=args.repo)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/lastversion/lastversion.py", line 385, in install_app_image
    os.chmod(app_file_name, 0o755)  # skipcq: BAN-B103
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/root/Applications/jgraph/drawio-desktop'

I have checked if the github prefix is in cause with :
lastversion -y install drawio-desktop
Downloaded drawio-x86_64-21.2.8.AppImage: : 159712.0KB [00:26, 5925.68KB/s]
Traceback (most recent call last):
  File "/usr/local/bin/lastversion", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/lastversion/lastversion.py", line 597, in main
    return install_app_image(app_images[0], install_name=args.repo)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/lastversion/lastversion.py", line 385, in install_app_image
    os.chmod(app_file_name, 0o755)  # skipcq: BAN-B103
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/root/Applications/drawio-desktop'

If I test to install Mattermost in the same way, I get :
lastversion -y install mattermost/desktop
Downloaded mattermost-desktop-5.3.1-linux-x86_64.AppImage: : 103264.0KB [00:19, 5367.79KB/s]
Traceback (most recent call last):
  File "/usr/local/bin/lastversion", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/lastversion/lastversion.py", line 597, in main
    return install_app_image(app_images[0], install_name=args.repo)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/lastversion/lastversion.py", line 385, in install_app_image
    os.chmod(app_file_name, 0o755)  # skipcq: BAN-B103
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/root/Applications/mattermost/desktop'

Why they would going to /root/Applications? It's not in this place AppImage need to be installed.

I've understood what's changed, I was surprised that I was using AppImages, I prefer packages.
These two applications have made AppImages available that they didn't have before. So lastversion took the AppImages instead of the rpm.
On https://github.com/jgraph/drawio-desktop/releases/tag/v21.2.8 or https://github.com/mattermost/desktop/releases/tag/v5.3.1
lastversion use AppImage instead of RPM.
Which option is need to specify which installation method we need between rpm and AppImage?
And for the /home//Application for AppImage, I suggest that lastversion create the directory if not exist.

It's seem --filter 'rpm' works to specify which package we want.
Thanks

lastversion --having-asset "~\.rpm" --filter rpm --assets https://github.com/jgraph/drawio-desktop should be more reliable way to achieve this. (as in to say "give me only releases which have RPM files and give me RPM files in the latest release). Without --having-asset it might fail if the RPM asset have not been published for the latest release.

Hi,
I have test with this command but it download a wrong file for another architecture:
lastversion --having-asset "~\.rpm" --filter rpm --assets -y install https://github.com/jgraph/drawio-desktop
OR
lastversion --having-asset "~.+x86_64-.+\.rpm" --filter rpm --assets -y install https://github.com/jgraph/drawio-desktop

This result of the system cannot install rpm for aarch64 version.
Dernière vérification de l’expiration des métadonnées effectuée il y a 1:23:55 le lun. 24 juil. 2023 13:18:46.
drawio-aarch64-21.6.5.rpm                                                                                5.0 MB/s |  73 MB     00:14
drawio-x86_64-21.6.5.rpm                                                                                5.1 MB/s | 103 MB     00:20
Erreur :
 Problème: requêtes conflictuelles
  - package draw.io-21.6.5-1.aarch64 from @commandline does not have a compatible architecture
(essayez d’ajouter « --skip-broken » pour ignorer les paquets non installables)

It's a bug or I miss something in the filter or instruction?


Add support for Incognito mode

Hello, Kudos to the team of rn-pdf-reader-js I love it!.
I wanted to ask that since this lib uses WebView,  will it be possible to add support for incognito mode?. Cause am trying to stop users from taking screenshots some pdf's, If is possible I will be willing to do the PR myself if the team is too busy to do that.

What do you mean exactly?
I wonder to understand what is an incognito mode...

You are able to specify any WebView props, please read the README


Update code documentation of ImageBackground component

Fixes https://github.com/MLH-Fellowship/react-native/issues/188
Summary
The PR is part of an effort to update the code comments to match the current documentation on the React Native website. The project is a part of MLH fellowship program and involves automatic generation of the website docs from code comments and flow types as the end result.
To learn more about the project you can visit the project wiki:

Project details
RN Docs Standards

Link to the documentation(the source of truth):

ImageBackground.md

Changes

Update the title and prop description from docs.
Remove unnecessary * from the code comments.
Add Snack player example specified in the docs to the code comments.
Cap comments to 80 characters.

Changelog
[Internal]
Test Plan
All changes are made to the code comments and thus there is no need for testing.

Thanks for this contribution, @ayushjainrksh, and apologies for not getting around to it until now. This MLH-Fellowship project has been abandoned so we're going to close this PR to focus on active ones. If you feel this is an error or if you'd like to pick this up again, please let me know!


split auto crawler and API; try fix mem leak

Indexer still has mem leak (but much less than before). And it will auto restart when the mem limit is reached.

The crawler that start with HTTP server should exist only one at a time. So add a new Deployment with replicas: 1 for the crawler.

So only the crawler will has mem leak

add pprof for debugging mem leak

@Songkeys


TikToken.EncodingForModel("gpt-3.5-turbo") hangs when context is a WPF appplication.

I have a WPF C# application that uses
 TikToken tikToken = TikToken.EncodingForModel("gpt-3.5-turbo");
and will hand, even after getting a 200 http status when fetching
https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken
Using my same library in a Console context doesn't hang.

what can be happening in the WPF context?
is there a way to bypass the download of cl100k_base.tiktoken all the time?

I don't know what WPF is and this library is not C#. Maybe you're using some unofficial fork?

Sorry - this was supposed to be in TiktokenSharp (C#) nuget package.


Add tf.linalg.qr()

FEATURE
This is moved from tfjs-layers, with improvements to the completeness of the API and parity with Python tensorflow's tf.linalg.qr().
Fixes https://github.com/tensorflow/tfjs/issues/15

This change is

Review status: :shipit: complete! 1 of 1 LGTMs obtained

Comments from Reviewable

Review status: :shipit: complete! 2 of 1 LGTMs obtained

src/ops/linalg_ops.ts, line 158 at r1 (raw file):

  @operation
  private static qr2d(x: Tensor2D, fullMatrices = false): [Tensor2D, Tensor2D] {

if this is internal, make this a non-static private method

Comments from Reviewable

Review status: :shipit: complete! 2 of 1 LGTMs obtained

src/ops/linalg_ops.ts, line 158 at r1 (raw file):
Previously, dsmilkov (Daniel Smilkov) wrote…
if this is internal, make this a non-static private method

Done.

Comments from Reviewable


"Valea Roșie" is listed in the drop-down menu

Description:
"Valea Roșie" 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 "Valea Roșie" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Valea Roșie, CĂLĂRAȘI (Mitreni)".


Update README and supported list

Please answer these questions before submitting pull request

Why submit this pull request?

[ ] Bug fix

[ ] New feature provided

[ ] Improve performance

Related issues

Bug fix

Bug description.

How to fix?

New feature or improvement

Describe the details and related test reports.

Add link to SkyWalking .NET Core Agent

Coverage remained the same at 27.012% when pulling c8dcbcbb08cb49f71486ae70d9f8d9b01170e005 on liuhaoyang:add_netcore into b0d6231022e91a8aa55aa743b666ce5914a8958d on apache:master.


Correct usage of testing.T

Signed-off-by: Kevin Earls<EMAIL_ADDRESS>This fixes #423 We should get t on a per test case basis rather than on a per suite basis.  Otherwise test suites will terminate on the first failure and not run all test cases.

@objectiser @pavolloffay Please review

I could set it in SetupTest.  The only downside of that would be we'd still have to use a per-package variable, and that would rule out running tests in parallel if we ever wanted to.
I don't think their doc says anything about this.  In their doc the one example they show uses suite.T() explicitly.  We could do that too, but it would make the code a bit more lengthy.
Let me know what you think.

@kevinearls I think use the per package variable for now with SetupTest, and if we ever want to make the tests run in parallel we can tackle the problem then.


Issue : (Draft) Enable inflight event configuration on Python writer API.

Change log description

Enable a configurable number of inflight events to be written by the Python writer.

Purpose of the change
Fixes #TBD
What the code does

Create a oneshot reciever holder which tracks multiple oneshot receivers tracking every inflight event.
Ensure the users can configure the number of inflight events in the Python writer.

How to verify it
All the existing and newly added tests should pass.

Codecov Report

Merging #309 (9faa9bc) into master (8e50816) will increase coverage by 0.00%.
The diff coverage is n/a.

:exclamation: Current head 9faa9bc differs from pull request most recent head c8f213c. Consider uploading reports for the commit c8f213c to get more accurate results

@@           Coverage Diff           @@
##           master     #309   +/-   ##
=======================================
  Coverage   68.76%   68.76%
=======================================
  Files          26       26
  Lines        6159     6160    +1
=======================================
+ Hits         4235     4236    +1
  Misses       1924     1924

Impacted Files
Coverage Δ

src/lib.rs
88.23% <ø> (ø)

config/src/lib.rs
94.08% <0.00%> (+0.03%)
:arrow_up:


add api doc

Fixes #51

Looks good on first impressions. Although, I am wondering - couldn't we have used an automated tool like TypeDoc for this? That way it would also be super easy to keep it up to date when any changes are made to the code...

Looks good on first impressions. Although, I am wondering - couldn't we have used an automated tool like TypeDoc for this? That way it would also be super easy to keep it up to date when any changes are made to the code.
Without automation, files like this often get out of date over time as it's easier to forget to update it. We use TypeDoc in Ocean.js and it works pretty well there.

@jamiehewitt15 here was set the task by @alexcos20  to create API.md
from my experience - I always use manual writing of docs, even if it is a swagger, for several reasons

trying to generate documentation from TypeScript types has never worked well, often libraries contain any types or complex variant types with complex structure that cannot be parse properly, especially generic types
things like OpenApi and others don't work with socket protocols, and if you use your own byte protocol, it's better to forget about it


Fix forge_experiment refs in full 3.0.0 changelog entry

Erroneously used set_experiment_guidelines, which had been
renamed to forge_experiment

Pull Request Test Coverage Report for Build 786

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 94.074%

Totals

Change from base Build 784:
0.0%

Covered Lines:
4667

Relevant Lines:
4961

💛  - Coveralls


A way to add a plausible.io analytics script

Is your feature request related to a problem? Please describe.
Hi, I was wondering if we could add a plausible.io script for some analytics with something like this
<script defer data-domain="nn21.kissu.io" src="https://plausible.io/js/plausible.js"></script>

I do get the following error if I try it in slides.md

Tags with side effect (

Nvm, I guess that creating an index.html at the root of the project with this is far from enough!
<head>
  <script defer data-domain="nn21.kissu.io" src="https://plausible.io/js/plausible.js"></script>
</head>

<body>
</body>


Python version requirement?

Hi,
I'm using genomicranges with python 3.8, and it's giving me this error:
    import genomicranges
  File "/home/nsheff/.local/lib/python3.8/site-packages/genomicranges/__init__.py", line 18, in <module>
    from .GenomicRanges import GenomicRanges
  File "/home/nsheff/.local/lib/python3.8/site-packages/genomicranges/GenomicRanges.py", line 15, in <module>
    from biocframe import BiocFrame
  File "/home/nsheff/.local/lib/python3.8/site-packages/biocframe/__init__.py", line 18, in <module>
    from .BiocFrame import BiocFrame
  File "/home/nsheff/.local/lib/python3.8/site-packages/biocframe/BiocFrame.py", line 5, in <module>
    from biocgenerics.colnames import colnames as colnames_generic
  File "/home/nsheff/.local/lib/python3.8/site-packages/biocgenerics/__init__.py", line 19, in <module>
    from .combine_seqs import combine_seqs
  File "/home/nsheff/.local/lib/python3.8/site-packages/biocgenerics/combine_seqs.py", line 6, in <module>
    from biocutils import is_list_of_type
  File "/home/nsheff/.local/lib/python3.8/site-packages/biocutils/__init__.py", line 19, in <module>
    from .match import match
  File "/home/nsheff/.local/lib/python3.8/site-packages/biocutils/match.py", line 10, in <module>
    ) -> list[Union[int, None]]:
TypeError: 'type' object is not subscriptable

I believe this will not be a problem in python3.9, since they changed the way the typing stuff works and added in list as a top-level type. Is your intention to only support python3.9+ ? If so, is there a way to specify a minimum python version in the package setup, etc? Right now python3.8 is not end-of-life, so this has caused me some confusion.
I think you could switch to using List and use from typing import List on python3.8 and it would retain compatibility.

Thanks @nsheff for reporting this issue. I've updated the type hints to use List from typing instead. Let me know if you continue to have this issues, 0.0.4 should be going out once the ci/cd build succeeds!
On the next iteration across all packages, I'll setup tests across different python versions.

Thanks, this solved it.


args in ParameterizedScedule do no obey input ordering

Information

Qiskit Terra version:v0.12
Python version:3.7
Operating system:Mojave

What is the current behavior?
If passing a callable to a Parameterized schedule with signature arguments f(b, a) where the arguments are not ordered alphabetically, calling parameterize_schedule(b_inst,a_inst) will result in f(a_inst,b_inst)` being called.
The current implementation of ParameterizedSchedule has always been considered temporary as the aim has always been to incorporate parameters like a QuantumCircuit, however, these were not ready at the time of development. Regardless we should still correct this bug for the time being while #3384 is being developed.
Steps to reproduce the problem
Add this to test.python.pulse.test_schedule
def test_out_of_order_parameters(self):
        """Test parameterized schedule doesn't fail when parameters out of order."""
        def test_fun(b, a):
            sched = Schedule()
            sched += FrameChange(a)(DriveChannel(0))
            sched += FrameChange(b)(DriveChannel(0))
            return sched

        ref_sched = Schedule()
        ref_sched += FrameChange(1)(DriveChannel(0))
        ref_sched += FrameChange(0)(DriveChannel(0))

        par_sched = ParameterizedSchedule(test_fun, parameters=['b', 'a'])

        self.assertEqual(ref_sched, par_sched.bind_parameters(0, 1))

What is the expected behavior?
If passing a callable to a Parameterized schedule with signature arguments f(b, a) where the arguments are not ordered alphabetically, calling parameterize_schedule_inst(b_inst,a_inst) should result in f(b_inst, a_inst)` being called.
Suggested solutions

@nkanazawa1989 do you think you could have a look and see if this is trivial or requires a bit more work?

I found the reason and I'll fix.

can be closed


Update Sky's README for Observatory "getting started"

From @sethladd on May 8, 2015 1:11
https://github.com/domokit/sky_sdk/blob/master/README.md
cc @johnmccutchan
Copied from original issue: domokit/mojo#151

@sethladd Is this obsolete?

I think so.


feat: update the cloning process

These minor changes help the newcomers to clone the repo without having the issue instead of configuring ssh one.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hi @LiuChangFreeman ,
Can you please check out this issue https://github.com/hypertrons/hypertrons-crx-website/issues/10


Add files via upload

Added --union-grn parameter to ananse scripts

Added "--union-grn" flag implementation in develop branch.


'Predict' object has no attribute 'new_signature'.

I'm getting this error when running MIPRO:
AttributeError: 'Predict' object has no attribute 'new_signature'. Did you mean: 'signature'?

This is how I run MIPRO:
            teleprompter = dspy.teleprompt.MIPRO(metric = great_tweet_metric, verbose=True)
            kwargs = dict(num_threads=16, display_progress=True, display_table=0)
            tweet_generator_compiled = teleprompter.compile(tweet_generator, trainset=trainset,  num_trials=2, max_bootstrapped_demos=4, max_labeled_demos=5, eval_kwargs=kwargs, requires_permission_to_run=False)

More output:
  0%|                                             | 0/50 [00:00<?, ?it/s]2024-06-06T01:00:54.964938Z [error    ] Failed to run or to evaluate example Example({'reference_text': '---\nsidebar_position: 2\n---\n\n# retrieve.ChromadbRM\n\n### Constructor\n\nInitialize an instance of the `ChromadbRM` class, with the option to use OpenAI\'s embeddings or any alternative supported by chromadb, as detailed in the official [chromadb embeddings documentation](https://docs.trychroma.com/embeddings).\n\n```python\nChromadbRM(\n    collection_name: str,\n    persist_directory: str,\n    embedding_function: Optional[EmbeddingFunction[Embeddable]] = OpenAIEmbeddingFunction(),\n    k: int = 7,\n)\n```\n\n**Parameters:**\n- `collection_name` (_str_): The name of the chromadb collection.\n- `persist_directory` (_str_): Path to the directory where chromadb data is persisted.\n- `embedding_function` (_Optional[EmbeddingFunction[Embeddable]]_, _optional_): The function used for embedding documents and queries. Defaults to `DefaultEmbeddingFunction()` if not specified.\n- `k` (_int_, _optional_): The number of top passages to retrieve. Defaults to 7.\n\n### Methods\n\n#### `forward(self, query_or_queries: Union[str, List[str]], k: Optional[int] = None) -> dspy.Prediction`\n\nSearch the chromadb collection for the top `k` passages matching the given query or queries, using embeddings generated via the specified `embedding_function`.\n\n**Parameters:**\n- `query_or_queries` (_Union[str, List[str]]_): The query or list of queries to search for.\n- `k` (_Optional[int]_, _optional_): The number of results to retrieve. If not specified, defaults to the value set during initialization.\n\n**Returns:**\n- `dspy.Prediction`: Contains the retrieved passages, each represented as a `dotdict` with schema `[{"id": str, "score": float, "long_text": str, "metadatas": dict }]`\n\n### Quickstart with OpenAI Embeddings\n\nChromadbRM have the flexibility from a variety of embedding functions as outlined in the [chromadb embeddings documentation](https://docs.trychroma.com/embeddings). While different options are available, this example demonstrates how to utilize OpenAI embeddings specifically.\n\n```python\nfrom dspy.retrieve.chromadb_rm import ChromadbRM\nimport os\nimport openai\nfrom chromadb.utils.embedding_functions import OpenAIEmbeddingFunction\n\nembedding_function = OpenAIEmbeddingFunction(\n    api_key=os.environ.get(\'OPENAI_API_KEY\'),\n    model_name="text-embedding-ada-002"\n)\n\nretriever_model = ChromadbRM(\n    \'your_collection_name\',\n    \'/path/to/your/db\',\n    embedding_function=embedding_function,\n    k=5\n)\n\nresults = retriever_model("Explore the significance of quantum computing", k=5)\n\nfor result in results:\n    print("Document:", result.long_text, "\\n")\n```\n'}) (input_keys={'reference_text'}) with <function great_tweet_metric at 0x7f2d108eb010> due to 'Predict' object has no attribute 'new_signature'. [dspy.teleprompt.bootstrap] filename=bootstrap.py lineno=204
2024-06-06T01:00:54.969715Z [error    ] Failed to run or to evaluate example Example({'reference_text': '---\nsidebar_position: \n---\n\n# dspy.Snowflake\n\n### Usage\n\n```python\nimport dspy\nimport os\n\nconnection_parameters = {\n\n    "account": os.getenv(\'SNOWFLAKE_ACCOUNT\'),\n    "user": os.getenv(\'SNOWFLAKE_USER\'),\n    "password": os.getenv(\'SNOWFLAKE_PASSWORD\'),\n    "role": os.getenv(\'SNOWFLAKE_ROLE\'),\n    "warehouse": os.getenv(\'SNOWFLAKE_WAREHOUSE\'),\n    "database": os.getenv(\'SNOWFLAKE_DATABASE\'),\n    "schema": os.getenv(\'SNOWFLAKE_SCHEMA\')}\n\nlm = dspy.Snowflake(model="mixtral-8x7b",credentials=connection_parameters)\n```\n\n### Constructor\n\nThe constructor inherits from the base class `LM` and verifies the `credentials` for using Snowflake API.\n\n```python\nclass Snowflake(LM):\n    def __init__(\n        self, \n        model,\n        credentials,\n        **kwargs):\n```\n\n**Parameters:**\n- `model` (_str_): model hosted by [Snowflake Cortex](https://docs.snowflake.com/en/user-guide/snowflake-cortex/llm-functions#availability).\n- `credentials`  (_dict_): connection parameters required to initialize a [snowflake snowpark session](https://docs.snowflake.com/en/developer-guide/snowpark/reference/python/latest/api/snowflake.snowpark.Session)\n\n### Methods\n\nRefer to [`dspy.Snowflake`](https://dspy-docs.vercel.app/api/language_model_clients/Snowflake) documentation.\n'}) (input_keys={'reference_text'}) with <function great_tweet_metric at 0x7f2d108eb010> due to 'Predict' object has no attribute 'new_signature'. [dspy.teleprompt.bootstrap] filename=bootstrap.py lineno=2042024-06-06T01:00:54.990462Z [error    ] Failed to run or to evaluate example Example({'reference_text': '---\nsidebar_position: 3\n---\n\n# teleprompt.Ensemble\n\n### Constructor\n\nThe constructor initializes the `Ensemble` class and sets up its attributes. This teleprompter is designed to create ensembled versions of multiple programs, reducing various outputs from different programs into a single output.\n\n```python\nclass Ensemble(Teleprompter):\n    def __init__(self, *, reduce_fn=None, size=None, deterministic=False):\n```\n\n**Parameters:**\n- `reduce_fn` (_callable_, _optional_): Function used to reduce multiple outputs from different programs into a single output. A common choice is `dspy.majority`. Defaults to `None`.\n- `size` (_int_, _optional_): Number of programs to randomly select for ensembling. If not specified, all programs will be used. Defaults to `None`.\n- `deterministic` (_bool_, _optional_): Specifies whether ensemble should operate deterministically. Currently, setting this to `True` will raise an error as this feature is pending implementation. Defaults to `False`.\n\n### Method\n\n#### `compile(self, programs)`\n\nThis method compiles an ensemble of programs into a single program that when run, can either randomly sample a subset of the given programs to produce outputs or use all of them. The multiple outputs can then be reduced into a single output using the `reduce_fn`.\n\n**Parameters:**\n- `programs` (_list_): List of programs to be ensembled.\n\n**Returns:**\n- `EnsembledProgram` (_Module_): An ensembled version of the input programs.\n\n### Example\n\n```python\nimport dspy\nfrom dspy.teleprompt import Ensemble\n\n# Assume a list of programs\nprograms = [program1, program2, program3, ...]\n\n# Define Ensemble teleprompter\nteleprompter = Ensemble(reduce_fn=dspy.majority, size=2)\n\n# Compile to get the EnsembledProgram\nensembled_program = teleprompter.compile(programs)\n```'}) (input_keys={'reference_text'}) with <function great_tweet_metric at 0x7f2d108eb010> due to 'Predict' object has no attribute 'new_signature'. [dspy.teleprompt.bootstrap] filename=bootstrap.py lineno=204
2024-06-06T01:00:54.995006Z [error    ] Failed to run or to evaluate example Example({'reference_text': '---\nsidebar_position: 5\n---\n\n# dspy.HFClientVLLM\n\n### Usage\n\n```python\nlm = dspy.HFClientVLLM(model="meta-llama/Llama-2-7b-hf", port=8080, url="http://localhost")\n```\n\n### Prerequisites\n\nRefer to the [vLLM Server](https://dspy-docs.vercel.app/api/language_model_clients/HFClientVLLM) section of the `Using Local Models` documentation.\n\n### Constructor\n\nRefer to [`dspy.TGI`](https://dspy-docs.vercel.app/api/language_model_clients/TGI) documentation. Replace with `HFClientVLLM`.\n\n### Methods\n\nRefer to [`dspy.OpenAI`](https://dspy-docs.vercel.app/api/language_model_clients/OpenAI) documentation.'}) (input_keys={'reference_text'}) with <function great_tweet_metric at 0x7f2d108eb010> due to 'Predict' object has no attribute 'new_signature'. [dspy.teleprompt.bootstrap] filename=bootstrap.py lineno=204
 14%|█████                               | 7/50 [00:00<00:00, 147.64it/s]
Traceback (most recent call last):
  File "/home/tom/dspy/dspy/primitives/assertions.py", line 220, in wrapper
    result = func(*args, **kwargs)
  File "/home/tom/tweet_generation/./main.py", line 127, in forward
    run_all_checks(tweet_text)
  File "/home/tom/tweet_generation/./main.py", line 110, in run_all_checks
    suggest_check(generated_text, "Does the assessed tweet sound natural? Say no if it sounds like an ad.", "The tweet does not sound natural. Please revise for quality.")
  File "/home/tom/tweet_generation/./main.py", line 100, in suggest_check
    dspy.Suggest(assessment_bool, suggestion)
  File "/home/tom/dspy/dspy/primitives/assertions.py", line 74, in __init__
    self.__call__()
  File "/home/tom/dspy/dspy/primitives/assertions.py", line 112, in __call__
    raise DSPySuggestionError(
dspy.primitives.assertions.DSPySuggestionError: The tweet does not sound natural. Please revise for quality.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/tom/tweet_generation/./main.py", line 189, in <module>
    tweet_generator_compiled = teleprompter.compile(tweet_generator, trainset=trainset,  num_trials=2, max_bootstrapped_demos=4, max_labeled_demos=5, eval_kwargs=kwargs, requires_permission_to_run=False)
  File "/home/tom/dspy/dspy/teleprompt/mipro_optimizer.py", line 452, in compile
    candidate_program = tp.compile(student=module.deepcopy(), trainset=shuffled_trainset)
  File "/home/tom/dspy/dspy/teleprompt/bootstrap.py", line 84, in compile
    self._bootstrap()
  File "/home/tom/dspy/dspy/teleprompt/bootstrap.py", line 147, in _bootstrap
    success = self._bootstrap_one_example(example, round_idx)
  File "/home/tom/dspy/dspy/teleprompt/bootstrap.py", line 203, in _bootstrap_one_example
    raise e
  File "/home/tom/dspy/dspy/teleprompt/bootstrap.py", line 183, in _bootstrap_one_example
    prediction = teacher(**example.inputs())
  File "/home/tom/dspy/dspy/primitives/program.py", line 26, in __call__
    return self.forward(*args, **kwargs)
  File "/home/tom/dspy/dspy/primitives/assertions.py", line 294, in forward
    return wrapped_forward(*args, **kwargs)
  File "/home/tom/dspy/dspy/primitives/assertions.py", line 260, in wrapper
    output_fields = error_state[0].new_signature.output_fields
AttributeError: 'Predict' object has no attribute 'new_signature'. Did you mean: 'signature'?

MIPRO and assertions not compatible currently unfortunately

Ah okay. Would it make sense to throw that as the error message? I spent quite a bit of time trying to solve this myself

Feel free to add it @tom-doerr ! Assertions are currently compatible with the FewShot optimizers, and we'll eventually get them integrated with the new Signature optimizers coming out.

MIPRO and assertions not compatible currently unfortunately

I encountered the same error when using BootstrapFewShotWithRandomSearch. Does BootstrapFewShotWithRandomSearch also not support assertions?

Hey, I'm also seeing this with BootstrapFewShotWithRandomSearch and Suggestion.
Here's the error:
2024-09-09 01:34:17,991 - dspy.primitives.assertions - INFO - 2024-09-09T05:34:17.990976Z [info     ] SuggestionFailed: The quizbowl question does not contain the exact, specified number of sentences/clues. Please rewrite it such that it has exactly the specified number (num_clues). [dspy.primitives.assertions] filename=assertions.py lineno=108
Traceback (most recent call last):
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/site-packages/dspy/primitives/assertions.py", line 220, in wrapper
    result = func(*args, **kwargs)
  File "/some/dir/some/dir/question_generation/pyramodelQBGeneratorDSPy.py", line 234, in forward
    dspy.Suggest(
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/site-packages/dspy/primitives/assertions.py", line 74, in __init__
    self.__call__()
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/site-packages/dspy/primitives/assertions.py", line 112, in __call__
    raise DSPySuggestionError(
dspy.primitives.assertions.DSPySuggestionError: The quizbowl question contains facts that are not grounded in the context of the Wikipedia sentences it was given. Please revise for accuracy.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/some/dir/some/dir/question_generation/pyramodelDSPyTrainer.py", line 114, in <module>
    main(args)
  File "/some/dir/some/dir/question_generation/pyramodelDSPyTrainer.py", line 68, in main
    optimized_program = teleprompter.compile(student=pyraGenerator, teacher=pyraGenerator, trainset=train_dataset, valset=val_dataset)
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/site-packages/dspy/teleprompt/random_search.py", line 123, in compile
    score, subscores = evaluate(program2, return_all_scores=True)
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/site-packages/dspy/evaluate/evaluate.py", line 193, in __call__
    reordered_devset, ncorrect, ntotal = self._execute_multi_thread(
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/site-packages/dspy/evaluate/evaluate.py", line 110, in _execute_multi_thread
    example_idx, example, prediction, score = future.result()
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/concurrent/futures/_base.py", line 451, in result
    return self.__get_result()
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/site-packages/dspy/evaluate/evaluate.py", line 103, in cancellable_wrapped_program
    return wrapped_program(idx, arg)
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/site-packages/dspy/evaluate/evaluate.py", line 160, in wrapped_program
    prediction = program(**example.inputs())
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/site-packages/dspy/primitives/program.py", line 26, in __call__
    return self.forward(*args, **kwargs)
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/site-packages/dspy/primitives/assertions.py", line 294, in forward
    return wrapped_forward(*args, **kwargs)
  File "/some/dir/miniconda3/envs/qa5/lib/python3.10/site-packages/dspy/primitives/assertions.py", line 260, in wrapper
    output_fields = error_state[0].new_signature.output_fields
AttributeError: 'Predict' object has no attribute 'new_signature'. Did you mean: 'signature'?
CRITICAL: Exiting due to uncaught exception AttributeError: 'Predict' object has no attribute 'new_signature'

Here's the relevant code:
training script
    pyraGenerator = assert_transform_module(PyramodelQbQuestionGeneratorDSPy().map_named_predictors(Retry), backtrack_handler)

    pyra_df = pd.read_csv(filepath_or_buffer=DATA_DIR / f"dspy_training/pyra_questions.csv")

    pyra_dataset = dl.from_pandas(
        pyra_df,
        fields=("question", "clues", "wiki_sents", "num_clues", "wiki_page_title", "max_tokens"),
        input_keys=("clues", "wiki_sents", "num_clues", "wiki_page_title", "max_tokens")
    )

    splits = dl.train_test_split(pyra_dataset, train_size=0.5)
    train_dataset = splits['train']
    val_dataset = splits['test']

    config = dict(max_bootstrapped_demos=16, max_labeled_demos=16, num_candidate_programs=16, num_threads=16)
    teleprompter = BootstrapFewShotWithRandomSearch(metric=composite_qb_metric, **config)
    optimized_program = teleprompter.compile(student=pyraGenerator, teacher=pyraGenerator, trainset=train_dataset, valset=val_dataset)
    optimized_program.save(DATA_DIR / f"dspy_training/checkpoint.json", save_field_meta=True)

generator
class AssessQBQuestion(dspy.Signature):
    """Assess the quality of a generated quizbowl question along the specified dimension."""
    assessment_question = dspy.InputField(desc="Question used to assess the quality of given quizbowl question.")
    assessed_quizbowl_question = dspy.InputField(desc="Quizbowl question being assessed")
    wiki_page_title = dspy.InputField(desc="Name of relevant Wikipedia page about the answer")
    num_clues = dspy.InputField(desc="Number of clues in the quizbowl question. Typically, 3-8. Ignore if N/A")
    max_tokens = dspy.InputField(desc="Number of allowed tokens. Ignore if N/A.")
    context = dspy.InputField(desc="Ignore if N/A.")

    assessment_answer: str = dspy.OutputField(desc="Yes or No")

IS_FAITHFUL = \
("Is the assessed quizbowl question grounded in the context? Say no if "
 "it includes significant facts not in the context.")
def is_faithful(gold, pred, trace=None) -> bool:
    return is_assessment_yes(
        dspy.Predict(AssessQBQuestion)(
            assessed_quizbowl_question=pred.generated_question,
            assessment_question=IS_FAITHFUL,
            wiki_page_title=pred.wiki_page_title,
            num_clues=NA, max_tokens=NA,
            context=pred.wiki_sents
        )
    )

class CluesToQBQuestion(dspy.Signature):
    """Write the list of Wikipedia sentences into an ACF-style quizbowl question."""
    wiki_page_title: str = dspy.InputField(desc="The title of a Wikipedia page about the answer of the quizbowl question.")
    num_clues: str = dspy.InputField(desc="The number of clues (sentences) to be in the resulting quizbowl question.")
    max_tokens: str = dspy.InputField(desc="The maximum allowed tokens.")
    clues: str = dspy.InputField(desc="A list of quizbowl clues.")

    quizbowl_question: str = dspy.OutputField(desc="The generated quizbowl question")

generator (forward)
    def forward(
        self,
        wiki_page_title: str,
        wiki_sents: List[str],
        num_clues: str,
        max_tokens: str,
        clues: str=[] # Optional argument because it will be provided during training but not inference
        ) -> dspy.Prediction:

        if type(num_clues) == int: num_clues = str(num_clues) # Typing with DSPy is not fun
        if type(max_tokens) == int: max_tokens = str(max_tokens)

        if not clues:
            clues = []
            for i, sent in enumerate(wiki_sents):
                clue = \
                    self.clueMasker.mask_wiki_sent(
                        wiki_page=wiki_page_title,
                        wiki_sent=sent,
                        clue_pos=(1+i)/num_clues)
                clues.append(clue)

        keywords = guesser.get_topk_keywords(
            label=wiki_page_title, wiki_sents=wiki_sents, k=10)

        self.mask_keywords(wiki_page_title=wiki_page_title, wiki_sents=clues, mask_first_k=2, keywords=keywords)
        generated_question = self.finishing_touches(wiki_page_title, num_clues, max_tokens, clues)

        # The keywords property is used by a metric to make sure keywords have been removed
        pred = dspy.Prediction(
            generated_question=generated_question,
            wiki_sents=wiki_sents,
            num_clues=num_clues,
            max_tokens=str(int(max_tokens) + random.randint(-20, 20)),
            wiki_page_title=wiki_page_title,
            page=wiki_page_title)

        dspy.Suggest(
            is_faithful(None, pred),
            msg=("The quizbowl question contains facts that are not grounded "
                    "in the context of the Wikipedia sentences it was given. "
                    "Please revise for accuracy."),
            # target_module=CluesToQBQuestion,
            is_metric=True
        )

I commented out # target_module=CluesToQBQuestion because I'm getting this issue

@tom-doerr Could you elaborate on how you fixed this since it looks like you've fixed this problem (issue)?
I don't quite understand what is meant by "updated the signature class (target_module)".

Suggest takes the attribute target_module:
    dspy.Suggest(is_assessment_yes(contact_person_assessment.assessment_answer), "The text contains names and titles not in the context. Please revise for accuracy.", target_module=GenerateMail)

I believe I renamed GenerateMail  to something else. If I remember correctly I just updated the class name.

Interesting thank you @tom-doerr ! I'll take a look and update this issue if I find anything.

wait.. suggestions work with a target module configured? pls confirm
but: I remembered this issue, wanted to comment because I had a thought..: wouldn't wrapping the compile call in a with dspy.context(bypass_suggest=True, bypass_assert=True) block disable the assertions just for the compilation?
and if so, wouldn't that be ideal, as catching the errors with assertions might make the optimizer less effective / artificially elevate the score?
(haven't tested it yet, thought of it on my way home, but should work actually)

Would be great if this was handled better, just spent some time trying to debug this error. As I understand it this is also caused by MIPRO not supporting assertions.
ERROR dspy.primitives.assertions: Module not found in trace. If passing a DSPy Signature, please specify the intended module for the assertion (e.g., use `target_module = self.my_module(my_signature)` instead of `target_module =  my_signature`).


Editor crashes while editing files on network drive

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description
Atom crashes while editing a file from a network drive.
I use a drive mounted from my macbook on my windows computer to edit from time to time. While editing the files, if at any time I try to run the files (e.g. rails s) or any other command, or sometimes just for no reason, I get the "The Editor has crashed" alert and have to reload the window. Nothing is showing up in the developer tools. I've tried both mounting the drive in windows and directly accesing them via the file browser (\\mymacbook\dev\projectfolder)
Steps to Reproduce

Open a file from a network/remote drive
Run a command  on the files (e.g. npm install, bundle exec) and the editor will crash

Expected behavior: Editor doesn't crash while editing remote files
Actual behavior: Atom crashes and I have to fully reload the program
Reproduces how often: 100%
Versions
You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.
Atom    : 1.19.0
Electron: 1.6.9
Chrome  : 56.0.2924.87
Node    : 7.4.0

I was able to repro this issue by doing the following:
Have a mac SMB share with write/read access
Repro steps on windows:

Open the mac SMB share on windows example: \Mac-computer-name\share
Create a new folder called 'newFolder'
Open newFolder on Atom
On Windows, do git clone https://github.com/request/request in newFolder

Expected: editor shouldn't crash
Actual: editor crashes


Update nodeless-puppet/modules/truth/plugins/puppet/parser/functions/has...

..._role.rb
I am using this function but noticed two things.  If the facter variable server_tags is not defined on the host it throws a "private method `split' called for :undefined:Symbol"
After that was solved the statements in truth::enforcer are evaluated when the  facter variable server_tags is not defined
I am not a ruby guy as yet but learnt a few things sorting this out. It works for me anyhow.
Please amend the code so that it behaves better than what i coded

This code actually looks ok :)


Css updates for235

This fixes three visual bugs:

the vertical spacing on the load moderators section of settings.store was way too big. A div inside a flex container was set to 100% height, which picked up the height of the entire container. That was an error, my guess is it worked before due to a bug in Chromium that was fixed in an Electron update.

the placeholder box with the load mods button was getting a height that pushed it outside the bottom of its container into the next div, probably due to the same change in Chromium. It was tweaked and no longer overlaps the text below it.

when the app was loading, the chat container would briefly have a black border. This was happening because the container border color was set to transparent, with a transition, so it could become grey when it opened.

Again, probably due to a Chromium update, the browser behavior changed and the transition was being applied to the default border color of black. I'm not sure why it would do that, it might be a Chromium bug. Removing the transition (which is barely noticeable when it changes from transparent to grey) was the simplest solution.

Removing the transition (which is barely noticeable when it changes from transparent to grey) was the simplest solution.

@jjeffryes I take it if we hard-code the default border-color to transparent, it doesn't fix the issue?

@jjeffryes I take it if we hard-code the default border-color to transparent, it doesn't fix the issue?

Do you mean hard code it for all divs? I didn't try that. It's already being set to transparent in #chatContainer which should override any default values, which is what made this perplexing.

@rmisio I can't figure this one out. No matter what styles I put on #chatContainer, it's briefly shown with a black border and a white background when the app is loading.
If I use an inline style tag in index.html, it's applied, but of course then it's stuck with that color.
It's as if the layout CSS rules are being applied, but not the color rules, for a brief second.


Document how to publish apps on the TV app store

We need to fill the part in https://github.com/flutter-tizen/flutter-tizen/blob/master/doc/publish-app.md.

publishing TV app to samsung seller 2.0 seems a little bit confusing for me. I was trying to upload my .tpk and the pre-test failed. It said my tpk needed to have  in the tizen-manifest. I tried finding it online but found nothing helpful.

@iandis It looks like a temporary issue. I'll contact the person in charge in the TV division and let you know when I get a reply.

@iandis I got a response and they're going to fix the issue in a few days, but you can also try adding the following lines to your tizen-manifest.xml to work around the issue.
<tv-info api-version="8.8.0">
    <infolink>T-INFOLINK2021-1000</infolink>
</tv-info>

@swift-kim Thank you very much for the quick response😃!


Update notification

Hello,
is it possible to receive an update notification from Nuki Hub via Home Assistant? This way you don't always have to check here in the releases.
Thanks!

+1

You could just use  https://www.home-assistant.io/integrations/github/

Hi,
As mentioned I think this should be solved outside of the firmware. Thanks for pointing out the github integration.

Closing, as recommeded please use
https://www.home-assistant.io/integrations/github/


add gs conformance command

Towards https://github.com/giantswarm/giantswarm/issues/14878
Checklist

[ ] Update changelog in CHANGELOG.md.

I don't have time to work on this. Closing.


Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL

i use the example from "http://www.protractortest.org/#/tutorial"
// spec.js
describe('Protractor Demo App', function() {
  it('should have a title', function() {
    browser.get('http://juliemr.github.io/protractor-demo/');

    expect(browser.getTitle()).toEqual('Super Calculator');
  });
});

// conf.js
exports.config = {
  framework: 'jasmine',
  seleniumAddress: 'http://localhost:4444/wd/hub',
  specs: ['spec.js']
}

Now run the test with
protractor conf.js
Then the console display:

You can find solution here: https://github.com/angular/protractor/issues/2941#issuecomment-186104304

Are you able to successfully start selenium? What happens if you use directConnect?

Closing stale issues.

im having same problem and the other post  dont work for me.

Doesn't work for me either. increase defaultTimeoutInterval doesn't solve it

@juliemr  I'm having the same problem and increasing ScriptsTimeout does not work for me. Do you have any solution for this? Thank you.

Hi All,
I am running a test case in protractor getting timed out error. Here is the details. Please advice. Thank you
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
sample_spec.js
describe('Mcac App testing', function() {
browser.get('http://localhost:3000/integrated/myWeb.html');
beforeEach(function (done) {
window.jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
setTimeout(function () {
console.log('inside timeout');
done();
}, 50000);
});
//browser.get(' http://localhost:3000/integrated/myWeb.html');
// browser.get('http://localhost:3000/integrated/myWeb.html').then(function() {
it('Email Address Validation', function()
{
        element(by.model('ctrl.formData.emailAddress')).sendKeys('').clear();
        element(by.model('ctrl.formData.emailAddress')).sendKeys('nancy@abc.com');
        element(by.model('ctrl.formData.emailAddress')).getAttribute('value').then(function (value) {
            expect(value).toEqual('narendra@abc.com');
        });

}, 10000);

// element(by.xpath("//button[text()='Confirm']")).click();
browser.sleep(5000);
});
config.js
// An example configuration file.
exports.config = {
directConnect: true,
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'chrome'
},
// Framework to use. Jasmine is recommended.
framework: 'jasmine',
// Spec patterns are relative to the current working directory when
// protractor is called.
// specs: ['example_spec.js'],
//specs: ['mcac_spec.js'],
//specs: ['mcac_spec_mobile.js'],
specs: ['mcac_online.js'],
// Options to be passed to Jasmine.
jasmineNodeOpts: {
defaultTimeoutInterval: 5000
}
};
any help much appreciated.

I had this issue and it was because of a repeating $timeout ($timeout blocks Protractor, while $interval doesn't).
To find the repeating $timeout, you can use Protractor's element explorer, for example:
$ protractor config/protractor.js --elementExplorer
Starting debugger agent.
Debugger listening on port 5858
> var body = element(by.css('body'))
> body.isPresent()
ScriptTimeoutError: Timed out waiting for asynchronous Angular tasks to finish after 15 seconds. This may be because the current page is not an Angular application. Please see the FAQ for more details: https://github.com/angular/protractor/blob/master/docs/timeouts.md#waiting-for-angular
While waiting for element with locator - Locator: By(css selector, body).
The following tasks were pending:
 - $timeout: function () {
        // ......
    }

Thank you.
I found the issue. its because of url loading takes time and looking for
ng-app tag in html page.
best regards,
Narendra
Narendra...!
On 15 December 2016 at 06:12, Amy Boyd<EMAIL_ADDRESS>wrote:

I had this issue and it was because of a repeating $timeout ($timeout
blocks Protractor, while $interval doesn't).
To find the repeating $timeout, you can use Protractor's element explorer,
for example:
$ protractor config/protractor.js --elementExplorer
Starting debugger agent.
Debugger listening on port 5858

var body = element(by.css('body'))
body.isPresent()
ScriptTimeoutError: Timed out waiting for asynchronous Angular tasks to finish after 15 seconds. This may be because the current page is not an Angular application. Please see the FAQ for more details: https://github.com/angular/protractor/blob/master/docs/timeouts.md#waiting-for-angular
While waiting for element with locator - Locator: By(css selector, body).
The following tasks were pending:

$timeout: function () {
// ......
}

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/angular/protractor/issues/2963#issuecomment-267302567,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AViSFkiN29oWnH6AJ0P_wNY_LNzE2fglks5rISCYgaJpZM4Hd20v
.

Hi All,
I am running a test case in protractor getting timed out error. Here is the details. Please advice. Thank you
Failed: Timed out waiting for asynchronous Angular tasks to finish after 30 seconds. This may be because the current page is not an Angular application.

@sallojusuresh, the below solution worked.
jasmineNodeOpts: {
defaultTimeoutInterval: 2500000
},
Question - When we can set a default time as above, where comes the use of setTimeout function in 'beforeEach' and done callbacks in 'it'. Any idea?

I have fixed by the following way
` var originalTimeout;
beforeEach(function() {
    originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
    jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
});

afterEach(function() {
  jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout;
});`

Thank you.
Narendra...!
On 11 March 2018 at 23:53, Md. Zahirul Haque<EMAIL_ADDRESS>wrote:

I have fixed by the following way
` var originalTimeout;
beforeEach(function() {
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
});
afterEach(function() {
jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout;
});`
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/angular/protractor/issues/2963#issuecomment-372187210,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AViSFg7ITAW3XW5zky_-QXXmAudt11qDks5tdfE1gaJpZM4Hd20v
.

In my case, this error was caused by improper use of "fixture.detectChanges()" It seems this method is a event listener (async) which will only respond a callback when changes are detected. If no changes are detected it will not invoke the callback, resulting in a timeout error. Hope this helps :)

@juliemr Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. this error coming in my test again n again i used before each, after each, browser.sleep, increased the jasmine timeout iterval upto 100000. but my code is not run so please suggest me what could I do.

I got this issue and cannot resolve while increased the jasmine timeout up to 300000. So pls suggest me what should I do for it.

Could you provide simple example?

Solution to this is, if you are trying to write tests for non-angular app, goto runner.js at node_modules/protractor/built
Edit line # 210 to waitForAngularEnabled: false //true
@juliemr a suggestion to make this setting configurable.

you could do it in onPrepare() section:
onPrepare: async () => {
    await browser.waitForAngularEnabled(false);
    ....
}

I got the same problem, but the solutions provided here did not work for me. If you have time, please have a look to my question on Stack Overflow. The problem can easily be reproduced and I have a repo. I guess it is possible a bug.
https://stackoverflow.com/questions/53786401/error-debugging-protractor-with-node-8-async-await-and-angular-6

Expected false to equal true Because: Error logs present in console:Entry {
level: Level { name_: 'SEVERE', value_: 1000 },
message:
"ERROR" Error: formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       \n    <div [formGroup]="myGroup">\n      \n    \n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });\n    at Function.e.missingFormException

getting issue while click on pop up button , any solution?

I has a similar problem with post and I have solved my problem adding HttpClientModule on imports:
beforeEach(() => {
TestBed.configureTestingModule({

    declarations: [],

    providers: [ CookieService, HttpClient],

    imports: [HttpClientModule],
});

});

I has a similar problem with post and I have solved my problem adding HttpClientModule on imports:
beforeEach(() => {
TestBed.configureTestingModule({

    declarations: [],

    providers: [ CookieService, HttpClient],

    imports: [HttpClientModule],
});

});

I personally had problems importing the HttpClientModule inside a testbed. It tries running your APIs in your unit tests and as a result, they fail. The right approach would be to use HttpClientTestingModule

@sallojusuresh, the below solution worked.
jasmineNodeOpts: {
defaultTimeoutInterval: 2500000
},
Question - When we can set a default time as above, where comes the use of setTimeout function in 'beforeEach' and done callbacks in 'it'. Any idea?

This is best solution just paste this piece of code in ur confing file it should resolve ur problem.


Aghosts cannot buckle

Description
title
Reproduction

try to buckle a mob to a chair/bed/whatever as an aghost
they do not get buckled
weep

Screenshots
https://github.com/user-attachments/assets/58378a95-db7d-4695-bf36-6d8dbe28ae87

https://github.com/space-wizards/space-station-14/issues/30898 same issue, likely

#30898 same issue, likely

I don't think so, the doafter doesn't even begin, like it's not recognizing the action at all.


Typo?

https://github.com/hendryluk/cormo/blob/master/src/Cormo/Interceptions/InterceptorAttribute.cs#L9
public interface IAroundnvokeInterceptor

Ha it is, cheers. Btw interceptor feature is currently still not implemented. The public api is there (with the typo), but it wont do anything yet at the moment

Fixed


Greets while closing the issue/pull request

🚀 Feature
I like to add a feature that can send a message using the GitHub-Actions bot when an issue or pull request is closed
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
To make everything automated
Pitch
It's great if someone contributes to someone's project. So, to motivate and appreciate them we can send greeting while closing issues and pull request

/assign


Capacitor 5 compatibility

Would be great if this plugin could follow the requirements to be compatible with Capacitor v5 as the stable version has now been released.

When I click/ touch my app navigation bar is showed...
IS it normal, now ?
It wasn't the same behaviour with last version capacitor 4 /ionic 6

Would be great if this plugin could follow the requirements to be compatible with Capacitor v5 as the stable version has now been released.

Thanks for your contribution @mauricewegner, already merged.

When I click/ touch my app navigation bar is showed... IS it normal, now ? It wasn't the same behaviour with last version capacitor 4 /ionic 6

This occurs in all apps. It is a native behavior of the operating system.


UA server use schema for postgres table and remove cassandra requirement

The UA server is updated to use the created schema for postgres. When using postgres we now no longer require cassandra is running.

Daily build no. 6967

Demo is that the table is created under the appscale_ua schema:
psql (10.10 (Ubuntu 10.10-0ubuntu<IP_ADDRESS>))
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)
Type "help" for help.

appscale-db=> \dn
    List of schemas
    Name     |  Owner
-------------+----------
 appscale_ua | appscale
 public      | postgres
(2 rows)

appscale-db=> \dt appscale_ua.*
             List of relations
   Schema    |   Name   | Type  |  Owner
-------------+----------+-------+----------
 appscale_ua | ua_users | table | appscale
(1 row)

appscale-db=> \dt
Did not find any relations.
appscale-db=>


[SPARK-44197][BUILD][FOLLOWUP] Update IsolatedClientLoader hadoop version

What changes were proposed in this pull request?
The pr aims to follow up SPARK-44197.
Why are the changes needed?
When the Hadoop version that Spark relies on is upgraded from 3.3.5 to 3.3.6, the corresponding versions in IsolatedClientLoader should also be upgraded synchronously.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA.

cc @dongjoon-hyun
https://github.com/apache/spark/blob/201d2b1e1278288f4c0b746279fe1c3146422492/pom.xml#L124-L125

CI results look okay although Java 17 maven test is building. Let me merge this.

Thank you, @panbingkun , @LuciferYang , and @yaooqinn .


Extract the digest of a Docker image to pin for Dockerfile "freeze" functionality

Description
Extract the digest of the image provided in the Dockerfile and pin it in the "frozen" Dockerfile.
To Do

This task will take some investigation as it is unclear at the time of filing this issue how we get the exact transport digest of a docker image. As far as we know, the Docker API has no way of getting the image digest if the image already exists on disk and the digest that you pull is not the same as the digest that exists when you do a docker save that you might find in the container.

Once (1) is determined, we will need to update the docker_image class to store the digest value. Currently we only store the image repo tag but we should have something to represent the digest that we pull in the Dockerfile.

Add a parser in the tern/analyze/docker/dockerfile.py class to determine if the image digest is provided in the Dockerfile. If it is, we don't need to determine the digest in step (2) for the resulting "frozen" Dockerfile.

There is some prototyping done for this here: https://gist.github.com/joshuagl/2d30d79373f87858db9863d2a44d6150
Super Issues
#454

Fixed in 3dbd5a037d92f00dbb7f8bf0bf72404b16bc007b


openconnect: depends on insecure libressl-3.4.3

Describe the bug
When I install openssl or openssl_openssl or openssl_unstable I get an error that looks like a dependency is out of date.
The following is from 22.11 but I get the same issue from unstable also.
Steps To Reproduce
Steps to reproduce the behavior:

nix-shell -p openconnect

Expected behavior
It should install without errors.
Screenshots
nix-shell -p openconnect
error: Package ‘libressl-3.4.3’ in /nix/store/w7i4cmni72cmnqp35zs38q9i06nbg5q5-nixpkgs/nixpkgs/pkgs/development/libraries/libressl/default.nix:84 is marked as insecure, refusing to evaluate.

       Known issues:
        - Support ended 2022-10-14.

       You can install it anyway by allowing this package, using the
       following methods:

       a) To temporarily allow all insecure packages, you can use an environment
          variable for a single invocation of the nix tools:

            $ export NIXPKGS_ALLOW_INSECURE=1

        Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+
        (Flake) command, `--impure` must be passed in order to read this
        environment variable.

       b) for `nixos-rebuild` you can add ‘libressl-3.4.3’ to
          `nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
          like so:

            {
              nixpkgs.config.permittedInsecurePackages = [
                "libressl-3.4.3"
              ];
            }

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
          ‘libressl-3.4.3’ to `permittedInsecurePackages` in
          ~/.config/nixpkgs/config.nix, like so:

            {
              permittedInsecurePackages = [
                "libressl-3.4.3"
              ];
            }
(use '--show-trace' to show detailed location information)

Additional context
Add any other context about the problem here.
Notify maintainers
Sorry if I get this wrong :-)
@pradeepchhetri @alyaeanyx @tricktron
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 22.3.0, macOS 10.16`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.13.2`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs````

I can't reproduce this on the latest unstable, could you try updating your channels (sudo nix-channel --update) and see if this issue persists?

Upgraded (from about 5days). Same problem.
Hmm. I think this might be OSX specific :-(

Hm, in this case I can't help you unfortunately because I know close to nothing about Darwin, sorry :(

I have been told that the problem is actually with network_cmds, see https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/darwin/apple-source-releases/network_cmds/default.nix#L6
I was also told that just replacing this  with libressl doesn't work.
CC: @matthewbauer

On #macos:nixos.org I think we concluded if we drop support for unbound (and Apple has dropped support in latest network_cmds anyway), then it should build with libressl.


Rails 5 (Rack 2) support?

I'm trying to upgrade my app to test against Rails 5 which needs rack 2, but the hard dependency on rack 1 is prevent me:
  rails (= 5.0.0.beta1) was resolved to 5.0.0.beta1, which depends on
      actioncable (= 5.0.0.beta1) was resolved to 5.0.0.beta1, which depends on
        actionpack (= 5.0.0.beta1) was resolved to 5.0.0.beta1, which depends on
          rack (~> 2.x)

    rack-canonical-host was resolved to 0.1.0, which depends on
      rack (~> 1.0)

I haven't yet looked at what work involved would be needed to fix this.

Fixed in #39 and released in 0.2.1.


Using ML Kit on ASUS phone can't download model

Step 1: Describe your environment

Android device: ASUS_X00RD
Android OS version: 8.1.0
Google Play Services version: 13.4.11-all [0] [PR] 231519563
Firebase/Play Services SDK version: Firebase ml-vision:19.0.2/Play Services 15.0.90(110306-231259764)

Step 2: Describe the problem:
This phone cannot download the model no matter how many times it is triggered.
I can't download it when I restore my phone.
Other brands are currently in perfect use.
Observed Results:
com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
at com.google.android.gms.dynamite.DynamiteModule.load(Unknown Source:8)
at com.google.android.gms.internal.vision.zzm.zzq(Unknown Source:28)
at com.google.android.gms.internal.vision.zzm.isOperational(Unknown Source:9)
at com.google.android.gms.vision.barcode.BarcodeDetector.isOperational(Unknown Source:23)
at com.google.android.gms.internal.firebase_ml.zzjl.zza(Unknown Source:23)
at com.google.android.gms.internal.firebase_ml.zzjl.zza(Unknown Source:42)
at com.google.android.gms.internal.firebase_ml.zzij.call(Unknown Source:3)
at com.google.android.gms.internal.firebase_ml.zzie.zza(Unknown Source:29)
at com.google.android.gms.internal.firebase_ml.zzif.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.google.android.gms.internal.firebase_ml.zze.dispatchMessage(Unknown Source:6)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
2019-02-15 08:55:52.810 3546-3546/? E/BarcodeScanProc: Barcode detection failed com.google.firebase.ml.common.FirebaseMLException: Waiting for the barcode detection model to be downloaded. Please wait.
Expected Results:
How do I use it on my ASUS phone?

@flighk I see this message in your logs:
com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.

This implies that your phone does not have a recent version of Google Play services.  Are you signed in with a google account on the phone?  If so can you check (in Setttings > Applications) what the version of Google Play services is?

Hello
I have a Google Account login
I have provided

Google Play Services version: 13.4.11-all [0] [PR] 231519563
Play Services 15.0.90（110306-231259764）
I clicked and told me that it is the latest version.

I have tested and joined the Play services tester.
Some of my phones need to join the tester to use ML Kit.
ASUS mobile phone testers can not use the ML Kit.

i have the same issue did u find a solution

@filghk 15.0.90 is indeed the latest version, but where are you seeing 13.4.11-all?  Can you maybe provide a screenshot for that?

PLAY(APP)-Settings
The screenshot is my phone.
I have returned my colleagues to the ASUS phone.
The app I wrote is for the company.
So I can get a lot of different phone tests.
Most of them can be used by simply updating the Play Services and PLAY stores.
Only a small part like this Asus phone can't be used.
@khahmad
Provide a way for you
In my many tested machines
Some are due to the capacity is too low to download the model failed
A capacity below 1GB will generally fail
The mobile phone capacity given by our company is very small
Most of my processing is for this reason

Hello @filghk  i use a devices for testing using by all my company, the apps was worked fine before the new update of google play service(15.0.90(110306-231259764), i tried to do a factory reset to the devices and check the free space (11 Gb free space),
i tried to install the app to my personal devices it is worked fine with google play service(15.0.90(040408..), also i triedd with other devices with the same version of google play service of testing device(15.0.90(110306-231259764) but it is not working so the problem is with the google play service(110306-231259764) if anyone has a solution for this please reply ASAP

@filghk it does seem like you have all the right versions here ... to be honest I am not sure what is failing here.  I will have to ask around

I have the same issue with both this sample and the older vision sample. (See issue post here: https://github.com/googlesamples/android-vision/issues/408 ). Tried all the same fixes (make sure things are updated, clearing cache, even a factory reset).
My best theory at this stage is it's something to do with Android "Go". I can't reproduce the problem on anything other than our Vodafone N9 lite, which is Android "Go" edition (others are not). Only happens with the barcode detection part of this app, other recognition is fine.
The older vision sample (and our app that uses it) used to work fine, we got the first reported problem on the 7th of Feb 2019.
Phone: Vodafone N9 Lite
Android ver: 8.1.0 - Android Go
Play services version: 15.0.90<PHONE_NUMBER>59764)
02-26 09:20:51.395 25412-25453/com.google.firebase.samples.apps.mlkit E/BarcodeNativeHandle: Error Loading module     com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.         at com.google.android.gms.dynamite.DynamiteModule.load(Unknown Source:8)         at com.google.android.gms.internal.vision.zzm.zzq(Unknown Source:28)         at com.google.android.gms.internal.vision.zzm.isOperational(Unknown Source:9)         at com.google.android.gms.vision.barcode.BarcodeDetector.isOperational(Unknown Source:23)         at com.google.android.gms.internal.firebase_ml.zzoj.zza(Unknown Source:23)         at com.google.android.gms.internal.firebase_ml.zzoj.zza(Unknown Source:42)         at com.google.android.gms.internal.firebase_ml.zznd.call(Unknown Source:4)         at com.google.android.gms.internal.firebase_ml.zzmy.zza(Unknown Source:29)         at com.google.android.gms.internal.firebase_ml.zzmz.run(Unknown Source:2)         at android.os.Handler.handleCallback(Handler.java:790)         at android.os.Handler.dispatchMessage(Handler.java:99)         at com.google.android.gms.internal.firebase_ml.zze.dispatchMessage(Unknown Source:6)         at android.os.Looper.loop(Looper.java:164)         at android.os.HandlerThread.run(HandlerThread.java:65) 02-26 09:20:51.409 25412-25412/com.google.firebase.samples.apps.mlkit E/BarcodeScanProc: Barcode detection failed com.google.firebase.ml.common.FirebaseMLException: Waiting for the barcode detection model to be downloaded. Please wait.
You can wait all you want, but nothing happens...

I have the same issue with both this sample and the older vision sample. (See issue post here: https://github.com/googlesamples/android-vision/issues/408 ). Tried all the same fixes (make sure things are updated, clearing cache, even a factory reset).
My best theory at this stage is it's something to do with Android "Go". I can't reproduce the problem on anything other than our Vodafone N9 lite, which is Android "Go" edition (others are not). Only happens with the barcode detection part of this app, other recognition is fine.
The older vision sample (and our app that uses it) used to work fine, we got the first reported problem on the 7th of Feb 2019.
Phone: Vodafone N9 Lite
Android ver: 8.1.0 - Android Go
Play services version: 15.0.90<PHONE_NUMBER>59764)
02-26 09:20:51.395 25412-25453/com.google.firebase.samples.apps.mlkit E/BarcodeNativeHandle: Error Loading module     com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.         at com.google.android.gms.dynamite.DynamiteModule.load(Unknown Source:8)         at com.google.android.gms.internal.vision.zzm.zzq(Unknown Source:28)         at com.google.android.gms.internal.vision.zzm.isOperational(Unknown Source:9)         at com.google.android.gms.vision.barcode.BarcodeDetector.isOperational(Unknown Source:23)         at com.google.android.gms.internal.firebase_ml.zzoj.zza(Unknown Source:23)         at com.google.android.gms.internal.firebase_ml.zzoj.zza(Unknown Source:42)         at com.google.android.gms.internal.firebase_ml.zznd.call(Unknown Source:4)         at com.google.android.gms.internal.firebase_ml.zzmy.zza(Unknown Source:29)         at com.google.android.gms.internal.firebase_ml.zzmz.run(Unknown Source:2)         at android.os.Handler.handleCallback(Handler.java:790)         at android.os.Handler.dispatchMessage(Handler.java:99)         at com.google.android.gms.internal.firebase_ml.zze.dispatchMessage(Unknown Source:6)         at android.os.Looper.loop(Looper.java:164)         at android.os.HandlerThread.run(HandlerThread.java:65) 02-26 09:20:51.409 25412-25412/com.google.firebase.samples.apps.mlkit E/BarcodeScanProc: Barcode detection failed com.google.firebase.ml.common.FirebaseMLException: Waiting for the barcode detection model to be downloaded. Please wait.
You can wait all you want, but nothing happens...

ASUS_X00RD checked for Android Go

@foozeNZ I think you might be onto something. The only device I'm getting this on is running Android Go (Adding it so the Firebase team have more info).
Phone: Samsung Galaxy J2 Core
Android ver: 8.1.0 - Android Go
Play services version: 16.0.89<PHONE_NUMBER>67275)

I'm also having this issue on Android Go phones.

@foozeNZ I've seen the same logs on Moto E5 Play running Android 8.1.0 Go / Google Play Services 16.0.91 (except that I'm using GMS Vision rather than ML Kit).
The only way I've been able to fix it is by deactivating Google Play Services in the app manager and downgrading to an older version (12.8.76) when being asked if I wanted to do so, and then activating Google Play Services again.
Downloading the barcode library worked after that. However, if I upgraded to 16.0.91 again even after having downloaded the barcode library successfully, it stopped working again. Barcode scanning with version 16.0.91 works just fine on a Galaxy S7 running Android 7.0 though, so there's something about this combination of Android version and Google Player Services version.

I'm facing exactly the same issue @mic- described, also a moto e5 play running Android 8.1.0 Go and Google Play Services 16.0.91

Same issue as well on Nexus One (8.1.0 Go).

Same issue as well on...
 The others work.

Similar issue with Telpo TPS 900..Barcode scanning fails

This is a real issue. Can we please get some help here?

This issue still exists on my device even with latest Play Services beta

I've re-tested this quickly on a Nokia 1 and a Moto e5 Play - both of which have had trouble downloading the barcode library in the past - and it appears to be working with the latest Google Play Services version (18.7.something). I'll probably have to test some more before I say anything conclusively, but it looks promising so far.

If there any API can check these dependencies not available

Any Fix for this? Same thing for Huawei Mate 20 PRO
Error loading module com.google.android.gms.vision.ocr optional module true: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.

Have same issue on download ocr models. I found that sometimes the ocr_start file will not be deleted after the ocr model has been successfully downloaded by GMS. In that case, the model status will always be downloading even if the model has already been downloaded into com.google.android.

I have the same issue, two devices with Android 7.1.1 and 7.1.2
Google play services 20.06.16
Using
implementation 'com.google.firebase:firebase-ml-vision:24.0.1'
classpath 'com.google.gms:google-services:4.3.3'
It's been a month researching and no clues. I think it's an Android thing.
I have a release date on March 20th and I am going to fail because of GOOGLE, not some cheap library no one uses.
 The models never download, Iis there anyone looking into this?

Same issue mlkit on my app works on my phone only , not in the emulators or in my testers phones

I have the same issue, two devices with Android 7.1.1 and 7.1.2
Google play services 20.06.16
Using
implementation 'com.google.firebase:firebase-ml-vision:24.0.1'
classpath 'com.google.gms:google-services:4.3.3'
It's been a month researching and no clues. I think it's an Android thing.
I have a release date on March 20th and I am going to fail because of GOOGLE, not some cheap library no one uses.
 The models never download, Iis there anyone looking into this?

Hi, sorry about your frustration. To understand more about what is happening, could you send some bug reports to this email address<EMAIL_ADDRESS>Also, we have identified a bug earlier with module downloading which requires a reboot of the device sometimes to get recovered. The fix will be available in the next GMSCore release. See details here: https://buganizer.corp.google.com/issues/149273821

Any Fix for this? Same thing for Huawei Mate 20 PRO
I need to use ocr/text recognition
Error loading module com.google.android.gms.vision.ocr optional module true: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
google play store version 18.8.16-all

Hi, you will need to update your google play store version as the module download is only supported for the most recent gmscore versions. Currently, the earliest version we support is 19.8.31. There might be some reasons that your device was not getting automatically updated to the latest versions.
Once you update your gmscore to the latest version, note that we have identified a bug earlier with module downloading which requires a reboot of the device sometimes to get recovered. The fix will be available in the next GMSCore release. See details here: https://buganizer.corp.google.com/issues/149273821

I am having the same issue as this with OCR.
When I uninstall my android app clear the Google Play Services' data to remove Firebase modules and reinstall my app this issue occurs. The only way to fix this issue is to restart my device and run the android app again.
Google Play Services: 20.09.14
Android: 9.0.6

I am having the same issue as this with OCR.
When I uninstall my android app clear the Google Play Services' data to remove Firebase modules and reinstall my app this issue occurs. The only way to fix this issue is to restart my device and run the android app again.
Google Play Services: 20.09.14
Android: 9.0.6

Hi, we have identified a bug earlier with module downloading which requires a reboot of the device sometimes to get recovered(specifically when the gmscore version got updated recently). The fix will be available in the next GMSCore release.

Thank you for your response,
Sorry I am new to android development, does this mean the issue is related
to an android update? As In does GMScore automatically update when it is
released to android?
Thank you
On Wed, 15 Apr 2020, 22:21 Chenxi Song<EMAIL_ADDRESS>wrote:

I am having the same issue as this with OCR.
When I uninstall my android app clear the Google Play Services' data to
remove Firebase modules and reinstall my app this issue occurs. The only
way to fix this issue is to restart my device and run the android app again.
Google Play Services: 20.09.14
Android: 9.0.6
Hi, we have identified a bug earlier with module downloading which
requires a reboot of the device sometimes to get recovered(specifically
when the gmscore version got updated recently). The fix will be available
in the next GMSCore release.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/firebase/quickstart-android/issues/805#issuecomment-614286537,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEEUD4PUAU2PFKKEPEUGA5LRMYQN5ANCNFSM4GXTARIA
.

Having the same issue on Xiaomi MI 8 SE.
2020-06-23 18:01:02.165 14211-14553/com.google.codelab.mlkit E/Vision: Error loading module com.google.android.gms.vision.ocr optional module true: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
2020-06-23 18:01:02.166 14211-14553/com.google.codelab.mlkit W/e.codelab.mlki: Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed)
2020-06-23 18:01:02.168 14211-14211/com.google.codelab.mlkit W/System.err: com.google.mlkit.common.MlKitException: Waiting for the text recognition model to be downloaded. Please wait.

Play Store version: 20.4.18
Google Play Services 20.21.17


gam info user error

I am using gam5.24, today 'gam info user error' return below error for 'License' info (it's OK in the past).
If I add 'nolicenses' parameter, no error in result.
===============================================================================
googleapiclient.errors.HttpError: <HttpError 404 when requesting https://licensing.googleapis.com/batch returned "Not Found">

It's back to normal now, seems google api issue.


Increase aaa.cpp performance on POSIX compliant systems

The patch I added is similar to what is seen in GNU yes which is known for its absurd speed.
In this pull request I generate a memory aligned buffer at compile time to reduce overhead by using constexpr.
Using POSIX write, I am able to get a much closer to kernel printing as seen by my benchmarks.
Before: 41.8MiB/s
$ ./aaa | pv > /dev/null
84.7 MiB 0:00:02 [41.8MiB/s]...

After: 5.22GiB/s
$ ./aaa | pv > /dev/null
10.2 GiB 0:00:02 [5.22GiB/s]...

These new speed will be higher or lower depending on the system as memory and cpu speed can become a issue.

Hahaha, Hello to you too!


changing environment variables in managed solutions

Can you update this page to include how to change env variables for managed solutions. This is a massive hole in the documentation
Thanks!

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: ba670cf8-5810-79c4-7a2a-101099ffe1d7
Version Independent ID: 69b7e1fb-9f56-8c07-b1d5-8480fe6d8e1a
Content: Use environment variables in solutions - Power Apps
Content Source: powerapps-docs/maker/data-platform/EnvironmentVariables.md
Service: powerapps
Sub-service: dataverse-maker
GitHub Login: @caburk
Microsoft Alias: caburk

Thanks for your comment, @jt-azdhs. This issue has been assigned to the doc author for review.


[BEAM-52] Kafka IO

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[x] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[x] Replace "<Jira issue #>" in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

Forward-porting https://github.com/GoogleCloudPlatform/DataflowJavaSDK/pull/121. Note that the original author is a Googler (hence covered by CLA) and is still attributed to the actual work.
I fully squashed the original PR and fixed some licenses. More work still in progress.

Just couple of small comments (about Maven coordonates and module). Great work anyway !

Thanks @jbonofre ! We'll take these comments into account as we do the cleanups in the TODO list in the PR description.

Looking in Travis failure.

@dhalperi , I made the package renaming changes this morning, only to realize you have already done that..

Thanks Dan! Glad to see KafkaIO is moved out of contrib.

@rangadi can you give a look and an LGTM? Then I will merge.
Later, we should add an integration test and figure out what to do with the examples. (See comment on https://github.com/apache/incubator-beam/pull/142/commits/1d206630adbebf352606065d19aec7ac97b452ae)

LGTM @dhalperi. Thanks for making the changes.
I agree with your comment on reevaluating if and where example app fits in.


Get rid of guava

Do you really need the guava as runtime scope?

At compile time we compile against some APIs, that have to be then present at runtime, so for now, yes.

+1: for removing guava. We have compatibility issues between Dropwizard, JBoss and finally QueryDSL.
@Shredder121
Which runtime libraries are dependent on guava?
Maybe at least some QueryDSL modules could minimize using guava?

I also support removing guava. It is a dependency of quite some projects. When using them together it's very easy to get errors because of incompatible versions. It happened to me so many times.
I had to spend a lot of times finding the right guava version compatible with all my dependencies.

Here is complete list of imports from querydsl-core. A lot of classes are using ImmutableList.
I cannot say for this project that they are not used but I can tell you how we solve this problem in Apache. We use the maven-shade-plugin and we reallocate the classes to org.apache.maven. In this case the resulting packages will be reallocated to com.querydsl.core.com.google.common.cache.
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.google.common.base.Objects;
import com.google.common.base.Objects;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists;
import com.google.common.base.Preconditions;
import com.google.common.collect.Maps;
import com.google.common.base.Function;
import com.google.common.primitives.Primitives;
import com.google.common.collect.Iterables;
import com.google.common.collect.Sets;
import com.google.common.collect.*;

@Shredder121
How the proposal with maven-shade-plugin sounds to you?
I will try to propose the same in dropwizard project.

The Dropwizard project decided to follow more difficult way and removed Guava, see https://github.com/dropwizard/dropwizard/issues/2486

I was also thinking of dropping Guava, although the only annoyance would be the template cache (which already causes some memory related issues).
Thanks for the link though.

@Shredder121 ok, understand, but what is your plan? You want to copy Dropwizard's utilities? This may help and speedup.
You say causes some memory related issues. You mean Java Memory Model JSR-133?
I may help you regarding caches if you show me what's going on.

template cache (which already causes some memory related issues).

I meant the current one already causes some issues #2218. The latest commit on that pull request (switch to Guava cache) is directly perpendicular to this issue.
So first have to depend on something like caffeine?
All other things can be replaced by JDK8, or thin wrappers/small methods. (creating maps, etc)

Could you instead depend on custom cache type, ConcurrentMap, or slimer interface with just computeIfAbsent call? It seems that's all you would need in AliasFactory (which is unbounded so could be a ConcurrentHashMap if acceptable) and TemplateFactory (which does not memoize atomically).
I don't know enough about the lifecycle / injection points, but this way you could carve out the cache to be optional or pluggable. You could default it to your preference (unbounded, caffeine) and let the user reconfigure and exclude the default's dependencies.
Another alternative if you just a concurrent LRU and a light weight dependency, is to use the much less feature rich ConcurrentLinkedHashMap. That was commonly shaded or copied into projects directly (e.g. SqlServer driver, Groovy). That was a JDK5 era project to work out a concurrent LRU algorithm, so well proven but minimalistic.

Please note that guava is affected by vulnerability: CVE-2018-10237.
Instead of ImmutableList just use Collections.unmodifyableList(myMutableList)

For guavas cache I was thinking Caffeine, but maybe it's a bit much to pull in a new dependency.
Anyway, migrating away from guava entirely is not an easy feat unfortunately.

Is there any news on this? Being tied to guava 18 is a serious issue. What would be the work involved in at least getting into a modern version?

What would be the work involved in at least getting into a modern version

You could pull in your own version of Guava, but YMMV, since it's not really a backwards-compatible friendly library anymore. (which is more apparent in more recent versions unfortunately)

As for doing work for getting a more modern version, I'd much rather replace guava with java 8+ features or with libraries specifically suited for a task (to tackle the configurable caching issue).

I totally get that, but the impression I get is that it isn't being done any time soon. The problem here is that the functionalities in question are not trivial, and outsiders are likely to introduce subtle bugs f trying to migrate to something else. That's why I thought that someone savvy moving to a version that is reasonably modern but still compatible would be the safest quick win.

@entonio
That's all true and pragmatic, but there is one way to do it. I am also OSS developer and I am aware of the view where the outsider has always different experiences.
Certain Guava version has worked fine for QueryDSL, right? Roughly spoken, what functionality would be broken if you copy-paste the content of guava'a Ja file into yours? An elegant solution in this way is to use Maven plugin maven-shade-plugin and configure the plugin properly with optimizations (only called Guava classes to shade).

After shading the libs, you will have a plenty of time to reduce Guava classes from simple to more complex ones. And you will have sustaining progress and next release to drop this problem once for all.

can the guava be removed? it causes lots incompatible issues. And we're in JDK 8 9 10 11 now, why still need it?

N.B. if updating to a more recent guava, you'll want to exclude all these: https://github.com/google/guava/issues/2824

Good job 👍