[Q] You must call wandb.init() before wandb.log(): error, how to resolve this?

Dear @thanos-wandb @vanpelt @lukas
After few training steps, I am getting the following error, and I am not sure what is the reason:
Training 10:   5%|▌         | 10/185 [00:10<02:15,  1.29it/s].Error  File "/home/users/se/.conda/envs/torch-env/lib/python3.8/site-packages/wandb/sdk/lib/preinit.py", line 36, in preinit_wrapper
wandb.errors.Errorwandb.errors: You must call wandb.init() before wandb.log()
    : You must call wandb.init() before wandb.log()
.Error: You must call wandb.init() before wandb.log()
raise wandb.Error(f"You must call wandb.init() before {name}()")
wandb.errors.Error: You must call wandb.init() before wandb.log()

My distributed setting is like this:
# Set the device
    gpu = int(os.environ['LOCAL_RANK'])
    device = torch.device(f'cuda:{gpu}')
    torch.cuda.set_device(device)
....

model = distributed_training_init(model)

...
    if dist.get_rank() == 0:
        status = "online" #if wandb_online else "offline"
        run = wandb.init( project=project_name, name=experiment_name, mode=status)
        config.run_id = run.id
        run_dir = "/".join(run.dir.split('/')[:-1])
        config.run_dir = run_dir
        wandb.config.update(config)
        run.watch(model)
        with open(os.path.join(run_dir, "experiment_config.yaml"), 'w') as outfile:
            yaml.dump(config_hyperparam, outfile, default_flow_style=False)

        """wandb.config.update(config)"""

        # os.mkdir(f"models/{config.run_id}")  #-
        os.mkdir(f"{config.run_dir}/models")

...

When I remove the  if dist.get_rank() == 0: wandb creates 4 run folder if I have 4 GPUs.
and this is  the function for
def distributed_training_init(model, backend='nccl', sync_bn=False):
    if sync_bn:
        model = torch.nn.SyncBatchNorm.convert_sync_batchnorm(model)

    rank = int(os.environ['RANK'])
    world_size = int(os.environ['WORLD_SIZE'])
    gpu = int(os.environ['LOCAL_RANK'])

    print(rank, world_size, gpu)
    torch.distributed.init_process_group(backend, world_size=world_size,
                                         rank=rank, init_method='env://')

    print('gpu', gpu)
    model = torch.nn.parallel.DistributedDataParallel(model, device_ids=[gpu], output_device=gpu,find_unused_parameters=True)
    return model

How to resolve this issue?

Hi @qm-intel, thank you for reporting this issue. It appears that the error is likely related to your multiprocessing setup, where some non-zero ranks are attempting to log to W&B without knowledge of the run's singleton.
It seems you are trying to log from a single process in your distributed training approach. In this scenario, all W&B calls should be made from rank zero, while the rest should be no-ops. For your convenience, we have provided guidelines on this approach in our Docs page, which you may find useful. Additionally, you can refer to this example in our Github repository that demonstrates this method using PyTorch DDP.
In order to help us troubleshoot this issue, we would appreciate it if you could provide us with the following information:

Your current W&B version (wandb --version).
SDK debug logs: For the affected run, you should check debug.log and debug-internal.log. These files are under your local folder wandb/run-<date>_<time>-<run-id>/logs in the same directory where you’re running your code.
The 'else' block from the code snippet you shared.
If there are any other wandb.log() calls in your code, please share those as well.

This information will greatly assist us in diagnosing the issue.

@thanos-wandb Thanks for replying to my question and explaining in detail.

Additionally, you can refer to this example in our Github repository that demonstrates this method using PyTorch DDP.
Yes, it is really good example and previously I had followed this example and learned about it. But wandb was creating 4 different run folder and saving 4 models considering to allocate 4 GPUs. If I allocate 2 GPUs, it will create two run folder, depending on the number of GPUs.

To respond your requests:

Your current W&B version (wandb --version).
wandb, version 0.15.10

SDK debug logs: For the affected run, you should check debug.log and debug-internal.log. These files are under your local folder wandb/run-_-/logs in the same directory where you’re running your code.

I attached to this comment.
debug.log
debug-internal.log
run.log

The 'else' block from the code snippet you shared.
It does not have else block,

If there are any other wandb.log() calls in your code, please share those as well.

Here is my code:

 if dist.get_rank() == 0:
    status = "online" #if wandb_online else "offline"
    run = wandb.init( project=project_name, name=experiment_name, mode=status)
    config.run_id = run.id
    run_dir = "/".join(run.dir.split('/')[:-1])
    config.run_dir = run_dir
    wandb.config.update(config)
    run.watch(model)
    with open(os.path.join(run_dir, "experiment_config.yaml"), 'w') as outfile:
        yaml.dump(config_hyperparam, outfile, default_flow_style=False)
    os.mkdir(f"{config.run_dir}/models")

step = 0
losses = []
dur = []
training_start_time = time.time()
epochs_pbar = tqdm(range(config.epoch))
for epoch in epochs_pbar:
    t0 = time.time()
    epochs_pbar.set_description(f"Epoch {epoch}")
    model.train()

    train_pbar = tqdm(enumerate(dataloader), total=len(dataloader), leave=False)
    for idx, batch in train_pbar:
        train_pbar.set_description(f"Training {step:,}")

        if config.image_size != 64 and config.dataset in ["dfc", "enmap"]:
            # select a image_size**2 patch at random location of the tile
            x, y = torch.randint(0, 64 - config.image_size, (2,))
        else:
            x, y = 0, 0
        # batch['img'].shape torch.Size([64, 200, 64, 64])  "b c h w"
        img = batch["img"][
            :, :, x : x + config.image_size, y : y + config.image_size
        ].to(device)   # shape: torch.Size([64, 200, 8, 8])

        optimizer.zero_grad()

        loss = model(img)

        if torch.isnan(loss):
            raise ValueError("Loss is NaN")

        loss.backward()
        optimizer.step()
        step += 1

        losses.append(loss.detach().item())

        if step % config.logging_freq == 0:
            wandb.log(
                {
                    "epoch": epoch,
                    "loss": np.array(losses[-1 * config.logging_freq :]).mean(),
                    "lr": optimizer.param_groups[0]["lr"],
                },
                step=step,
            )

    # log at end of training epoch (to same step as validation stats below)
    wandb.log({"epoch": epoch, "loss": loss.item()}, step=step)

    if epoch % config.model_save_freq == 0:
        # save model checkpoint along with some statistics
        stats = {
            "losses": torch.tensor(losses),
            "config": config,
            "model_state_dict": model.state_dict(),
            "lr_current": optimizer.param_groups[0]["lr"],
            "input": img.detach(),
            "transformer_input": img,
        }
        torch.save(
            stats,
            f"{config.run_dir}/models/model_{config.encoder_name}_ep{epoch}.pth",
        )   # changed {config.run_id} to {config.run_dir}

        if epoch == 10 and config.model_save_freq == 1:
            config.model_save_freq = 10

    if not config.skip_val:
        # validation
        with torch.no_grad():
            val_losses = []
            val_accs = []
            model.eval()
            val_pbar = tqdm(
                enumerate(val_dataloader), total=len(val_dataloader), leave=False
            )
            for idx, batch in val_pbar:
                val_pbar.set_description(f"Validation {step:,}")
                img_whole = batch["img"]

                if config.image_size != 64 and config.dataset in ["dfc", "enmap"]:
                    # sliding window with stride == window size
                    for x in range(0, 64, config.image_size):
                        for y in range(0, 64, config.image_size):
                            img = img_whole[
                                :,
                                :,
                                x : x + config.image_size,
                                y : y + config.image_size,
                            ].to(device)

                            loss = model(img)

                            val_losses.append(loss.detach().item())

                else:
                    img = img_whole.to(device)
                    loss = model(img)
                    val_losses.append(loss.detach().item())

            wandb.log(
                {
                    "epoch": epoch,
                    "val_loss": torch.tensor(val_losses).mean().item(),
                },
                step=step,
            )

        if config.scheduler == "ReduceLROnPlateau":
            scheduler.step(torch.tensor(val_losses).mean().item())
    if config.scheduler == "cosine":
        scheduler.step(epoch)
    dur.append(time.time() - t0)
    print('Epoch: {:03d}, Time(s) {:.4f}'.format(epoch, np.mean(dur)))
print('Training finished, took {:.2f}s'.format(time.time() - training_start_time))
if dist.get_rank() == 0:
    wandb.finish()

Thanks for your help

@thanos-wandb I put the details of my code here https://github.com/wandb/wandb/issues/6556#issuecomment-1796978136

Hi @qm-intel thank you so much for providing all these detailed information. Can you please try to adjust your code so that any call to wandb.log is within an if statement block similar to below:
 if dist.get_rank() == 0:
    wandb.log({...})

Would this resolve the issue for you? additionally, I have looked into the debug logs and I can see an error message saying:
ERROR   HandlerThread:1648 [system_info.py:_save_conda():86] Error saving conda packages: [Errno 2] No such file or directory: 'conda'
Have you installed conda in the machine where you're running your script?

@thanos-wandb Thanks for your help.  This solved the issue:

Can you please try to adjust your code so that any call to wandb.log is within an if statement block similar to below:

Would this resolve the issue for you? additionally, I have looked into the debug logs and I can see an error message saying:
ERROR   HandlerThread:1648 [system_info.py:_save_conda():86] Error saving conda packages: [Errno 2] No such file or directory: 'conda'
Have you installed conda in the machine where you're running your script?

Since I am running my code on the cluster, I load the anaconda module, and it could solve this error too. Thanks for catching this. I really appreciate your help

