"flynn-host ps" gets "could not list hosts: Error sending HTTP request [...] connection refused" during node replacement

Three node cluster, restored from backup, one node manually knocked over for testing purposes.
https://gist.github.com/4ced71fa41370b1b1b5462072a794e04 is the only debug-info I was able to retrieve from the hosts, and I believe that was in the newest node. The other two hang at "getting job logs", and the status page has gone from unhealthy to unresponsive as time progresses.

The underlying issue here was #2974, I'll close this in favour of that issue.


cmd/go: make it easier for toolexec authors to get access to full package path

I'm writing a toolexec-able program for which I want to know the full package path for whatever code is being operated on. The code to figure out this package path is currently a pile of hacks. E.g. for compile, look for the -p arg. For asm, use -trimpath to figure out $WORK and then slice that off the -o arg. This breaks down entirely for invocations of cgo with -dynpackage.
I would like to have cmd/go pass extra information when toolexec is in use. For backwards compatibility, I propose to do this via an environment variable, something like TOOLEXEC_PKG_PATH (improvements welcome). There might be other, similar bits of data to add in the future.
Feedback and suggestions requested. I'm going to hack this in myself anyway, it's just a question of whether I should plan to mail a CL at the end (for 1.8, of course).

I had this same pain recently but figured I was just doing something wrong. Glad I'm not alone.

@josharian given that you self-assigned this, do you still intend to implement this? If not, I'd like to have a go for 1.16 :)

All yours.


Can't expose native type (CBManagerState).

While having public code with some types from native frameworks other than foundation , I'm getting an error:
/iosArm64/swiftBuild/.build/arm64-apple-macosx/release/BleCommunication.build/BleCommunication-Swift.h:366:33: error: unknown type name 'CBManagerState'
The code which I have is very simple
import CoreBluetooth

public static var state: CBManagerState { .unknown }

Currently I've wrapped my enum, but it's not a best trick.
Can we specify headers or other options?

@maksimpetrovskycorewill Hi!
If this issue is still relevant for you, please provide small reproducer and I would help you.
Otherwise, let me know and I will close the issue.

@maksimpetrovskycorewill Hi! If this issue is still relevant for you, please provide small reproducer and I would help you. Otherwise, let me know and I will close the issue.

Hello , the root cause of that issues , not relates to this lib, but caused by xcodebuild, unfortunately by default it's not exposing system libraries Headers used in swift. The example is using  CBManagerState in code,
import CoreBluetooth

@objc public class CBManagerStateObserver: NSObject {
    @obj public var state: CBManagerState = .unknown
}

in the result of build
LibName-Swift.h
doesn't contain
#include <CoreBluetooth/CoreBluetooth.h>
and kotlin fails klib due to missing header.

I've tried pods and In the pods I've able to add CoreBluetooth.h with

#include <CoreBluetooth/CoreBluetooth.h>
but SPM is not supporting language mixes inside one package, so I can't add header in Sources.
Of course we can add it manually to some directory and Link in def file, but currently we have no control over def file creation.
I've tried this manually and it was also worked.
But for now we simply exposing Int instead of such type.
As solution feature to inject headers to def file by specifying path can be very useful for such cases.

Offtopic: So currently , I'm in development state  of the plugin , which is inspired by swiftklib, for building Xcode frameworks from xcodeproj.
1. Flexible configuration of build phase
2. Abilities to mix code inside framework
3. Ability to use dependencies : SPM, frameworks etc.
Btw in addition we're using xcodegen yml to define project and I'm using static_framework.yml template.

@maksimpetrovskycorewill Hi! If this issue is still relevant for you, please provide small reproducer and I would help you. Otherwise, let me know and I will close the issue.

Hello , the root cause of that issues , not relates to this lib, but caused by xcodebuild, unfortunately by default it's not exposing system libraries Headers used in swift. The example is using CBManagerState in code,
import CoreBluetooth

@objc public class CBManagerStateObserver: NSObject {
    @obj public var state: CBManagerState = .unknown
}

in the result of build LibName-Swift.h doesn't contain #include <CoreBluetooth/CoreBluetooth.h> and kotlin fails klib due to missing header with error error: unknown type name 'CBManagerState'
I've tried pods and In the pods I've able to achieve this by adding CoreBluetooth.h with following code:
#include <CoreBluetooth/CoreBluetooth.h>

but SPM is not supporting language mixes inside one package, so I can't add header in Sources. Of course we can add it manually to some directory and Link in def file, but currently we have no control over def file creation. I've tried this manually and it was also worked. But for now we simply exposing Int instead of such type. As solution feature to inject headers to def file by specifying path can be very useful for such cases.
Offtopic: So currently , I'm in development state of the plugin , which is inspired by swiftklib, for building Xcode frameworks from xcodeproj.

Flexible configuration of build phase
Abilities to mix code inside framework
Ability to use dependencies : SPM, frameworks etc.
Btw in addition we're using xcodegen yml to define project and I'm using static_framework.yml template.

I see!
I'm currently in a process of writing a fix for proper system headers exposure 😀


mpc-merge-all Problems

Hi!! It's me again :nerd_face:
I i'm trying to convert some different pointclouds and, some of them work perfectly, but other point clouds are giving me new problems:
when i run mpc-merge-all with all the arguments and following all the preveius steps, i sometimes get execution failed, but not always.
The times this doesn't work, what i see on command line is that the process simply gets stopped with no error message. Searching through generated files, everything is fine but a file. The .log file asociated to the last tile it tried to convert.
Input Potree Octtree A:  MyPATH/Potree-OctTrees-merged/merged_7
Input Potree Octtree B:  MyPATH/Potree-OctTrees/tile_7_5_potree
Output Potree Octtree:  MyPATH/Potree-OctTrees-merged/merged_8
mkdir -p MyPATH/Potree-OctTrees-merged/merged_8
lasinfo MyPATH/Potree-OctTrees/tile_7_5_potree/data/r/rlas -nc -nv -nco
mkdir -p MyPATH/Potree-OctTrees-merged/merged_8/data/r
Execution failed!
Traceback (most recent call last):
  File "/home/raquel/.local/lib/python3.6/site-packages/pympc/merge_potree_all.py", line 70, in main
    run(args.input, args.output, args.move)
  File "/home/raquel/.local/lib/python3.6/site-packages/pympc/merge_potree_all.py", line 44, in run
    merge_potree.run(octTreeAInputFolder, octTreeBInputFolder, octTreeOutputFolder, moveFiles)
  File "/home/raquel/.local/lib/python3.6/site-packages/pympc/merge_potree.py", line 157, in run
    joinNode('r', dataA + '/r', dataB + '/r', dataO + '/r', hierarchyStepSize, extension, cmcommand)
  File "/home/raquel/.local/lib/python3.6/site-packages/pympc/merge_potree.py", line 44, in joinNode
    hasNodeB = (i < numChildrenB) and (hrcB[level][i] > 0)
TypeError: '>' not supported between instances of 'NoneType' and 'int'
Any idea why, or how to solve this??
Thank you very much!!!!!!! :smile:

@Raquel0
Hi,
Did you solve this case ? I have the same issue !


Proposal: Use Serilog as the logging framework in MT3

Hi,
i am following with interest the work on MT3.
First of all, Terrific work :).
I was thinking that, since the code base is undergoing a lot of changes, of which many are breaking changes, It would be nice if MassTransit 3 used Serilog as the base log abstraction.
There is a Serilog integration, but most of the log structure is lost for the log created by mass transit.
Given that Serilog natively output structured events the mapping to a less structured format is always possible.
Additionally the sinks available cover already a lot of existing libraries (including log4net and NLog) and multiple other storages. Writing a new one is also trivial.
I think that having the ability to save the log output to different medium and later be able to execute queries on it provide great value when troubleshooting interaction between components in complex systems (messaging and thread agnostic code can be deadly sometime :)).
I have looked at the code in MassTransit/Logging and the advantage is that right now is does not depend on anything else.
I understand that this is a nice property, since it does not force anyone to use a particular logging framework, but given the aforementioned advantages and the new major version i though the time to for this proposal was now or never :D

Another options is to keep the current abstraction, but adopt the Serilog syntax and use it internally to destructure log events without exposing the native Serilog.ILogger interface.
If the user want to use a different sink (or use Serilog directly from the user code) it could import the nuget package and change the configuration himself.

Thanks for you time.

Maybe using liblog as a logging abstraction?
https://github.com/damianh/LibLog/wiki

Ideally I'd like to use ETW in MT3, and then bind everything up to whatever is listening...

FYI: https://github.com/CaptiveAire/MassTransit.SerilogIntegration

@Jaben
Yes i know about the MassTransit serilog integration.

There is a Serilog integration, but most of the log structure is lost for the log created by mass transit.

@phatboyg

Ideally I'd like to use ETW in MT3, and then bind everything up to whatever is listening...

This would be fine (since you keep the semantic nature of the log), but:

