text:
No module named 'gfootball.eval_server'

When I follow the steps below:
sudo apt-get install git cmake build-essential libgl1-mesa-dev libsdl2-dev
libsdl2-image-dev libsdl2-ttf-dev libsdl2-gfx-dev libboost-all-dev
libdirectfb-dev libst-dev mesa-utils xvfb x11vnc libsdl-sge-dev python3-pip
pip install gfootball
pip3 install grpcio google-cloud-storage
The following problems occurred:
~$python -c "import gfootball.eval_server"
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'gfootball.eval_server'
But "import gfootball" is good.
What's wrong with my steps?
thanks a lot!

Most likely, the reason is that you're mixing python2 and python3. Many systems still use python2 when you type python in the Terminal. The same goes for pip and pip3. So the correct way is pip3 install gfootball instead of pip install gfootball.
And then you can run python3 -c "import gfootball.eval_server" without errors.
I'll send a pull request to correct the Readme.

repo: google-research/football


text:
Issue with pixel representation

Mac OS Catalina 10.15.4
I get the following error when I change the representation to pixels, or grayscale pixels.
Traceback (most recent call last):

  File "train.py", line 4, in <module>
    env.reset()
  File "/Users/shehrum/Documents/football/football-env/lib/python3.7/site-packages/gym/core.py", line 230, in reset
    return self.env.reset(**kwargs)
  File "/Users/shehrum/Documents/football/football-env/lib/python3.7/site-packages/gym/core.py", line 258, in reset
    return self.observation(observation)
  File "/Users/shehrum/Documents/football/football-env/lib/python3.7/site-packages/gfootball/env/wrappers.py", line 209, in observation
    frame = observation['frame']
KeyError: 'frame'

Code:
import gfootball.env as football_env
import numpy as np
env = football_env.create_environment(representation='pixels',env_name="11_vs_11_hard_stochastic", stacked=False, logdir='logs', write_goal_dumps=False, write_full_episode_dumps=False,write_video=False ,render=False,number_of_left_players_agent_controls=1 ,number_of_right_players_agent_controls=1,rewards='scoring,checkpoints')
env.reset()
steps = 0
n_episodes=1
print(env.observation_spaces.shape)

It works fine if I use the default representation 'extracted'.

I tried with and without render=True but that didn't help

I can reproduce it on Mac and Ubuntu. The problem is gone if you control only one team:
number_of_left_players_agent_controls=1, number_of_right_players_agent_controls=0
@qstanczyk is it designed to be so? Or is it a bug?
@shehrum BTW, you have to use render=True with pixels representation.

Yes, pixel representation depends on the rendering and game renders only a single view. As observations for the right team are mirrored for convenience, we would have to render the scene twice as well. I will update the implementation adding more descriptive error.

source: gharchive/issue

authors: qstanczyk shehrum vi3itor

license_type: permissive

license_source: bigquery


text:
Update Python CFU interface

Brings API into line with other nmigen code by discouraging passing of modules between components.
A simple API for making CFUs with independent instructions is preserved via the simple_cfu() function, but CFUs with interdependent instructions should use a subclass of the CFU class, and instantiate their instructions in the elab_instructions() method. avg_pdti8/cfu.py has an example of a Cfu subclass.

Repushed to remove newer Python annotation syntax that was causing CI queue to fail.

source: gharchive/pull-request

repo: google/CFU-Playground


text:
GIDSignIn.sharedInstance.signIn does not return a callback sometimes

Describe the bug
The issue is, the GIDSignIn.sharedInstance.signIn method does not return a callback sometimes. This bug is a very inconsistent to reproduce. But here are the steps:
To Reproduce
Steps to reproduce the behavior:

Call the signIn method in swift code like so:

GIDSignIn.sharedInstance.signIn(
    with: configuration,
    presenting: rootViewController,
    hint: nil,
    additionalScopes: ["https://www.googleapis.com/auth/gmail.readonly"]
) { result, error in
    // Inside the closure
}

Observe that closure (callback) never gets executed sometimes, but the google sign in sheet is dismissed.

Usually, this occurs the first time during an app-run and the second time, it works as expected. As a result, the implementation has been flaky in our application, leading to users having to sign-in twice each time (most of the times, since it occurs randomly, there are times when the first sign in attempt works as expected)
Expected behavior
The GIDSignIn.sharedInstance.signIn method to work properly and execute the callback consistently, even if there is some error.
Screenshots
N/A
Environment

Device: On several iOS devices, was able to reproduce on iPhone 14 pro, iPhone 13 pro max and iPhone XR.
OS: iOS 17.3.1 (but also on different versions of iOS 17)
Browser: N/A

Additional context
Seems like this has already been mentioned here: https://github.com/google/GoogleSignIn-iOS/issues/360 but without much context. I have added enough context, hoping to help debug this better.

Hi @doctorsaway this isn't reproducible on our end. Please take a look at our example apps to see how you might use this functionality. If there is something that is different, or something that you believe we can address, please reply with more exact reproduction steps (for example, providing context on how your call to -[GIDSignIn signIn...] is made would be helpful).

@mdmathias
We are experiencing the same thing, except that it is not intermittent has overnight stopped working altogether.
We've had no change to the same code that was working yesterday, but suddenly today there is no callback firing anymore.
Neither the success nor Cancel scenarios fire the callback anymore.
NOTE: We tried both async and callback APIs and neither are continuing past the initial invocation.
Invocation code:
func initiateGoogleAuth_async() async throws -> User {
	do {
		let result:GIDSignInResult = try await GIDSignIn.sharedInstance.signIn( withPresenting: self )

		// authenticate
		let user:User = try await self.accountService.authenticate( googleUser: result.user ) //  <--- never gets here

	} catch let error {
		print( "ERROR: \(error)" ) // <--- never gets here
		...
	}
}

func initiateGoogleAuth_callback( onSuccess:@escaping(User) -> (), onError:@escaping(any Error) -> () ){
	GIDSignIn.sharedInstance.signIn( withPresenting: self ){ (result:GIDSignInResult?, error:(any Error)?) in
		guard let result else {
			print( "ERROR: \(error)" ) // <--- never gets here
			...
			return
		}

		// authenticate
		let user:User = try await self.accountService.authenticate( googleUser: result.user ) //  <--- never gets here
	}
}

Could this have anything to do with some security/configuration for the project not being correctly set?

UPDATE: The callbacks started working again after over an hour of observed downtime.
This is quite concerning as it seems there might be Google back-end issues that the library is not handling. If there are errors they should be surfaced up through the error callback not swallowed and app left in an undetermined state (ie: neither succeeded or failed)
ASK: Could the team investigate if any back-end issues were experienced on Apr 11, 2014 prior to 3:30pm UTC (time of my prior post). By 5pm UTC the callbacks started resuming again.
Please keep us posted on this as it is a total blocker to user sign-up / acquisition if this happens intermittently, and we'd like to understand how pervasive this is (ie: % of SLA to expect)

Chased this further down and it seems that within GIDSignIn::addCompletionCallback(..) (line 859) the self->_currentOptions.completion line fails the nil check (in fact _currentOptions itself if nil), so it somehow loses reference to the callback passed into the initial SDK by the time the full auth sequence finishes.

I've confirmed there are no underlying errors and the actual user object is successfully fetched as can be seen in the screenshot above.
Happy to schedule a call and walk the team through any debugging needed to reproduce this on your guys end.

Hi @marchy. Thanks for the posts and your analysis. Sorry that you're having trouble.
First, let me confirm that I understand your issue. From what I gather, it seems like you're experiencing a kind of race condition due to simultaneous calls to restorePreviousSignIn() and signIn(), where the restore call is setting _currentOptions to nil prior to the sign in call's use of _currentOptions.completion to add the completion callback. Therefore, the sign in flow in your app will occasionally not issue a callback due to this race condition. Seems like this line would not pass in this scenario, which would lead to no callback. Is that right?
If my understanding is correct, then it is unfortunately an error to simultaneously call signIn() and restorePreviousSignIn(). From the library's point of view, it doesn't make sense to restore and sign in at the same time.
Even if we made changes to GSI to protect against this error [1], apps would still have to implement some logic to choose which response to handle. For example, which response is the truth? The sign in or the restore? The completions will not have the same information.
The practical solution on your end is to make sure that you are signing in and restoring at different points in your app's lifecycle. Ultimately, it's up to apps to manage this. You can take a look at our Swift sample and ObjC sample for inspiration.
[1] I haven't fully thought through the feasibility of your request, but I believe it may require significant refactoring of the library. We'd have to (potentially re-) consider GIDSignIn's singleton status, manage multiple async callback queues on behalf of clients wishing to issue simultaneous and duplicative requests, etc. While I can see ways that this would be useful to callers like yourself (given the scenario you outline above), I have to admit that this sort of change is not feasible at the moment. Of course, since the repo is open source, if you believe you have a simple fix to resolve this, then please send us a PR and we would love to review it!

Hi @mdmathias
I have the same issue and I didn't simultaneously call signIn() and restorePreviousSignIn(). I call signIn() only after restorePreviousSignIn() doesn't succeed, not in parallel, but the callback from signIn() is never called. I use v. 8.0

If anyone needs a workaround for this issue for v.8.0 SDK, you can use this. Works like a charm for me.
It essentially monitors Google Auth controller disappearing. You don't get the error, but you can get the fact that it was presented and dismissed and check the currentUser after the dismissal is complete.
Also, you can make the completion be called only only once by putting it into a separate optional property and making it nil after the first call. But for my use case it's not needed.
    private weak var presentingController: UIViewController?
    private var dismissalTimer: Timer?
    private var googleAuthWasPresented = false

    private func signInAndRequestCalendarPermission(presenting: UIViewController, completion: @escaping (GIDGoogleUser?, Error?) -> Void) {
        let scopes = [kGTLRAuthScopeCalendar]

        // It's a workaround, because signIn() doesn't return a callback in most cases
        self.presentingController = presenting
        startMonitoringDismissal(completion: completion)

        GIDSignIn.sharedInstance.signIn(withPresenting: presenting,
                                        hint: nil,
                                        additionalScopes: scopes) { result, error in
            completion(result?.user, error)
        }
    }

    private func startMonitoringDismissal(completion: @escaping (GIDGoogleUser?, Error?) -> Void) {
        dismissalTimer?.invalidate()
        dismissalTimer = Timer.scheduledTimer(withTimeInterval: 0.1,
                                              repeats: true) { [weak self] _ in
            guard let self = self else { return }

            if self.presentingController?.presentedViewController != nil {
                self.googleAuthWasPresented = true
            } else if self.googleAuthWasPresented {
                print("Presented view controller has been dismissed.")
                completion(GIDSignIn.sharedInstance.currentUser, nil)

                self.googleAuthWasPresented = false
                self.presentingController = nil
                self.dismissalTimer?.invalidate()
                self.dismissalTimer = nil
            }
        }
    }