Hi @qm-intel I'm glad to hear that the suggested solution resolved your issue! I will close this ticket for now but if you have any further questions or encounter additional challenges, please feel free to reopen the GitHub thread. We'll be more than happy to continue investigating and assisting you. Thanks for your collaboration, and we're here to help whenever you need it.


Legends

Hi, suki
Can we add legends in stacked bar chart ??

Another problem is , i have 28 records on x axis in bar chart but it is showing only 18 records at a time. i am not able to increase or auto increase the width. i want to scroll if width is more then the page size.

You can add a legend as described in https://github.com/codesuki/react-d3-components/issues/92
About the scroll problem: you probably have to embed the chart inside a scrollable div or something!

i want to make text vertical  on X axis. so i have applied a css in Axis text as -
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
transform: rotate(90deg);
but the problem is the text is overlapping in the columns . as shown in the picture. I need help to fix it.


Clean up check spelling

Now that we've migrated to the new docs and have a new structure, we should clean up our check spelling workflow. It has a variety of words and directories that no longer exist.
check spelling also opened a security issue - but it's just because of a bad entry in the expected spelling file: https://github.com/openrewrite/rewrite-docs/security/code-scanning/6068 - we should resolve that as part of this.

Cleaned up in this commit: https://github.com/openrewrite/rewrite-docs/commit/9d414cc51c9ddece63c20121017ca78d61a8c09d -- resolving


fix: use AVPlayerLooper to repeat videos on iOS

The original repeat implementation on iOS leaks memory for some reason and it will cause app to become slower and slower each time it loops. This PR replace the implementation with AVPlayerLooper which would solve the issue.
This PR is based on #1787.

Has this merge to master ? I have repeat video on ios, it get slower and slower..

I was running into this memory leak and this PR seems to fix things. However, it seemed to cause another issue. In my app, I display up to 8 videos at the same time (all looping). After this patch, a random number of those would just render empty/blank. I'm not familiar with Objective C and iOS development but after commenting out this line it seems to have fixed it for me:
https://github.com/react-native-community/react-native-video/pull/1799/files#diff-42e8804735be64e84d6dd1fb103210a1R379
I'm guessing some sort of race condition with how _playerLooper is set but I couldn't work out exactly how or why.

@adamkoch thanks for testing out! I think removing the line would cause a problem if source is changed for the component. But I haven't been able to figure out how to properly handle it. Would be great if someone more proficient in Objective C could help out 😀

@adamkoch  Hi, can you please print what _playerItem is before _player = [AVQueuePlayer playerWithPlayerItem:_playerItem];?

@jayasme

can you please print what _playerItem is before _player = [AVQueuePlayer playerWithPlayerItem:_playerItem];

I just did a NSLog directly before this and it shows:
2019-12-20 16:28:37.827398+1100 MyApp-tvOS[13667:125228] _playerItem = <AVPlayerItem: 0x6000000b3f80, asset = <AVURLAsset: 0x60000035fac0, URL = file:////Users/adam/Library/Developer/CoreSimulator/Devices/F0C8BC28-3E5D-4F9A-9172-03357ACE393C/data/Containers/Data/Application/8C499507-2CEE-454B-982F-3B660831FC69/Library/Caches/test.mp4>>
When I load 8 videos on the screen and some show and some don't, they all print out a similar object (different values but valid object).

And also check status & error properties of _playerLooper after it has been initialized.