You lose portability (eg. Net.Core) (maybe it's not an issue)
It's a a huge paradigm shift.
It's rigid, serilog seems more flexible in terms of schema, and dealing with changes.
It's not quite friction free.

See also this comment from the author

What i am trying to say is that once you assume at the base abstraction that the log is unstructured you loose a lot of capabilities.
I was suggesting serilog because it provide a nice and simple way to destructure the log event by keeping an approach similar to the standard we are all used to.
Example (From the serilog site):
Serilog message templates are a simple DSL extending .NET format strings. Parameters can be named, and their values are serialized as properties on the event for incredible searching and sorting flexibility:
var position = new { Latitude = 25, Longitude = 134 };
var elapsedMs = 34;

log.Information("Processed {@Position} in {Elapsed:000} ms.", position, elapsedMs);

This example records two properties, Position and Elapsed along with the log event. The properties captured in the example, in JSON format, would appear like:
{"Position": {"Latitude": 25, "Longitude": 134}, "Elapsed": 34}

The @ operator in front of Position tells Serilog to serialize the object passed in, rather than convert it using ToString().
The :000 segment following Elapsed is a standard .NET format string that affects how the property is rendered. The console sink included with Serilog (or any unstructured log sink) will display the above message as:
09:14:22 [Information] Processed { Latitude: 25, Longitude: 134 } in 034 ms.

You can for example sink into elastic search (this is what we are doing right now and the developement cost vs the value this provide are gigantic :)).
Then you have a nice log/metric visualization system.
To be fair you can do the same(almost) using logstash, but this will:

you need to structure your log in something that can be parsed anyway
you are basically doing the mapping three times, one when you write the log, one to parse it and another time to ingest into the target sink (ES, Azure, whatever...)
you need to add another moving part that have to be managed to the system (logstash).

Sorry for the long comment but i wanted to provide a better explanation of what motivated this proposal.
Thanks.

+1 for LibLog

So from looking at Serilog, it's a nice library. The message templates are a little strange at first, and I'm not entirely clear at how Position maps to the position argument (in fact, I'm guess it is positional by use and order which makes it sensible versus numeric values). I'm just not sure I want to pull in the dependency at this point, due to the frequent updating.

So this didn't happen, and likely won't since 3.0 is GA. I would like to have Serilog as a natively supported logger though, so I'll help with any pull requests to make this happen.

Looks like a Serilog update for MT3 has been released, closing!

Yeah, sorry for the delay on that... I honestly didn't realized 3 was out. I'll look at doing a pull request with serilog as default logger when I get some time.

No worries. It's fine as a separate package. Glad to see it updated! If you wanted to make a pull request to add it to the main project I'm cool with that - then it's updated with each release. I'd need permission to push the package though.

@Jaben I'd be happy to make Serilog part of the default MT build and deploy the package with each new build if that works for you. I'd just need to be able to push the package to nuget.

@phatboyg Done! Thanks for reminding me :)

Are you okay with me taking the code from your project and putting it into the MT repo so it's part of the build?

@phatboyg Please do. It's pretty much "done" at this point -- don't see it changing much. But if it does, I can PR.

@Jaben Can you look at https://github.com/MassTransit/MassTransit/pull/470 and see what's up?


Adding Docker Support

Adding a basic Dockerfile for people willing to run Monocle within a Docker container.
Please note that default entrypoint is "scan.py". This means if launching container with default options, it will launch the Monocle scanner. For launching the web.py or any of the tools, entrypoint will need to be overwriten in the docker run command, e.g. for the web interface:
`--entrypoint '/usr/src/app/web.py'
or for any tool available in Monocle's script directory :
--entrypoint '/usr/src/app/scripts/print_levels.py
Dockerfile also installs "libgeos-dev" as it's required by "shapely" which in turn is required to run multipolygons. It was not tested with other optional requirements, only shapely and mysqlclient.

I think it would be nice if you could provide a config.py / accounts.csv, which is then mounted inside the container, so that they don't have to be part of the image it self

What you think about EXPOSE the default port, so automated tools know which port to route?
Also, I would install every major dependency, like MySQL and Postgres libs, so anyone could just run this Docker image out-of-the-box.

EXPOSE has been added and Entrypoint has been split into Entrypoint + CMD.
Not sure about adding major dependencies. I'm just following Monocle's way of thinking here, and as far as he decided to add like MySQL in optional requirements, why add it as a default requirement in Dockerfile ?
What's the purpose of adding a docker-compose.yaml  ? Never used that myself, but why not if it can be useful for some people.


Use of these GitHub tools

💡 Description
What are the best tools available here to use, particularly for tracking bundle status and lien resolution?
Can "Projects" be used or is that not applicable at the repository level?
Clearly "Issues" can be used.  Can actions be assigned?  Can "nagging" be employed?  What else?
⚔ Parent Epic / Related Tickets
No response

Should this have been a "Discussion"?

I would have started it as a discussion myself, but that's a judgement call.  I tend to see issues used for very targeted tasks, like closing out the liens for a specific bundle.

There was an opportunity to convert the issue to a discussion, but I don't find it now.  Perhaps that was only available at creation.
Suggested guideline:  Use "Issues" for well-defined tasks and "Discussions" for broader questions.

Okay, the conversion to "Discussion" failed with the message  "Unable to convert this issue to a discussion. Category is not accessible to the actor"  What does this really mean?

It's probably because I set your permissions too low (write). I've changed it to "maintain". Please try again and see if this lets you convert this to a discussion.

As far as the tools are concerned, I'd like to be able to post successive versions of an Excel liens spreadsheet. I know that you can post attachments to an issues, but that doesn't maintain the version history like you get with code.

Ah, that's not a bad way to work.  Data suppliers don't edit the files in the repository but only discuss items.  Not sure how the issue tracker fits into this since the excel spreadsheet tracks issues.  Quite likely issues will not get used much.


Examples improvement: H3 Spatial index

📚 Documentation

I think this could do with a line or two at the start of the background to establish what H3, and I suppose more generally what a spatial index, is used for. Something like:
"A spatial index is a structured collection of shapes that allows you to approximately describe any region by simply taking a subset of shapes from that index. The H3 library, developed by Uber as an open source project, uses hexagons to divide up the earth into cells. H3 is hierarchical, meaning that there are multiple resolutions of hexagonal meshes dividing the earth. Depending on the resolution, these hexagonal cells range from ~1m^2 to ~4,000,000km^2."

@stephenworsley Awesome, go for it! 😉


extra loop removed

One loop for opening and closing files is faster than two loops. And f-string seems prettier :)

Good changing, but many soft support python version lower than 3.6, so it doesn't support f-strings.

Honestly, there's no significant performance increase in removing the loop.
f-strings are pretty, but not supported in Python < 3.6, so it will break the backward compatibility.
Anyway, thanks for your contribution!


Fix reconnect behavior

Previously we were calling this multiple times on error/closing, and were not properly waiting between reconnect attempts.
Fixes #82.

:+1:


Fix infinite loop with forced repository checkpoint.

To fix, break out of the loop when the oldest WAL record in the oldest
layer is at the cutoff LSN.
In the passing, use 'last_record_lsn' rather than 'last_valid_lsn' to
determine the cutoff point when freezing layers. Usually, they are the
same, and when they're not, there shouldn't be any WAL records in between
the two values, so there's no advantage to using 'last_valid_lsn' rather
than 'last_record_lsn'. Switch to 'last_record_lsn' so that the function
doesn't need to read 'last_valid_lsn' at all, saving a few lines of code.
Fixes https://github.com/zenithdb/zenith/issues/494

This failed the 'test_snapfiles_gc` test, because it failed to freeze and remove the layers belonging to an unlinked relation, if the unlink record was the last record. I had to rework this a bit, introducing a "generation number" to the layer map to distinguish newly inserted entries. Please review again.

Slightly unrelated, but is it still relevant after recent commits by @patins ?
        // Call unload() on all frozen layers, to release memory.
        // TODO: On-disk layers shouldn't consume much memory to begin with,
        // so this shouldn't be necessary. But currently the DeltaLayer and
        // ImageLayer code slurps the whole file into memory, so they do in
        // fact consume a lot of memory.
        for layer in layers.iter_historic_layers() {
            layer.unload()?;
        }

Rebased and squashed the fixes so far (thanks @alubennikova!). Will push after the CI has finished on this.


jsonschema~=2.6 dependency causes DeprecationWarning under Python 3.7

The jsonschema~=2.6 dependency causes a DeprecationWarning under Python 3.7:
  …/lib/python3.7/site-packages/jsonschema/compat.py:6: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import MutableMapping, Sequence  # noqa

This was fixed in jsonschema 3.0.0. Can you please bump your jsonschema dependency to allow (or require) 3.0? (See also.)

Yes! We can totally do that, thank you for bringing this up!

Any chance to get a new release?
I see 9 other issues waiting for a release at https://github.com/awslabs/serverless-application-model/labels/stage%2Fwaiting-for-release as well.

@moseb We have a new SAM release coming soon!

Related: a01fae53e1ab3140b2b6ee146c3ee57b14d5b1f0


Find out how to package runtimes.json into wskdeploy binary

As a quick fix in PR #1017, I have moved runtime json into runtimes.go but we want to bring back runtimes.json back to maintain portability of wskdeploy where for adding any new runtime, we can just update the json file. I found a way to bundle json into wskdeploy binary using packr but need to look into it more and see how we can make it part of binary.

This should not exist in wskdeploy - the tool should IMO read it from the API host.