authors: Ariandr doctorsaway marchy mdmathias

repo: google/GoogleSignIn-iOS


text:
Added power function to backend to new backends

This PR implements the power function specifically to symmetric and PyTorch backends with their respective test.
The changes were implemented in the files:
tensornetwork/backends/pytorch/*
tensornetwork/backends/symmetric/*

This is in regards to the issue #840.

@mganahl @alewis Hello! here is the new PR where you may find the new changes and the tensordot issue. I await your feedback and thank you for the oportunity

Hello @alewis @mganahl! Running the test from pylint seems to cause and issue which I cannot resolve, it states that Python does not exist in module tensorflow, I assume the issue is init.py thought updating it with a small change such as adding a . does not seem to solve the issue, also my pylint returns a 10/10 both locally and here in GitHub's CI, the difference being that I do not get this issue locally.
In my search I found that this issue is not some enclosed issue, I found some people raising this issue as well in other places here are some examples:

https://github.com/Unity-Technologies/ml-agents/issues/1411
https://stackoverflow.com/questions/40334643/no-name-in-module-error-from-pylint
https://pycodequ.al/docs/pylint-messages/e0611-no-name-in-module.html

I will continue my search for a solution, my main problem being that we can't resolve the tensordot issue without resolving this first, I would love some help or feedback. Thank you so much in advance for all the help and support you have given me!

repo: google/TensorNetwork


text:
[Translate ru] Agencies -> index

Check out a review request at GitLocalize

@agektmr Reviewed

:tada: This has been pushed live to https://developers.google.com/web/

repo: google/WebFundamentals


text:
Fixes #9241 - Remove references to Accept-CH-Lifetime

It's been removed from relevant specs, and we shouldn't encourage its use.
What's changed, or what was fixed?

I removed references to Accept-CH-Lifetime.

Fixes: #9241
Target Live Date: YYYY-MM-DD

[ ] This has been reviewed and approved by (NAME)
[ ] I have run npm test locally and all tests pass.
[ ] I have added the appropriate type-something label.
[ ] I've staged the site and manually verified that my content displays correctly.

CC: @petele
@yoavweiss @rowan-m

@philipwalton - can you take a look and approve if appropriate?

@miketaylr I'm happy with the rest, so could you just verify my bit.

@rowan-m yep, looks good - thanks! (feel free to merge)

authors: miketaylr petele


text:
How to connect with react native?

I am trying to run prerelease 3 for a react native project but it's not detecting the emulator. I have started the emulator.
Running command adb devices show this result
List of devices attached
emulator-5554	device

But when I run emulator -list-avds it's not showing there

I'm using it with react native. If it's the only device you have connected react native should choose this one?

I'm using it with react native. If it's the only device you have connected react native should choose this one?

It's working now 👍. Previously I had set up an emulator on android studio, but then I removed it and restart the system and run it and it worked.

It's working now 👍. Previously I had set up an emulator on android studio, but then I removed it and restart the system and run it and it worked.


text:
Add example questionnaire with autocomplete control

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #520
Description
Created a sample Questionnaire with autoComplete item control and added to the Gallery App list of Questionnaires
Type
Feature
Checklist

[X] I have read and acknowledged the Code of conduct
[X] I have read How to Contribute
[X] I have read the Developer's guide
[X] I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA
[X] I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach
[ ] I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project
[ ] I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally
[ ] I have built and run the reference app(s) to verify my change fixes the issue and/or does not break the reference app(s)

Please note: This has not been tested locally.

When I try to run the gallery app locally it is crashing at the moment.
There has been no change to underlying code.
Just addition of Questionnaire and an item to the Gallery App

repo: google/android-fhir


text:
Added support for nested namespaces while exporting function names.

I noticed if functions are inside nested namespaces, that only the parent namespace would get appended to the function name when the prependNamespace option was enabled.

Thank you!

authors: cblichmann patriq

repo: google/binexport


text:
Cannot build closure-compiler

I'm trying to build a specific version of closure-compiler (v20210302) for compatibility reasons, namely to then build libphonenumber, which specifies that it needs this specific version of closure-compiler. I'm on MacOS Ventura.
But when I run:
bazelisk build :all
I get the error:
ERROR: no such package '@google_bazel_common//'. Any ideas? Thanks for your help.
The output from bazelisk version:
Bazelisk version: development
Build label: 2.2.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Mar 3 09:28:15 2020 (1583227695)
Build timestamp: 1583227695
Build timestamp as int: 1583227695

I found this possibly related issue: #3717 but the solution seems to be installing windows specific dependencies like MSYS2, when I am on MacOS Ventura.
Here's the full error message for reference:
Starting local Bazel server and connecting to it...
INFO: Call stack for the definition of repository 'google_bazel_common' which is a git_repository (rule definition at /private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git.bzl:195:18):
 - <builtin>
 - /Users/jack/workspace/libphonenumber/closure-compiler/WORKSPACE.bazel:5:1
ERROR: An error occurred during the fetch of repository 'google_bazel_common':
   Traceback (most recent call last):
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git.bzl", line 177
		_clone_or_update(ctx)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git.bzl", line 36, in _clone_or_update
		git_repo(ctx, directory)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 91, in git_repo
		_update(ctx, git_repo)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 103, in _update
		fetch(ctx, git_repo)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 129, in fetch
		_git_maybe_shallow(ctx, <5 more arguments>)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 171, in _git_maybe_shallow
		_error(ctx.name, <2 more arguments>)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 181, in _error
		fail(<1 more arguments>)
error running 'git fetch origin refs/heads/*:refs/remotes/origin/* refs/tags/*:refs/tags/*' while working with @google_bazel_common:
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Operation timed out

ERROR: no such package '@google_bazel_common//': Traceback (most recent call last):
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git.bzl", line 177
		_clone_or_update(ctx)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git.bzl", line 36, in _clone_or_update
		git_repo(ctx, directory)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 91, in git_repo
		_update(ctx, git_repo)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 103, in _update
		fetch(ctx, git_repo)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 129, in fetch
		_git_maybe_shallow(ctx, <5 more arguments>)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 171, in _git_maybe_shallow
		_error(ctx.name, <2 more arguments>)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 181, in _error
		fail(<1 more arguments>)
error running 'git fetch origin refs/heads/*:refs/remotes/origin/* refs/tags/*:refs/tags/*' while working with @google_bazel_common:
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Operation timed out

ERROR: no such package '@google_bazel_common//': Traceback (most recent call last):
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git.bzl", line 177
		_clone_or_update(ctx)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git.bzl", line 36, in _clone_or_update
		git_repo(ctx, directory)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 91, in git_repo
		_update(ctx, git_repo)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 103, in _update
		fetch(ctx, git_repo)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 129, in fetch
		_git_maybe_shallow(ctx, <5 more arguments>)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 171, in _git_maybe_shallow
		_error(ctx.name, <2 more arguments>)
	File "/private/var/tmp/_bazel_jack/e01c1276e074eb04ddd632847a37b16d/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 181, in _error
		fail(<1 more arguments>)
error running 'git fetch origin refs/heads/*:refs/remotes/origin/* refs/tags/*:refs/tags/*' while working with @google_bazel_common:
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Operation timed out

INFO: Elapsed time: 83.172s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)

It looks like your root issue might be connectivity of some kind:
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Operation timed out

Any chance trying again helps, since clearly you can reach github.com in your browser? Otherwise is it possible that you're limited (by some firewall, etc) in how you can connect to github?

Thanks for your quick response. Yeah I thought the same thing, but as you note, I'm on the Github website all the time. I've tried this from my local library's wifi, from my phone's hotspot, and from my home wifi and I get the same thing. I'm fine cloning repos from Github, so I don't think it's the connection... 🤔

And to be clear, I've run the command many times now. It used to take 70-80 seconds to timeout, and now it's consistently taking 20 seconds. I'm wondering if somehow I'm being rate-limited? I guess I'll wait a while and try again tomorrow.

Ok the weird thing is if I checkout master, then it builds just fine (including loading google_bazel_common I noticed!)
But then I checkout v20210302 again, and build again, and get the same error as before 🤷
Also worth mentioning: last year this version was building just fine for me, but that was on a previous version of MacOS, JDK, Bazelisk etc.
Do let me know if you have any other thoughts? 🙏

Just to be sure, I've run the Github Debug commands, which seem to work fine:
~/w/l/closure-compiler ❯❯❯ git clone https://github.com/github/debug-repo /tmp/debug-repo-http                                                                                tags/v20210302
Cloning into '/tmp/debug-repo-http'...
remote: Enumerating objects: 1653, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 1653 (delta 0), reused 0 (delta 0), pack-reused 1649
Receiving objects: 100% (1653/1653), 329.28 KiB | 3.39 MiB/s, done.
Resolving deltas: 100% (1063/1063), done.

~/w/l/closure-compiler ❯❯❯ git clone git@github.com:github/debug-repo /tmp/debug-repo-ssh                                                                                tags/v20210302
Cloning into '/tmp/debug-repo-ssh'...
remote: Enumerating objects: 1653, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 1653 (delta 0), reused 0 (delta 0), pack-reused 1649
Receiving objects: 100% (1653/1653), 329.28 KiB | 1.20 MiB/s, done.
Resolving deltas: 100% (1063/1063), done.

~/w/l/closure-compiler ❯❯❯ ping -c 10 github.com                                                                                tags/v20210302
PING github.com (140.82.121.3): 56 data bytes
64 bytes from 140.82.121.3: icmp_seq=0 ttl=48 time=21.115 ms
64 bytes from 140.82.121.3: icmp_seq=1 ttl=48 time=23.028 ms
64 bytes from 140.82.121.3: icmp_seq=2 ttl=48 time=22.447 ms
64 bytes from 140.82.121.3: icmp_seq=3 ttl=48 time=22.712 ms
64 bytes from 140.82.121.3: icmp_seq=4 ttl=48 time=21.130 ms
64 bytes from 140.82.121.3: icmp_seq=5 ttl=48 time=21.387 ms
64 bytes from 140.82.121.3: icmp_seq=6 ttl=48 time=22.286 ms
64 bytes from 140.82.121.3: icmp_seq=7 ttl=48 time=21.083 ms
64 bytes from 140.82.121.3: icmp_seq=8 ttl=48 time=24.416 ms
64 bytes from 140.82.121.3: icmp_seq=9 ttl=48 time=21.133 ms

--- github.com ping statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 21.083/22.074/24.416/1.055 ms

~/w/l/closure-compiler ❯❯❯ traceroute github.com                                                                                tags/v20210302
traceroute to github.com (140.82.121.3), 64 hops max, 52 byte packets
 1  192.168.1.254 (192.168.1.254)  4.119 ms  1.603 ms  1.251 ms
 2  * * *
 3  * * *
 4  31.55.185.176 (31.55.185.176)  11.687 ms  9.193 ms  10.235 ms
 5  core1-hu0-12-0-3.colindale.ukcore.bt.net (195.99.127.216)  9.422 ms
    core2-hu0-6-0-9.colindale.ukcore.bt.net (213.121.192.30)  8.876 ms
    core1-hu0-16-0-8.colindale.ukcore.bt.net (213.121.192.20)  8.930 ms
 6  core6-hu0-3-0-15.faraday.ukcore.bt.net (109.159.252.134)  10.488 ms
    peer7-et-0-1-6.telehouse.ukcore.bt.net (109.159.252.166)  8.723 ms
    core6-hu0-7-0-15.faraday.ukcore.bt.net (195.99.127.50)  9.510 ms
 7  166-49-209-194.gia.bt.net (166.49.209.194)  9.163 ms
    166-49-214-194.gia.bt.net (166.49.214.194)  16.152 ms
    166-49-209-194.gia.bt.net (166.49.209.194)  9.290 ms
 8  ldn-b3-link.ip.twelve99.net (213.248.71.146)  9.067 ms *  12.473 ms
 9  ae3.cs1.lhr15.uk.eth.zayo.com (64.125.28.150)  20.661 ms  21.045 ms
    ldn-bb1-link.ip.twelve99.net (62.115.120.74)  10.206 ms
10  * prs-bb2-link.ip.twelve99.net (62.115.133.239)  18.148 ms  16.385 ms
11  ae4.cs1.ams17.nl.eth.zayo.com (64.125.28.36)  22.763 ms
    ffm-bb1-link.ip.twelve99.net (62.115.123.12)  24.707 ms
    ae4.cs1.ams17.nl.eth.zayo.com (64.125.28.36)  21.029 ms
12  * ffm-b11-link.ip.twelve99.net (62.115.124.119)  25.015 ms *
13  github-ic350972-ffm-b11.ip.twelve99-cust.net (62.115.182.171)  25.382 ms
    ae1.mcs1.fra6.de.eth.zayo.com (64.125.29.57)  20.609 ms
    github-ic350972-ffm-b11.ip.twelve99-cust.net (62.115.182.171)  24.573 ms
14  82.98.193.31.ipyx-270403-001-zyo.zip.zayo.com (82.98.193.31)  19.704 ms * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
31  * * *
32  * * *
33  * * *
34  * * *
35  * * *
36  * * *
37  * * *
38  * * *
39  * * *
40  * * *
41  * * *
42  * * *
43  * * *
44  * * *
45  * * *
46  * * *
47  * * *
48  * * *
49  * * *
50  * * *
51  * * *
52  * * *
53  * * *
54  * * *
55  * * *
56  * * *
57  * * *
58  * * *
59  * * *
60  * * *
61  * * *
62  * * *
63  * * *
64  * * *

In the end I solved it with this workaround: https://github.com/npm/npm/issues/6285#issuecomment-56640354

repo: google/closure-compiler

license_source: github-api


text:
goog.db.Index.getAllKeys() returns array of undefined values

This issue was imported from Closure Library's previous home at http://closure-library.googlecode.com
The link to the original issue is:
https://code.google.com/p/closure-library/issues/detail?id=619

Can't repro.

authors: joeltine nanaze

repo: google/closure-library


text:
Getting Started page refers to subversion instead of git

This issue was imported from Closure Library's previous home at http://closure-library.googlecode.com
The link to the original issue is:
https://code.google.com/p/closure-library/issues/detail?id=538

Fixed


text:
Page0 long polling for hosts and environments

Should be merged after #191
Add long polling for host creation, host deletion, and env creation
Host deletion updates corresponding environment to be status "stopping"

@ikicha @k311093 PTAL

Can you please rebase this PR to the main?

Can you please rebase this PR to the main?

Done!

repo: google/cloud-android-orchestration


text:
Migrate from simulation/interaction/collaboration to activity/groupActivity

We will deprecate the entry points simulationOf, interactionOf, collaborationOf, and unsafeCollaborationOf, and replace them with new entry points activityOf, groupActivityOf, and unsafeGroupActivityOf.
The new entry points differ in that they do not take a separate time-step function as an argument.  Instead, the time step function is included in Event as a new constructor called TimePassing.

One wart in this approach is that TimePassing in groupActivityOf must be accompanied by a player number.  Currently, that number is (-1) for haskell-mode, and 0 for codeworld-mode.  This seems like as good an answer as any.

Still to do:

Update online documentation.
Try to find and ask for updates to most of the commonly used resources on the web.  (CIS 194 will be an important one.)
Deprecate simulationOf, interactionOf, collaborationOf, and unsafeCollaborationOf.
Wait 2 years before removal.

repo: google/codeworld


text:
pip install deepconsensus==0.1.0 fails...

Hello,
I don't have sudo privileges on my server and I would love to try using deepconsensus. I have attempting installing deepconsensus through the recommended method.
The following commands:
pip install deepconsensus==0.1.0
pip install deepconsensus

returns
ERROR: Could not find a version that satisfies the requirement deepconsensus (from versions: none)
ERROR: No matching distribution found for deepconsensu

The server details are as follows:
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
Regards,
Sangjin

Please see https://github.com/google/deepconsensus/issues/1

conda create -n py3 python=3.6
source activate py3
pip install deepconsensus==0.1.0

repo: google/deepconsensus


text:
Nuget

Good afternoon,
I'd love to be able to pull in the C# version of this library into a project I am working on, but see no way to do that via the package ecosystem of .NET/Visual Studio (e.g. Nuget.) Would the recommended way currently be to simply clone this repo and pull down the C# file we need?

I'm also happy to wrap up the class into a *.nupkg if that's at all possible.

I went ahead and submitted my own PR for this. #47
Will track any additional developments there.

repo: google/diff-match-patch


text:
Move copyright check to GitHub Actions

Also upgrade to latest Terraform version
Release Note

NONE

/assign @whaught

repo: google/exposure-notifications-server


text:
Support for storing parquet files in AWS S3 is not available

I think Beam supports S3 natively; we should probably just add a dependency and maybe set some filesystem options to fix this. I will take a look at this soon.

@bashir2, We are still facing the same issue while applying the S3 location in dwhRootPrefix of docker/config/application.yaml file.

Thanks @Charantl for the note; when I fixed this last month I only tested it in the base pipeline and made sure S3 output locations work. This error is coming from the controller which I missed. I am going to fix it next week.

@Charantl can you please build from HEAD and confirm that the controller/pipelines work with S3 files in your environment?

@bashir2 The S3 path location is functioning correctly, and we were able to push the data to S3. However, it appears that the timestamp_start.txt file must be present in the directory specified by dwhRootPrefix. If the timestamp_start.txt file is not located in the specified directory, it results in a NoSuchKeyException error, and the final data is stored in the previous directory.
For example, with dwhRootPrefix set to s3://bucket_name/baseDir/childDir/prefix, the application expects timestamp_start.txt in the prefix folder, but the data is being stored in the childDir instead of the prefix directory.

Thanks @Charantl for the report; I am unable to reproduce the problem you are facing. Are you sure that there are no files under s3://bucket_name/baseDir/childDir when you start using the controller? The cases that I tried and all worked fine:

Creating a fresh S3 bucket, say new-bucket and setting dwhRootPrefix: "s3://new-bucket/prefix"
Doing the same but set dwhRootPrefix: "s3://new-bucket/childDir/prefix"
Creating a random file under s3://new-bucket/childDir and setting dwhRootPrefix: "s3://new-bucket/childDir/prefix"

Also are you sure you are using the latest version of the code? Asking because the line numbers do not align with the code at HEAD. For example initialiseLastRunDetails is called on line 241 of PipelineManager.java but in your logs it says 243.
Also the reason I am guessing s3://bucket_name/baseDir/childDir/ is not empty in your case is that the above code branch is triggered (i.e., the stack-trace you sent us). For an empty (or non-existent) "directory" that code branch should not be triggered. (Just to emphasize: The directory being empty is not a requirement and the code should work for non-empty case too, I am just trying to see how to reproduce the problem you have and potentially offer a solution to your case.)

Currently, we are able to push data to S3 when the folders are created automatically as specified in the dwhRootPrefix: "s3://bucket-name/baseDir/prefix".
Please find below our observations:

Instead of allowing the folders to be created automatically in S3 by setting the path dwhRootPrefix: "s3://bucket-name/baseDir/prefix", we manually created the folders baseDir and prefix, which led to the previously mentioned issue.

Also are you sure you are using the latest version of the code?

We cloned the latest code and added some logs to verify.

When creating tables in HIVE using the generated parquet files from S3 by setting createHiveResourceTables to true, the resource tables were not created. A screenshot of the log has been included below:

Incremental Pipeline: It works as expected when using a local directory path. However, changing the dwh path to S3 and running the incremental pipeline results in the creation of parquet files for the first incremental when there are new changes in the source database. In other cases, we encounter a FileAlreadyExistsException. A screenshot of the log has been included below.

An update on this following our conversations: From the list above, 3 and 4 seems to be causing issues, I took a look and here are some notes:
Re. 4) I could not reproduce any incremental run issues due to S3. I ran the controller with  dwhRootPrefix set to a S3 location and continuously updated the FHIR server for a few hours. The controller kept running the incremental pipeline on its schedule for several hours, without any issues.
That said, from the logs you shared, it seems that for whatever reason (which needs to be investigation further on your side) one of the incremental runs have failed. And after that the controller has failed to recover. This particular edge-case is something that was indeed a bug for S3 or any other bucket based cloud storage (e.g., GCS). This should be fixed by #1185. If the incremental run failure happened again, please share the error.log with us (available both in the controller UI and under the data-warehouse incremental run path).
Re. 3) I am guessing you are using one of compose-controller*.yaml configs under docker, correct? If that's the case, all of those are provided as examples for a quick and local deployment, i.e., everything, including the pipelines and Spark components run locally. If you want to have a distributed or cloud file-system based deployment, you need to tweak those configurations.
For example, if all you need is to use S3 for storage but run everything locally one a single processor, then I think it is much easier to mount an S3 bucket into the docker containers. It seems here is a plugin to do so (I have not used them myself).
If on the other hand, you want to test horizontal scalability of Spark on your generated Parquet files, then my suggestion is to set createHiveResourceTables  to false for now and manually create the required tables in the Thrift server for your distributed Spark deployment. Once you figure that is indeed the approach you want to take, we can work together to add a feature to createHiveResourceTables  to support your particular deployment as well.

repo: google/fhir-data-pipes


text:
Add optional XCB support to PlatformVkLinux.

This allows clients to build the Vulkan backend with either XLIB or XCB
support. I did a quick smoke test of the XCB option, but for now we are
continuing to default to XLIB. Note that the native window type used to
create the swap chain differs between these two API's.

Ah, I forgot that createSwapChain has a "flags" argument.  We could add a flag for XCB, that way we could support both.

Oh, actually we should make it possible to build FIlament with neither XLIB nor XCB support; I've already hit a use case for this, when headless rendering on a system that does not have any X11 libraries.  So I'll need to follow this up with another PR.

repo: google/filament


text:
cmp.Equal doesn't work with big.Int out of the box

It would be nice if types like big.Int worked out of the box.
big.Int doesn't provide Equal method. It has Cmp though.
I don't know how common types with Cmp but no Equal are. If they're common then we could consider teaching cmp about Cmp methods. If they're not then perhaps we could make math/big provide Equal methods.
In general, it would be nice if cmp just worked with as many stdlib types as possible.
Having simple cmp.Equal work with more types would be nice but isn't a big deal either.

Related https://github.com/google/go-cmp/issues/89

At this point in time, I don't think we can change which methods cmp automatically looks for without breaking backwards compatibility. The workaround is to just provide a Comparer that works on an
interface{ Cmp() int }.

authors: LMMilewski dsnet nhooyr

repo: google/go-cmp


text:
Missing ListOptions in ListRepositoryAccessRunnerGroup

Based on API document this API call has pagination mechanism implemented.
However with current implementation the ListRepositoryAccessRunnerGroup function doesn't have ListOptions to be passed in. Therefore it will only return first 30 repositories in the access list.
ListOptions needs to be supported so that it can fetch the full list of repositories that can access a self-hosted runner group.

Thank you, @xun-guo-anzx for the report and the PR!  I'll go take a look.

authors: gmlewis xun-guo-anzx

repo: google/go-github


text:
updates composer dependencies

google/apiclient-services: v0.8
google/auth:v0.11
firebase/jwt:v4.0

To be safe, I changed ~0.11 to ^0.11

repo: google/google-api-php-client


text:
Recently released package 1.7.0 is bad? "RuntimeError: Previous version of google-api-python-client detected"

We started getting an error  right after 1.7.0 was pushed to pip:
Traceback (most recent call last):
  File "tools/run_tests/run_tests.py", line 49, in <module>
    from python_utils.upload_test_results import upload_results_to_bq
  File "/Volumes/BuildData/tmpfs/src/github/grpc/tools/run_tests/python_utils/upload_test_results.py", line 29, in <module>
    import big_query_utils
  File "/Volumes/BuildData/tmpfs/src/github/grpc/tools/gcp/utils/big_query_utils.py", line 21, in <module>
    from apiclient import discovery
  File "/Users/kbuilder/Library/Python/2.7/lib/python/site-packages/apiclient/__init__.py", line 11, in <module>
    'Previous version of google-api-python-client detected; due to a '
RuntimeError: Previous version of google-api-python-client detected; due to a packaging issue, we cannot perform an in-place upgrade. To repair, remove and reinstall this package, along with oauth2client and uritemplate. One can do this with pip via
  pip install -I google-api-python-client

in out script this happens after we pip install the freshest version of  google-api-python-client.
see  https://github.com/grpc/grpc/issues/15600
Seems that something is bad with the package, can you fix or unpublish?

It's weird that your scripts are using the source dist instead of the wheel, which wouldn't hit this codepath at all.
Releasing a version to remove this check, as it's no longer necessary at all.

Looks like if we remove the ==1.6.7 pin, things are still broken with 1.7.1 package.
Install 1.7.1:
++ pip install google-api-python-client --user python
Collecting google-api-python-client
  Downloading https://files.pythonhosted.org/packages/77/24/6a493cff23e60d882598e92b03d9f2c3c77299a9578b4411636616c039f4/google_api_python_client-1.7.1-py2.py3-none-any.whl (55kB)
Requirement already satisfied: python in /usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
Requirement already satisfied: six<2dev,>=1.6.1 in /usr/local/lib/python2.7/site-packages (from google-api-python-client)
Collecting google-auth>=1.4.1 (from google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/53/06/6e6d5bfa4d23ee40efd772d6b681a7afecd859a9176e564b8c329382370f/google_auth-1.5.0-py2.py3-none-any.whl (65kB)
Collecting uritemplate<4dev,>=3.0.0 (from google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/f6/25/66a49231b44409d7f07cfcf2506a8b070ce3c99fc47cc256bea833f24791/uritemplate-3.0.0-py2-none-any.whl
Requirement already satisfied: httplib2<1dev,>=0.9.2 in /usr/local/lib/python2.7/site-packages (from google-api-python-client)
Collecting google-auth-httplib2>=0.0.3 (from google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/33/49/c814d6d438b823441552198f096fcd0377fd6c88714dbed34f1d3c8c4389/google_auth_httplib2-0.0.3-py2.py3-none-any.whl
Collecting pyasn1-modules>=0.2.1 (from google-auth>=1.4.1->google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/e9/51/bcd96bf6231d4b2cc5e023c511bee86637ba375c44a6f9d1b4b7ad1ce4b9/pyasn1_modules-0.2.1-py2.py3-none-any.whl (60kB)
Collecting cachetools>=2.0.0 (from google-auth>=1.4.1->google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/0a/58/cbee863250b31d80f47401d04f34038db6766f95dea1cc909ea099c7e571/cachetools-2.1.0-py2.py3-none-any.whl
Collecting rsa>=3.1.4 (from google-auth>=1.4.1->google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/e1/ae/baedc9cb175552e95f3395c43055a6a5e125ae4d48a1d7a924baca83e92e/rsa-3.4.2-py2.py3-none-any.whl (46kB)
Collecting pyasn1<0.5.0,>=0.4.1 (from pyasn1-modules>=0.2.1->google-auth>=1.4.1->google-api-python-client)
  Downloading https://files.pythonhosted.org/packages/a0/70/2c27740f08e477499ce19eefe05dbcae6f19fdc49e9e82ce4768be0643b9/pyasn1-0.4.3-py2.py3-none-any.whl (72kB)
Installing collected packages: pyasn1, pyasn1-modules, cachetools, rsa, google-auth, uritemplate, google-auth-httplib2, google-api-python-client
Successfully installed cachetools-2.1.0 google-api-python-client-1.7.1 google-auth-1.5.0 google-auth-httplib2-0.0.3 pyasn1-0.4.3 pyasn1-modules-0.2.1 rsa-3.4.2 uritemplate-3.0.0
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

And the error:
RuntimeError: Previous version of google-api-python-client detected; due to a packaging issue, we cannot perform an in-place upgrade. To repair, remove and reinstall this package, along with oauth2client and uritemplate. One can do this with pip via
  pip install -I google-api-python-client
2018-06-04 02:35:40,745 FAILED: run_tests_objc_macos_dbg_native [ret=1, pid=22864, time=13.0sec]
2018-06-04 02:35:40,771 FAILED: Some run_tests.py instance have failed.

https://source.cloud.google.com/results/invocations/8ea5e422-bc99-46ab-88e3-a2c066e688b7/targets

authors: jtattermusch theacodes

repo: google/google-api-python-client


text:
Is it possible to disable Gzip decompression?

To resolve GoogleCloudPlatform/google-cloud-ruby#1835, we need to disable the Gzip decompression that is automatically performed by google-api-ruby-client. I believe it is enabled here in base_service.rb#L403.
Is it currently possible to do this, or else can the library be updated to allow for this configuration to be modified?
/cc @blowmage @geigerj

@bantini Could you please check into this and provide a work estimate if the library needs to be updated? It's possible to work around this downstream in the google-cloud-ruby client but a solution here would be better.

@quartzmo Can this issue be closed?

Yes, thank you!

@bantini When can we expect a release containing the change in #637?

@quartzmo Unfortunately, I am not aware of the release process.
CC @geigerj @saicheems

Released in 0.17.4

@saicheems Thank you!

authors: bantini geigerj quartzmo saicheems

repo: google/google-api-ruby-client


text:
Google::Apis::CalendarV3::CalendarService#insert_event raises #<Google::Apis::ClientError: required: Missing end time.>

In the code below @ service is an instance of Google::Apis::CalendarV3::CalendarService with @service.authorization set to an instance of Signet::OAuth2::Client.
#list_events works fine, but #insert_events raises #<Google::Apis::ClientError: required: Missing end time.> no matter how I format the 'end' field.
def create
  event = {
    'summary' => 'my cool event',
    'description' => "event created by rails",
    'location' => "123 Main street Portland, OR 97210",
    'start' => { 'date' => '2018-07-05' },
    'end' => { 'date' => '2018-07-06' },
  }

  @service.insert_event('primary', event) do |result, err|
    if err
      render json: err
    else
      render json: result
    end
  end

end

Gem versions:
google-api-client (0.19.5)
signet (0.8.1)

Just realized I need to use an instance of Google::Apis::CalendarV3::Event rather than a plain ruby hash.  Probably should close this issue.

closing. Code works as intended


text:
Switch from gulp to gts, TypeScript 2.6

Moving from gulp to gts.  Hoping to do this without any API breaking changes.

My vote's for moving to 4 and doing a semver-major bump. IIRC 0.10 is no
longer officially supported, but unless we know nobody's using it with this
repo there is still a potential for breaking changes.
On Nov 7, 2017 7:02 PM, "Justin Beckwith" notifications@github.com wrote:

@JustinBeckwith commented on this pull request.
In package.json
https://github.com/google/google-auth-library-nodejs/pull/173#discussion_r149564621
:

@@ -4,10 +4,10 @@
"author": "Google Inc.",
"description": "Google APIs Authentication Client Library for Node.js",
"engines": {

"node": ">=0.10"

"node": ">=4"

We weren't testing on on 0.10 ... so it's hard to say what was real here.
What do you think we should do?

Keep this at 0.10 and add 0.10 back to travis config
Move this to 4, and bump semver major
Move this to 4, and don't bump semver major since technically 0.10
has been out of support a loooooooong time

I'm cool with any of these :)
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/google/google-auth-library-nodejs/pull/173#discussion_r149564621,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACM8xQy6nvu3ML0oMixRdybNXAfaT9vKks5s0RmpgaJpZM4QR1qM
.

@ofrobots I updated this to work with gts@0.5.1.  Apologies for the massive set of changes.
Right now the only breaking changes are the way we export GoogleAuth from index.ts, and the change to drop 0.10 (which wasn't really a break).  I know we chatted about a bunch of other changes - but I'm starting to think it just makes sense to get this out to 1.0 with the real types finally in place.  If we want to go do axios or something like that, lets plan it another iteration.  Thoughts?

It would be good to drop the dependency on request, and specially the callback with reversed arguments fixed before 1.0. Once we reach 1.0, I would expect the frequency of semver majors to be quite low.

That works :)  Do you want these changes in master, or a 2.0 branch? I can do the axios upgrade pretty quickly after this lands.

authors: JustinBeckwith ace-n ofrobots

repo: google/google-auth-library-nodejs


text:
Media title is being trimmed

On the Media sample app, the media title is being trimmed on the left side:

Devices:

Galaxy Watch4 Classic (4W2J) - SM-R895F
Emulator - Wear OS Large Round API 30

The issue become apparent on the PlayerScreen preview once the title length is increased:

UI seems to be clipping.

UI seems to be overlapping the text

This has been addressed in a separate PR already. I'll close this out and suggest some others.

authors: MohitMandalia luizgrp yschimke

repo: google/horologist


text:
Player is "playing" with notification - but no sound coming out.

Player screen in media sample goes to wrong state after going back (swipe back without selecting any output) from Audio output screen.
Video:
https://user-images.githubusercontent.com/878134/179996574-cb9b4ec3-bca9-4c07-a21d-b1de7c09428e.mp4
Device: Galaxy Watch4 Classic (4W2J) - SM-R895F
Steps to reproduce

Make sure the watch does not have any bluetooth device connected
Launch app - player screen is displayed with a media
Push play - bluetooth settings screen is displayed
Swipe back

Expected result
Player screen is displayed in an idle/paused state.
Actual result
Player screen is displayed in a play state with progress going forward 2 times and looping back.

Should be fixed in https://github.com/google/horologist/pull/424

I'll take another look, this was the first thing I hit, but I haven't tested on device yet. Only emulator.

I was able to reproduce this 1 time out of 3.  But it actually looks like the player is playing.  The state isn't wrong.  The ongoing notification is there.  Sound is just going to the wrong place.

I'll add some more debug for this, make it easier to debug without a special release build.

Still happening with latest build.
Scenario:

song was playing;
headphones disconnected for whatever reason;
tried to reconnect to headphones and it failed;

swiped back;

Expected behaviour
Player screen is displayed in an idle/paused state.
Actual behaviour
Player screen is displayed in a play state with progress going forward and looping back.

Disabled test to land, struggling with test coroutine dispatchers.

authors: luizgrp yschimke


text:
Refactor StandardHighBandwidthNetworkMediator and NetworkRequester

WHAT
Refactor StandardHighBandwidthNetworkMediator and NetworkRequester.
WHY
NetworkRequester is more faithful to the ConnectivityManager API, so easier to reason about.
StandardHighBandwidthNetworkMediator is implemented in a simpler accounting mode.
HOW
Checklist :clipboard:

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

@wrkben I've broken up my PR, but trying to land. So will request post review. to make forward progress.


text:
[CUDA] Fix crash when a kernel has dead binding

Since dead symbols are currently not being removed we need to handle the
case where a binding is not used. In this case just add a dummy i32
kernel argument

Passing to Ben. Personally feels like we should have a better solution, but I dont have much context either.

Passing to Ben. Personally feels like we should have a better solution, but I dont have much context either.

We had discussed with Ben about having an optimization to remove dead symbols but convertToNVVM is not the right place to do it and I think it makes sense to have this code be robust and handle dead symbols anyway.
@benvanik what do you think?

authors: MaheshRavishankar ThomasRaoux

repo: google/iree


text:
Updated validation.py python script.

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I signed it!

repo: google/it-cert-automation-practice


text:
Add containerd support to "--local" mode

Running ko with --local is super convenient 💯  Unfortunately it seems to works only with Docker daemons (correct me if I'm wrong).
I recently switched to k3s in my local setup, which does not rely on a Docker daemon. Instead, k3s exposes a containerd GRPC server at /run/k3s/containerd/containerd.sock.
What do you think about supporting publishing images directly to containerd, and enabling the feature via and environment variable, e.g. KO_CONTAINERD_HOST?

Ref #149

I'm certainly open to it.

This issue has suddenly become very relevant :)

Is this as simple as containerd.New and then client.Import? That shouldn't be too hard to add a new publisher and wire it up with flags.

/reopen
Still relevant AFAIK

A simple (albeit inefficient) workaround is to export a tarball using --tarball=foo.tar --push=false and import the resulting image into k3s/containerd using k3s ctr images import.
Simple example usage: https://github.com/monogon-dev/NetMeta/blob/94fcccddcb03faef99ce46ea4738b5d14804ffb8/scripts/build_containers.sh#L17

A more efficient strategy might be to just run a very simple registry implementation in-process and have ko act as the registry? Serializing to tarballs is annoying because you lose deduplication...

A more efficient strategy might be to just run a very simple registry implementation in-process and have ko act as the registry? Serializing to tarballs is annoying because you lose deduplication...

It should be possible to just write the layers straight to the containerd local store, right? Just like a Docker build does.

It should be possible to just write the layers straight to the containerd local store, right?

Definitely, but IMO it would be really nice if we could avoid it. I don't really want to link the containerd client library.
OTOH, there are cases where containerd might be on another machine, and my idea doesn't work if the target runtime is on a different network.

authors: ImJasonH antoineco jonjohnsonjr leoluk

repo: google/ko


text:
Update China Sub-Division ISO Codes

At present, the dataset for China appears to be using numerical codes
China updated to alpha ISO codes in 2017
https://www.iso.org/obp/ui/#iso:code:3166:CN

Any update for this one?

repo: google/libaddressinput


text:
Malformed .pc file

If no EGL, results in
Libs.private:  EGL_LIBRARIES-NOTFOUND

instead of an empty field.

Thank you for pointing this out. Have uploaded a change that addresses this.

Sorry I am new to this. Will take assistance and get these things resolved.

@kmilos Thank you very much for pointing these.

authors: kmilos ram-mohan

repo: google/libultrahdr


text:
INT8 Quantized models for Palm detection and Hand landmark

Hello,
The TFlite models published for Palm detection and Hand landmark are in float32. I'm looking for TFlite models that are full integer quantized (edge TPU models). Are these models available?
If these fully integer quantized models are not available, can you share the saved model formats from which I can create full integer quantized models? I'm happy to contribute.
Thanks.

Hi @mrtpk123 ,
Did you get a chance to check this closed issue in Edge TPU Models https://github.com/google/mediapipe/issues/212

Hi @mrtpk123 ,
Please check this  for different solutions on tflite.

Hi @sureshdagooglecom, As I have mentioned in the issue I'm looking for a fully quantized model and the published tflite models are in float.

Hi @mrtpk123 ,
We don't have this feature at present , we will take this as a feature request.

你好@sureshdagooglecom, 正如我在问题中提到的，我正在寻找一个完全量化的模型，并且已发布的 tflite 模型处于浮动状态。

Have you solved this problem? I also met the same demand.

@wuheng0711 Unfortunately mediapipe doesn't have the models int8. Check out this repo - https://github.com/PINTO0309/PINTO_model_zoo for models.

@wuheng0711不幸的是 mediapipe 没有 int8 模型。查看此 repo - https://github.com/PINTO0309/PINTO_model_zoo了解模型。

Do you have a lightweight model to convert FLOAT32 to INT8? If so, can you send it to me? I'm not familiar with this style, thank you very much.

@wuheng0711 Unfortunately, I don't have any FLOAT32 models. But, there are saved models and PB files in this repo - https://github.com/PINTO0309/PINTO_model_zoo. Please do check it out.

Hi @mrtpk123 , We don't have this feature at present , we will take this as a feature request.

Hi, do you have a plan to release the quantized models for palm and hand landmark?

@wuheng0711不幸的是，我没有任何 FLOAT32 模型。但是，这个 repo 中有保存的模型和 PB 文件 - https://github.com/PINTO0309/PINTO_model_zoo。请务必检查一下。

When I have a quantitative model, which code should I modify to call?

I have the same question! Nice to have INT8 Quantized models for Palm detection and Hand landmark

repo: google/mediapipe


text:
Bazel can't recognize python binary path

Hi, can you help me with this issue:
ERROR: An error occurred during the fetch of repository 'local_execution_config_python':    Traceback (most recent call last):         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/py/python_configure.bzl", line 213, column 33, in _create_local_python_repository                 python_lib = _get_python_lib(repository_ctx, python_bin)         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/py/python_configure.bzl", line 130, column 21, in _get_python_lib                 result = execute(repository_ctx, [python_bin, "-c", cmd])         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute                 fail( Error in fail: Repository command failed Traceback (most recent call last):   File "<string>", line 1, in <module> NameError: name 'system' is not defined ERROR: C:/users/user/mediapipe_repo/mediapipe/WORKSPACE:476:14: fetching local_python_configure rule //external:local_execution_config_python: Traceback (most recent call last):         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/py/python_configure.bzl", line 213, column 33, in _create_local_python_repository                 python_lib = _get_python_lib(repository_ctx, python_bin)         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/py/python_configure.bzl", line 130, column 21, in _get_python_lib                 result = execute(repository_ctx, [python_bin, "-c", cmd])         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute                 fail( Error in fail: Repository command failed Traceback (most recent call last):   File "<string>", line 1, in <module> NameError: name 'system' is not defined ERROR: Analysis of target '//mediapipe/examples/desktop/hello_world:hello_world' failed; build aborted: Repository command failed Traceback (most recent call last):   File "<string>", line 1, in <module> NameError: name 'system' is not defined INFO: Elapsed time: 6.055s INFO: 0 processes. FAILED: Build did NOT complete successfully (38 packages loaded, 11 targets config\ ured)
I've tried this solution #724 but still didn't work for me. I also tried to recognize the path by run sys.executable on python interpreter but it still didn't work. I'm using the latest version of Bazel, python 3.10 and Git Bash
This is the command that i run
C:\Users\User\mediapipe_repo\mediapipe>bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 --action_env PYTHON_BIN_PATH="C://Python_3.10//python.exe" mediapipe/examples/desktop/hello_world

Update:
I've tried to run the command as below
bazel build -c opt \   --define MEDIAPIPE_DISABLE_GPU=1 \   --action_env PYTHON_BIN_PATH=$(C://Python_3.10//python.ex) \   mediapipe/examples/desktop/hello_world
and seems the error occured when i ran bazel build mediapipe/examples/desktop/hello_world. This is the error:
ERROR: An error occurred during the fetch of repository 'local_execution_config_python':    Traceback (most recent call last):         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/py/python_configure.bzl", line 213, column 33, in _create_local_python_repository                 python_lib = _get_python_lib(repository_ctx, python_bin)         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/py/python_configure.bzl", line 130, column 21, in _get_python_lib                 result = execute(repository_ctx, [python_bin, "-c", cmd])         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute                 fail( Error in fail: Repository command failed Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. ERROR: C:/users/user/mediapipe_repo/mediapipe/WORKSPACE:476:14: fetching local_python_configure rule //external:local_execution_config_python: Traceback (most recent call last):         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/py/python_configure.bzl", line 213, column 33, in _create_local_python_repository                 python_lib = _get_python_lib(repository_ctx, python_bin)         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/py/python_configure.bzl", line 130, column 21, in _get_python_lib                 result = execute(repository_ctx, [python_bin, "-c", cmd])         File "C:/users/user/_bazel_user/bkk7hz7b/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute                 fail( Error in fail: Repository command failed Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. ERROR: Analysis of target '//mediapipe/examples/desktop/hello_world:hello_world' failed; build aborted: Repository command failed Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. INFO: Elapsed time: 2.433s INFO: 0 processes. FAILED: Build did NOT complete successfully (38 packages loaded, 11 targets config\ ured)

Could you check if the python environment path is set C:\Python_3.10\ . If so, try running this command

Hi @nurshafiza, It seems the command used to reproduce this issue is not clear. Could you provide the clear command and steps  to reproduce the issue. Thank you!

Could you check if Python Environment Path is set C:\Python_3.10\ .                                                                                If so try running this command bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 --action_env PYTHON_BIN_PATH="C:\Python_3.10\python.exe" mediapipe/examples/desktop/hello_world . If It still doesnt work try installing numpy and then try again.

I have a similar problem
DEBUG: C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'pybind11' because it already exists.
INFO: Build option --action_env has changed, discarding analysis cache.
INFO: Repository local_execution_config_python instantiated at:
C:/users/ruentgen/documents/mediapipe/WORKSPACE:479:14: in
C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/tensorflow/workspace2.bzl:879:19: in workspace
C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/tensorflow/workspace2.bzl:86:27: in _tf_toolchains
C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/tensorflow/tools/toolchains/remote_config/configs.bzl:6:28: in initialize_rbe_configs
C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/tensorflow/tools/toolchains/remote_config/rbe_config.bzl:158:27: in _tensorflow_local_config
Repository rule local_python_configure defined at:
C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/py/python_configure.bzl:279:41: in
ERROR: An error occurred during the fetch of repository 'local_execution_config_python':
Traceback (most recent call last):
File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/py/python_configure.bzl", line 213, column 33, in _create_local_python_repository
python_lib = _get_python_lib(repository_ctx, python_bin)
File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/py/python_configure.bzl", line 130, column 21, in _get_python_lib
result = execute(repository_ctx, [python_bin, "-c", cmd])
File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute
fail(
Error in fail: Repository command failed
Traceback (most recent call last):
File "", line 1, in
NameError: name 'system' is not defined
ERROR: C:/users/ruentgen/documents/mediapipe/WORKSPACE:479:14: fetching local_python_configure rule //external:local_execution_config_python: Traceback (most recent call last):
File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/py/python_configure.bzl", line 213, column 33, in _create_local_python_repository
python_lib = _get_python_lib(repository_ctx, python_bin)
File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/py/python_configure.bzl", line 130, column 21, in _get_python_lib
result = execute(repository_ctx, [python_bin, "-c", cmd])
File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute
fail(
Error in fail: Repository command failed
Traceback (most recent call last):
File "", line 1, in
NameError: name 'system' is not defined
ERROR: Analysis of target '//mediapipe/examples/desktop/hello_world:hello_world' failed; build aborted: Repository command failed
Traceback (most recent call last):
File "", line 1, in
NameError: name 'system' is not defined
INFO: Elapsed time: 0.397s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (37 packages loaded, 11 targets configured)

Could you check if Python Environment Path is set C:\Python_3.10\ . If so try running this command bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 --action_env PYTHON_BIN_PATH="C:\Python_3.10\python.exe" mediapipe/examples/desktop/hello_world . If It still doesnt work try installing numpy and then try again.

Thanks! this solution works well for me

Hi @nurshafiza, Glad to hear that issue has been fixed. Could we move this issue to close status as it has been resolved. Thank you!

Hi @nurshafiza, Glad to hear that issue has been fixed. Could we move this issue to close status as it has been resolved. Thank you!

Yes, thank you so much for your reply!

Hi guys I'm trying to build the hello_workd solution and I get this similar problem I already tried this steps but it does not fix the problem
ERROR: An error occurred during the fetch of repository 'local_execution_config_python': Traceback (most recent call last): File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/py/python_configure.bzl", line 213, column 33, in _create_local_python_repository python_lib = _get_python_lib(repository_ctx, python_bin) File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/py/python_configure.bzl", line 130, column 21, in _get_python_lib result = execute(repository_ctx, [python_bin, "-c", cmd]) File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute fail( Error in fail: Repository command failed Traceback (most recent call last): File "", line 1, in NameError: name 'system' is not defined ERROR: C:/users/ruentgen/documents/mediapipe/WORKSPACE:479:14: fetching local_python_configure rule //external:local_execution_config_python: Traceback (most recent call last): File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/py/python_configure.bzl", line 213, column 33, in _create_local_python_repository python_lib = _get_python_lib(repository_ctx, python_bin) File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/py/python_configure.bzl", line 130, column 21, in _get_python_lib result = execute(repository_ctx, [python_bin, "-c", cmd]) File "C:/users/ruentgen/_bazel_programmerruent/badkprfe/external/org_tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute fail( Error in fail: Repository command failed Traceback (most recent call last): File "", line 1, in NameError: name 'system' is not defined ERROR: Analysis of target '//mediapipe/examples/desktop/hello_world:hello_world' failed; build aborted: Repository command failed Traceback (most recent call last): File "", line 1, in NameError: name 'system' is not defined INFO: Elapsed time: 0.397s INFO: 0 processes. FAILED: Build did NOT complete successfully (37 packages loaded, 11 targets configured)

Have you solved it?

https://github.com/google-ai-edge/mediapipe/issues/4622#issuecomment-2268186119

authors: AlexiaAnn RuentGen kewell-tsao kishor-e kuaashish nurshafiza


text:
How to get the hand 3d landmarks dataset?

I am trying to train my own hand gesture recognition network, and I found that your 3d landmarks dataset is different from other datasets. How can I get your training data.

@TiramisuJ MediaPipe 3d landmark dataset is not released and we don't have plans to do so. Can you elaborate on what is the need for the training data?

@TiramisuJ MediaPipe 3d landmark dataset is not released and we don't have plans to do so. Can you elaborate on what is the need for the training data?

OK, thank you for your reply. I'm trying to train a more lightweight gesture recognition network,  so I am looking for some suitable datasets

authors: TiramisuJ mgyong


text:
mediapy display_images() downsamples images seemingly arbitrarily....

Issue tested with version: https://github.com/google/mediapy/pull/41
a) If I call media.show_images() once passing it a dict of 32 images, each with shape (512, 512, 3), it stubbornly displays a row matrix of images that are (256, 256, 3) each.
b) If I call media.show_images() 32 times passing it a dict with a single image each time, each with shape (512, 512, 3), it displays the images at the correct resolution (however the images are displayed one below each other which is not what I want).
c) In case a), if I pass the argument height=512 then the images are displayed pixelated 2x: it looks like mediapy makes a 256x256 internal image buffer and displays it pixelated at 512x512.
d) Passing downsample=False doesn't fix the issue either (too easy-no points).
e) I also have a repro case where it dowsamples from 480 to 240 so this seems like a 2x downsample bug.
f) Aha!!! It looks like displaying a smaller number of images (6 vs. 32) works as intended.
Looks like it is some kind of cap on total memory it can consume?

Hi Eric!
I can't seem to be able to reproduce it.
In Colab, I tried:
import mediapy as media
images = {f'image{index}': media.color_ramp((512, 512)) for index in range(32)}
media.show_images(images)

and it shows 32 images of size (512, 512, 3).
When I right-click Save_as_image on one of them, it does save as a 512x512 image.
In Jupyter Lab, it shows 32 shrunk images such that all of them appear in the window width.
But again when I shift-right-click Save_as_image it is natively 512x512.
(The scaling there might be adjustable using CSS styles.)
Please give us more details.   Perhaps try Chrome Developer Tools (Control-Shift-i) to examine the native image resolution?
Is there any OS display scaling (e.g., Windows "Make everything bigger") or Chrome Zoom scaling?

Hi Hugues!
All the input image resolutions I reported were obtained printing the np.ndarray.shape.
All the display resolutions I reported were obtained after right-clicking on the image displayed by mediapy and selecting "Open in a new tab" in Google Chrome. I then hover the mouse over the new tab and a tooltip appears showing the native resolution of the image being displayed among other things. right-click+save the image produces an image file of that resolution.
In my use-case I get an image_batch from my ML pipeline data-loader, with shape (1, 32, 512, 512, 3) and dtype=np.float32. I display it with:
def display_image_row(image_row):
  image_dict = {}
  for col in range(image_row.shape[0]):
    image_dict[f'{col}'] = image_row[col]
  media.show_images(image_dict, height=512, downsample=False, ylabel='row0')

display_image_row(image_batch[0])

Whether or not I convert the input image_batch first to uint8, I get the same issue.
image_batch = image_batch * 255
image_batch = image_batch.astype(np.uint8)

Are you using Colab?  Please see my shared Colab notebook in https://colab.research.google.com/drive/1pkTsS0v40kbf66d6a_rfMS1V6VrS247d?usp=sharing
which seems to work fine with both np.uint8 and np.float32 and with/without the height and downsample flags.

authors: erictabellion hhoppe

repo: google/mediapy


text:
Content placement changes in Edge browser

Hi,
I have used model-viewer in my website. It looks really good in Google Chrome. But, when, i open it in Edge, there is an yellow progress bar in middle, which doesn't disappear when the model is loaded. And, the Grid container is supposed to cover the whole page, but it doesn't. Not sure what am i doing wrong.
Website link: https://www.maheencg.com/
Hope you can help me with the issue.
Regards,
Maheen

@mpulock Thank you, this prompted me to install Edge, which I hadn't even realized was available on macOS. Anyway, your site loads just fine for me and looks the same as with Chrome, which makes sense since they are both Chromium-based browsers. Can you give me some details on your OS and GPU?

@mpulock Thank you, this prompted me to install Edge, which I hadn't even realized was available on macOS. Anyway, your site loads just fine for me and looks the same as with Chrome, which makes sense since they are both Chromium-based browsers. Can you give me some details on your OS and GPU?

@elalish Thanks for  the reply. I am in Windows 10 Version 1909. My GPU is Nvidia geforce rtx 2080 ti. Here is how the website looks like in Edge. Sorry, I don't own mac or ios device. So, am not sure, how is the performance in Safari. But, In Chrome and Firefox, the website loads pretty fast. You did some real magic there. :)

Also, don't want to spam adding more issues, but, I can't test my website through Page Speed Insights. It gives following error:
" Lighthouse returned error: INTERNAL: Extension result empty. Lighthouse calling Page.navigate with https://www.maheencg.com/ Uncaught (in promise) Error: Extension timed out. No call to exit() before render timeout. at wrs.Extension.onTimeout_ (http://ghost-rider/devtools_script_api.js:5606:13) at http://ghost-rider/devtools_script_api.js:655:11 "
I am not a JavaScript person. so have no clue what's wrong. :(

@mpulock Well, I can say with confidence that yellow bar is not coming from model-viewer. I'm not sure what it is, but perhaps there's some interaction with something else on your site. As for lighthouse, our scores there are not great at the moment, though I'm very pleased you like our performance. They test slow bandwidth, so I'd guess you may be serving a large enough model that they time out before it loads. Have you looked at DRACO compression?

@elalish I tried as much as I can to compress my model. But, it's still around 5mb. I haven't heard about DRACO compression. But, I'll definitely look into it. Thanks for the info.  I am not really much worried about Edge though. Who even uses it :)
My future requests for this Christmas would be:

Allow to Implement particles;
Allow to implement emission and transparent materials; (I wanted to add glass particles, but, it didn't work. May be that's GLTF format issue?)

Keep up the awesome work!
Regards,
Maheen

authors: elalish mpulock

repo: google/model-viewer


text:
Add CreateVideoTextureOptions to support crossOrigin videos

Reference Issue
Fixes #4634

Features

Adds option: CreateVideoTextureOptions argument to createVideoTexture. Allowing to call it like createVideoTexture(url, {crossOrigin: "anonymous"})

Please let me know if there is any change needed if the solution is accepted (like updating documents, etc).

Yes, please add this info to the packages/modelviewer.dev/data/docs.json entry for this function. This looks great, thanks!

@elalish Thanks for reviewing. Docs updated. Let me know if anything else is needed.

@elalish Hi again.
I've Updated the code as you suggested and everything is fine. I Also update the example so we can test it. I've built the code into a file named model-viewer-updated-in-pr.min.js and used it inside a file named index-updated-in-pr.html so we can test it. But I couldn't find a way to test it with with-credentials.
Thanks!

@elalish I appreciate that :smiley::star_struck:  . Actually, I wasn't be able to find a cross origin server that serves both glb and video assets with the right cors headers and credential checking which I can be able to use with-credentials option. my only try was the previous one where we got the
Access to fetch at 'https://modelviewer.dev/shared-assets/models/sphere.glb' from origin 'http://localhost:8002' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.

error (which tells us to change the cors configurations on the server that I don't have access to).
Not that I'm thinking maybe there would be some way for me to configure a new server in my localhost and use it as the assets server and configure the cors headers so that it require credentials for serving assets, making it like a cros origin server...
But I Also would be glad if you had any idea and guide me through how it should be tested.
Thanks for your amazing work!

I see - I figured you would just test with a local server. Any generic file server should work - a Google Cloud bucket or Amazon S3, etc. Thanks!

Helped a lot
Thanks

authors: Saliiih elalish navidadelpour


text:
「良かったりする」が候補にない

「よかったりする」と入力したときに、
「良かったりする」の候補がありません。

- よかったりする
- それがよかったりする

極めてよく使われる表現なので、
可能でしたら修正をお願いします。
http://www.google.co.jp/search?hl=ja&q="良かったりする"
約 4,360,000 件

Mozc-1.4.1033.102
シークレットモード有効

Original issue reported on code.google.com by heathros...@gmail.com on 6 Apr 2012 at 7:31

26409dd added the test case.

authors: GoogleCodeExporter hiroyuki-komatsu

repo: google/mozc


text:
Is it possible to run in WIN  and how to run nlt_test.py

I want to run the nlt_test.py code. I don't know how to specify the CKPT path，
Can I just specify the path

I don't quite understand how CKPT-30 and CKPT-10 are used. Could you give me a demo

If the realization of custom characters in the new scene of the image synthesis, how to achieve, I hope you can give some advice
I hope to receive your prompt reply. Thank you.

Hi, I don't quite get your questions. Could you please be more specific about your questions?

Hi, I don't quite get your questions. Could you please be more specific about your questions?

Running this project in Win10 prompts me to have this problem

Thanks for the screenshot.
This is just the logger of xiuminglib, so you can simply disable the logger, e.g., by commenting off all of the logger lines. This shouldn't impede the actual functionality.
That said, I've never run xiuminglib on a Windows system, so I can't say for sure that everything else would work after you comment the logger lines.
Hope this is helpful. Feel free to reopen and send in more questions, if any.

Thanks for the screenshot.
This is just the logger of xiuminglib, so you can simply disable the logger, e.g., by commenting off all of the logger lines. This shouldn't impede the actual functionality.
That said, I've never run xiuminglib on a Windows system, so I can't say for sure that everything else would work after you comment the logger lines.
Hope this is helpful. Feel free to reopen and send in more questions, if any.
I refer to your test command and specify my own command, the result is like this, I am not sure how to use your test module, I am very confused about it, I hope you can give me some advice

The screenshot you provided seems to suggest that you'd need to replace all Unix /s with the Windows \. It'd be the easiest if you get a Unix machine and run our code there. There might be other issues even if you resolve this "slash vs. backslash" problem.

The screenshot you provided seems to suggest that you'd need to replace all Unix /s with the Windows \. It'd be the easiest if you get a Unix machine and run our code there. There might be other issues even if you resolve this "slash vs. backslash" problem.

Thank you. I'll try it with Ubuntu

repo: google/neural-light-transport


text:
Error with SetArcCostEvaluatorOfVehicle

What version of OR-Tools and what language are you using?
Version: latest
Language: Python
**Which solver are you using: Routing Solver
**What operating system and version? Linux Ubuntu 20.04
What did you do?
I modeled the total cost (fixed and variable) per vehicle to be included at objective function, as you can see below:
    # Add Costs constraint.
    def create_cost_callback(data, vehicle_id):
        """Created call back to get total cost between locations """
#        def service_cost(from_index):
#            """ Gets the service cost for the specified location."""
#            return data["demands"][node]*data["cost_per_demand_unit"]

        def travel_cost(from_index, to_index, vehicle_id):
            """Gets the travel cost between two locations """
            # Convert from routing variable Index to time matrix NodeIndex.
            from_node = manager.IndexToNode(from_index)
            to_node = manager.IndexToNode(to_index)
            travel_cost = (data['vehicle_fix_costs'][vehicle_id] + data['distance_matrix'][from_node][to_node] * data['vehicle_var_costs'][vehicle_id])

        def cost_callback(from_index, to_index):
            """ Returns the total costs between the two nodes """
#            serv_cost = service_cost(from_node)
            trav_cost = travel_cost(from_index, to_index, vehicle_id)
            return trav_cost #+ serv_cost

        return cost_callback

    for vehicle_id in range(data['num_vehicles']):
        print(vehicle_id)
        print(int(vehicle_id))
        cost_callback = create_cost_callback(data, int(vehicle_id))
        routing.SetArcCostEvaluatorOfVehicle(cost_callback, int(vehicle_id))

What did you expect to see
During optimization I want optimizer select first the cheapest vehicles and than move forward to orders, considering the others constraints included.
What did you see instead?
I got the following error:
Traceback (most recent call last):
  File "optim_test9.py", line 845, in <module>
    main_optimizer()
  File "optim_test9.py", line 493, in main_optimizer
    routing.SetArcCostEvaluatorOfVehicle(cost_callback, int(vehicle_id))
  File "/usr/local/lib/python3.8/dist-packages/ortools/constraint_solver/pywrapcp.py", line 5212, in SetArcCostEvaluatorOfVehicle
    return _pywrapcp.RoutingModel_SetArcCostEvaluatorOfVehicle(self, evaluator_index, vehicle)
TypeError: in method 'RoutingModel_SetArcCostEvaluatorOfVehicle', argument 2 of type 'int'

Make sure you include information that can help us debug (full error message, model Proto).
Anything else we should know about your project / environment

you didn't "register"  your callback...

authors: FreddyHunter Mizux

repo: google/or-tools


text:
pypi_archive target is broken after recent code restructurings

Recent ./src -> ./ortools renaming affects few hardcoded paths in ./makefiles/Makefile.python.mk:
Diff attached:
diff --git a/makefiles/Makefile.python.mk b/makefiles/Makefile.python.mk
index 6240d31..4b301aa 100755
--- a/makefiles/Makefile.python.mk
+++ b/makefiles/Makefile.python.mk
@@ -241,7 +241,7 @@ endif

 PYPI_ARCHIVE_TEMP_DIR = temp-python$(PYTHON_VERSION)

-OR_TOOLS_PYTHON_GEN_SCRIPTS = $(wildcard src/gen/ortools/*/*.py) $(wildcard src/gen/ortools/*/*.cc)
+OR_TOOLS_PYTHON_GEN_SCRIPTS = $(wildcard ortools/gen/ortools/*/*.py) $(wildcard ortools/gen/ortools/*/*.cc)

 pypi_archive: python $(PYPI_ARCHIVE_TEMP_DIR)

@@ -255,11 +255,11 @@ $(PYPI_ARCHIVE_TEMP_DIR) : $(OR_TOOLS_PYTHON_GEN_SCRIPTS)
        $(MKDIR) $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sgraph
        $(MKDIR) $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Salgorithms
        $(MKDIR) $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sdummy
-       $(COPY) src$Sgen$Sortools$Sconstraint_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sconstraint_solver
-       $(COPY) src$Sortools$Slinear_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver
-       $(COPY) src$Sgen$Sortools$Slinear_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver
-       $(COPY) src$Sgen$Sortools$Sgraph$Spywrapgraph.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sgraph
-       $(COPY) src$Sgen$Sortools$Salgorithms$Spywrapknapsack_solver.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Salgorithms
+       $(COPY) ortools$Sgen$Sortools$Sconstraint_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sconstraint_solver
+       $(COPY) ortools$Sgen$Sortools$Slinear_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver
+       $(COPY) ortools$Sgen$Sortools$Slinear_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver
+       $(COPY) ortools$Sgen$Sortools$Sgraph$Spywrapgraph.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sgraph
+       $(COPY) ortools$Sgen$Sortools$Salgorithms$Spywrapknapsack_solver.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Salgorithms
        $(COPY) $(GEN_DIR)$Sortools$S__init__.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$S__init__.py
        $(SED) -i -e 's/VVVV/$(OR_TOOLS_VERSION)/' $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$S__init__.py
        $(TOUCH) $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sconstraint_solver$S__init__.py
@@ -278,10 +278,10 @@ endif
        $(SED) -i -e 's/VVVV/$(OR_TOOLS_VERSION)/' $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Ssetup.py
        $(SED) -i -e 's/PROTOBUF_TAG/$(PROTOBUF_TAG)/' $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Ssetup.py
 ifeq ($(SYSTEM),win)
-       copy src\gen\ortools\constraint_solver\_pywrapcp.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sconstraint_solver
-       copy src\gen\ortools\linear_solver\_pywraplp.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver
-       copy src\gen\ortools\graph\_pywrapgraph.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sgraph
-       copy src\gen\ortools\algorithms\_pywrapknapsack_solver.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Salgorithms
+       copy ortools\gen\ortools\constraint_solver\_pywrapcp.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sconstraint_solver
+       copy ortools\gen\ortools\linear_solver\_pywraplp.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver
+       copy ortools\gen\ortools\graph\_pywrapgraph.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sgraph
+       copy ortools\gen\ortools\algorithms\_pywrapknapsack_solver.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Salgorithms
        $(SED) -i -e 's/\.dll/\.pyd/' $(PYPI_ARCHIVE_TEMP_DIR)/ortools/setup.py
        $(SED) -i -e '/DELETEWIN/d' $(PYPI_ARCHIVE_TEMP_DIR)/ortools/setup.py
        $(SED) -i -e 's/DELETEUNIX/          /g' $(PYPI_ARCHIVE_TEMP_DIR)/ortools/setup.py

Thanks, I have redone the patch and fixed also the non python archives.
--Laurent
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53
00
2017-05-07 2:48 GMT+02:00 Denis Kurilov notifications@github.com:

Recent ./src -> ./ortools renaming affects few hardcoded paths in
./makefiles/Makefile.python.mk:
Patch attached:
diff --git a/makefiles/Makefile.python.mk b/makefiles/Makefile.python.mk
index 6240d31..4b301aa 100755
--- a/makefiles/Makefile.python.mk
+++ b/makefiles/Makefile.python.mk
@@ -241,7 +241,7 @@ endif
PYPI_ARCHIVE_TEMP_DIR = temp-python$(PYTHON_VERSION)
-OR_TOOLS_PYTHON_GEN_SCRIPTS = $(wildcard src/gen/ortools//.py) $(wildcard src/gen/ortools//.cc)
+OR_TOOLS_PYTHON_GEN_SCRIPTS = $(wildcard ortools/gen/ortools//.py) $(wildcard ortools/gen/ortools//.cc)
pypi_archive: python $(PYPI_ARCHIVE_TEMP_DIR)
@@ -255,11 +255,11 @@ $(PYPI_ARCHIVE_TEMP_DIR) : $(OR_TOOLS_PYTHON_GEN_SCRIPTS)
$(MKDIR) $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sgraph
$(MKDIR) $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Salgorithms
$(MKDIR) $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sdummy

  $(COPY) src$Sgen$Sortools$Sconstraint_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sconstraint_solver

  $(COPY) src$Sortools$Slinear_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver

  $(COPY) src$Sgen$Sortools$Slinear_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver

  $(COPY) src$Sgen$Sortools$Sgraph$Spywrapgraph.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sgraph

  $(COPY) src$Sgen$Sortools$Salgorithms$Spywrapknapsack_solver.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Salgorithms

  $(COPY) ortools$Sgen$Sortools$Sconstraint_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sconstraint_solver

  $(COPY) ortools$Sgen$Sortools$Slinear_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver

  $(COPY) ortools$Sgen$Sortools$Slinear_solver$S*.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver

  $(COPY) ortools$Sgen$Sortools$Sgraph$Spywrapgraph.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sgraph

  $(COPY) ortools$Sgen$Sortools$Salgorithms$Spywrapknapsack_solver.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Salgorithms
  $(COPY) $(GEN_DIR)$Sortools$S__init__.py $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$S__init__.py
  $(SED) -i -e 's/VVVV/$(OR_TOOLS_VERSION)/' $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$S__init__.py
  $(TOUCH) $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sconstraint_solver$S__init__.py

@@ -278,10 +278,10 @@ endif
$(SED) -i -e 's/VVVV/$(OR_TOOLS_VERSION)/' $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Ssetup.py
$(SED) -i -e 's/PROTOBUF_TAG/$(PROTOBUF_TAG)/' $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Ssetup.py
ifeq ($(SYSTEM),win)

  copy src\gen\ortools\constraint_solver\_pywrapcp.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sconstraint_solver

  copy src\gen\ortools\linear_solver\_pywraplp.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver

  copy src\gen\ortools\graph\_pywrapgraph.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sgraph

  copy src\gen\ortools\algorithms\_pywrapknapsack_solver.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Salgorithms

  copy ortools\gen\ortools\constraint_solver\_pywrapcp.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sconstraint_solver

  copy ortools\gen\ortools\linear_solver\_pywraplp.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Slinear_solver

  copy ortools\gen\ortools\graph\_pywrapgraph.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Sgraph

  copy ortools\gen\ortools\algorithms\_pywrapknapsack_solver.pyd $(PYPI_ARCHIVE_TEMP_DIR)$Sortools$Sortools$Salgorithms
  $(SED) -i -e 's/\.dll/\.pyd/' $(PYPI_ARCHIVE_TEMP_DIR)/ortools/setup.py
  $(SED) -i -e '/DELETEWIN/d' $(PYPI_ARCHIVE_TEMP_DIR)/ortools/setup.py
  $(SED) -i -e 's/DELETEUNIX/          /g' $(PYPI_ARCHIVE_TEMP_DIR)/ortools/setup.py

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/375, or mute the thread
https://github.com/notifications/unsubscribe-auth/AKj17Rq2WKpCkHtD9-y06o8rhhjH9Bbhks5r3RThgaJpZM4NS9l5
.

authors: dkourilov lperron


text:
[android] Use PwoMetadata in the ListView adapter

Instead of keeping a list of device addresses, we hang onto a list of
PwoMetadata objects to simplify things a little.

LGTM. Looking at you Travis...

repo: google/physical-web


text:
Add Share funtionality

Allows users to share URLs through the native Android share menu. Doing
so will effectively allow your device, just as Physical Web beacons do,
to broadcast the URL you wish to share.

Looking good, just a few things to cleanup.

pushed again

Just one indent off, and broadcast/broadcast2 still needs a better name.  @nondebug, I'm pretty much done if you want to take a look.

LGTM, thanks!

more changes

fixed

Please address the remaining comments, then it LGTM

done


text:
JSON-LD scripts with "@graph" key

I am using Organization and WebSite schema. I can add more than one schema if I add more script tags, but I can use "@graph" too. I have no idea how implement this with schema-dts types. There are some way to do this? Now I'm using "any" type:
<Head>
  <script
    {...jsonLdScriptProps<any>({
      '@context': 'https://schema.org',
      '@graph': [
        {
          '@type': 'Organization',
          name: 'Company LTDA',
          email: 'company@email.com',
          telephone: '000-111-222-333'
        },
        {
          '@type': 'WebSite',
          name: 'Company LTDA',
          url: 'https://company.com'
        }
      ]
    })}
  />
</Head>

Yeah I've been meaning to support this, but still none yet.
But:

<any> is probably as close as you can get to it right now
any would cost you type checking though, so typically if you're writing objects inside of the graph inline, I'd recommend writing a helper like so:

import { Thing } from "schema-dts";

function array(passthrough: readonly Thing[]): readonly Thing[] {
  return passthrough;
}

just to force the type checking to happen.

Thank you!

We'll want to support this natively in the upcoming react-schemaorg release.

In 1.3.0 (you'll need to update schema-dts) you can simply do:
<Head>
  <script
    {...jsonLdScriptProps({
      '@context': 'https://schema.org',
      '@graph': [
        {
          '@type': 'Organization',
          name: 'Company LTDA',
          email: 'company@email.com',
          telephone: '000-111-222-333'
        },
        {
          '@type': 'WebSite',
          name: 'Company LTDA',
          url: 'https://company.com'
        }
      ]
    })}
  />
</Head>

authors: Eyas luckasnix

repo: google/react-schemaorg


text:
Period flattening fails when audio role is the distinguishing factor

Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
master as of 2020-04-30
Can you reproduce the issue with our latest release version?
No, because v2.5 doesn't have period-flattening
Can you reproduce the issue with the latest code from master?
Yes
Are you using the demo app or your own custom app?
Demo
What browser and OS are you using?
ChromeOS 81 (stable)
What are the manifest and license server URIs?
Sent privately by email already.  Teammates can look for subject "Shaka Player - PERIOD_FLATTENING_FAILED with DASH stream".
What did you do?
Load the content in the nightly demo.
What did you expect to happen?
The content should play.  There should be 3 tracks:

language: "qaa", roles: ["main"]
language: "es", roles: ["main"]
language: "es", roles: ["alternate", "description", "main"]

What actually happened?
The output streams look as described above, but there is an error thrown from the flattening algorithm because input stream [2] isn't used.  Even though there is an output track based on it, input track [1] was used instead.

We already use role in the period-flattening algorithm, but that part may be broken somehow.  It should be fairly easy to write a regression test for this case.

It looks like my fix for #2537 has resolved this issue as well.
Let me deploy it to the nightly, so folks can try it out.

Ok, @avelad please try the content on the nightly page now.
It stalls and buffers a lot, but does play.
I realized that my other fix worked for this case kind of accidentally, and there is still work to properly address period flattening with roles.
However, what we have now is still a step forward.
I'll start looking at the proper fix in the meantime.

I just tried it and it works without problem! Thanks @ismena

authors: avelad ismena joeyparrish

repo: google/shaka-player