I did a NSLog of success/status directly after _playerLooper is initialized (there's 2 locations in the file) but in both cases the values are always null. I'm not sure if maybe those values are populated asynchronously so if printing immediately after they are not yet populated?

@jayasme

can you please print what _playerItem is before _player = [AVQueuePlayer playerWithPlayerItem:_playerItem];

I just did a NSLog directly before this and it shows:
2019-12-20 16:28:37.827398+1100 MyApp-tvOS[13667:125228] _playerItem = <AVPlayerItem: 0x6000000b3f80, asset = <AVURLAsset: 0x60000035fac0, URL = file:////Users/adam/Library/Developer/CoreSimulator/Devices/F0C8BC28-3E5D-4F9A-9172-03357ACE393C/data/Containers/Data/Application/8C499507-2CEE-454B-982F-3B660831FC69/Library/Caches/test.mp4>>
When I load 8 videos on the screen and some show and some don't, they all print out a similar object (different values but valid object).

And also check status & error properties of _playerLooper after it has been initialized.

I did a NSLog of success/status directly after _playerLooper is initialized (there's 2 locations in the file) but in both cases the values are always null. I'm not sure if maybe those values are populated asynchronously so if printing immediately after they are not yet populated?

status & error will not be set asynchronously at least by my understanding according to Apple's document, I don't know if you could try to make all players link the same one playerItem to see if can load all or part.

Any updates on the status of this?

Any reason why this wasn't merged? This resolves the issue for us.

FWIW, this is still an issue for me.

@leethree Can you please rebase so I can merge your fix?


Preview support?

Being able to live-preview dot files would be super nice. :)

Yeah, that'd be very cool to have. When I can find some time I'll look into it.
Sent from my iPhone

On 22 Apr 2017, at 20:40, Jerome Leclanche<EMAIL_ADDRESS>wrote:
Being able to live-preview dot files would be super nice. :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Actually am pretty far in the preview branch, but having issues with sizing the svg element within the @code preview window, any help is greatly appreciated!


Tutorial for getting started not working for me

Tutorial for getting started not working for me:
sudo npm install -g gatsby-cli

gatsby new agility-gatsby-starter https://github.com/agility/agility-gatsby-starter

# Run it in development mode
cd agility-gatsby-starter
gatsby develop

and I got:

Log error Details

# under .../jamstack/gatsby/agility-gatsby-starter
$ gatsby develop
success open and validate gatsby-configs - 0.085s
success load plugins - 9.727s
success onPreInit - 0.005s
success initialize cache - 0.020s
success copy gatsby files - 1.098s
success onPreBootstrap - 0.141s
success createSchemaCustomization - 0.008s

 ERROR #11321  PLUGIN

"@agility/gatsby-source-agilitycms" threw an error while running the sourceNodes lifecycle:

You must provide an guid.

  16 |
  17 | 	//set up our Agility CMS Sync Client
> 18 | 	const syncClient = agilitySync.getSyncClient({
     | 	                               ^
  19 | 		guid: configOptions.guid,
  20 | 		apiKey: configOptions.apiKey,
  21 | 		isPreview: configOptions.isPreview,

File: node_modules/@agility/gatsby-source-agilitycms/gatsby-node.js:18:33

  TypeError: You must provide an guid.

  - agility-sync-sdk.node.js:9367 validateConfigParams
    [agility-gatsby-starter]/[@agility]/content-sync/dist/agility-sync-sdk.node.js:93    67:11

  - agility-sync-sdk.node.js:9360 Object.getSyncClient
    [agility-gatsby-starter]/[@agility]/content-sync/dist/agility-sync-sdk.node.js:93    60:3

  - gatsby-node.js:18 Object.exports.sourceNodes
    [agility-gatsby-starter]/[@agility]/gatsby-source-agilitycms/gatsby-node.js:18:33
  - api-runner-node.js:229 runAPI
    [agility-gatsby-starter]/[gatsby]/src/utils/api-runner-node.js:229:22

  - api-runner-node.js:339 resolve
    [agility-gatsby-starter]/[gatsby]/src/utils/api-runner-node.js:339:17

  - debuggability.js:384 Promise._execute
    [agility-gatsby-starter]/[bluebird]/js/release/debuggability.js:384:9

  - promise.js:518 Promise._resolveFromExecutor
    [agility-gatsby-starter]/[bluebird]/js/release/promise.js:518:18

  - promise.js:103 new Promise
    [agility-gatsby-starter]/[bluebird]/js/release/promise.js:103:10

  - api-runner-node.js:338 Promise.mapSeries.plugin
    [agility-gatsby-starter]/[gatsby]/src/utils/api-runner-node.js:338:14

  - util.js:16 tryCatcher
    [agility-gatsby-starter]/[bluebird]/js/release/util.js:16:23

  - reduce.js:166 Object.gotValue
    [agility-gatsby-starter]/[bluebird]/js/release/reduce.js:166:18

  - reduce.js:155 Object.gotAccum
    [agility-gatsby-starter]/[bluebird]/js/release/reduce.js:155:25

  - util.js:16 Object.tryCatcher
    [agility-gatsby-starter]/[bluebird]/js/release/util.js:16:23

  - promise.js:547 Promise._settlePromiseFromHandler
    [agility-gatsby-starter]/[bluebird]/js/release/promise.js:547:31

  - promise.js:604 Promise._settlePromise
    [agility-gatsby-starter]/[bluebird]/js/release/promise.js:604:18

  - promise.js:649 Promise._settlePromise0
    [agility-gatsby-starter]/[bluebird]/js/release/promise.js:649:10

warn The @agility/gatsby-source-agilitycms plugin has generated no Gatsby nodes. Do
success source and transform nodes - 0.504s
warn `createResolvers` passed resolvers for type `agilitypage` that doesn't exist in
warn `createResolvers` passed resolvers for type `agilityitem` that doesn't exist in
warn `createResolvers` passed resolvers for type `agilityPost` that doesn't exist in
success building schema - 0.397s
AgilityCMS => Create Pages Started...

 ERROR #11321  PLUGIN

"@agility/gatsby-source-agilitycms" threw an error while running the createPages lifecycle:

You must provide an guid.

  75 |
  76 | 	//set up our Agility CMS Sync Client
> 77 | 	const syncClient = agilitySync.getSyncClient({
     | 	                               ^
  78 | 		guid: configOptions.guid,
  79 | 		apiKey: configOptions.apiKey,
  80 | 		isPreview: configOptions.isPreview,

File: node_modules/@agility/gatsby-source-agilitycms/gatsby-node.js:77:33

  TypeError: You must provide an guid.

  - agility-sync-sdk.node.js:9367 validateConfigParams
    [agility-gatsby-starter]/[@agility]/content-sync/dist/agility-sync-sdk.node.js:93    67:11

  - agility-sync-sdk.node.js:9360 Object.getSyncClient
    [agility-gatsby-starter]/[@agility]/content-sync/dist/agility-sync-sdk.node.js:93    60:3

  - gatsby-node.js:77 Object.exports.createPages
    [agility-gatsby-starter]/[@agility]/gatsby-source-agilitycms/gatsby-node.js:77:33
  - api-runner-node.js:229 runAPI
    [agility-gatsby-starter]/[gatsby]/src/utils/api-runner-node.js:229:22

  - api-runner-node.js:339 resolve
    [agility-gatsby-starter]/[gatsby]/src/utils/api-runner-node.js:339:17

  - debuggability.js:384 Promise._execute
    [agility-gatsby-starter]/[bluebird]/js/release/debuggability.js:384:9

  - promise.js:518 Promise._resolveFromExecutor
    [agility-gatsby-starter]/[bluebird]/js/release/promise.js:518:18

  - promise.js:103 new Promise
    [agility-gatsby-starter]/[bluebird]/js/release/promise.js:103:10

  - api-runner-node.js:338 Promise.mapSeries.plugin
    [agility-gatsby-starter]/[gatsby]/src/utils/api-runner-node.js:338:14

  - util.js:16 tryCatcher
    [agility-gatsby-starter]/[bluebird]/js/release/util.js:16:23

  - reduce.js:166 Object.gotValue
    [agility-gatsby-starter]/[bluebird]/js/release/reduce.js:166:18

  - reduce.js:155 Object.gotAccum
    [agility-gatsby-starter]/[bluebird]/js/release/reduce.js:155:25

  - util.js:16 Object.tryCatcher
    [agility-gatsby-starter]/[bluebird]/js/release/util.js:16:23

  - promise.js:547 Promise._settlePromiseFromHandler
    [agility-gatsby-starter]/[bluebird]/js/release/promise.js:547:31

  - promise.js:604 Promise._settlePromise
    [agility-gatsby-starter]/[bluebird]/js/release/promise.js:604:18

  - promise.js:641 Promise._settlePromiseCtx
    [agility-gatsby-starter]/[bluebird]/js/release/promise.js:641:10

failed createPages - 0.054s
success createPagesStatefully - 0.070s
success onPreExtractQueries - 0.002s
success update schema - 0.033s

 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "agilitypage" on type "Query".

If you don't expect "agilitypage" to exist on the type "Query" it is most likely a typo.
However, if you expect "agilitypage" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "agilitypage" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: src/AgilityPage.js:16:5

 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "agilityitem" on type "Query".

If you don't expect "agilityitem" to exist on the type "Query" it is most likely a typo.
However, if you expect "agilityitem" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "agilityitem" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: src/AgilityPage.js:19:5

 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "agilityGlobalHeader" on type "Query".

If you don't expect "agilityGlobalHeader" to exist on the type "Query" it is most likely a typo.
However, if you expect "agilityGlobalHeader" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "agilityGlobalHeader" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: src/components/GlobalHeader.js:10:4

 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allAgilitySitemapNode" on type "Query".

If you don't expect "allAgilitySitemapNode" to exist on the type "Query" it is most likely a typo.
However, if you expect "allAgilitySitemapNode" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "allAgilitySitemapNode" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: src/components/GlobalHeader.js:15:13

 ERROR #85923  GRAPHQL

There was an error in your GraphQL query:

Cannot query field "allAgilityPost" on type "Query".

If you don't expect "allAgilityPost" to exist on the type "Query" it is most likely a typo.
However, if you expect "allAgilityPost" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "allAgilityPost" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: src/modules/PostsListing.js:12:13

failed extract queries from components - 0.859s
success write out requires - 0.031s
success write out redirect data - 0.003s
success onPostBootstrap - 0.002s

info bootstrap finished - 40.175 s

success run queries - 0.043s - 1/1 23.27/s

You can now view agility-gatsby-starter in the browser.

  http://localhost:8000/

View GraphiQL, an in-browser IDE, to explore your site's data and schema

  http://localhost:8000/___graphql

Note that the development build is not optimized.
To create a production build, use gatsby build

success Building development bundle - 12.342s

Then when I tried to access http://localhost:8000/, I got

Http Errors Details

http://localhost:8000/

Failed to compile

There was an error in your GraphQL query:

Cannot query field "agilitypage" on type "Query".

If you don't expect "agilitypage" to exist on the type "Query" it is most likely a typo.
However, if you expect "agilitypage" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "agilitypage" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: .../jamstack/gatsby/agility-gatsby-starter/src/AgilityPage.js

There was an error in your GraphQL query:

Cannot query field "agilityitem" on type "Query".

If you don't expect "agilityitem" to exist on the type "Query" it is most likely a typo.
However, if you expect "agilityitem" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "agilityitem" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: .../jamstack/gatsby/agility-gatsby-starter/src/AgilityPage.js

There was an error in your GraphQL query:

Cannot query field "agilityGlobalHeader" on type "Query".

If you don't expect "agilityGlobalHeader" to exist on the type "Query" it is most likely a typo.
However, if you expect "agilityGlobalHeader" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "agilityGlobalHeader" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: .../jamstack/gatsby/agility-gatsby-starter/src/components/GlobalHeader.js

There was an error in your GraphQL query:

Cannot query field "allAgilitySitemapNode" on type "Query".

If you don't expect "allAgilitySitemapNode" to exist on the type "Query" it is most likely a typo.
However, if you expect "allAgilitySitemapNode" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "allAgilitySitemapNode" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: .../jamstack/gatsby/agility-gatsby-starter/src/components/GlobalHeader.js

There was an error in your GraphQL query:

Cannot query field "allAgilityPost" on type "Query".

If you don't expect "allAgilityPost" to exist on the type "Query" it is most likely a typo.
However, if you expect "allAgilityPost" to exist there are a couple of solutions to common problems:

- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "allAgilityPost" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")

It is recommended to explicitly type your GraphQL schema if you want to use optional fields. This way you don't have to add the mentioned "dummy content". Visit our docs to learn how you can define the schema for "Query":
https://www.gatsbyjs.org/docs/schema-customization/#creating-type-definitions

File: .../jamstack/gatsby/agility-gatsby-starter/src/modules/PostsListing.js

PS.
I have to use a fixed node version because the other node app that I have requires specifically such version:

What is your node version? (run node --version)
Answer: v10.21.0

What os are you using
Answer:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal

Hi there! I had a similar problem running Gatsby and was able to solve it by installing nvm which allows me to have multiple versions of node on the same machine.
I installed node 14 as well as node 10 and when I run the gatsby site locally, I simply run nvm use 14 first.
Hope that helps!


Filtering UI could be improved

Currently each source phrase that is filtered out of the Adaptation page UI has its own "funnel" icon. Clicking the icon will bring up a dialog that displays the filtered text, as well as whether or not that text can be edited by changing the filtering settings for the project. There are a couple problems with this approach:

If there are multiple filters, several icons will display next to each other. Visually, this is kind of ugly.
There is no visual indication of what the filtered item is just by looking at the icon. To go through a sequence of several filtered items in a row, the user has to click on each one, read the description, close out the dialog and click on the next one.

It would make more sense to have a more consolidated approach like AI desktop, where if there are 1+ filtered source phrases, only 1 icon displays. Clicking on that icon will give you a list of filtered source phrases; clicking on an item will give you more information about that filtered item (i.e., what the text is, and whether it can be enabled for editing).
The tricky part -- and the reason why it's currently implemented the way it is -- is that we don't want to leave the context of the adaptation screen when we look at these filtered items. We want to be able to "zoom in" to the selected icon and view it, and then return to the previous source phrase we were adapting.
The current implementation works, but it's clunky. I'd like to revisit this at some point.

Another side-effect of the current implementation here:
The cross-references found in the \x ... \x* are not getting adapted, which is causing the exports to add groups of punctuation. Example verse from Romans 1:16 (Spanish Reina-Valera Moderna):

\v 16 \x + \xo 1.16: \xt Salmos 40:9; 2 Timoteo 1:8; 1 Corintios 1:18; 1 Corintios 15:2\x* Porque no me avergüenzo del evangelio: porque es potencia de Dios para salud a todo aquel que cree; al judío primeramente y también al griego.

\v 16 \x + \xo : \xt  ;   ;   ;    \x* Porque no me avergüenzo del evangelio: porque es potencia de Dios para salud a todo aquel que cree; al judío primeramente y también al griego.

Update on this issue:
I've made several changes to add a "lightbox gallery" that displays when the filter funnel icon is clicked. This works on iOS, and "kind of" works on Android. The issue again with Android appears to be older Android browser non-standard behavior in Android 4.x (see #149) -- the buttons don't respond to clicks; instead, the area behind them responds. There are probably a few ways forward on this:

Go back to a simple dialog-based alert set of dialogs for Android. Users click until all the filters have been displayed.
Try to figure out a way to get Android 4.x to respond to these events.
Revisit the embedded crosswalk browser? (this might also fix #149)

Investigating further...


Update Send and Request E2E Tests to use Multitoken flow

Description
Currently, e2e tests are using the legacy send and request flow. They should be updated to use the new multi-token request flows.
Acceptance Criteria

[ ] Remove legacy send and request flow
[ ] E2E tests for Send use the multi-token request flow (so "old" tests will get replaced)
[ ] E2E tests for Request use the multi-token request flow (so "old" tests will get replaced)
[ ] E2E tests should test Test Token and a native token
[ ] Updated tests are not flaky --> run N times, must pass M times (talk to tom about what N and M are)

Run 10 times, must pass 9 times - 90% success rate.


Enable Sourcegraph

Hi, guys
I want to use Sourcegraph for hyper code search, browsing, and usage examples. Can an admin enable Sourcegraph for this repository? Just go to https://sourcegraph.com/github.com/hyperhq/hyper. (It should only take 30 seconds.)
Thank you!

@resouer done


Keyboard manager stops working

Microsoft PowerToys version
0.70.1
Installation method
Microsoft Store
Running as admin
Yes
Area(s) with issue?
Keyboard Manager
Steps to reproduce
I use the app especially to replace the system shortcuts, there is no specific process for it to happen, sometimes it happens when I open multiple apps, other times when browsing the internet normally, but out of nowhere the Keyboard Manager stops working and I need to close and open it to make it work again, but after a short time the error repeats itself.
https://github.com/microsoft/PowerToys/assets/74416757/105b76c2-d482-4d23-8d0b-357cc4ea1965
✔ Expected Behavior
That at least you should not open and close the application so many times a day.
❌ Actual Behavior
It stops working out of the blue and I have to close/open the app several times daily.
Other Software
No response

can you verify if this is still an issue with v0.73.0 /needinfo

Combining similar keyboard manager issues
/dup #17344


bgpv1: Some test coverage improvements for bgpv1/agent package

This PR improves unit testing coverage for the bgpv1/agent package.
Before
ok  	github.com/cilium/cilium/pkg/bgpv1/agent	0.878s	coverage: 41.4% of statements
?   	github.com/cilium/cilium/pkg/bgpv1/agent/signaler	[no test files]

After
ok  	github.com/cilium/cilium/pkg/bgpv1/agent	0.908s	coverage: 65.0% of statements
ok  	github.com/cilium/cilium/pkg/bgpv1/agent/signaler	0.889s	coverage: 100.0% of statements

bgpv1: Some test coverage improvements for bgpv1/agent

/test

Cilium IPsec upgrade: https://github.com/cilium/cilium/issues/29987
Conformance EKS: https://github.com/cilium/cilium/issues/28693
Conformance Ginkgo: https://github.com/cilium/cilium/issues/30101


Update dependencies

Update dependencies
Automatically created PR from ci/dependabot-updates.
It should be automagically merged into main upon CI success.
For more information see the "Dependabot updates" workflow.

@CasperWA this PR should be fine now, I re-ran dependabot to pick up optimade 0.16.10 and then rebased this branch on ci/dependabot-updates. Note that pytest has undergone a major version upgrade since this PR was created.


Rethink the name "videogular"

This may seem unimportant, but "videogular" is pretty difficult to remember, at least for me. I tried to get to the page with browser autocomplete, but always failed. It's not very intuitive that after video comes "gular", because it not really represents "angular". I think "vidangular" would work much better. Just my 3 cents.

Videogular is literally the best name for any plugin I've ever heard.  It sounds like an expression from the 80's to describe how cool and technologically advanced something is.  Do not change it.  I don't even use videogular.  I just keep it in my repo to remind me how great the name is.

@DTwigs accepted. Closing issue.


params.

[Enter feedback here]

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

ID: 50f6b34e-7ed0-5ecd-6cf4-192e7393663c
Version Independent ID: cb186c12-22a3-5ac4-667c-b1d07ab5f566
Content: Design Policy as Code workflows - Azure Policy
Content Source: articles/governance/policy/concepts/policy-as-code.md
Service: azure-policy
GitHub Login: @DCtheGeek
Microsoft Alias: dacoulte

Micorsoft documentation on Azure policy repo structure recommends using params.dev.json/params.tst.json/... to store parameter values.  Is it possible to use this file as part of New-AzPolicyAssignment cmdlet, the way the azurepolicy.rules.json (-policy) and azurepolicy.parameters.json (-parameter) files in New-AzPolicyDefinition cmdlet.

@spmanjunath Thank you for the inquiry. We are investigating your inquiry and will update this issue when we have additional information to share.

#reassign:DCtheGeek

@spmanjunath Thanks for the question.  Yes, New-AzPolicyAssignment supports using a file the same way that New-AzPolicyDefinition does. On the New-AzPolicyAssignmentcmdlet the parameter is PolicyParameter. If you look at the reference page, example 4 shows the use you are looking for.  Let us know if you have further questions on this, but for now I'll close the issue.  Thanks again!
@MicrosoftDocs/azure-cxp-triage #please-close


ISPN-10020 PolarionJUnitXMLReporter assertion failure after configura…

…tion method failure
https://issues.jboss.org/browse/ISPN-10020

Thanks @danberindei, and looks good to me

Test failures are unrelated, some are fixed by #6724 and #6733

Integrated into master, thanks @danberindei !


[coap] Make retransmission parameters dynamically configurable

Is your feature request related to a problem? Please describe.
For some use cases, the default CoAP Transmission Parameters used by OpenThread (the same specified by RFC7252) are not adequate. Furthermore, for some applications, the Transmission Parameters should be configurable per-message, to accommodate different requirements by different parts of the application.
Describe the solution you'd like
Make the Transmission Parameters configurable per-message.
Describe alternatives you've considered
Extend the CoAP core and API to allow configurable per-message parameters:

ACK_TIMEOUT
ACK_RANDOM_FACTOR
MAX_RETRANSMIT

The current behavior should be preserved for applications that don't need to specify these parameters dynamically.
Additional context
See #4434.
I can start looking into this. @sjlongland, @jwhui, what do you think?
Diego.

My thinking is, you're not necessarily going to have every message with different timing parameters, in fact I think the vast majority of users of the CoAP library will be using the defaults (from RFC7252).
I think it fair to assume that the application developer would define a few parameters as a const struct and pass that in somehow.  Thus we could have a "default" one exported by OpenThread, and if someone wants something different, they declare it and tell the CoAP library what they need for that request.  My thoughts were either an extra parameter to otCoapSendRequest, which could be NULL to accept defaults.
There's a few derived constants, two approaches could be used here:

define variables to hold the computed values of these derived constants (chews up maybe a dozen bytes or two per request "slot")
compute the values on demand (a few more processor cycles consumed… the calculations are not particularly strenuous)

My thinking is, you're not necessarily going to have every message with different timing parameters, in fact I think the vast majority of users of the CoAP library will be using the defaults (from RFC7252).
I think it fair to assume that the application developer would define a few parameters as a const struct and pass that in somehow. Thus we could have a "default" one exported by OpenThread, and if someone wants something different, they declare it and tell the CoAP library what they need for that request. My thoughts were either an extra parameter to otCoapSendRequest, which could be NULL to accept defaults.

Exactly my thoughts

There's a few derived constants, two approaches could be used here:

define variables to hold the computed values of these derived constants (chews up maybe a dozen bytes or two per request "slot")
compute the values on demand (a few more processor cycles consumed… the calculations are not particularly strenuous)
Browsing the code, it seems that there are very few calculations to be done, and (maybe almost) all during creation of the new message. I'm thinking that with a few minor modifications, the CoapMetadata class can hold the required status in the existing member variables:

mRetransmissionTimeout (can be calculated on "transaction" creation from ACK_TIMEOUT and ACK_RANDOM_FACTOR)
mRetransmissionCount (we could change this to mRemainingRetransmissions to avoid also saving MAX_RETRANSMIT, and compare with 0).

@dismirlian @sjlongland, thank you for looking into this enhancement. The proposed path forward seems reasonable to me.

Resolved by #4481


[Feature] Admin Send Reset Password Email

Proposal
Enable the admin to send a password reset, even with a link some user might still need help.
Repercussions
"The greater the power, the more dangerous the abuse." Edmund Burke

Pass complete, no bugs found :star:
Manual testing verified that an admin could send (at least, to the console) an email to a user to reset their password (when followed, the link also worked), and the modal allowed for the selection between any of the user's verified email addresses. I have minor UI concerns regarding the placement of the Send reset button, it may make more sense to group it with the Emails list. But I don't foresee that being problematic unless we add a lot of buttons to the user detail view.
As soon as some tests are added for this functionality, I'll put it in RTM.


base_ks.conf

In the disk partitioning section vda will error out if someone would use this on a real machine instead of a virtual one. Not really an issue since you do suggest a vm in your article but would be worth to either change or to have a hw and an vm version of the file. Great script btw, I've learned a lot, thanks!

Thanks a lot for your feedback. You are right. The problem is, that there are many different devices (sda,hda,nvme) covering all of them is pretty much overhead.
Any suggestions what might cover your usecase?

Oh ive already sorted it out for me. Im no expert so I was quite happy that
I figured it out and also could send my first ever feedback :) Thanks again
for this, really cool stuff!
Rich
On Wed, 30 Nov 2022 at 20:26, Daniel Schier @.***>
wrote:

Thanks a lot for your feedback. You are right. The problem is, that there
are many different devices (sda,hda,nvme) covering all of them is pretty
much overhead.
Any suggestions what might cover your usecase?
—
Reply to this email directly, view it on GitHub
https://github.com/dschier-wtd/fedora-homeserver/issues/8#issuecomment-1332629318,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AX2KCMSEGZ7OAZYUHJWIBADWK6S5LANCNFSM6AAAAAASPVZEIU
.
You are receiving this because you authored the thread.Message ID:
@.***>

In case you ant to offer a PR with a working hardware configuration (for example to cover sda), I might be grateful to review it and merge it.
It might be helpful for others, too :)

Sure! Will ping it over as soon as im done with it! Still planning the hdd
structures!
On Thu, 1 Dec 2022 at 19:25, Daniel Schier @.***> wrote:

In case you ant to offer a PR with a working hardware configuration (for
example to cover sda), I might be grateful to review it and merge it.
It might be helpful for others, too :)
—
Reply to this email directly, view it on GitHub
https://github.com/dschier-wtd/fedora-homeserver/issues/8#issuecomment-1334175355,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AX2KCMXRKPUPPZHCIZBLIHDWLDURLANCNFSM6AAAAAASPVZEIU
.
You are receiving this because you authored the thread.Message ID:
@.***>


pass max_mols to Draw.MolsToGridImage

Changelogs
closes #221
max_mols is passed to Draw.MolsToGridImage

Checklist:

[x] Was this PR discussed in an issue? It is recommended to first discuss a new feature into a GitHub issue before opening a PR.
[ ] Add tests to cover the fixed bug(s) or the new introduced feature(s) (if appropriate).
[ ] Update the API documentation is a new function is added, or an existing one is deleted.
[ ] Write concise and explanatory changelogs below.
[x] If possible, assign one of the following labels to the PR: feature, fix or test (or ask a maintainer to do it for you).

discussion related to that PR

@kkovary, could you make the changes asked by @hadim in his last review ?

just got back from a long vacation, I'll get on it ASAP!


M44 - Modify Google Marker Function

We made some progress figuring this out but other issues took priority and we're leaving this branch hanging for now. Hopefully will go back to it.


Username index is incorrectly setup

@dolcalmi had mentioned that our username index is setup incorrectly.
I ran .explain() in mongosh on some of the queries that use username to lookup users, and found that they indeed do not make use of the username index.
@dolcalmi How should this be fixed?

I think we should use Case Insensitive Index

could we get case insensitive username with proper index still? that's a useful feature to set the case when you set up a username. I know it makes indexing a lot more complex.

fixed


Add GSIs on identity and merged records

I think we'd want to make add a new attribute like label_type to all the records, right?

I think we'd want to make add a new attribute like label_type to all the records, right?

Yeah -- what's the use case for accessing just labels vs aliases? Would be able to speed up querying times by restricting filters to just record types?

Yeah -- what's the use case for accessing just labels vs aliases? Would be able to speed up querying times by restricting filters to just record types?

It might be. If for some reason we do need access to certain label types, I think it'd be useful to have the label_type attribute. So I think it's best if we just store the type there rather than creating an attribute for what we need now (identity/merge).


Synthesis failed for vision

Hello! Autosynth couldn't regenerate vision. :broken_heart:
Here's the output from running synth.py:
Cloning into 'working_repo'...
Traceback (most recent call last):
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/theaflowers/workspace/autosynth/autosynth/synth.py", line 178, in <module>
    main()
  File "/Users/theaflowers/workspace/autosynth/autosynth/synth.py", line 142, in main
    configure_git(args.github_user, args.github_email)
  File "/Users/theaflowers/workspace/autosynth/autosynth/synth.py", line 48, in configure_git
    subprocess.check_call(["git", "config", "user.name", user])
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 323, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 304, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 756, in __init__
    restore_signals, start_new_session)
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 1430, in _execute_child
    restore_signals, start_new_session, preexec_fn)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Google internal developers can see the full log here.

Autosynth is still having trouble generating vision. :sob:
Here's the output from running synth.py:
Cloning into 'working_repo'...
Traceback (most recent call last):
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/theaflowers/workspace/autosynth/autosynth/synth.py", line 178, in <module>
    main()
  File "/Users/theaflowers/workspace/autosynth/autosynth/synth.py", line 142, in main
    configure_git(args.github_user, args.github_email)
  File "/Users/theaflowers/workspace/autosynth/autosynth/synth.py", line 48, in configure_git
    subprocess.check_call(["git", "config", "user.name", user])
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 323, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 304, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 756, in __init__
    restore_signals, start_new_session)
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 1430, in _execute_child
    restore_signals, start_new_session, preexec_fn)