Missing integrity attribute for same server script is not an error

I ran the version 1.9.0 of your tool at: https://sonarwhal.com/scanner/99cd0719-5376-43e4-819b-545c61162af2 while testing https://www.alpertron.com.ar/ECM.HTM
It shows the following text:
Resource https://www.alpertron.com.ar/ecm0048.js requested without the "integrity" attribute
https://www.alpertron.com.ar/ecm0048.js:123:1

There is no need to specify the integrity attribute in this case, because an attacker that can change files inside the Web server can also change the HTML file to delete the integrity attribute, for example.
I think that the SRI check should be performed only when the target server is different from the Web server you are analyzing.

The first example could be valid, but it is not the case in my Web site where there are no resources in databases.
In the second scenario, it does not matter if we added the integrity attribute or not. Once the attacker changes the HTML, it is game over. We do not have any control on what is sent to the Web browser.
The third example does not help from a security point of view, because it does not show any actual problem.

but it is not the case in my Web site where there are no resources in databases.

Reason why if you want more flexibility you should use the CLI and/or decide to ignore the feedback from the tool for this particular case. You are the one that knows best what applies to your use case. Again, we just give you the information for you to take the decision.
The second example is to tell you that there is no silver bullet in security and you should check to many things. SRI without HTTPS is a lot weaker, and HTTPS doesn't guarantee that files are not tampered in the origin. Things are complementary.
About the third one is an a along of why you should make the things as complicated as you can to an attacker, especially with something as easy to implement as SRI.


Git pre-commit hook to run tests

fixes #293
https://user-images.githubusercontent.com/57860123/159044570-577acacf-33eb-4af5-bdff-287ae4e3fb42.mp4

Once #311 gets resolved, I can add the linting also in pre-commit.

You're using a deprecated library in this PR which was last updated 5 years ago (https://www.npmjs.com/package/pre-commit).
It's better to use a more actively maintained and stable alternative.

Can I use husky for pre-commit

Yeah, husky seems pretty good!

@NikhilM98 please check!

Thanks.
Merged in dev branch here: https://github.com/llaske/sugarizer-server/commit/cc73940cf9f6680d586cd1ce49d9ee06f50e88f6


Error during Inference (traceback : Signal 9 (SIGKILL))

Hello,
When i try to run inference with the pre trained model, i get an error but i don't get the reason.
The code runs on a colab notebook with 25GB RAM, could this be the problem?
Thanks in advance!
command:
IOU_THRESH=0.25
IMG_DIR=/content/drive/MyDrive/datasets/coco/val2017
GT_JSON=/content/drive/MyDrive/datasets/coco/annotations/instances_val2017.json
GPUS=1
sh tools/inference_coco.sh
configs/bpr/hrnet18s_128.py
/content/drive/MyDrive/BPR/hrnet18s_coco-c172955f.pth
/content/drive/MyDrive/Bmask_coco_instances_json_results/coco_instances_results.json
bmask_coco_instances_results_refined
return:

GREEN=\033[0;32m

END=\033[0m\n

mkdir bmask_coco_instances_results_refined
mkdir: cannot create directory ‘bmask_coco_instances_results_refined’: File exists

printf \033[0;32mbuild patches dataset ...\033[0m\n
build patches dataset ...

python ./tools/split_patches.py /content/drive/MyDrive/Bmask_coco_instances_json_results/coco_instances_results.json /content/drive/MyDrive/datasets/coco/annotations/instances_val2017.json /content/drive/MyDrive/datasets/coco/val2017 bmask_coco_instances_results_refined/patches --iou-thresh 0.25
mkdir: cannot create directory ‘bmask_coco_instances_results_refined/patches/img_dir’: File exists
mkdir: cannot create directory ‘bmask_coco_instances_results_refined/patches/ann_dir’: File exists
mkdir: cannot create directory ‘bmask_coco_instances_results_refined/patches/mask_dir’: File exists
mkdir: cannot create directory ‘bmask_coco_instances_results_refined/patches/detail_dir’: File exists
mkdir: cannot create directory ‘bmask_coco_instances_results_refined/patches/img_dir/val’: File exists
mkdir: cannot create directory ‘bmask_coco_instances_results_refined/patches/ann_dir/val’: File exists
mkdir: cannot create directory ‘bmask_coco_instances_results_refined/patches/mask_dir/val’: File exists
mkdir: cannot create directory ‘bmask_coco_instances_results_refined/patches/detail_dir/val’: File exists
loading annotations into memory...
Done (t=0.64s)
creating index...
index created!
100% 36046/36046 [11:02<00:00, 54.44it/s]

printf \033[0;32minference the network ...\033[0m\n
inference the network ...

DATA_ROOT=bmask_coco_instances_results_refined/patches bash ./tools/dist_test_float.sh configs/bpr/hrnet18s_128.py /content/drive/MyDrive/BPR/hrnet18s_coco-c172955f.pth 1 --out bmask_coco_instances_results_refined/refined.pkl
/usr/local/lib/python3.7/dist-packages/torch/distributed/launch.py:186: FutureWarning: The module torch.distributed.launch is deprecated
and will be removed in future. Use torchrun.
Note that --use_env is set by default in torchrun.
If your script expects --local_rank argument to be set, please
change it to read from os.environ['LOCAL_RANK'] instead. See
https://pytorch.org/docs/stable/distributed.html#launch-utility for
further instructions
FutureWarning,
2021-11-14 16:00:38,626 - mmseg - INFO - Loaded 265813 images
/usr/local/lib/python3.7/dist-packages/torch/utils/data/dataloader.py:481: UserWarning: This DataLoader will create 8 worker processes in total. Our suggested max number of worker in current system is 4, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness/freeze if necessary.
cpuset_checked))
load checkpoint from local path: /content/drive/MyDrive/BPR/hrnet18s_coco-c172955f.pth
[>>] 265813/265813, 23.2 task/s, elapsed: 11473s, ETA:     0stcmalloc: large alloc<PHONE_NUMBER> bytes == 0x55764ff10000 @  0x7fcd6cfe02a4 0x5573dd2994cc 0x5573dd3551a2 0x5573dd34d7df 0x5573dd34d8a8 0x5573dd34f21b 0x5573dd34e307 0x5573dd23c255 0x5573dd34f3ac 0x5573dd34dfda 0x5573dd34dce7 0x5573dd34cf3c 0x5573dd23e992 0x5573dd3b1838 0x5573dd29e7da 0x5573dd31118e 0x5573dd30a9ee 0x5573dd29e271 0x5573dd29e698 0x5573dd30cfe4 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30fd00 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30b915 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30b915 0x5573dd29dafa 0x5573dd30b915
tcmalloc: large alloc<PHONE_NUMBER> bytes == 0x5576c476c000 @  0x7fcd6cfe02a4 0x5573dd2994cc 0x5573dd3551a2 0x5573dd34d7df 0x5573dd34d8a8 0x5573dd34f21b 0x5573dd34e307 0x5573dd23c255 0x5573dd34f3ac 0x5573dd34dfda 0x5573dd34dcc2 0x5573dd34cf3c 0x5573dd23e992 0x5573dd3b1838 0x5573dd29e7da 0x5573dd31118e 0x5573dd30a9ee 0x5573dd29e271 0x5573dd29e698 0x5573dd30cfe4 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30fd00 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30b915 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30b915 0x5573dd29dafa 0x5573dd30b915
tcmalloc: large alloc<PHONE_NUMBER> bytes == 0x55777400c000 @  0x7fcd6cfe02a4 0x5573dd2994cc 0x5573dd3551a2 0x5573dd34d7df 0x5573dd34d8a8 0x5573dd34f21b 0x5573dd34e307 0x5573dd23c255 0x5573dd34f3ac 0x5573dd34dfda 0x5573dd34dd31 0x5573dd34cf3c 0x5573dd23e992 0x5573dd3b1838 0x5573dd29e7da 0x5573dd31118e 0x5573dd30a9ee 0x5573dd29e271 0x5573dd29e698 0x5573dd30cfe4 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30fd00 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30b915 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30b915 0x5573dd29dafa 0x5573dd30b915
tcmalloc: large alloc<PHONE_NUMBER> bytes == 0x5578798a8000 @  0x7fcd6cfe02a4 0x5573dd2994cc 0x5573dd3551a2 0x5573dd34d7df 0x5573dd34d8a8 0x5573dd34f21b 0x5573dd34e307 0x5573dd23c255 0x5573dd34f3ac 0x5573dd34dfda 0x5573dd34dd0c 0x5573dd34cf3c 0x5573dd23e992 0x5573dd3b1838 0x5573dd29e7da 0x5573dd31118e 0x5573dd30a9ee 0x5573dd29e271 0x5573dd29e698 0x5573dd30cfe4 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30fd00 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30b915 0x5573dd30a9ee 0x5573dd29dbda 0x5573dd30b915 0x5573dd29dafa 0x5573dd30b915
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: -9) local_rank: 0 (pid: 3020) of binary: /usr/bin/python3
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/dist-packages/torch/distributed/launch.py", line 193, in
main()
File "/usr/local/lib/python3.7/dist-packages/torch/distributed/launch.py", line 189, in main
launch(args)
File "/usr/local/lib/python3.7/dist-packages/torch/distributed/launch.py", line 174, in launch
run(args)
File "/usr/local/lib/python3.7/dist-packages/torch/distributed/run.py", line 713, in run
)(*cmd_args)
File "/usr/local/lib/python3.7/dist-packages/torch/distributed/launcher/api.py", line 131, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/usr/local/lib/python3.7/dist-packages/torch/distributed/launcher/api.py", line 261, in launch_agent
failures=result.failures,
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
=====================================================
./tools/test_float.py FAILED

Failures:
<NO_OTHER_FAILURES>
Root Cause (first observed failure):
[0]:
time      : 2021-11-14_19:12:39
host      : 617d2c1e90a1
rank      : 0 (local_rank: 0)
exitcode  : -9 (pid: 3020)
error_file: <N/A>
traceback : Signal 9 (SIGKILL) received by PID 3020

printf \033[0;32mreassemble ...\033[0m\n
reassemble ...
python ./tools/merge_patches.py /content/drive/MyDrive/Bmask_coco_instances_json_results/coco_instances_results.json /content/drive/MyDrive/datasets/coco/annotations/instances_val2017.json bmask_coco_instances_results_refined/refined.pkl bmask_coco_instances_results_refined/patches/detail_dir/val bmask_coco_instances_results_refined/refined.json
loading annotations into memory...
Done (t=1.01s)
creating index...
index created!
Traceback (most recent call last):
File "./tools/merge_patches.py", line 104, in
start()
File "./tools/merge_patches.py", line 63, in start
with open(args.res_pkl, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'bmask_coco_instances_results_refined/refined.pkl'

It seems to be (CPU) memory overflow. Can you try to allocate a larger memory?
#9

It seems to be (CPU) memory overflow. Can you try to allocate a larger memory? #9

Thank you for the answer, do you know how much memory i need at least?

We tested these codes on a machine with 188G memory.

Is it possible to bypass the required RAM, maybe by saving the patches on the disk instead of RAM?

I think so, but we don't have these codes. You can have a try.

i tried to run inference with a smaller sample of images now and i got the following error:
"""
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "./tools/merge_patches.py", line 47, in run_inst
newmask_refined[y:y+h, x:x+w] += patch_mask
ValueError: operands could not be broadcast together with shapes (11,64) (64,64) (11,64)
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "./tools/merge_patches.py", line 111, in
start()
File "./tools/merge_patches.py", line 81, in start
for r in p.imap_unordered(run_inst, enumerate(dt)):
File "/usr/lib/python3.7/multiprocessing/pool.py", line 748, in next
raise value
ValueError: operands could not be broadcast together with shapes (11,64) (64,64) (11,64)
Can you help me with that?
how is it possible that the shapes differ?

You can check whether the index is out of bounds, e.g. y < 0 or y+h > the hight of image. It may be because the patch does not correspond to the image or the image size is smaller than 64x64.

Thank you very much!


Sync fails to complete initial sync when in continuous mode

Greetings,
Continuous mode of sync seems to have some issues. I currently can not complete a full sync if the pull replicator is in continuous mode and the replicator seems to display some odd behavior.

The pull replicator is also emitting callbacks during replication stating it's idle with 0/0 documents somewhat randomly, which is incorrect behavior. Possibly related to #456 .
Thanks,
Justin

Hi @jcamp1,
Is this issue reproducible with sync_gateway account you provided us before?
And is this 100% reproducible?
Thanks,
Hideki

Hi @jcam1,
Do you have any update about this issue? Is this still reproducible?
Thanks!

Note to self:
Pull replication causes NullPointerException middle of replication. It might caused by unexpected IDLE state or STOP requests.
04-15 20:09:27.246  23041-23158/self.hideki.issue498 E/Issue498﹕ PULL replication event. Source: com.couchbase.lite.replicator.Replication@527feb70 Total changes: 1953 Completed changes: 1890
04-15 20:09:27.250  23041-23158/self.hideki.issue498 E/Issue498﹕ PULL replication event.  Source: com.couchbase.lite.replicator.Replication@527feb70 Transition: STOPPING -> STOPPED Total changes: 1953 Completed changes: 1891
04-15 20:10:05.858  23041-24001/self.hideki.issue498 W/Sync﹕ [fireTrigger()] => WAITING_FOR_CHANGES
04-15 20:10:05.858  23041-24001/self.hideki.issue498 E/Sync﹕ PullerInternal stopGraceful.run() finished

Full log message
https://gist.github.com/hideki/7e57d3e407b2c489dce3

Note To Self:
Attachment causes the error, and when replicator becomes IDLE, a replicator will stop because of error.
04-16 20:03:20.721     837-1074/self.hideki.issue4982a W/CBLite﹕ Can't find inherited attachment thumbnail from seq# 9644 to copy to 9881
04-16 20:03:20.721     837-1074/self.hideki.issue4982a W/Sync﹕ com.couchbase.lite.replicator.PullerInternal@528664d4: failed to write {a43931f3-89c2-4889-949d-4cdd368bef5d #203-f490a009919efede232101b6a72f7f62}: status=404

Note to self:
Observed:

Replicator stops when replicator becomes IDLE because there is error during replication. NOTE: iOS version of replicator stops immediately after replication error.
Error is caused by copyAttachmentNamedFromSequenceToSequence() method because these is no attachment data which is associated with parent sequence number which is given.
copyAttachmentNamedFromSequenceToSequence() method is called because revision's attachment is stub.

Note:

It seems localParentSequence in forceInsert() method is not correct.

Next Step:

check localRevs, localRev and revHistory

Hi @jcamp1,
We fixed this issue. Could you please test with your environment?
Fix is in release/1.1.0 branch, we will merge this into master after 1.1.0 release.
https://github.com/couchbase/couchbase-lite-java-core/tree/release/1.1.0

Hi @hideki,
Sorry for the late response.
The continuous initial sync seemed to work a lot better. However there were a couple of issues I noticed. One, the replicator will report active:false docs/total 0/0 randomly throughout the sync when it still has much more syncing to do.
Two, I received many many errors all exactly the same as below:
04-29 22:01:27.076    1488-1511/com.app.app.alpha E/Batcher﹕ com.couchbase.lite.support.Batcher$1@b5b6d9a0: BatchProcessor throw exception
    java.lang.NullPointerException
            at com.couchbase.lite.replicator.PullerInternal.insertDownloads(SourceFile:497)
            at com.couchbase.lite.replicator.PullerInternal$1.process(SourceFile:96)
            at com.couchbase.lite.support.Batcher.processNow(SourceFile:207)
            at com.couchbase.lite.support.Batcher.access$100(SourceFile:23)
            at com.couchbase.lite.support.Batcher$1.run(SourceFile:40)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
            at java.util.concurrent.FutureTask.run(FutureTask.java:137)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:150)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:264)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
            at java.lang.Thread.run(Thread.java:856)

Hope that helps.
Cheers!

Hi @hideki,
Please disregard my last comment, I mistakenly tested the master branch. I just finished testing the 1.1.0 release branch and I'm very happy to report it worked perfectly for me!
Thanks so much!

Hi @jcamp1,
Thank you very much for verifying the fix. Your test data helped us a lot to fix this issue and others. Please let us know what we can help you.
Thanks again!


Please add a progress bar for files transfer or deletion for the icon in taskbar.

What's the Problem?
When I copy and paste files, most of the times I'm depending on my taskbar to check the progress of my file transfers. I do like the way it is shown in your app currently. But it took me a few days to understand how to copy files. Since there were no pop ups of the file transferring, I was confused, thinking if I paste files, somehow the app copied it instantly. Because the file size kept reflecting the same instantly.
Solution/Idea
Please add some kind of popup that catches the eye when I hit paste, or it would become confusing. I nearly quit the app 1st day I was using it, because I didn't notice the file transfer Icon you have in the right top corner. Didn't have the time to figure it out then.
Alternatives
Some kind of pop up that catches the eye to let you know it's doing something, or a progress bar for the icon in the taskbar
Priorities

Capability
Priority

This proposal will allow developers to accomplish W
Must

This proposal will allow end users to accomplish X
Should

This proposal will allow developers to accomplish Y
Could

This proposal will allow end users to accomplish Z
Won't

Files Version
Version: <IP_ADDRESS> OS Version: 10.0.19043.1266
Windows Version
Version: <IP_ADDRESS> OS Version: 10.0.19043.1266
Additional comment
a

Implemented in v<IP_ADDRESS> 💪


feat: vesting contract L2 migration helpers (WIP)

(This can probably break in 100 different ways - this is just a draft implementation to evaluate if this is at all feasible)

At this point this PR implements the proposed approach from GIP-0046: https://forum.thegraph.com/t/gip-0046-l2-migration-helpers/4023
But I still need to add tests, do some cleanup, and add NatSpec comments everywhere.


Only get transfer and balance update events from tx for transfer details

This fixes a bug where the relay would not be able to get transfer
details for meta-transactions since they have DebtUpdate events in the
eth-index db and these have no corresponding event builders.

Codecov Report

Merging #473 into master will decrease coverage by 0.05%.
The diff coverage is 87.5%.

@@            Coverage Diff             @@
##           master     #473      +/-   ##
==========================================
- Coverage   64.46%   64.41%   -0.06%
==========================================
  Files          53       53
  Lines        4334     4336       +2
==========================================
- Hits         2794     2793       -1
- Misses       1540     1543       +3

Impacted Files
Coverage Δ

src/relay/blockchain/events_informations.py
85.86% <100%> (ø)
:arrow_up:

src/relay/blockchain/proxy.py
82.38% <100%> (-1.05%)
:arrow_down:

src/relay/ethindex_db.py
26.31% <66.66%> (-0.18%)
:arrow_down:

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 d24042c...c19aa20. Read the comment docs.


Lack of example in Azure AD like scopes section

Hi,
"Can I pass resource value as part of the scope value like how requests are done against Azure AD?"
In this section there is described in very simple words that AD FS 2019 supports using scopes to access 2016 resources but it lacks the example.
Can this be updated?

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

ID: ab260c77-7b18-e403-61eb-33b008723d62
Version Independent ID: ff44e422-e4b1-134a-47bd-88d9abc843e3
Content: AD FS FAQ
Content Source: WindowsServerDocs/identity/ad-fs/overview/AD-FS-FAQ.yml
GitHub Login: @billmath
Microsoft Alias: billmath

#assign:IngridAtMicrosoft

#label: "doc-enhancement"

Thank you for submitting this issue.  Unfortunately, due to high volumes I was unable to respond to this in a timely manner.  At this point, I am going to close this due to it's age and the possibility that it may have been addressed.  If this is still a problem, please consider submitting a new issue.  Thank you.
#please-close


refact: init podcontroller and synccontroller in root manager

What type of PR is this?

feat
What does this PR do?

init podcontroller and synccontroller in root manager
Which issue(s) does this PR fix?

Fixes #172
Special notes for your reviewer:

Does this PR introduce a user-facing change?

init podcontroller and synccontroller in root manager

/cc @xyz2277 @wangyizhi1

/approve

/lgtm


Last viewed message options in the preferences are not present right now

I looked inside settings.json and was able to modify "lastMessageColor" and "lastMessagePattern" to my liking, but the options at the moment are not present in the preferences.
Thanks for everything.

A better way of doing it was added,
or did I misunderstand your comment?

I'm talking about this red line that appears when Chatterino is not in focus, that make you see which is your last read message

You can still change the values in the settings.json, but there is no option to edit it in the normal settings page atm. (It's one of the few, you have to know the setting to edit it there is in chatterino)

Another setting exists that is not mentioned here: showLastMessageIndicator


📖 Resume publishing main on website, under the name unreleased-development

Summary
This PR updates the website automation so that the branch named "main" is published on the website but under the name "unreleased-development".
This PR also moves some material in docs/README.md to improve organization.
Tested by pushing to main on my fork. This produced https://mikespreitzer.github.io/kcp-edge-mc/unreleased-development/ .
Preview at https://mikespreitzer.github.io/kcp-edge-mc/doc-main-on-website/ .
Related issue(s)
Fixes #

/cc @clubanderson
/cc @KPRoche
/cc @ezrasilvera

/lgtm
/approve


Add 2017 flood data

District level data for flood damage in the 2017 floods.
http://codefornepal.org/en/2017/08/nepalflood/
Statistics here: https://docs.google.com/spreadsheets/d/1MuTWPtD67VO1kbMCEpyPvlnuPsdVFHFZ1wjj7KKRyAo/edit#gid=1841636268
These are the statistics most amenable to presentation in NepalMap:

total deaths
damaged homes

See @ravinepal's comment below about updated data and data choices.
District-level data is on the district-level sheet.
Districts that are not listed on the sheet should be given counts of zero for each statistic.
@ravinepal do we have a list of all 75 districts in Nepal that can be used as an easy reference for a contributor who might want to take on this issue?

Here's the updated flood, landslides data from 2010--08-08 to 2017-08-30 - https://docs.google.com/spreadsheets/d/1WGEsVT0eiWnE34uA9-z3a4cKStcYhCvo_3ANiVzZTYk/edit?ts=59c8020a#gid=617759520
I believe we should only visualize column B (Total (Flood+Heavy rainfall + Landslide))

Looking at this now.
Would this be done as a SimpleTable, similar to polling places for example since only one column is being visualized? This would mean just one value on the profile page.
I notice in the latest document there are values in column B for all districts.

@crispg72
Yes, a SimpleTable fits for this, and I believe you are right that the beer data set has a total number of deaths for each district


esChecker step 0.1.0

What to do if the build fails?
At the moment contributors do not have access to the CI workflow triggered by StepLib PRs. In case of a failed build, we ask for your patience. Maintainers of Bitrise Steplib will sort it out for you or inform you if any further action is needed.
New Pull Request Checklist
Please mark the points which you did / accept.

[x] I will not move an already shared step version's tag to another commit
[x] I read the Step Development Guideline
[x] I have a test for my Step, which can be run with bitrise run test (in the step's repository)
[x] I did run bitrise run audit-this-step (in the step's repository - note, if you don't have this workflow in your bitrise.yml, you can copy it from the step template.)
[x] I read and accept the Abandoned Step policy

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

Thanks @ofalvai ! I tried to understand why it failed by clicking "details", got a 404, and let this lib under other tasks.I'm doing that.


Do not show seсtions with resolved interviews

PR includes

[x] Bug Fix

Related issues
Resolve #387

https://github.com/taskany-inc/hire/assets/81121562/98da8772-484c-4ea0-b418-2a335ef450ff


Failed to perform conversion

i got the following error while using the library
This is the error code
Failed to perform conversion: Could not find a matching Constructor ID for the TLObject that was supposed to be read with ID 83314fca. See the FAQ for more details. Remaining bytes: b'\xcaO1\x83S\x04\x00\x02\x10\x00\x00\x00\xc4\xe3\xb3\x9f\x01\x00\x00\x00Z\xb0L\xfa\n\xdeB\xbe\x05Wilde\x00\x00\x0b27725572085I9\xb9\xed\x87\xc9\xb3f'

Hi and thanks for using this library.
AndroidTelePorter uses Binaryreader class from Telethon inside UserConfigManager class, however, contstructor 83314fca actually does not exist in Telegram, It means it is not a mistake neither of AndroidTelePorter nor of Telethon, but strage format of your session and it seems like even Telegram would not be able to handle this session. I would suggest you to make sure you are trying to convert valid Telegram session and created it with original Telegram Client.
If you are sure that session is valid and you are doing everything right, please share more details on how did you manage to create such a session, how did you extract it from your phone, what is your phone model and other details.

me too.
Use original tg downloaded from web
Use app with NOX*

Are you sure that you are using not Telegram X but original Telegram application?
Which version of Telegram app are you using?
Are you sure that your session is valid you have extracted proper files? (data/data/org.telegram.messenger/files/tgnet.dat and data/data/org.telegram.messenger/shared_prefs/userconfing.xml)

1)Are you sure that you are using not Telegram X but original Telegram application?
Yes. I downloaded it from the official website.
2)Which version of Telegram app are you using?
Telegram Android 10.15.1.
3)the paths are a little different.
I have:
data/data/org.telegram.messenger.web/files/tgnet.dat
data/data/org.telegram.messenger.web/shared_prefs/userconfing.xml
4)How did you create session?
`from AndroidTelePorter import AndroidSession
session = AndroidSession.from_tgnet(
tgnet_path=r'C:\Users\me\Nox_share\ImageShare\tgnet.dat',  # contains auth key and dc id
userconfig_path=r'C:\Users\me\Nox_share\ImageShare\userconfing.xml'  # contains user id
)
session.to_tgnet('converted/tgnet')  # will create all needed files right in directory that you specified
or
session.to_telethon('converted/telethon.session')  # must end with .session`
5)traceback:
raceback (most recent call last):
File "c:\Users\me\Documents\projects\PROJECT_XROCKET\chasti\zBOT_Xrocket3\test5_0.py", line 6, in
session = AndroidSession.from_tgnet(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\AndroidTelePorter\androidsession.py", line 38, in from_tgnet
userconfig_manager=read_userconfig(path=userconfig_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\AndroidTelePorter\utils\filesmanager.py", line 25, in read_userconfig
return UserConfigManager.from_base64(user_info_element.text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\AndroidTelePorter\managers\userconfigmanager.py", line 37, in from_base64
return cls.from_bytes(base64.b64decode(clean_base64(data)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\AndroidTelePorter\managers\userconfigmanager.py", line 41, in from_bytes
user = BinaryReader(data).tgread_object()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\telethon\extensions\binaryreader.py", line 140, in tgread_object
raise error
telethon.errors.common.TypeNotFoundError: Could not find a matching Constructor ID for the TLObject that was supposed to be read with ID 83314fca. See the FAQ for more details. Remaining bytes: b'\xcaO1\x83W\x04\x00\x02\x10\x00\x00\x00\xf7\x10k\xad\x01\x00\x00\x00\x04\xb610o\x8f\x8a\xe2\x05Evnen\x00\x00\x04Lizz\x00\x00\x00\x0b18287942018?p\x8c\x00\xf2\xd8\xc4f'

Unfortunately telethon does not support API layer 185 yet, however, the error you are getting being caused by AndroidTelePorter not being able to read object generated with Telegram API layer 185. All you can do now is just wait until telethon do the update and it will start working automatically (you will just need to reinstall AndroidTelePorter or telethon library)
What you can try to do now is use telegram APK that uses API layer lower than 185, you can try to use any Telegram APK with version 10.14.5 (4945) or below

Unfortunately telethon does not support API layer 185 yet, however, the error you are getting is caused by telethon not being able to read object generated with Telegram API layer 185. All you can do now is just wait until telethon start to support layer 185 and it will start working automatically (you will just need to reinstall AndroidTelePorter or telethon library)
What you can try to do now is use telegram APK that uses API layer lower than 185, you can try to use any Telegram APK with version 10.14.5 (4945) or below

Thank you very much! Through which social networks can I contact you?

You can find my contact information in my profile. Feel free to contact me and discuss any questions you are interested about

This issue can be easily fixed by running pip install --upgrade git+https://github.com/LonamiWebs/Telethon.git
It will upgrade telethon's version to latest version which you can find on GitHub, unfortunately it is the only way until latest version of Telethon is uploaded to PyPi


Graylog docker image root password  & timezone problems

Hi,
what I'm talking about is not web ui password.
A root user password is prompted for a Docker container
see steps;

docker exec -it graylog /bin/bash

su - root
Password:

here i am asking for user password here.

I cannot update the time and date because there is no root user password.

he @oguzhansrky
I have moved your question to the docker repo - but in addition I can give you the answer, we do not have a root password.
If you need to change settings inside the image we recommend to build you own image based on ours.
https://docs.graylog.org/en/3.3/pages/installation/docker.html#new-docker-image

he @jalogisch
thank you for the info, this solved my problem for me.


tscn/tres: Inconsistencies in the extension filters of the save/open file dialogs

In the current master branch (46c5fda), there are some inconsistencies in the listing of formats in the save and open file dialogs of the editor:

In the "Open Scene" and "New Inherited Scene" dialogs, the filters are listed as:

TRES ( *.tres ) is missing (if RES is supported, I guess TRES would be too)
Since the new T-formats are meant to replace the XML-formats, they should probably be moved up in the list

In the "Save Scene As.." dialog, the filters are:

Here all formats are shown, but ".tscn" is missing from the "All recognized" list while ".tres" is there, which looks a bit weird.
Just like above, the T-formats should be moved up.
The order is different from the "Open Scene" dialogs where it was more natural: first the scene-specific format, then the general format. So it should be: SCN, RES, TSCN, TRES, XSCN, XML.

For both dialogs, if we want users to start using T-formats preferentially over XML formats, maybe the XML formats could be removed altogether from the "All recognized" shortlist (but kept as available filters of course).

for scenes, tres is purposedly removed from the dialog, as that would just
save a compressed scene like xml instead of a descriptive one
On Sun, Nov 29, 2015 at 7:40 AM, Rémi Verschelde<EMAIL_ADDRESS>wrote:

In the current master branch (46c5fda
https://github.com/godotengine/godot/commit/46c5fda91df548961b931ec8ca7026d7984e3761),
there are some inconsistencies in the listing of formats in the save and
open file dialogs of the editor:

In the "Open Scene" and "New Inherited Scene" dialogs, the filters are
listed as:
[image: filter-open]
https://cloud.githubusercontent.com/assets/4701338/11456556/fa690d2a-968c-11e5-92ed-5db612d8a45d.png

TRES ( *.tres ) is missing (if RES is supported, I guess TRES would
be too)

Since the new T-formats are meant to replace the XML-formats,
they should probably be moved up in the list

In the "Save Scene As.." dialog, the filters are:
[image: filter-save]
https://cloud.githubusercontent.com/assets/4701338/11456569/4fc2be4c-968d-11e5-8c5c-de9911f4d6fd.png

Here all formats are shown, but ".tscn" is missing from the "All
recognized" list while ".tres" is there, which looks a bit weird.

Just like above, the T-formats should be moved up.
The order is different from the "Open Scene" dialogs where it was
more natural: first the scene-specific format, then the general format. So
it should be: SCN, RES, TSCN, TRES, XSCN, XML.

For both dialogs, if we want users to start using T-formats
preferentially over XML formats, maybe the XML formats could be removed
altogether from the "All recognized" shortlist (but kept as available
filters of course).
—
Reply to this email directly or view it on GitHub
https://github.com/godotengine/godot/issues/2946.

for scenes, tres is purposedly removed from the dialog, as that would just save a compressed scene like xml instead of a descriptive one

But actually tres is removed in the "open scene" dialog but present (and with a higher priority than tscn) in the "save scene" dialog.

Also when choosing the main scene which is a .tscn, it isn't recognized as a file extension.

I've had a quick look at this one but I get easily lost in the get_recognized_extensions logic, especially since the new text scene format is defined within scene/, while the binary and XML formats are in core/, so it's hard to define their ordering, etc.

In the dialog to select the main_scene, *.tscn is not available at all.

Non critical, but would be quite nice to fixed for 2.0 @reduz as we do want to push users towards using tscn over xscn (or to a lesser extent scn).

not junior job, seems impossible without ugly hacks or code restructuring

Would likely be fixed by #5467.

This has been fixed by #5467, later reverted but finally fixed for good :)


Can we make the Pass If and other assertions public instead of protected?

I'm trying to write some generic test helper functions that call some of the assertions. I can't do that easily because they are protected and my test helper functions exist outside a test class in another library. I can still access the protected VIs using the decorator pattern to expose the protected methods (so they aren't really as protected as one might think), but it is a pain in the butt.

Sure thing, I do not see why not.
The reason they are protected is because there has not been any reason for making them public. Your use case changes this.

Here: https://github.com/Astemes/astemes-lunit/releases/tag/v1.3.12
Will update to VIPM at some point when it's been used some.


[BUG]: Double column name in postgress table results in no errors.

What version of drizzle-orm are you using?
^0.27.0
What version of drizzle-kit are you using?
^0.19.3
Describe the Bug
Given a table with two columns using the same name is created,
no warnings are generated when a migration is generated using drizzle-kit.
Given such a migration is executed on a database,
no warnings or errors are generated and the migration is deemed successful.
When seeding the database, the first uuid column becomes "NULL" instead of a generated uuid.
Example in question: "uuid" and "contacts" column name are both "uuid".
`import {
PgArray,
integer,
pgEnum,
pgTable, text, timestamp, uuid, varchar,
} from 'drizzle-orm/pg-core';
export const marketTypeEnum = pgEnum('market_type', [
'FLEE_MARKET',
'FARMERS_MARKET',
'FOOD_MARKET',
'CLOTHES_MARKET',
'GARAGE_MARKET',
'ANTIQUES_MARKET',
'EVENING_MARKET',
'CRAFT_MARKET',
]);
export const markets = pgTable('markets', {
uuid: uuid('uuid').defaultRandom().primaryKey(),
organisationUuid: uuid('organisation_uuid'),
country: varchar('country', { length: 256 }).notNull(),
province: varchar('province', { length: 256 }).notNull(),
city: varchar('city', { length: 256 }).notNull(),
zipcode: varchar('zipcode', { length: 256 }).notNull(),
streetname: varchar('streetname', { length: 256 }).notNull(),
streetnumber: varchar('streetnumber', { length: 256 }).notNull(),

startDate: timestamp('start_date').notNull(),
endDate: timestamp('end_date').notNull(),
size: integer('size').notNull(),
type: marketTypeEnum('type').array().notNull(),

image: varchar('image', { length: 256 }),
description: text('description'),
contacts: uuid('uuid').array(),
url: varchar('url', { length: 256 }),

createdAt: timestamp('createdAt').notNull().defaultNow(),

});
`
Expected behavior
I expect drizzle-kit to generate errors/warnings on the fact that a double column name is present in the table/schema.
I expect the migration to fail.
Environment & setup
Postgress Database
I don't have much experience with databases nor programming.
But I figure the quoted text is a column name and double column names are not expected in a schema file.

We have added such a check recently for unique constraint names. Will do the same for column names
Marking this issue as improvement

Will close this issue in favour of #272


Hotsprings

About the PR
This PR contains the "Hot Springs" event map and the Party Bus shuttle which will be used by admins to transport crew members to said map. The map itself is a planet-side map containing a normal air mix atmosphere. Essentially, it is a RP map taking place planet-side. The premise of this event is that the Syndicate / Cybersun is sponsoring it under the guise of a vacation, to which Central Command somehow agreed (comically so). The crew is sent there after 5 minutes of normal gameplay, where they will spend the remainder of the shift playing on. The map contains plenty of activities, and the entire Service department is set up, meaning Botany, Kitchen, and the Bar all are usable. This is my first PR on Github, so I imagine there may be some mistakes.
Why / Balance
The Hot Springs map, I believe, gives a great role play opportunity, even if it's ran as a one time event. Planet-side maps are very uncommon, even as events, so I believe this would give a breath of fresh air from the constant 3 hour shifts of attempting to fight back whatever Secret throws at us.
Technical details
Creates a folder called Event in /Resources/Maps/
Adds hotspring.yml and partybus.yml to the /Resources/Maps/Event/ folder.
Adds a map prototype for the Hot Springs map, which only exists in the case it is needed for some reason. It is not meant to be a normal station map, but if forcemapped should (partially) work.
Media

Requirements

[X] I have read and am following the Pull Request and Changelog Guidelines.
[X] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

Changelog

:cl:

add: Planet-Side Hot Springs map and Party Bus Shuttle for "Hot Springs" Event

Add your map to the test cases.

added the map to the test cases


[BUG] Unable to run a cluster that mounts existing docker volumes on windows

What did you do

Create a docker volume docker volume create my-docker-volume

Create a new config file:

apiVersion: k3d.io/v1alpha2
kind: Simple
name: test
servers: 1
agents: 0
volumes:
  - volume: my-docker-volume:/var/lib/rancher/k3s/storage
    nodeFilters:
      - all

Run k3d cluster create -c config.yaml

What did you expect to happen
The cluster boots. But it crashes with the following error:
INFO[0000] Using config file config.yaml
panic: runtime error: index out of range [2] with length 2

goroutine 1 [running]:
github.com/rancher/k3d/v4/pkg/runtimes/util.ValidateVolumeMount(0x1a373b0, 0x1f21da8, 0xc0004310e0, 0x2d, 0x0, 0x0)
        /drone/src/pkg/runtimes/util/volumes.go:66 +0x4d2
github.com/rancher/k3d/v4/pkg/config.ValidateClusterConfig(0x1a27898, 0xc000036050, 0x1a373b0, 0x1f21da8, 0x0, 0x0, 0x0, 0x0, 0xc000405790, 0x4, ...)
        /drone/src/pkg/config/validate.go:93 +0x17e
github.com/rancher/k3d/v4/cmd/cluster.NewCmdClusterCreate.func2(0xc0003c6000, 0xc00037f5e0, 0x0, 0x2)
        /drone/src/cmd/cluster/clusterCreate.go:159 +0x7b9
github.com/spf13/cobra.(*Command).execute(0xc0003c6000, 0xc00037f5c0, 0x2, 0x2, 0xc0003c6000, 0xc00037f5c0)
        /drone/src/vendor/github.com/spf13/cobra/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x1ecfda0, 0xc000138010, 0x4, 0x7)
        /drone/src/vendor/github.com/spf13/cobra/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
        /drone/src/vendor/github.com/spf13/cobra/command.go:897
github.com/rancher/k3d/v4/cmd.Execute()
        /drone/src/cmd/root.go:95 +0x65
main.main()
        /drone/src/main.go:27 +0x27

#510 added a workaround to allow c:\folder:/mnt/test mounts, however this breaks volume-mounts like docker-volume:/mnt/test.
https://github.com/rancher/k3d/blob/fd793fe4cba780471c69daeac1ae8234332478d1/cmd/util/volumes.go#L67-L70
An option could be to add an additional check that makes sure that there are enough array elements:
- } else if rt.GOOS == "windows" {
+ } else if rt.GOOS == "windows" && len(split) == 3 {
    src = split[0] + ":" + split[1]
    dest = split[2]
  } ...

Which OS & Architecture

Windows

Which version of k3d
C:\WINDOWS\system32>k3d --version
k3d version v4.4.2
k3s version v1.20.6-k3s1 (default)

Hi @dhenneke , thanks for pointing this out!
Fix will be included in the next release :+1:


Set theme-color to Hypernode primary color

On mobile devices, the theme-color meta tag makes the browser take on the specified theme color for certain elements (like the url bar etc).
Primary color was sourced from docs/_static/scss/colors.scss.

Works like a charm :)


mode.py error

Direct compile the AC learning model in model.py. Encounter the following error message:

ValueError: Negative dimension size caused by subtracting 3 from 1 for 'conv2d_1/convolution' (op: 'Conv2D') with input shapes: [?,10,9,1], [3,3,10,32].

However, the training process is OK.

main in model.py was out of sync. padding should not be added as it will make models generated by train.py inconsistent.


fix/cassandra-migration-drop-index:

Summary
This PR fixes migrations 03-27-002500_drop_old_ssl_tables and 2016-12-14-172100_move_ssl_certs_to_core, thus addressing issue https://github.com/Kong/kong/issues/3664.
Full changelog

dao/migrations/cassandra.lua: add a IF EXISTS on the DROP INDEX command of the 03-27-002500_drop_old_ssl_tables migration.
dao/migrations/cassandra.lua: correct the index name in the down step of the 2016-12-14-172100_move_ssl_certs_to_core migration.

Issues resolved
Fix https://github.com/Kong/kong/issues/3664

The change is ok, but the commit message doesn't follow our guidelines, so I've created a new PR in #4020

Just merged to master, thanks @pamiel. Do note that our next release (1.0) does not make use of those migrations anymore. You can check the next branch for details.


Possible bug problem with python 3.12

Hi,

I've downloaded\installed MusiclBeeps on my Windows10 machine and ran the test program which appears to contain 3 notes and a pause but when I run it I only get one note played and one line of text on the terminal.

This is under Python 3.12.0 64bit
I then changed my settings back to Python 3.11.4  64bit and it appears to be works!!!. It appears that something in 3.12 has broken your library.

I downloaded your HappyBirthday.txt file and tried the following in a different program

import musicalbeeps
FileName = r"<MyPath>\HappyBirthday.txt"
musicalbeeps FileName

If I'm reading your instructions correctly this should play the tune in the file, But I keep getting an Invalid Syntax error on the filename (I've also tried it without the FileName variable and I get the same error)

musicalbeeps FileName is incorrect python syntax, correct is
"musicalbeeps.something(FileName)"

I have a similar issue with Python.3.12. It works fine in 3.11.4 but as soon as I upgrade to 3.12. it only plays one note.
Is there a syntax change between the two versions?


extism-cli: 0.1.0 -> 0.3.8

Use latest version and update for switch from Python to Go
Description of changes

Completely rewritten since version 0.1.0

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[x] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

I ended up having to remove the call to makeBinaryWrapper since the prefix argument isn't valid for all commands. Otherwise I think the suggestions have all been accounted for.

@zshipko would you like to add yourself as maintainer ?

@zshipko would you like to add yourself as maintainer ?

Sure, just added myself as maintainer

Thank you for the review @Janik-Haag - I've updated with your suggestions!


Package npm install permission denied

I have a server error when I request the left-pad package and see the following ouput in the console:
packd info ::ffff:<IP_ADDRESS> - - [Tue, 25 Jul 2017 14:38:22 GMT] "GET / HTTP/1.1"
packd info ::ffff:<IP_ADDRESS> - - [Tue, 25 Jul 2017 14:39:08 GMT] "GET /left-pad HTTP/1.1"
packd info ::ffff:<IP_ADDRESS> - - [Tue, 25 Jul 2017 14:39:11 GMT] "GET<EMAIL_ADDRESS>HTTP/1.1"
packd info [left-pad] requested package
packd info [left-pad] is not cached
packd info [left-pad] fetching https://registry.npmjs.org/left-pad/-/left-pad-1.1.3.tgz
packd info [left-pad] extracting to<EMAIL_ADDRESS>packd info [left-pad] running npm install --production
packd error [left-pad] Command failed: /var/app/current/node_modules/.bin/npm install --production
npm WARN locking Error: EACCES: permission denied, open '/tmp/.npm/_locks/staging-3873bb6474efd910.lock'
npm WARN locking  /tmp/.npm/_locks/staging-3873bb6474efd910.lock failed { Error: EACCES: permission denied, open '/tmp/.npm/_locks/staging-3873bb6474efd910.lock'
npm WARN locking   stack: 'Error: EACCES: permission denied, open \'/tmp/.npm/_locks/staging-3873bb6474efd910.lock\'',
npm WARN locking   errno: -13,
npm WARN locking   code: 'EACCES',
npm WARN locking   syscall: 'open',
npm WARN locking   path: '/tmp/.npm/_locks/staging-3873bb6474efd910.lock' }
npm ERR! path /tmp/.npm/_locks/staging-3873bb6474efd910.lock
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open
npm ERR! Error: EACCES: permission denied, open '/tmp/.npm/_locks/staging-3873bb6474efd910.lock'
npm ERR!  { Error: EACCES: permission denied, open '/tmp/.npm/_locks/staging-3873bb6474efd910.lock'
npm ERR!   stack: 'Error: EACCES: permission denied, open \'/tmp/.npm/_locks/staging-3873bb6474efd910.lock\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'open',
npm ERR!   path: '/tmp/.npm/_locks/staging-3873bb6474efd910.lock' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

Do you know what could cause this issue? We should maybe move the temporary install folder. What do you think?

It's not related to packd, sorry. I'm missing some permissions on my machine.


sfdx.create outputs error even though org is created

sfdx.create outputs the following error even though the new scratch org is created successfully
***** ERROR: Could not create a new scratch org. Please ensure that the default developer hub is configured properly. *****

I get the below error after successful source push.
***** ERROR: Could not deploy code. Check that the active flow versions have not been modified or deleted. *****

Ignore this. My SFDX CLI was configured to run on API v 41.0 and for every command, SFDX CLI spits out a warning sign indicating that config is not set to the latest API version. When I reset this config on SFDX CLI, everything started working fine.


[installation] Could not find a version that satisfies the requirement tensorflow-directml (from versions: none)

Hi,
After following the steps described in https://docs.microsoft.com/en-us/windows/win32/direct3d12/gpu-tensorflow-wsl till pip install tensorflow-directml,
the error appeared as
ERROR: Could not find a version that satisfies the requirement tensorflow-directml (from versions: none)
ERROR: No matching distribution found for tensorflow-directml
BTW, I am using python 3.8
and I did python list tensorflow*, which outputed
Package    Version

certifi    2020.6.20
pip        20.1.1
setuptools 49.2.0.post20200714
wheel      0.34.2

Hi @shuwang1 ,
Our package is based on TensorFlow 1.15 which doesn't support python 3.8, so we only support python 3.5, 3.6 and 3.7 at the moment.

Hi @PatriceVignola,
I don't feel python version is relevant here at this moment... because pip cannot find tensorflow-directml
let me double check

When I did "pip install tensorflow-directml", which produced
Collecting tensorflow-directml
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa636719940>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/tensorflow-directml/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6367192b0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/tensorflow-directml/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6367194a8>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/tensorflow-directml/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa6367191d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/tensorflow-directml/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa636719128>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/tensorflow-directml/
  Could not find a version that satisfies the requirement tensorflow-directml (from versions: )
No matching distribution found for tensorflow-directml

it seems that this is the reason below:
'''
pip list tensorflow*
Package    Version

certifi    2018.8.24
pip        10.0.1
setuptools 40.2.0
wheel      0.31.1
'''
I checked the connection to pypi,org, which seems ok.
'''
ping www.pypi.org
PING www.pypi.org(2a04:4e42:2e::319 (2a04:4e42:2e::319)) 56 data bytes
64 bytes from 2a04:4e42:2e::319 (2a04:4e42:2e::319): icmp_seq=1 ttl=56 time=28.1 ms
64 bytes from 2a04:4e42:2e::319 (2a04:4e42:2e::319): icmp_seq=2 ttl=56 time=27.0 ms
64 bytes from 2a04:4e42:2e::319 (2a04:4e42:2e::319): icmp_seq=3 ttl=56 time=28.3 ms
64 bytes from 2a04:4e42:2e::319 (2a04:4e42:2e::319): icmp_seq=4 ttl=56 time=27.1 ms
64 bytes from 2a04:4e42:2e::319 (2a04:4e42:2e::319): icmp_seq=5 ttl=56 time=28.7 ms
64 bytes from 2a04:4e42:2e::319 (2a04:4e42:2e::319): icmp_seq=6 ttl=56 time=29.8 ms
64 bytes from 2a04:4e42:2e::319 (2a04:4e42:2e::319): icmp_seq=7 ttl=56 time=27.6 ms
64 bytes from 2a04:4e42:2e::319 (2a04:4e42:2e::319): icmp_seq=8 ttl=56 time=29.5 ms
64 bytes from 2a04:4e42:2e::319 (2a04:4e42:2e::319): icmp_seq=9 ttl=56 time=34.5 ms
^C
--- www.pypi.org ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 10236ms
rtt min/avg/max/mdev = 26.979/28.958/34.494/2.158 ms
'''
My python  and pip version is
'''
python --version && pip --version
Python 3.5.6 :: Anaconda, Inc.
pip 10.0.1 from /home/shu/miniconda3/envs/directml/lib/python3.5/site-packages/pip (python 3.5)
'''
any clue?
I

Could you try running pip install tensorflow-directml on Windows (not WSL) and tell if it works?

Hi @PatriceVignola
Because I just made a new installation on a computer only for trying directML, I didn't pay enough attention  on the pip version I am using.  With
python -m pip install --upgrade pip  && pip install tensorflow-directml
My mistake and thank you for the help!

I am also encountering the ERROR "Could not find a version that satisfies the requirement tensorflow-directml (from versions: none)", running Python 3.7.2 and with pip upgraded to 20.2.4. Any other suggestions?

(directml) C:\Users\yuriy>pip -V
pip 20.2.4 from C:\anaconda3\envs\directml\lib\site-packages\pip (python 3.8)
(directml) C:\Users\yuriy>python -V
Python 3.8.5
(directml) C:\Users\yuriy>pip install tensorflow-directml
ERROR: Could not find a version that satisfies the requirement tensorflow-directml (from versions: none)
ERROR: No matching distribution found for tensorflow-directml

@annkennedy: sorry, I didn't see this until now. Are you running on Windows or WSL?
@YuriyTigiev : TF 1.15 doesn't support Python 3.8 (even in the official packages), so unfortunately neither do we. You'll need to use Python 3.5, 3.6, or 3.7. We may consider adding support in the future.

Thanks for responding- running on Windows!

Thanks for responding- running on Windows!

What happens if you try installing a specific file? For example:
pip install https://files.pythonhosted.org/packages/7c/2a/86231b17c22de1c8baef6515629592cdc066eba1b3d81a01eef3c3ff97da/tensorflow_directml-1.15.3.dev200911-cp37-cp37m-win_amd64.whl

I wonder if you're on x86 or maybe a Surface Pro X?

I tried that pip install and got an error "not a supported wheel on this platform." I'm on an x64-based PC running Windows 10.

The only thing I can think of is that you're using a build of Python that isn't CPython. I believe pip determines supported wheels purely based on the filename, which is described here. In short, you've got:
tensorflow_directml-1.15.3.dev200911-{python tag}-{abi tag}-{platform tag}.whl

python_tag = cp37 (CPython 3.7)
abi tag = cp37m (with pymalloc support)
platform tag = win_amd64 (Windows x86_64/x64/amd64)

I suspect installing the official packages should fail for you as well (i.e. pip install tensorflow==1.15). If that's the case, then the problem is almost certainly the implementation of Python (not the version).

 For some reason the conda environment I was trying to install into was using a 32-bit version of Python. I tried it in a different environment and the direct install worked. Thank you for your help!

@annkennedy: sorry, I didn't see this until now. Are you running on Windows or WSL?
@YuriyTigiev : TF 1.15 doesn't support Python 3.8 (even in the official packages), so unfortunately neither do we. You'll need to use Python 3.5, 3.6, or 3.7. We may consider adding support in the future.

3.7  works. Thank you!
Why Microsoft doesn't support the latest versions of python 3.8, 3.9, tensorflow?

@YuriyTigiev Since the official TF 1.15 doesn't support 3.8 or 3.9, TF 1.15 has never been tested for these versions. Making tensorflow-directml build for python 3.8/3.9 and making sure that it's as stable as the earlier versions represents a significant investment. At the moment, we're focused on increasing operator coverage, stability and performance for the DML device.

@YuriyTigiev Since the official TF 1.15 doesn't support 3.8 or 3.9, TF 1.15 has never been tested for these versions. Making tensorflow-directml build for python 3.8/3.9 and making sure that it's as stable as the earlier versions represents a significant investment. At the moment, we're focused on increasing operator coverage, stability and performance for the DML device.

When will be the next release?

 For some reason the conda environment I was trying to install into was using a 32-bit version of Python. I tried it in a different environment and the direct install worked. Thank you for your help!

Hey @annkennedy how you switched to diffrent version  could you please help me?

I am using wsl2 on a x64 Windows 11 22000.176 and got this
I did followed the every step of the manual

I encountered the same error , running conda activate directml fixed it for me.

This. That's the solution. Thank you!

I also got the same error. Here is what my environment specification is :

I have been trying to use my GPU for processing but get this error continuously/e


”Ozun” is listed in the drop-down menu

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

Step 1
Type "Ozun" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Ozun, COVASNA".


A question about outputs.logits in caption.py

detector_output['loss'] += self.loss_caption(
logits = outputs.logits[:, prefix_tokens.shape[1] - 1: -1],
target = input_ids,
mask = gradient_mask.to(self.dtype),
)
I'm not familiar with huggingface transformers. Why does line 342 in caption.py using logits = outputs.logits[:, prefix_tokens.shape[1] - 1: -1], rather than logits = outputs.logits[:, prefix_tokens.shape[1]:]. It seems to include the last learnable query in qformer while dropping the last word embedding.

Yes, this is a common practice as we are training the model to generate the $i$-th token given the previous $i-1$ tokens.
Please see the following implementations for more details:
https://github.com/huggingface/transformers/blob/main/src/transformers/models/opt/modeling_opt.py#L1146-L1151
https://github.com/huggingface/transformers/blob/main/src/transformers/models/gpt2/modeling_gpt2.py#L1102-L1107

Got it, thank you for your explanation!


Added some code (minor) to recognize the sticky state

I added a little bit of code to add a class when the element is sticky ('.sticky-active'), and removing it when the element is not sticky anymore.

This resolve this issue: #51

This is linked with this issue: #50


Add PROTO_PROTOC_PATH variable.

This PR adds PROTO_PROTOC_PATH variable that points to $(MF_PROJECT_ROOT)/artifacts/protobuf/bin/run-protoc script.
This variable is added so it can referenced elsewhere both inside and outside the protobuf package.

Thanks!