TypeError: expected str, bytes or os.PathLike object, not NoneType

Google internal developers can see the full log here.

Autosynth is still having trouble generating vision. :sob:
Here's the output from running synth.py:
Cloning into 'working_repo'...
Switched to branch 'autosynth-vision'
Traceback (most recent call last):
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/theaflowers/workspace/autosynth/autosynth/synth.py", line 178, in <module>
    main()
  File "/Users/theaflowers/workspace/autosynth/autosynth/synth.py", line 149, in main
    synth_log = synthesize(args.synthtool_as_module, args.extra_args)
AttributeError: 'Namespace' object has no attribute 'synthtool_as_module'

Google internal developers can see the full log here.

Autosynth is still having trouble generating vision. :sob:
Here's the output from running synth.py:
Cloning into 'working_repo'...
Switched to branch 'autosynth-vision'
Running synthtool
['/Users/theaflowers/workspace/autosynth/env/bin/python3', '-m', 'synthtool', 'synth.py', '--']
synthtool > Executing /Users/theaflowers/workspace/autosynth/working_repo/vision/synth.py.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
synthtool > Failed executing docker pull googleapis/artman:latest:

None
Traceback (most recent call last):
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/theaflowers/workspace/synthtool/synthtool/__main__.py", line 53, in <module>
    main()
  File "/Users/theaflowers/workspace/autosynth/env/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/theaflowers/workspace/autosynth/env/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/theaflowers/workspace/autosynth/env/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/theaflowers/workspace/autosynth/env/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/theaflowers/workspace/synthtool/synthtool/__main__.py", line 46, in main
    spec.loader.exec_module(synth_module)
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/theaflowers/workspace/autosynth/working_repo/vision/synth.py", line 20, in <module>
    gapic = gcp.GAPICGenerator()
  File "/Users/theaflowers/workspace/synthtool/synthtool/gcp/gapic_generator.py", line 33, in __init__
    self._artman = artman.Artman()
  File "/Users/theaflowers/workspace/synthtool/synthtool/gcp/artman.py", line 35, in __init__
    self._install_artman()
  File "/Users/theaflowers/workspace/synthtool/synthtool/gcp/artman.py", line 124, in _install_artman
    ["docker", "pull", f"googleapis/artman:{ARTMAN_VERSION}"], hide_output=False
  File "/Users/theaflowers/workspace/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/Users/theaflowers/workspace/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 468, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'pull', 'googleapis/artman:latest']' returned non-zero exit status 1.
synthtool > Cleaned up 0 temporary directories.
synthtool > Wrote metadata to synth.metadata.

Synthesis failed

Google internal developers can see the full log here.

Autosynth is still having trouble generating vision. :sob:
Here's the output from running synth.py:
Cloning into 'working_repo'...
Switched to branch 'autosynth-vision'
Running synthtool
['/Users/theaflowers/workspace/autosynth/env/bin/python3', 'synth.py']
synthtool > You are running the synthesis script directly, this will be disabled in a future release of Synthtool. Please use python3 -m synthtool instead.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
synthtool > Failed executing docker pull googleapis/artman:latest:

None
Traceback (most recent call last):
  File "synth.py", line 20, in <module>
    gapic = gcp.GAPICGenerator()
  File "/Users/theaflowers/workspace/synthtool/synthtool/gcp/gapic_generator.py", line 33, in __init__
    self._artman = artman.Artman()
  File "/Users/theaflowers/workspace/synthtool/synthtool/gcp/artman.py", line 35, in __init__
    self._install_artman()
  File "/Users/theaflowers/workspace/synthtool/synthtool/gcp/artman.py", line 124, in _install_artman
    ["docker", "pull", f"googleapis/artman:{ARTMAN_VERSION}"], hide_output=False
  File "/Users/theaflowers/workspace/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/Users/theaflowers/workspace/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 468, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'pull', 'googleapis/artman:latest']' returned non-zero exit status 1.
synthtool > Cleaned up 0 temporary directories.

Synthesis failed

Google internal developers can see the full log here.

Autosynth is still having trouble generating vision. :sob:
Here's the output from running synth.py:
Cloning into 'working_repo'...
Switched to branch 'autosynth-vision'
Running synthtool
['/Users/theaflowers/workspace/autosynth/env/bin/python3', '-m', 'synthtool', '--metadata', 'vision/synth.metadata', 'synth.py', '--']
synthtool > Executing /Users/theaflowers/workspace/autosynth/working_repo/vision/synth.py.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
latest: Pulling from googleapis/artman
Digest: sha256:2f6b261ee7fe1aedf238991c93a20b3820de37a343d0cacf3e3e9555c2aaf2ea
Status: Image is up to date for googleapis/artman:latest
synthtool > Cloning googleapis.
synthtool > Running generator for google/cloud/vision/artman_vision_v1.yaml.
synthtool > Failed executing docker run --name artman-docker --rm -i -e HOST_USER_ID=297975 -e HOST_GROUP_ID=89939 -e RUNNING_IN_ARTMAN_DOCKER=True -v /Users/theaflowers/.cache/synthtool/googleapis:/Users/theaflowers/.cache/synthtool/googleapis -v /Users/theaflowers/.cache/synthtool/googleapis/artman-genfiles:/Users/theaflowers/.cache/synthtool/googleapis/artman-genfiles -w /Users/theaflowers/.cache/synthtool/googleapis googleapis/artman:latest /bin/bash -c artman --local --config google/cloud/vision/artman_vision_v1.yaml generate python_gapic:

docker: Error response from daemon: Conflict. The container name "/artman-docker" is already in use by container "376d7547698d14db46dbbedb6900e6a2a836e169167a5776ed61e69aedab731b". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

Traceback (most recent call last):
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/theaflowers/workspace/synthtool/synthtool/__main__.py", line 87, in <module>
    main()
  File "/Users/theaflowers/workspace/autosynth/env/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/theaflowers/workspace/autosynth/env/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/theaflowers/workspace/autosynth/env/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/theaflowers/workspace/autosynth/env/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/theaflowers/workspace/synthtool/synthtool/__main__.py", line 79, in main
    spec.loader.exec_module(synth_module)
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/theaflowers/workspace/autosynth/working_repo/vision/synth.py", line 26, in <module>
    library = gapic.py_library('vision', version)
  File "/Users/theaflowers/workspace/synthtool/synthtool/gcp/gapic_generator.py", line 43, in py_library
    return self._generate_code(service, version, "python", **kwargs)
  File "/Users/theaflowers/workspace/synthtool/synthtool/gcp/gapic_generator.py", line 116, in _generate_code
    gapic_language_arg,
  File "/Users/theaflowers/workspace/synthtool/synthtool/gcp/artman.py", line 102, in run
    shell.run(cmd, cwd=root_dir)
  File "/Users/theaflowers/workspace/synthtool/synthtool/shell.py", line 39, in run
    raise exc
  File "/Users/theaflowers/workspace/synthtool/synthtool/shell.py", line 33, in run
    encoding="utf-8",
  File "/Users/theaflowers/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 468, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['docker', 'run', '--name', 'artman-docker', '--rm', '-i', '-e', 'HOST_USER_ID=297975', '-e', 'HOST_GROUP_ID=89939', '-e', 'RUNNING_IN_ARTMAN_DOCKER=True', '-v', '/Users/theaflowers/.cache/synthtool/googleapis:/Users/theaflowers/.cache/synthtool/googleapis', '-v', '/Users/theaflowers/.cache/synthtool/googleapis/artman-genfiles:/Users/theaflowers/.cache/synthtool/googleapis/artman-genfiles', '-w', PosixPath('/Users/theaflowers/.cache/synthtool/googleapis'), 'googleapis/artman:latest', '/bin/bash', '-c', 'artman --local --config google/cloud/vision/artman_vision_v1.yaml generate python_gapic']' returned non-zero exit status 125.
synthtool > Cleaned up 0 temporary directories.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/Users/theaflowers/workspace/synthtool/synthtool/metadata.py", line 63, in write
    with open(outfile, "w") as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'vision/synth.metadata'

Synthesis failed

Google internal developers can see the full log here.

Autosynth passed, closing! :green_heart:


Stable 0.12.x gem not installing in Ruby > 2.0.0

fluentd 0.12.37 (stable) gem won't install in Ruby > 2.0.0 because it requires string-scrub that is only available (and required) for Ruby <= 2.0.0.
I believe this was broken by 91bf6821fc90e339479711e2fd7dfa03a26ccba8 ; it should check that string doesn't have scrub method before adding the requirement.
Also fuentd.org website says stable version is 0.12.36, but a 0.12.37 gem is available (not tagged in GH!).

Now thinking about it I'm not sure if 0.12.x will work on 2.1, then these may need fixing:

https://rubygems.org/gems/fluentd/versions/0.12.37
http://docs.fluentd.org/v0.12/articles/install-by-gem

Both cases say Ruby >= 1.9.0.
Thanks!

string-scrub dependency should not be the problem.
% gem install fluentd --no-document -v 0.12.37
Fetching: string-scrub-0.0.5.gem (100%)
Building native extensions.  This could take a while...
Successfully installed string-scrub-0.0.5
Fetching: fluentd-0.12.37.gem (100%)
Successfully installed fluentd-0.12.37
2 gems installed
% ruby --version
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin15]

Maybe, your are something wrong.

Also fuentd.org website says stable version is 0.12.36, but a 0.12.37 gem is available (not tagged in GH!).

Ah, I forgot to update this. Will update soon.

string-scrub doesn't install here with Ruby 2.1; for some reason. Because of that fluend gem won't install.
I'll investigate further, thanks.

Maybe, you install latest version but fluentd gem doesn't depend on latest.

Good point; I'll close this one for now.
Thanks for your help!


Reimplement giving credits functionality.

Implemented in  https://github.com/charredgrass/charred-discord-bot/commit/dd69455081920db86fa1b76dc2773f2487d2e91e.


Updated Openode Deployment

Added instructions for modifying the dockerfile, using wss://your-site-name.openode.io/, and having the openode.io site open when deploying.

Hey Steven updated this and re committed hope its good now

Merged, thanks for the update!


Update iaas-sql-failover-cluster-network-thresholds.md

Removed reference to Server 2016
Pull request guidance
Thank you for submitting your contribution to our support content! Our team works closely with subject matter experts in CSS and PMs in the product group to review all content requests to ensure technical accuracy and the best customer experience. This process can sometimes take one or more days, so we greatly appreciate your patience.
We also need your help in order to process your request as soon as possible:

We won't act on your pull request (PR) until you type "#sign-off" in a new comment in your pull request (PR) to indicate that your changes are complete.

After you sign off in your PR, the article will be tech reviewed by the PM or SME if it has more than minor changes. Once the article is approved, it will undergo a final editing pass before being merged.

@jeffhughes-msft The change is live. This PR will be closed.


How did you manage to get the bounds value?

On your example you have bounds value. I'm reading the geocoding doco on google maps but i can't find any information on how to get that value or how is this value formated, is that lat, long?
can you please help ? thanks

If I understood correctly your request I think the Google docs are these ones: https://developers.google.com/maps/documentation/geocoding/intro#GeocodingRequests


Revert shared workflows branch

Now that all of the RAPIDS libraries are successfully building against the py-39 branch, it has been merged into branch-23.06 (see https://github.com/rapidsai/shared-action-workflows/pull/72).
Therefore all of these branches can be reverted now.

/merge


Fix debruijn bugs, or use built-in Coq functions

Nate used Vars.liftn in fix_to_elim. I think this is in the kernel, but maybe a similar function is exposed elsewhere. Not sure if it's what we want. For now going to move all of the client code to use our shifting functions, but then at some point move our shifting functions to point to the predefined Coq functions when possible.


⚠ BCR Bot has degraded performance

In 65e341c, BCR Bot (https://bcr.alternativasinteligentes.com/BCRApi/web/chatbot) experienced degraded performance:

HTTP code: 200
Response time: 949 ms

Resolved: BCR Bot performance has improved in 438070e.


[bug] window height is not correct

Describe the bug
The element cannot occupy by the height of the window when it changed to the full screen window.

However after the inspection window is showed up, it can occupy whole screen.

Reproduction
src/App.tsx
import { createSignal } from "solid-js";
import logo from "./assets/logo.svg";
import { invoke } from "@tauri-apps/api/tauri";
import "./App.css";

function App() {
  return (
    <header class="header">
    </header>
  );
}

export default App;

src/style.css
.header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

Expected behavior
No response
Platform and versions
[✔] Environment
    - OS: Mac OS 10.15.7 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.75.0-nightly (49691b1f7 2023-10-16)
    ✔ Cargo: 1.75.0-nightly (6fa6fdc76 2023-10-10)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: nightly-x86_64-apple-darwin (default)
    - node: 18.18.2
    - pnpm: 8.9.2
    - npm: 9.8.1

[-] Packages
    - tauri [RUST]: 1.5.2
    - tauri-build [RUST]: 1.5.0
    - wry [RUST]: 0.24.4
    - tao [RUST]: 0.16.4
    - tauri-cli [RUST]: 1.5.3
    - @tauri-apps/api [NPM]: 1.5.0
    - @tauri-apps/cli [NPM]: 1.5.2

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: SolidJS
    - bundler: Vite

Stack trace
No response
Additional context
No response

For this situation, the bottom of window was white because the top position might go a little bit up.
Whenever I tired, the top can be white sometimes...

Could you try adding this to your src/style.css and see if it works?
body {
  margin: 0;
}

the css of the solid-ts-template changed when i re created it today so now it is solved.


Fixed the bug causing imports to fail on pdf's

Also added the pdf extractor to the transform-text pipeline

@oliversauter The fact that the pdf-extractor for websites we visit wasn't being run through the pipeline may have been a reason for some of the terms not being removed when expected.

Gave a little test with a few PDFs on search branch, and seems to work good. Code looks great too!

@poltak Yeah cool I am going to merge it


booking-up-for-beauty: add booleans to prerequisites

The booking-up-for-beauty exercise depends on the student knowing what a bool is, but the booleans concept is not listed in the prerequisites. The booleans concept should be added to the prerequisites of the booking-up-for-beauty exercise.

@ErikSchierboom I have added a PR. Do let me know if it is not the expectation.

Thanks!


Fix for not closing file stream while writing mocks.

This resulted in empty mock files in some cases (eg. non-rails app).

I'm curious how your experience is using this gem on a non rails app.

It's really great. I had some problems with running build-in rake task so I wrote one with Siantra specific configuration in my project dir.


nav_prev, nav_next functions bug

Sometimes, after opening buffers with nvim-tree/nvim-tree.lua, the buffers aren't found when trying to cycle them through nav_prev and nav_next functions but it is fixed after running the toggle_quick_menu() function.
Also, after deleting a buffer with famiu/bufdelete.nvim, when cycling the buffers with nav_prev and nav_next functions, the previous deleted buffer appears again, but it is fixed if toggle_quick_menu() is used after deleting the buffer.
Seems like something should be done in the cycling functions to refresh the buffer-manager buffer list...

Yes, you are right. Probably, we need to add some calls to the function initialize_marks(), from ui.lua. I will work on it as soon as I can. And thanks for the feedback!

In the meantime, I've mapped 2x toggle_quick_menu() to run before nav_prev, nav_next or bufdelete and it works flawlessly.
You're welcome and thank you for this plugin, as it is exactly what I needed.

Hello. I have added a commit (4a21ea5) that I think it solves the issue. However, I would appreciate it if you could test it too, to check that everything is working properly.
This issue is linked to the branch automatic-marks-update, so it is the commit 4a21ea5. Thus, to test it, you have to add the branch information to Packer (or whatever plugin manager you use). Here is an example for Packer:
  use { 'j-morano/buffer_manager.nvim', branch = 'automatic-marks-update' }

Let me know if there are any bugs.

Hello. I have added a commit (396cf71) that I think it solves the issue (the previous one, 4a21ea5, was wrong). However, I would appreciate it if you could test it too, to check that everything is working properly.
This issue is linked to the branch update-marks, and so it is the commit 396cf71. Thus, to test it, you have to add the branch information to Packer (or whatever plugin manager you use). Here is an example for Packer:
use { 'j-morano/buffer_manager.nvim', branch = 'update-marks' }

Let me know if there are any bugs.

Hi. Nice to hear that it works in most cases.
Regarding your specific issue, I am not sure I can solve it. The plugin already checks if the name of the buffer is empty and if it is listed. Is bufdelete.nvim correctly removing the empty buffer after it is replaced? In those cases, which is the output of the command :ls?

I merged the branch, but I have reopened the issue until I know the source of the specific issue that you have.

You're right, the empty buffer is still there. I actually don't know if this should be solved by buffer_manager or not... What I know is that using bufferline this didn't happen but I don't know if they would close it or simply bypass it.

Thank you for taking the time of reporting the issue. I appreciate the feedback.
And I'm fine with that matter being another issue. Feel free to open it; we can work on it.


syntax in readme example fixed

syntax in "Creating redirects" example fixed

Thanks for spotting this @pideee ! :)


Project > Comments > Getting "TypeError: Cannot read property 'map' of undefined" error when the user clicks on the "Add comment" button

Roles: All
Describe the bug
Project > Comments > Getting TypeError: Cannot read property 'map' of undefined error when the user clicks on the Add comment button
Steps to Reproduce

Login as an admin user
Create a new Project
Open Created project
Click on the Add  comment button

Expected Result
A comment box should be displayed.
Actual Result
Getting TypeError: Cannot read property 'map' of undefined error when the user clicks on the Add comment button.
See video -
https://user-images.githubusercontent.com/5212585/116966695-64d73d00-acce-11eb-8b22-992b33cdeaed.mp4
FYI: @ParkeBrown @michaelmarshall
cord-field# 1e7d5d88

Successfully reproduced the bug, admin user cannot "add comment". When attempting to click the "Add Comment" button, the error "TypeError: Cannot read property 'map' of undefined" is returned


can't open OneNote app after a couple of days installation

It happens 3 times since I installed a fresh Ubuntu 22.04 lately.  After (re)installing the OneNote, the app is launched, then, disappears.  Whatever clicking on the app, it doesn't do anything.

It works now after I re-installed it.
Thanks, Anuj!
On Tue, Oct 17, 2023 at 1:55 AM Anuj Datar @.***> wrote:

Hi, hope you were able to resolve the problem. I haven't seen this happen
before. Not sure if you're still using the app. But let me know if you have
some error logs for the issue. Have you tried launching the app from the
terminal?
—
Reply to this email directly, view it on GitHub
https://github.com/anujdatar/onenote-desktop/issues/54#issuecomment-1765972087,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALWQMOKTOUSVEAZP3NV7ZO3X7ZBWZAVCNFSM6AAAAAAZOB7K7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRVHE3TEMBYG4
.
You are receiving this because you authored the thread.Message ID:
@.***>


Issue with atlmfc:x64-windows

I can't install vtk[qt] because of the following error:
Starting package 1/31: atlmfc:x64-windows
Building package atlmfc[core]:x64-windows...
CMake Error at ports/atlmfc/portfile.cmake:7 (message):
  Unable to locate 'afxres.h'.  Ensure you have installed the ATL/MFC
  component of Visual Studio.
Call Stack (most recent call first):
  scripts/ports.cmake:71 (include)

Error: Building package atlmfc:x64-windows failed with: BUILD_FAILED

Package: atlmfc:x64-windows
Vcpkg version: 0.0.113-nohash

You need to add atl/mfc to your Visual Studio.

To do so, start the Visual Studio Installer, under the "More" dropdown, click "Modify" and make sure the following boxes are checked:

Installing ATL/MFC is quite confusing. Here's a config that worked for me:

For some reason, installing just v14.22 ATL & MFC didn't work (I'd get the "Ensure you have installed the ATL/MFC" error). I needed to select "C++ ATL for latest v142 build tools" and "C++ MFC for latest v142 build tools". The installer seemed to download nothing, but now things work.


gerrit-337403-2

Codecov Report

Merging #481 into master will decrease coverage by -0.07%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #481      +/-   ##
==========================================
- Coverage    63.1%   63.04%   -0.07%
==========================================
  Files         271      271
  Lines       50920    52984    +2064
==========================================
+ Hits        32133    33403    +1270
- Misses      18787    19581     +794

Impacted Files
Coverage Δ

tests/textlib_tests.py
99.89% <100%> (+0.04%)
:white_check_mark:

pywikibot/comms/rcstream.py
0% <ø> (-89.29%)
:x:

pywikibot/userinterfaces/win32_unicode.py
19.89% <ø> (-39.8%)
:x:

pywikibot/userinterfaces/terminal_interface.py
87.5% <ø> (-12.5%)
:x:

tests/ui_tests.py
71.65% <ø> (-6.39%)
:x:

pywikibot/config2.py
70.77% <ø> (-5.9%)
:x:

tests/utils.py
78.47% <ø> (-5.61%)
:x:

tests/djvu_tests.py
95.45% <ø> (-4.55%)
:x:

tests/pagegenerators_tests.py
89.93% <ø> (-2.21%)
:x:

pywikibot/site.py
59.13% <ø> (-1.02%)
:x:

... and 13 more

Continue to review full report at Codecov.

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


merge beta to main

This PR updates the main branch to match beta. The majority of changes here were to page layout, style, and other css attributes. Also addresses accessibility needs and streamlining build.


Added support for deployment targets

Resolves
Fixes #148
Description
Added very simple functionality to specify the name of a deployment target, which normally would end up being 'Test', 'Stage' or for example 'Production'

This is ready for a review!


Share a port, but not a shell

I would like to share a certain port of my machine via teleconsole (e.g., port 5900 a VNC server is running on), but not a shell.
The other party should be able to view my screen using VNC over the forwarded port, but not be able to log into a shell on my computer.
Is that doable?

With sshd one could do:
  PermitOpen <IP_ADDRESS>:5900
  X11Forwarding no
  AllowAgentForwarding no
  ForceCommand /bin/false

Another option would be to use stdio. The x11vnc server can send its traffic to stdout and receive from stdin, which can be sent over ssh like this:
ssh -tt -e none user@host 'x11vnc -inetd -o log.txt -display :0'
Can we do a similar thing over teleconsole?


Add python_requires metadata for PyPI

Prevents pip from seeing the dist on unsupported Python versions.

Need to exclude 3.3 as well.


ExtractorError: "token" parameter not in video info for unknown reason

Please ignore. Thank you.

What was the solution? I have the same problem.


feat(cli): support for custom seeder file in prisma reset

This PR enables --seed-file argument in prisma migrate reset to support custom seed files which are not in prisma.seed.
Closes #21184

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Dhaya seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Hey, I don't think the issue was asking for a custom seed file. The issue was about being able to supply additional parameters to migrate reset, which would then be collected and supplied to the internal call of db seed that happens at the end of migrate reset.

Can you please provide an example ?

It's in https://github.com/prisma/prisma/issues/21184 and https://github.com/prisma/prisma/discussions/21173. The user wants to be able to do npx prisma migrate reset ./STjsons/test_objects_used_by_methods.json - which he then should be able to read in  the db seed execution that is done under the hood of migrate reset.

It's in #21184 and #21173. The user wants to be able to do npx prisma migrate reset ./STjsons/test_objects_used_by_methods.json - which he then should be able to read in the db seed execution that is done under the hood of migrate reset.

Hope I did the correct changes this time

Yeah, I think that does now more what the user asked for.
(Seems there is a test regression though=
What motivated you to add --allow-seed-args instead of just forwarding all of them as we do when you use db seed directly?
A test would probably be good to show how the params end up being available in the seed script.

What motivated you to add --allow-seed-args instead of just forwarding all of them as we do when you use db seed directly?

I just want the user and the system to know There are some custom seed args available. This may help in the future for further processing if exists.

A test would probably be good to show how the params end up being available in the seed script.

I just wanted to ensure that the expectations were met before adding tests.

@janpio , I added tests for the changed files can you have a look on it ?

Generally looks good.
We'll have to decide with my colleagues if we need the additional param, or if we can just forward them all the times  as the user originally suggested.
You have a few test regressions that need to be cleaned up.

Generally looks good.
We'll have to decide with my colleagues if we need the additional param, or if we can just forward them all the times as the user originally suggested.
You have a few test regressions that need to be cleaned up.

Can you point what are them needs to be cleaned up ?

None of these tests should be failing.

@janpio None of the tests are failing now. Can you please check it ?

Thank you, then it is our turn with:

We'll have to decide with my colleagues if we need the additional param, or if we can just forward them all the times as the user originally suggested.

I think we should remove the additional param and make this happen all the time with no need for additional configuration.


Use as Library

Any issues with this being refactored to work as a library? I'm working on a project which uses this but at the moment which uses nginxfmt.py but I'd ideally like to reference this as a pip package instead, or at the very least a git package link.

Good idea. I'm planning to look at this project again since there are some issues and pull requests. There is already pip package, but not maintained by me; in near future I'm going to do the refactor and write to the maintainer to transfer ownership to me.

Yeah I saw that pip package too (https://pypi.org/project/nginxfmt/ for those following along at home) but I would prefer to see the source of the package before using it on the project just in case something unexpected happens. I'm happy to look at PRing such an improvement if you are already planning it?

I started the implementation. For now I transferred old features. There are two classes:

FormatterOptions - holds options, just indentation level for now
Formatter - main class. It receives optional FormatterOptions and optional logging.Logger class

@jimbo8098 suggestions are welcome, especially regarding good Python practices since I don't use Python on daily basis.

Excellent! I'm going to stabalise what I've got just now but I've got this in my sprint backlog to refactor into my codebase later on. I will refactor this code likely sometime in May to include the library.


adding Zomato

Woot, thanks a lot! Nice talking with you and the other guys yesterday!

Yes had a great time yesterday :satisfied:


Test Datasets

Where are the test datasets of other datasets (USPS, FRGC, YTF, etc..)
(apart from MNIST-test)?

hi, @07Agarg they are in datasets folder.

hi, @jwyang , Thanks for responding.
datasets given in the "datasets" folder are for training purpose? You didn't use any hold-out set for validation?

@07Agarg yes, for deep clustering, there is no hold-out set for validation actually. it is a bit weird though.

Okay, thanks.


fix(lib): Export hyper::RawStatus if the raw_status feature is enabled

[x] The commit messages match the guidelines in https://github.com/hyperium/hyper/blob/master/CONTRIBUTING.md#git-commit-guidelines

Thanks!


[Bug] Satellite dose not support dotnet CLRMetricReportService

Search before asking

[X] I had searched in the issues and found no similar issues.

Apache SkyWalking Component
Satellite (apache/skywalking-satellite)
What happened
Satellite does not support the CLRMetric defined by SkyAPM-dotnet. The error message is as follows:
Report CLR Stats error. Grpc.Core.RpcException: Status(StatusCode="Unimplemented", Detail="unknown service CLRMetricReportService", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1668481297.736307016","description":"Error received from peer ipv4:x.x.x.x:11800","file":"/var/local/git/grpc/src/core/lib/surface/call.cc","file_line":953,"grpc_message":"unknown service CLRMetricReportService","grpc_status":12}")
 at SkyApm.Transport.Grpc.V8.CLRStatsReporter.ReportAsync(CLRStatsRequest statsRequest, CancellationToken cancellationToken)

Satellite version: 1.0.1
SkyAPM-dotnet version: 1.3.0
What you expected to happen
Support CLRMetric.
How to reproduce
Use dotnet agent to report data.
Anything else
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

.net agent is a 3rd party project, we rely on their community to maintain their protocols and features.
SkyWalking is just helping on hosting them.

Friendly ping @liuhaoyang


<EMAIL_ADDRESS>Version no longer supported. Upgrade to @latest

The NPM package version for puppeteer should be upgraded as the current requirement is deprecated. Upon installation, the following error is shown:

npm WARN deprecated<EMAIL_ADDRESS>Version no longer supported. Upgrade to @latest

The latest current version of puppeteer/puppeteer is 14.1.1.

You can use our fork with puppeteer 14.4.1, improved phpDocs and puppeteer-extra support: https://github.com/zoonru/puphpeteer/tree/zoon


Does not render well in mobile chrome browsers

Describe the bug
In chrome browsers on mobile devices  rendering and control works badly.  When using an android webview instance, the result is a s the image shown in #28 .   Same actually applies when browsing brickhub.org.
It's a bit of a pity,  since mobile devices are a prime use case for buildinginstructions.js.  Working in webview would be a prerequisite to ever easily make an app from it.
On the upside, it renders  well when using firefox.
To Reproduce
Use chrome on any android phone/tablet, go to https://brickhub.org/i/r.php?model=3&color=0
try to navigate and/or rotate/resize the model
Alternatively
1.) install android studio
2.) make a simple webview app like so
package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class MainActivity extends AppCompatActivity {

    private WebView myWebView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        myWebView = (WebView) findViewById(R.id.myWebView);
        // Enable Javascript
        WebSettings webSettings = myWebView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webSettings.setPluginState(WebSettings.PluginState.ON);
        webSettings.setAllowFileAccess(true);
        webSettings.setAllowContentAccess(true);
        webSettings.setAllowFileAccessFromFileURLs(true);
        webSettings.setAllowUniversalAccessFromFileURLs(true);
        myWebView.setWebViewClient(new WebViewClient());
        myWebView.loadUrl("https://brickhub.org/i/r.php?model=3&color=0");
    }
}

It will look like the screenshot on #28
Expected behavior
It would be prefect if it behaved like on a desktop (or mobile in firefox).
Device (please complete the following information):

android 9

Thanks for the bug report and detailed description of how to replicate it.
I have made a fix that works in Android emulators. This has been pushed to the master branch.
I am, however, not satisfied with how the fix has been made. It turns out that the two renderers (the one for the main canvas and the one for the parts list images and previews) affect each other on Android, but not on Desktop and iOS. The issue is with "renderer.setSize()". As soon as I set the size smaller on the secondary renderer, it bounds the rendering area for the main renderer. The fix I have pushed is a hack - it sets a big size on the secondary renderer once icons and previews are rendered/done. Ideally this should not be necessary.

Hi @mfeldt . Are you also seeing the issue in the examples that I have set up in the three.js issue?: https://github.com/mrdoob/three.js/issues/19866

Currently I don't Apparently it works in chrome @ android, and I don't manage to ember your result in the emulator...

Alright. I will get a more recent Android device than the one that I have (it is from 2012) and see if I can make all pages work properly.

Hi @mfeldt . I have purchased the cheapest and slowest Android phone I could find and the page in your example renders correctly in both the chrome browser and the default "Google Go" Android browser.
Can you please confirm that the error still exists?

I confirm it renders well in the browsers.
However, my initial example still leads to a white screen, both in emulation and on the actual phone.  Might be related to webview, though.

The issue with WebView is due to WebView not being able to handle multiple canvases correctly. The library uses several canvases in order to draw parts separately.


Fix race condition in ItemDiffingInstrumentedTest

Codecov Report

Merging #25 (e2b8894) into develop (e0a512b) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop      #25   +/-   ##
==========================================
  Coverage      37.08%   37.08%
  Complexity        50       50
==========================================
  Files             14       14
  Lines            240      240
  Branches          31       31
==========================================
  Hits              89       89
  Misses           145      145
  Partials           6        6

Continue to review full report at Codecov.

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


Update case-app to 2.0.0-M12

Updates com.github.alexarchambault:case-app from 2.0.0-M11 to 2.0.0-M12.
Release Notes/Changelog
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.github.alexarchambault", artifactId = "case-app" } ]

labels: library-update, semver-pre-release

Superseded by https://github.com/coursier/coursier/pull/1545.


Protobuf compatibility could be relaxed

I am currently using this template to try to make ansys-platform-instancemanagement (PyPIM) compatible with Python's protobuf 4, and it looks like the dependency statement toward protobuf is currently more restrictive than it should be, as the generated code is compatible with protobuf >4 out of the box. The code is currently generated with protoc 3.19, making it compatible with the protobuf package 4.x
protobuf~=3.19 could instead be protobuf>=3.19,<5.
I did an end to end test by regenerating PyPIM API package (ansys-api-platform-instancemanagement) with this template and using it with PyDPF and protobuf 4.22.3 with no issue.

Thanks @plule-ansys, I think that just got missing. See also https://github.com/ansys/ansys-tools-protoc-helper#upgrade-plans for compatibility charts.

Oh I did not see that you had an upgrade plan in place already. Here is an article detailing that the code generated with protoc 3.19 is actually compatible with the package protobuf 4.21 and following: https://protobuf.dev/news/2022-05-06/#python-updates
It could mean that protobuf 4 is actually compatible with many pyansys libs

Yes, I think that's what this means. This was the reason for switching to 3.19 in the 0.4 release, but we missed it in the template.


Api backend not working

Hi,
I cloned this project, installed it in Spring STS (Eclipse) and tried to run it. The web app works, I get the angular page but when I try to register I get this error:
POST http://localhost:8080/api/user/register 404 (Not Found)
Is there a way I could test if the backend is up and running?

did you setup the database? you can see the logs if the backend was booted correctly or not. the fact that you got 404 not found for that end point shows something might have gone wrong while setting/mapping that path in the tomcat container. see logs. you might find something.


(feature)adds support for Javascript files

These changes adds support for Javascript files.

Cool, I didn't know clang format had support for this. While we are at it we should add support for java and protocol buffers too so we have every language it supports.

Sounds good! Can you please merge this PR and I will add the other languages when I get a chance?