OCPQE-16444 Add workflow when job is in queue

@rioliu-rh please check it, thanks
update  the workflow  when execute image-consistency-check command as follow:

check if already has  a pending job, if so, will give warning info:

if no pending job, will trigger a new job, check the triggered job status
if it's pending, send queue item link to team:

else it's in progress, send job url to team:

the same workflow for Stage-Pipeline job

@rioliu-rh  Updated and test it, please check again, thanks

/test oar-check

/lgtm


[Q] Qt creator develop new plugins workflow

I'm trying to develop a packet processor plugin and wanted to try out Qt creator on as you suggest but I'm having some issues with it and was hoping you could help.
So, I made a new source src/tsplugins/tsplugin_myplugin.cpp manually (a slightly modified tsplugin_sample). At this point I can run make and TSDuck compiles fine, all tests pass, and my plugin works fine - great!
I then opened the build/qtcreator/tsduck.pro on Qt Creator, and manually created a new folder tsplugin_myplugin in build/qtcreator/ with a file tsplugin_myplugin.pro inside as every other plugin:
CONFIG += tsplugin
TARGET = tsplugin_myplugin
include(../tsduck.pri)

Qt creator then automatically includes the .pri file and finds my tsplugin_myplugin.cpp source, at this point everything looks the same as every other plugin.
The problem is, QtCreator reports errors everywhere even-though it has no problem finding the header files:

Whats the issue here? How should I use QtCreator for development?
Thanks in advance.

Hi @nimblin,
I see that your error is on the bat plugin. Do you have the same problem with all existing plugins? I mean, is this a general QT Creator problem with all plugins or is it a specific problem for your plugin?
I guess that this is a generic problem for all plugins because, as you mentioned, creating the project file is trivial.
It is hard to diagnose. It depends on which distro you use, the origin of the QT Creator package (from qt.io or a distro package). There are many configuration issues with QT Creator, depending on the distro. I use QT Creator to develop TSDuck on macOS and Linux. I have installed it on more than ten Linux VM's, using various distros. On some cases, usually because of missing or incompatible package dependencies, I ran into various problems. They were all fixed after googling a while.
If this is specific to your plugin, try to run the script build/build-qtcreator-project-files.sh. It makes sure that all QT Creator project files are correct. If you are interested in building on Windows, the script build/build-msvc-project-files.sh does the same thing for Visual Studio project files.

Hello @lelegard - I should have been more clear, the errors you see depicted in the screenshot are project wide, I just used the bat plugin as an example.
Interestingly enough, a the freshly opened project on Qt Creator builds fine, it is only once you open a file on the editor that you I see errors for that specific file when building the complete project. Closing all opened files in editor and rebuilding the project even after it failed also works. Very odd!
I'm running Ubuntu 20.04.2 LTS and it is a relatively fresh install, I got qtcreator through apt, the version is Qt Creator 4.11.0
I see from that build/build-qtcreator-project-files.sh script that my manual process of creating the sub-project structure inside QT Creator was appropriate, that's good, thanks for the reference.
I'll leave this issue open while I look for a solution and update on my findings.

All issues appear to be gone after disabling the code model: help>About Plugins>Clang Code Model. Source.

I have run into this particular issue once. I fixed it somehow (without disabling the code mode), but do not remember how. Make sure that clang and other qt dev packages are installed. You may find more info in google, maybe.


[SR-220] Compiler unable to resolve types properly

Previous ID
SR-220

Radar
None

Original Reporter
nikita (JIRA User)

Type
Bug

Additional Detail from JIRA

Votes
0

Component/s

Labels
Bug

Assignee
None

Priority
Medium

md5: d26c0323af50329b2f99c14b0d199518

Issue Description:
struct A<B: CollectionType> {
init(c: B) {
c.startIndex.advancedBy(Int(5), limit: c.endIndex)
}
}
declaration above fails with error:
error: cannot invoke 'advancedBy' with an argument list of type '(Int, limit: B.Index)'
c.startIndex.advancedBy(Int(5), limit: c.endIndex)
replacing Int(5) with 5 makes it compile properly. I was not able to reduce this case further yet, but there should be simple example of the case for sure.

The APIs involved have since been reshaped and the reproducer has become stale. The error now says value of type 'B.Index' has no member 'advancedBy'.


Added get, get_mut and absolute versions (and more)

Added parameterized tests
Added impl_ringbuffer macro to avoid duplication
Added contains method

Closes #16
Closes #15
Closes #9
Closes #7
Closes #8
Closes #17
Co-authored-by: Victor Roest<EMAIL_ADDRESS>

Codecov Report

Merging #20 into master will decrease coverage by 0.53%.
The diff coverage is 99.30%.

@@             Coverage Diff             @@
##            master      #20      +/-   ##
===========================================
- Coverage   100.00%   99.46%   -0.54%
===========================================
  Files            4        5       +1
  Lines          540      566      +26
===========================================
+ Hits           540      563      +23
- Misses           0        3       +3

Impacted Files
Coverage Δ

src/with_alloc.rs
97.95% <90.90%> (-2.05%)
:arrow_down:

src/with_const_generics.rs
97.91% <92.30%> (-2.09%)
:arrow_down:

src/with_generic_array.rs
98.55% <92.30%> (-1.45%)
:arrow_down:

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

src/ringbuffer_trait.rs
100.00% <100.00%> (ø)

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 8a2a8bc...5e2edb8. Read the comment docs.


Add deploy document

Why are these changes needed?

Add deploy document for dev & self-hosting
add self-hosting docker-compose.yaml

Related issue number

Checks

[x] I've included any doc changes needed for https://github.com/pingcap/LinguFlow/.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

@lucklove Has this pull request been completed?

@lilyjazz yes, PTAL


Add Git revision

It would be nice to know the current Git revision of the codebase

Does Distillery etc have a similar concept? Not all production apps will be a git repo

I was thinking that this could be an optional feature. Not everyone would want this.
In dynamic language land, the application is usually running from a directory that has a .git/ folder. This is less likely the case for Elixir (or any compiled language) applications...


Will scuttlego live under github.com/ssbc at some point?

I understand https://github.com/ssbc as a shared org for the building blocks of ssb...
scuttlego seems like it will be a new building block for go & ssb tools...
should it live there?

Maybe at some point in the future if it's getting contributions more from the broader community than from planetary then it'd make sense to move it. At the moment ssb lib's are spread out all over the place and it was only last month that go-ssb got moved to ssbc.


fix: downgrade marked (important)

Fixes heading stuff
see:

https://github.com/nuejs/nue/commit/ea51b2598d5a2e6267ebd7560e088538807db878#commitcomment-145318757
https://github.com/nuejs/nue/commit/ea51b2598d5a2e6267ebd7560e088538807db878#commitcomment-145329712

Downgrading is currently easier than fixing. Will try again in the future, but I'll probably not do it before you want to do a release.

Thanks! Better this way. Not sure if Marked will be part of Nue's long-term plan. Definitely looking for options.


Wordpress 5.5.3

Wordpress version updated to 5.5.3
Improved civo-init.sh to avoid problems with SSL

[x] Notified the Maintainer of the application in this pull request so that they are aware of your proposal.
[x] Outlined the changes you are proposing, and the reasons these are required (e.g. stability, compatibility with new versions of Kubernetes implementations, etc).
[x] Tested that the application works with the proposed updates applied (including a screenshot)

lgtm


Support tailing unicode files

Wikipedia
Unicode text files encoded in UTF-16 often start with the Byte Order Mark to detect endianness (FE FF for big endian and FF FE for little endian). And on Microsoft Windows, UTF-8 text files often start with the UTF-8 encoding of the same character, EF BB BF.

FEI logfiles are in unicode:

File encoding chit-chat:
http://blogs.msdn.com/b/oldnewthing/archive/2007/04/17/2158334.aspx

Since this is a really big mess;
"The Unicode Standard 5.0, Chapter 2:General Structure" (PDF). p. 36. Retrieved 2008-11-30. Use of a BOM is neither required nor recommended for UTF-8, but may be encountered in contexts where UTF-8 data is converted from other encoding forms that use a BOM or where the BOM is used as a UTF-8 signature

Ideally we should do a best-guess and offer the user the change the encoding afterwards if it turned out not to be correct.

test https://github.com/djeedjay/DebugViewPP/commit/7b07ebeb41ba0b2bc82c954336e362aae153de15


Use testinfo.desc

Instead of Makefile use testinfo.desc which has variables resolved.

Fixes #131

/packit test

Merged in 3dff02a after a couple of adjustments in 878b19d. Thanks for the improvement!


Combinations of numbers and letters no longer considered a single token in v6

First up, thanks for all your work on jsdiff, and for the v6 release.
We have a bunch of tests around diffs, and I noticed an unexpected change:
On v5:
// Diff.diffWordsWithSpace("at least $2m", "at least $4m")
Array [
  Object {
    "count": 5,
    "value": "at least $",
  },
  Object {
    "added": undefined,
    "count": 1,
    "removed": true,
    "value": "2m",
  },
  Object {
    "added": true,
    "count": 1,
    "removed": undefined,
    "value": "4m",
  },
]

On v6:
// Diff.diffWordsWithSpace("at least $2m", "at least $4m")
Array [
  Object {
    "added": false,
    "count": 5,
    "removed": false,
    "value": "at least $",
  },
  Object {
    "added": false,
    "count": 1,
    "removed": true,
    "value": "2",
  },
  Object {
    "added": true,
    "count": 1,
    "removed": false,
    "value": "4",
  },
  Object {
    "added": false,
    "count": 1,
    "removed": false,
    "value": "m",
  },
]

Not sure if this is a deliberate change or not? I think where words and numbers are combined it's probably best to treat them as a single Word.

I believe this also breaks emojis in react-native TextInput.
const changes = diffChars(originalText, changedText) as CharactersDiffChange[];

will result in "��" instead of "✌😒"
downgrading to 5.2.0 everything is fine.

Not sure if this is a deliberate change or not? I think where words and numbers are combined it's probably best to treat them as a single Word.

It wasn't deliberate, and I agree with you. Damn, I was really hoping I could pull off that 6.0.0 release without introducing any new bugs. :(

@efstathiosntonas what you describe (with diffChars) sounds like an entirely separate bug that I've introduced in the same release. Can you provide minimal instructions on how to reproduce it, either here or in a new issue?

@ExplodingCabbage will create an expo repro!

You're the best @ExplodingCabbage ❤

I'll try to get a new release out today with both these bugs fixed.

@ExplodingCabbage do you still need a repro for diffChars?

Would be appreciated - even just posting what two strings to diff against each other to see a bug! Otherwise will try to figure it out myself.

I think the fastest would be to read or implement it on an expo project: https://gist.github.com/efstathiosntonas/01142fd9243573d649caddd952f81829

Original issue fixed by https://github.com/kpdecker/jsdiff/pull/554.
I'll have a play around with your Gist and try to figure out the diffChars thing, @efstathiosntonas. I do note though that if I just try diffing some text involving the ✌ and 😒 emojis with diffChars it appears to behave correctly on v6.0.0:
> diff.diffChars('', '✌😒')
[ { count: 2, added: true, removed: false, value: '✌😒' } ]
> diff.diffChars('✌', '😒')
[
  { count: 1, added: false, removed: true, value: '✌' },
  { count: 1, added: true, removed: false, value: '😒' }
]

By contrast, v5.2.0 gets the counts wrong, treating 😒 as two characters (because it is outside the Basic Multilingual Plane):
> diff.diffChars('', '✌😒')
[ { count: 3, added: true, removed: undefined, value: '✌😒' } ]
> diff.diffChars('✌', '😒')
[
  { count: 1, added: undefined, removed: true, value: '✌' },
  { count: 2, added: true, removed: undefined, value: '😒' }
]

So it doesn't appear to me at first glance like I have broken anything emoji-related and I am rather hoping I am going to find that whatever the problem is is not in jsdiff but in your code... but I will see if I can repro now and then get to work on establishing whether that's true.

Okay, I just got round to glancing at the Gist, @efstathiosntonas. Didn't try to get it running since I haven't used React Native for eons and don't remember how, but did take a quick look at the utils.ts code. I would bet that the problem is to do with the change in concept of string length/count between 5.2.0 and 6.0.0 - that before, 😒 had length 2 (the number of UTF-16 code units required to encode it in UTF-16, as returned by '😒'.length) and now it has length 1 (the number of unicode code points, as returned by Array.from('😒').length). I bet some of your stuff to do with incrementing cursor positions assumes it is dealing with string indexes when conceiving of the string as a sequence of UTF-16 code units, and is therefore now incompatible with jsdiff v6.0.0's count attribute returning lengths as counts of Unicode code points.
Replacing all use of the .count property of change objects with .value.length will probably restore the old behaviour.
Note the change in Unicode handling in diffChars was intentional and documented - the release-notes say

#500 diffChars now diffs Unicode code points instead of UTF-16 code units.

and the README says:

Diff.diffChars(oldStr, newStr[, options]) - diffs two blocks of text, treating each character as a token.
("Characters" here means Unicode code points ...

If after doing some more debugging you can give me a snippet of code that just invokes jsdiff and gets a result you think is wrong, let me know, but I'm gonna assume diffChars is working as intended. (It is a breaking change of course, and I'm sorry it broke something for you, but that's why it was in a major release!)

thank you Mark for taking the time to look into it. Will try your suggestions tomorrow and I’ll update the issue!

Interesting - worth noting that even Array.from doesn't extend to grapheme clusters such as 👩👩👦👦:
Array.from('👩👩👦👦').length
// 7

For constructs like that you need Intl.Segmenter:
const seg = new Intl.Segmenter('en', { granularity: "grapheme" });

Array.from(seg.segment('👩👩👦👦')).length
// 1

See e.g. here for more info.

@ehoogeveen-medweb, yep!
Possibly relevant reading - I've got a (now somewhat-outdated, as it was written before Intl.Segmenter was available) SO answer about different notions of "character" in JavaScript strings at https://stackoverflow.com/a/59796758/1709587. Alas, while code to split text into UTF-16 code units or Unicode code points is not going to change or produce different results over time, the same cannot be said of code to split text into grapheme clusters. Different libraries have slightly different conceptions of what constitutes a grapheme cluster (probably due to being different amounts of up-to-date with the latest changes to Unicode) - e.g. the old grapheme-cluster library I suggest in that answer, which I'd no longer recommend, behaves differently to Intl.Segmenter. There are also issues of availability; Intl.Segmenter only got added to Firefox in August this year, so for many devs it's probably unacceptable to rely on it being natively available, but I'd also rather not couple jsdiff to a particular polyfill. A nightmare! So I decided against making diffChars do anything based on grapheme clusters.
It would be absolutely reasonable for a user of the library to shun diffChars in favour of calling diffArrays with arrays of grapheme clusters segmented as @ehoogeveen-medweb shows above, though, either using the native Intl.Segmenter implementation if their circumstances allow them to rely on its existence, or else including a polyfill.

Okay, I'll probably actually release the fix for the original issue here tomorrow. Before I release, I want to try to rewrite the extendedWordChars regex from first principles by determining which categories and/or properties in UCD 15 should identify a particular character as either a word character, punctuation character, or space character, then compare the regex I get to the one currently in jsdiff, and then dig into any inconsistencies I discover and figure out whether the current regex or my newly constructed one is more reasonable.
(I don't understand the UCD data very well and basically none of Unicode's data releases I've ever looked at have been well-documented, but https://www.unicode.org/Public/15.0.0/ucd/PropList.txt gives me a list of characters with the White_Space property, I can use Python's unicodedata module to get the Category for every character in existence, and https://unicode.org/reports/tr18/#General_Category_Property gives me category meanings which will hopefully all be easy to map to "word", "whitespace" or "punctuation". I guess I'll see!)

@ExplodingCabbage can confirm, converting all .count to value.length fixed the ?? issue.

Okay, trying to generate a new extendedWordChars regex from scratch is gonna be a nightmare. I tried assigning characters to "word", "punctuation", or "space" categories based on their UCD category, with the following mapping...
word_cats = ['Cf', 'Ll', 'Lm', 'Lo', 'Lt', 'Lu', 'Mc', 'Me', 'Mn', 'Nd', 'Nl', 'No', 'Pc', 'Sk']
punc_cats = ['Cc', 'Cn', 'Co', 'Cs', 'Pd', 'Pe', 'Pf', 'Pi', 'Po', 'Ps', 'Sc', 'Sm', 'So']
space_cats = ['Zl', 'Zp', 'Zs']

... but I end up with 761 different character ranges for word characters. Definitely not at all consistent with the existing regex and I cannot realistically audit all the differences.
Since I've fixed the specific issue raised here, I'm gonna leave the pre-existing regex alone and just ship the fix.

Makes sense! Using unicode categories might make sense as a future change, but just the tweak to the regex fixes my problem. Thanks for your work on this @ExplodingCabbage.

Interesting - worth noting that even Array.from doesn't extend to grapheme clusters such as 👩👩👦👦:
Array.from('👩👩👦👦').length
// 7

For constructs like that you need Intl.Segmenter:
const seg = new Intl.Segmenter('en', { granularity: "grapheme" });

Array.from(seg.segment('👩👩👦👦')).length
// 1

See e.g. here for more info.

useful for me,  just be replace  the legth of  value with Segmenter's length  , and then I get the correct traditional position.  but still need to use value.length to cut the string.

Interesting - worth noting that even Array.from doesn't extend to grapheme clusters such as 👩👩👦👦:
Array.from('👩👩👦👦').length
// 7

For constructs like that you need Intl.Segmenter:
const seg = new Intl.Segmenter('en', { granularity: "grapheme" });

Array.from(seg.segment('👩👩👦👦')).length
// 1

See e.g. here for more info.

useful for me, just be replace the length of value with Segmenter's length , and then I get the correct traditional position. but still need to use value.length to cut the string.


iCub Python bindings

I was having some troubles installing yarp so I re-installed Ubuntu and started from a fresh version. I was able to install yarp and icub from the source files. I installed the python bindings on yarp but I wasn't able to install the icub python bindings. When I do import icub I get:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/joao/github/icub-main/bindings/python/icub.py", line 28, in <module>
    _icub = swig_import_helper()
  File "/home/joao/github/icub-main/bindings/python/icub.py", line 24, in swig_import_helper
    _mod = imp.load_module('_icub', fp, pathname, description)
ImportError: /home/joao/github/icub-main/bindings/python/_icub.so: undefined symbol: _ZN20ClientGazeControllerC1ERN4yarp2os10SearchableE

I built icub with ICUB_SHARED_LIBRARY set to OFF because when I build it with it ON I get an error when starting iCub_SIM:
iCub_SIM: error while loading shared libraries: libiKin.so.0: cannot open shared object file: No such file or directory

Any ideas?

Hi,
I've quickly tested doing the same, and I run into the same error. I guess this is because the generated _icub.so links against some other libraries which are not found in return. Can you try putting /path/to/install/yarp/lib and /path/to/install/icub-main/lib in your LD_LIBRARY_PATH? This should fix the problem I guess.
Furthermore, delete the following lines from icub.i, as they are obsolete (see https://github.com/robotology/QA/issues/33):
YARP_DECLARE_DEVICES(icubmod)
YARP_REGISTER_DEVICES(icubmod)

Best,
Tobias
CC @pattacini @drdanz

@jpiabrantes, is @Tobias-Fischer's suggestion a good workaround?

you can also try compiling with rpath; this has recently become default and fixes path problems in .so dependencies without the need to use LD_LIBRARY_PATH. in case you need to pull, recompile, after cleaning cmake cache.
On 30/ott/2015, at 10:23, "Ugo Pattacini" <notifications<EMAIL_ADDRESS>wrote:
@jpiabranteshttps://github.com/jpiabrantes, is @Tobias-Fischerhttps://github.com/Tobias-Fischer's suggestion a good workaround?
—
Reply to this email directly or view it on GitHubhttps://github.com/robotology/QA/issues/66#issuecomment-152468351.

@lornat75 I have updated and recompiled icub. I still have the same error. Should I also update and recompile yarp?

Yes, and install yarp with rpath as well.

I tried to recompile yarp and I got an error that I already described on another github issue. I will try this again when I fix this issue.

@jpiabrantes: Any news on this?

@Tobias-Fischer All good now thanks :+1:

How did you solve it? Did you have to set LD_LIBRARY_PATH?

I just tried this (again), and I am still running in the same issue as mentioned in the first post. Therefore, I reopen this ticket.

Stale issue ...
It'd be worth closing this and - if it's the case - add/edit/report more on proper tracking system.


Bunde ID: com.Saurik.Cydia - Crash log

Describe the bug

Simply a collection a crash logs that pileup in the background

To Reproduce
Steps to reproduce the behavior:

No real way to reproduce = simply something related to "NSinvalidArgumentExeption"

Screenshots log below
Device (please complete the following information):

iOS Version: 12.1.1
iOS Device: iPhone X & iPad Air 2
unc0ver Version: v3.0b38

Place an "x" between the brackets if true:

[ ] this is a bug others will be able to reproduce
[ ] this issue is present with all tweaks uninstalled(except for default packages) or disabled
[x] this issue is present after a rootfs restore
[x] this issue is present on the latest version of unc0ver

Logs
ON: iPhone X 12.1.1 - unc0ver-b38
Date: 2019-03-01 15:11:47 +0000
Bundle ID: com.saurik.Cydia
Exception type: NSInvalidArugmentException
Reason: -[NSNull intValue]: unrecognized selector sent to instance 0x1bfae19d0
Parent symbol: CoreFoundation - 0x000000018f38048c_CF_forwarding_prep_0 + 92
ON: iPad Air 2- 12.1.1 - unc0ver-b38
Date: 2019-03-01 15:16:42 +0000
Bundle ID: com.saurik.Cydia
Exception type: NSInvalidArugmentException
Reason: -[UIWebBrowserView stringByEvaluatingJavaScriptFromString:forceUserGesture:]: unrecognized selector sent to instance 0x101b2e200
Parent symbol: CoreFoundation - 0x00000001ce9a27dc  + 1412

@Oxycodon-IV Please post unc0ver diagnostics(Export from unc0ver settings).

I also got some logs (hope they are related) for Cydia.
After refreshing sources it happens irregularly that my device freezes and resprings.
Cydia.zip

@Oxycodon-IV You have lots of piracy which is probably the problem. CyDown is the most likely to cause the crash. I'm going to close this because it doesn't seem related to unc0ver but it will still allow conversation.


Privacy not showing countdown

4/14/2016
10:00 AM
Phone 4 1003
Tried to show participant Privacy mode - no countdown was available on mCerebrum home screen even when Privacy mode starte

@DanielaGarza Is this still a problem in the current version of software that you are running?

No, it seems to have been resolved. Thank you.
From: Timothy Hnat<EMAIL_ADDRESS>Sent: Tuesday, May 03, 2016 12:09 PM
To: MD2Korg/mCerebrum
Cc: DanielaGarza; Mention
Subject: Re: [MD2Korg/mCerebrum] Privacy not showing countdown (#3)
@DanielaGarza https://github.com/DanielaGarza  Is this still a problem in the current version of software that you are running?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub https://github.com/MD2Korg/mCerebrum/issues/3#issuecomment-216598018 https://github.com/notifications/beacon/ARGuqxKKLjuQrxwJKWCge2bq-968LJuNks5p94EVgaJpZM4IIcqT.gif


Support pointer actions

[optionally] launch on middle click
scroll items with the wheel
switch subitems with forward/back button

resolves #102

Tested with a bluetooth mouse and touchpad. It shall work with trackball too but not really sure.
cc @Mr-FuzzyPenguin @LGFae, would be nice if you could test it out as well since you've requested the feature

Hello, how would I test this branch?

Built it in a temp release here: https://github.com/l4l/yofi/releases/download/pointer-test/yofi-ubuntu-20.04


feat: better device detection

Description
I added this Dynamic Island dev indicator, but I just noticed that if the simulator (or the device) is named anything different than iPhone 14 Pro, then it will not show up. I used the device id, which I should have from the start. I also print out the device id if its not found, so it can be added possibly.

PR Checklist

[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a feature flag, or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an app state migration, or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

dev indicator on dynamic island is properly detecting devices

Need help with something? Have a look at our docs, or get in touch with us.

cant assign anyone, but heres a little thing @brainbicycle @gkartalis @damassi.

Nicee


Line number in error messages?

It seems to me that implementing line numbers will be quite simple.

Record the number of times we hit a "\n" character
Save that value as an attribute in the Tokens we create
Return that line number in errors to create better error messages

Let me know by commenting here and saying what you think!


add loguru to requirements.txt

import is here: bittensor-subnet-template/template/utils/config.py
but the loguru package is not installed in the requirements.txt

We will revolve this via - https://github.com/opentensor/bittensor-subnet-template/pull/84

https://github.com/opentensor/bittensor-subnet-template/pull/83#issuecomment-2089264643


Brew upgrading Python 3.11.5 -> 3.11.6_1 fails [macOS 12]

Description
Installing Python 3.11.6_1 as an indirect dependency (azure-cli), causing an error and job failure.
==> Upgrading<EMAIL_ADDRESS>3.11.5 -> 3.11.6_1

==> Pouring [python<EMAIL_ADDRESS>Error: The brew link step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/2to3
Target /usr/local/bin/2to3
already exists. You may want to remove it:
rm '/usr/local/bin/2to3'

Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 11
[X] macOS 12
[ ] macOS 13
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
Current runner version: '2.311.0'
https://github.com/awawa-dev/HyperHDR/actions/runs/6897412769/job/18765513784#step:5:341
Is it regression?
regression, same command worked untill recently https://github.com/awawa-dev/HyperHDR/actions/runs/6827984819/job/18572890598
Expected behavior
brew installs required packages without error
Actual behavior
Fails to install Python 3.11 needed by needed azure-cli (Installing azure-cli dependency<EMAIL_ADDRESS>Repro steps
brew update && brew install qt@5 xz ccache zstd webp

Hey, it is not a bug we can fix, it is expected behaviour of home-brew on any python update, you need explicitly call brew link --overwrite<EMAIL_ADDRESS>in your workflow to get a new link.

But I don't use Azure-Cli or Python, so why am I forced to do this? In fact, the problem is that the current macOS runtime image contains a broken azure-cli package (or its dependency, none of them are used by me) and this is what causes the Python installation to fail. But yes, you can somehow get around this by removing azure-cli from the runner: brew remove azure-cli && brew update && brew install qt@5 xz ccache zstd webp and it works and as workaround is acceptable and better then configuring not used Python package with --overwrite.

We run into this problem. We are installing llvm@17 with brew install llvm@17.
Are you saying we need to update our workflow to bump brew link --overwrite<EMAIL_ADDRESS>to the new version every time there is a Python update?

@louwers if it was not a part of the generated image, then yes, we can not do anything here, because a package "foo" conflicts with the symlinks from package "bar" (which are pre-existed by the time "bar" got updated), once new image release happens the latest "bar" is installed and symlinks are a part of the image.


Change folder name: defects for malfunctions

In the literature, in rotordynamics, I see the term "malfunctions" being used more than "defects". I suggest changing the "defects" > "malfunctions" folder. The word defects gives the impression of something wrong with the files inside.

@raphaeltimbo what do you think?

Hi there!
I have marked this issue as stale because it has not had activity for 45 days.
Consider the following options:

If the issue refers to a large task, break it in smaller issues that can be solved in
less than 45 days;
Label the issue as wontfix or wontfix for now and close it.

Hi there!
I have marked this issue as stale because it has not had activity for 45 days.
Consider the following options:

If the issue refers to a large task, break it in smaller issues that can be solved in
less than 45 days;
Label the issue as wontfix or wontfix for now and close it.

As discussed, we actually chose to replace defects for faults. So, I submitted the necessary modifications in PR #1060.


Tests improvements

@tisnik Your image is available in the registry: docker pull MISSING_REGISTRY_NAME/MISSING_IMAGE_NAME:SNAPSHOT-PR-51


Add SymbolStyle.IconPath as alternative for SymbolStyle.BitmapId

The problem
Currently the registration and assignment of BitmapId is not very handy. Users need to do a couple of things, load a bitmap, register it and assign it to the SymbolStyle.BitmapId. There are various helpers to make this easier but it is not very clear what should be used.
The solution
Add a SymbolStyle.IconPath which specifies the location of the icon, like:

SymbolStyle.IconPath = "file://myfolder/myimage.png"
SymbolStyle.IconPath = "http://mywebsite.com/myimage.png"
SymbolStyle.IconPath = "embeddedResource://myassembly.resourses.images.myimage.png"

The images are loaded by Mapsui and added to BitmapRegistry. The IconPath string should be used as key to make sure they are loaded only once.
The BitmapId could still be used, but not in combination with IconPath.
Alternatives
I did not spend much time thinking about alternatives yet, but I am sure there are a lot.

Having a look of some of our code to see how this could work. The CustomCalloutSample has this string: const string path = "Mapsui.Samples.Common.GeoData.Json.congo.json"; which is used to retrieve an embedded resource. This could be turned into: embeddedResource://Mapsui.Samples.Common.GeoData.Json.congo.json. And the renderer should use that string as the cache. If it is not in the cache the renderer should retrieve it from the assembly.
CustomCalloutSample  also has the CreateCallbackImage which creates an in-memory bitmap stream. For this case I don't have a good solution yet. In some cases we want to work with SKPicture references in memory. We do want to support this use case.

I'll implement this but the IconPath is an Uri
  var file = new Uri("file://myfolder/myimage.png");
  var http = new Uri("http://mywebsite.com/myimage.png");
  var resource = new Uri("embeddedResource://myassembly.resourses.images.myimage.png");

tested it (in unit test and all 3 work).

This was implemented in a series of merge requests (and involved quite some refactoring).

Hey where is this ? I don't see it in the last update.

@mfranc28 It is 5.0.0-beta.2 but ended up as 'SymbolStyle.ImageSource'. Here is some documentation https://mapsui.com/v5/imagesource/


chore: increase stale difficulty and dont allow stale block if not co…

prnet cleaned-up successfully


Update Programming.md

My SelfAssessment

Create pull request from edited branch of to main branch of your fork
By the way, see example in repo readme, format is wrong


Vrouter fixes pylint

Hi, as said in apache/cloudstack#1575 I'm suggesting some code clean-up; beside trying to conform to Python best-practices, it also fix a few bugs (undefined object, renamed methods, wrong mode for open and a few more...).
I don't know if you want to consider merging it in your re-factorisation.
Regards.

Ark, I failed to make a proper merge request again... it is meant to be against the vrouter-fixes branch...


Implement bolt12 offers

Allow buyers to add bolt12 offers

This should be made on all places where the bot ask for an invoice (/setinvoice, bot ask buyers for invoice)
Remove the prefix lightning: in case the input from the user have it, some lightning wallets use it when create invoices.

I was too fast, this issue have a big blocker, lnd has not implemented bolt12 yet, until they did it we have this issue on stand by.


Registering TEAM M.A.R.S.S.Z

Application for Registering Team to CODE CAMP 1.0
This pull request template helps you complete an application to the CODE CAMP 1.0 HACKATHON. Use the checklist below to verify that you have followed the instructions correctly.
(Put x inside [] like [x])
Select the type of Pull Request

[x] Registration Pull request.

[] Submission Pull request.

Checklist ✅

[x] I have read the instructions on the README file before submitting my application and gone through CODE_OF_CONDUCT.
[x] I have Submitted my team's details by making a folder of my team as instructed in How to send Pull Request page.
[x] I have used the Markdown file template to add my information for the Hackathon.
[x] I have given all the necessary details as mentioned in template index.md file and the details are correct and best to my knowledge.
[x] I understand that a reviewer will merge my pull request after examining it or ask for changes in case needed.
[x] I understand I should not tag or add a reviewer to this Pull Request.
[x] I understand the Details added to the template will be used as a means of communication at the time of result declaration.
[x] I have added the event to my calendar.

hey ! @Araz1103 , Please add github's complete link for every individual of your Team.
Re-check that all the Links are working properly. Will merge your PR..

Please add your team to whats app group.


None of PyTorch, TensorFlow >= 2.0, or Flax have been found. No module named 'transformers.models.encoder_decoder.configuration_encoder_decoder'

Hello,
I'm getting the following problem, when I run the compiled output of my project, which includes the transformers library.
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
Traceback (most recent call last):
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\transformers\utils\import_utils.py", line 1146, in _get_module
  File "importlib.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'transformers.models.encoder_decoder.configuration_encoder_decoder'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\transformers\utils\import_utils.py", line 1146, in _get_module
  File "importlib.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\transformers\models\auto\tokenization_auto.py", line 28, in <module transformers.models.auto.tokenization_auto>
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\transformers\utils\import_utils.py", line 1136, in __getattr__
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\transformers\utils\import_utils.py", line 1151, in _get_module
RuntimeError: Failed to import transformers.models.encoder_decoder.configuration_encoder_decoder because of the following error (look up to see its traceback):
No module named 'transformers.models.encoder_decoder.configuration_encoder_decoder'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\app.py", line 3, in <module>
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\open_clip\__init__.py", line 1, in <module open_clip>
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\open_clip\coca_model.py", line 15, in <module open_clip.coca_model>
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\open_clip\model.py", line 16, in <module open_clip.model>
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\open_clip\hf_model.py", line 13, in <module open_clip.hf_model>
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\transformers\utils\import_utils.py", line 1137, in __getattr__
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\transformers\utils\import_utils.py", line 1136, in __getattr__
  File "C:\Users\janwe\dev\SUPERS~2\clip\APP~1.DIS\transformers\utils\import_utils.py", line 1151, in _get_module
RuntimeError: Failed to import transformers.models.auto.tokenization_auto because of the following error (look up to see its traceback):
Failed to import transformers.models.encoder_decoder.configuration_encoder_decoder because of the following error (look up to see its traceback):
No module named 'transformers.models.encoder_decoder.configuration_encoder_decoder'

Nuitka version, full Python version, flavor, OS, etc. as output by this
command.

python -m nuitka --version

1.5.6
Commercial: None
Python: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Flavor: CPython Official
Executable: C:\Users\janwe\AppData\Local\Programs\Python\Python310\python.exe
OS: Windows
Arch: x86_64
WindowsRelease: 10
Version C compiler: C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe (cl 14.2).

How did you install Nuitka and Python

Installed using pip

The specific PyPI names and versions

python -m pip freeze

altgraph==0.17.3
asttokens==2.0.8
backcall==0.2.0
bark==0.1.0
certifi==2022.12.7
charset-normalizer==3.1.0
click==8.1.3
colorama==0.4.6
debugpy==1.6.3
decorator==5.1.1
entrypoints==0.4
executing==1.1.1
filelock==3.12.0
Flask==2.2.3
ftfy==6.1.1
huggingface-hub==0.13.4
idna==3.4
ipykernel==6.16.0
itsdangerous==2.1.2
jedi==0.18.1
Jinja2==3.1.2
jupyter-core==4.11.1
jupyter_client==7.3.5
MarkupSafe==2.1.2
matplotlib-inline==0.1.6
mpmath==1.3.0
nest-asyncio==1.5.6
netaddr==0.8.0
networkx==3.1
Nuitka==1.5.6
numpy==1.24.3
open-clip-torch==2.17.1
ordered-set==4.1.0
packaging==23.1
parso==0.8.3
pefile==2023.2.7
pickleshare==0.7.5
Pillow==9.5.0
prompt-toolkit==3.0.31
protobuf==3.20.3
psutil==5.9.2
pure-eval==0.2.2
pyinstaller==5.10.1
pyinstaller-hooks-contrib==2023.2
python-dateutil==2.8.2
pywin32==304
pywin32-ctypes==0.2.0
PyYAML==6.0
pyzmq==24.0.1
regex==2023.3.23
requests==2.28.2
sentencepiece==0.1.98
six==1.16.0
stack-data==0.5.1
sympy==1.11.1
timm==0.6.13
tokenizers==0.13.3
torch==2.0.0+cu117
torchvision==0.15.1+cu117
tornado==6.2
tqdm==4.65.0
traitlets==5.4.0
transformers==4.28.1
typing_extensions==4.5.0
urllib3==1.26.15
waitress==2.1.2
wcwidth==0.2.5
WebOb==1.8.7
Werkzeug==2.2.3
zstandard==0.21.0

I think https://github.com/Nuitka/Nuitka/issues/2151 is similar, but doesn't match 100%, so I'm opening this issue as well.

Got the same issue, also building is a nightmare since it takes like 2-3 hours

None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
Traceback (most recent call last):
File "C:\Users\Tensor\Desktop\aiengine\GPTQ-F~1\MAIN~1.DIS\transformers\utils\import_utils.py", line 1146, in _get_module
File "importlib.py", line 126, in import_module
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'transformers.models.encoder_decoder.configuration_encoder_decoder'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Tensor\Desktop\aiengine\GPTQ-F~1\MAIN~1.DIS\transformers\utils\import_utils.py", line 1146, in _get_module
File "importlib.py", line 126, in import_module
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "C:\Users\Tensor\Desktop\aiengine\GPTQ-F~1\MAIN~1.DIS\transformers\models\auto\tokenization_auto.py", line 28, in
File "", line 1075, in _handle_fromlist
File "C:\Users\Tensor\Desktop\aiengine\GPTQ-F~1\MAIN~1.DIS\transformers\utils\import_utils.py", line 1136, in getattr
File "C:\Users\Tensor\Desktop\aiengine\GPTQ-F~1\MAIN~1.DIS\transformers\utils\import_utils.py", line 1151, in _get_module
RuntimeError: Failed to import transformers.models.encoder_decoder.configuration_encoder_decoder because of the following error (look up to see its traceback):
No module named 'transformers.models.encoder_decoder.configuration_encoder_decoder'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Tensor\Desktop\aiengine\GPTQ-F~1\MAIN~1.DIS\main.py", line 2, in
File "", line 1075, in _handle_fromlist
File "C:\Users\Tensor\Desktop\aiengine\GPTQ-F~1\MAIN~1.DIS\transformers\utils\import_utils.py", line 1137, in getattr
File "C:\Users\Tensor\Desktop\aiengine\GPTQ-F~1\MAIN~1.DIS\transformers\utils\import_utils.py", line 1136, in getattr
File "C:\Users\Tensor\Desktop\aiengine\GPTQ-F~1\MAIN~1.DIS\transformers\utils\import_utils.py", line 1151, in _get_module
RuntimeError: Failed to import transformers.models.auto.tokenization_auto because of the following error (look up to see its traceback):
Failed to import transformers.models.encoder_decoder.configuration_encoder_decoder because of the following error (look up to see its traceback):
No module named 'transformers.models.encoder_decoder.configuration_encoder_decoder'

Ok so basically, I was in the discord and more or less this has to do with pytorch v2.0 step it down 1 version, the v2.0 pytorch isn't ready

I have the same problem with pytorch 1.12.0+cu113

I have the same problem with pytorch 1.12.0+cu113

damn I am wondering then if this has to do with the version of nuitka I am trying this with 1.13 now

Ok this might have to do with transformers

yeah I verified this isnt a pytorch problem it's transformers, pytorch 2.0 works just fine when compiled

I am not happy with the pytorch 2.0 anti-bloat situation, it pulls in too many things, but good to heat it works generally, because I will be busy with another issue for 1.x for some time

So, this is the code that prevents e.g. torch from being found. I think people here want it to find torch foremost.
_torch_version = "N/A"
if USE_TORCH in ENV_VARS_TRUE_AND_AUTO_VALUES and USE_TF not in ENV_VARS_TRUE_VALUES:
    _torch_available = importlib.util.find_spec("torch") is not None
    if _torch_available:
        try:
            _torch_version = importlib_metadata.version("torch")
            logger.info(f"PyTorch version {_torch_version} available.")
        except importlib_metadata.PackageNotFoundError:
            _torch_available = False

The environment variables USE_TORCH and USE_FLAX should probably not be runtime dependent. They have good defaults, but I assume, we will want to preserve their current values from during compilation. Or is there a case to be made, to decide on the target machine, I doubt so. Same goes for FORCE_TF_AVAILABLE. I am taking note of these. Once we specialize os.environ these will become freezable as well.
What is holding us back here, is this:
from .versions import importlib_metadata

The find_spec and the version calls would otherwise work. In the spirit of anti-bloat, the above code block could be moved to compile time, such that on the target machines, it wouldn't have to check versions. The other solution would be to recognize the hard import of importlib.metadata from transforms.utils.versions there and then just automatically work.
This kind of cross module optimization is not yet done in Nuitka, but very much ought to, and these hard modules might be a good place to start. However in the mean time I am experimenting with the low hanging fruit solution. I think replacing from .versions import importlib_metadata with import importlib.metadata as importlib_metadatawith the current anti-bloat will cut it for now.
I shall try that now. I believe there may also be implicit dependencies. I am missing example programs here. If you have a small one that will be nice. For now the top level import fails. I believe it cannot always have done that, since I think I did anti-bloat of transformers before, but I guess it's a package evolving quickly.

Ah, speaking of that, for an older version, this was working:
- module-name: 'transformers.utils.versions'
  anti-bloat:
    - description: 'disable runtime metadata check for core dependencies'
      change_function:
        # TODO: Forcing inline of this will be better solution.
        'require_version_core': "'(lambda requirement: None)'"

I hope I can help with this minimal example:
import torch
from PIL import Image
import open_clip

print("Loading model")

logging.basicConfig(level=logging.INFO, stream=sys.stdout)

model, _, transform = open_clip.create_model_and_transforms(
    model_name="coca_ViT-L-14", pretrained="mscoco_finetuned_laion2B-s13B-b90k"
)

with torch.no_grad(), torch.cuda.amp.autocast():
    start = time.time()
    # Generate a random image for performance measurement
    im = torch.randn(1, 3, 224, 224)
    im = transform(im).unsqueeze(0)
    generated = model.generate(im)
    end = time.time()
    performanceSample = end - start

used with the command python -m nuitka --follow-imports --standalone .\app-demo.py
Just to make sure, there is no easy way to fix that for as end-users, right @kayhayen?

So, I got that anti-bloat stuff done, but I got an extracted script (from transformers.utils.import_lib) now, with two calls of importlib_metadata.version("torch") and it appears, the first call gives correct version, and the second does not. I tried to remove some innocent code in between, but it appears that something breaks the hard import propagation of importlib_metadata there, and I have yet to discover what it is exactly. As you can probably guess, iterations will take a while to narrow this done, since I have to do import pytorch for things to work.
That would be a kind of "bug" I suppose. I am very interested, what construct is causing this.

So, it seems the loop tracing does not conclude with a trace that allows even "very trusted" values to go through, so the hard import resolution fails the second time, because for TensorFlow, names are checked in a loop, causing later lookups to all fail.
This is an omission that I should be able to add, but this pushes it absolutely into 1.6 territory as that's an invasive fix, but that's right around the corner anyway.

It seems doing  that for the loop, is something doable, however, for the time being I consider it a risky change, that I do not want to go into right now. Therefore, instead, I will just use anti-bloat to remove the attempt to scan for tensorflow, and then it should probably just work for pytorch at least. Tensorflow won't do scan properly until we have the loop in there unrolled, which is even further away.

So, I figured out how to do it properly, and now it only gives me import errors. The lazy importing seems to be also hiding the modules somehow, so a simple transformers.pipeline import is giving me an ImportError that is not justified. Need to dig deep there.

Ok, on factory there is a new plugin transformers, that is always on, and gets this fixed such that non-trivial programs also work. I am now stabilizing factory before including this in a release.

So, I did anti-bloat for the transformers, and now tried with newer pytorch, and had a RecursionError with sympy now, that I need to look into, that's very ugly.

This is part of the stable release 1.6 that I just made. The recursion error was fixed too, so it should be good now.

Hey,
Thanks for all the work so far. I'm sadly still getting an compilation error.
My log attached below.
PS C:\Users\janwe\dev\clip> python -m nuitka --follow-imports app.py
Nuitka-Options:INFO: Used command line options: --follow-imports app.py
Nuitka:INFO: Starting Python compilation with Nuitka '1.6' on Python '3.11' commercial grade 'not installed'.
Nuitka-Plugins:INFO: multiprocessing: Injecting pre-module load code for module 'multiprocessing':
Nuitka-Plugins:INFO: multiprocessing:     Monkey patching "multiprocessing" load environment.
Nuitka-Plugins:INFO: multiprocessing: Injecting post-module load code for module 'multiprocessing':
Nuitka-Plugins:INFO: multiprocessing:     Monkey patching "multiprocessing" for compiled methods.
Nuitka-Plugins:WARNING: anti-bloat: Undesirable import of 'unittest' in 'torch._dynamo.config_utils' (at
Nuitka-Plugins:WARNING: 'C:\Python311\Lib\site-packages\torch\_dynamo\config_utils.py:7') encountered. It may slow down
Nuitka-Plugins:WARNING: compilation.
Nuitka-Plugins:WARNING:     Complex topic! More information can be found at
Nuitka-Plugins:WARNING: https://nuitka.net/info/unwanted-module.html
Nuitka-Plugins:WARNING: anti-bloat: Undesirable import of 'unittest' in 'torch._dynamo.config_utils' (at
Nuitka-Plugins:WARNING: 'C:\Python311\Lib\site-packages\torch\_dynamo\config_utils.py:7') encountered. It may slow down
Nuitka-Plugins:WARNING: compilation.
Nuitka-Plugins:WARNING:     Complex topic! More information can be found at
Nuitka-Plugins:WARNING: https://nuitka.net/info/unwanted-module.html
Nuitka-Plugins:WARNING: anti-bloat: Undesirable import of 'doctest' in 'sympy.testing.runtests' (at
Nuitka-Plugins:WARNING: 'C:\Python311\Lib\site-packages\sympy\testing\runtests.py:26') encountered. It may slow down
Nuitka-Plugins:WARNING: compilation.
Nuitka-Plugins:WARNING:     Complex topic! More information can be found at
Nuitka-Plugins:WARNING: https://nuitka.net/info/unwanted-module.html
Nuitka-Plugins:INFO: pkg-resources: Injecting post-module load code for module 'pkg_resources':
Nuitka-Plugins:INFO: pkg-resources:     Registering Nuitka loader with "pkg_resources".
Nuitka-Inclusion:INFO: Cannot find distribution 'jax' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:107', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'flax' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:108', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'datasets' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:120', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'datasets' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:121', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'detectron2' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:130', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'faiss' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:138', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'faiss-cpu' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:142', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'ftfy' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:150', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'coloredlogs' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:158', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'tf2onnx' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:174', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'pytorch_quantization' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:190', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'soundfile' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:198', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'tensorflow_probability' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:206', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'timm' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:214', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'natten' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:222', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'phonemizer' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:238', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'pyctcdecode' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:246', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'librosa' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:254', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'oneccl_bind_pt' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:265', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'decord' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:272', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'jieba' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:279', expect potential run time problem, unless this is unused code.
Nuitka-Inclusion:INFO: Cannot find distribution 'intel_extension_for_pytorch' at 'C:\Python311\Lib\site-packages\transformers\utils\import_utils.py:532', expect potential run time problem, unless this is unused code.
Nuitka-Plugins:WARNING: anti-bloat: Undesirable import of 'setuptools' in 'torch.utils.cpp_extension' (at
Nuitka-Plugins:WARNING: 'C:\Python311\Lib\site-packages\torch\utils\cpp_extension.py:8') encountered. It may slow down
Nuitka-Plugins:WARNING: compilation.
Nuitka-Plugins:WARNING:     Complex topic! More information can be found at
Nuitka-Plugins:WARNING: https://nuitka.net/info/unwanted-module.html
Nuitka-Plugins:WARNING: anti-bloat: Undesirable import of 'setuptools' in 'torch.utils.cpp_extension' (at
Nuitka-Plugins:WARNING: 'C:\Python311\Lib\site-packages\torch\utils\cpp_extension.py:24') encountered. It may slow down
Nuitka-Plugins:WARNING: compilation.
Nuitka-Plugins:WARNING:     Complex topic! More information can be found at
Nuitka-Plugins:WARNING: https://nuitka.net/info/unwanted-module.html
Nuitka-Plugins:WARNING: anti-bloat: Undesirable import of 'setuptools' in 'torch.utils.cpp_extension' (at
Nuitka-Plugins:WARNING: 'C:\Python311\Lib\site-packages\torch\utils\cpp_extension.py:24') encountered. It may slow down
Nuitka-Plugins:WARNING: compilation.
Nuitka-Plugins:WARNING:     Complex topic! More information can be found at
Nuitka-Plugins:WARNING: https://nuitka.net/info/unwanted-module.html
Nuitka-Inclusion:INFO: Cannot find distribution 'wheel' at 'C:\Python311\Lib\site-packages\setuptools\installer.py:34', expect potential run time problem, unless this is unused code.
Nuitka:INFO: Completed Python level compilation and optimization.
Nuitka:INFO: Generating source code for C backend compiler.
Nuitka:INFO: Running data composer tool for optimal constant value handling.
Nuitka:INFO: Running C compilation via Scons.
Nuitka-Scons:INFO: Backend C compiler: cl (cl 14.2).
Nuitka-Scons:INFO: Backend linking program with 4255 files (no progress information available for this stage).
Unexpected output from this command:
<clcache> /Fostatic_src\CompiledFunctionType.obj /c "static_src\CompiledFunctionType.cpp" /TP /nologo /Ox /GF /Gy /EHsc /J /Gd /bigobj /MT /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=0 /D_NUITKA_EXE /D_NUITKA_PLUGIN_MULTIPROCESSING_ENABLED=1 /IC:\Python311\include /I. /IC:\PYTHON~2\Lib\SITE-P~1\NUITKA~1.EGG\nuitka\build\include /IC:\PYTHON~2\Lib\SITE-P~1\NUITKA~1.EGG\nuitka\build\static_src
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(378): error C2143: Syntaxfehler: Es fehlt "]" vor "Konstante"
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(378): error C3260: "Konstante": Unerwartete Token vor Text der Lambdafunktion werden \x81bersprungen.
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(564): error C2065: "gen": nichtdeklarierter Bezeichner
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(565): error C2065: "gen": nichtdeklarierter Bezeichner
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(567): error C2065: "gen": nichtdeklarierter Bezeichner
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(582): error C3487: "PyObject *": Alle R\x81ckgabeausdr\x81cke m\x81ssen in denselben Typ hergeleitet werden: Zuvor war es "int".
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(582): error C2440: "return": "PyObject *" kann nicht in "int" konvertiert werden
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(582): note: Es gibt keinen Kontext, in dem diese Konvertierung m\x94glich ist
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(586): error C2062: "_frame"-Typ unerwartet
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(586): error C2143: Syntaxfehler: Es fehlt ";" vor "{"
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(586): error C2447: "{": Funktionsheader fehlt - Parameterliste im alten Stil?
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(614): error C3861: "_Nuitka_PyFrame_New_NoTrack": Bezeichner wurde nicht gefunden.
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(865): error C3861: "Nuitka_PyGen_yf": Bezeichner wurde nicht gefunden.
C:\Python311\Lib\site-packages\Nuitka-1.6-py3.11-win-amd64.egg\nuitka\build\static_src\CompiledGeneratorTypeUncompiledIntegration.c(1484): error C3861: "Nuitka_PyGen_yf": Bezeichner wurde nicht gefunden.
scons: *** [static_src\CompiledFunctionType.obj] Error 2

@JanWerder new issues posting below closed issues is a surefire way to get ignored, open a new issue

@JanWerder posting below closed issues is a surefire way to get ignored, make a new report for your issue


ImportError: cannot import name 'setup_cache_size_limit_of_dynamo' from 'mmdet.utils' (/opt/conda/envs/python38/lib/python3.8/site-packages/mmdet/utils/init.py)

Thanks for your error report and we appreciate it a lot.
REL PATCH
https://github.com/open-mmlab/mmdetection/commit/4a0b0c3143a71de12ad9c127f1cf2dce377bff0c#diff-7fc3906bb14652119559420a7b84aac995bfa36f9a7b0f00e215b9f0b6301d9b

My problem is the same as yours， Have you solved it? Can you share the solution？

NOT YET


Minor update to Gym environment documentation

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

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

Totals

Change from base Build<PHONE_NUMBER>7:
0.0%

Covered Lines:
2796

Relevant Lines:
3091

💛  - Coveralls


ZUC256 wrong initialization

Wrong initialization
In line 422 of GmSSL/crypto/zuc/zuc_core.c you coded
LFSR[8] = ZUC256_MAKEU31(K[8], (D[8] | IV20), IV[13], IV[11]);
while instead it should be
LFSR[8] = ZUC256_MAKEU31(K[8], (D[8] | IV20), IV[3], IV[11]);
according to the presentation paper .

Thanks for having solved the bug


CPU 100% when result tab is open

I'm running DBeaver 4.0.8 inside Eclipse. But this has been going on for a long time, and it doesn't happen when I run DBeaver separately.
The problem starts after I have run the first query. When the query is finished and absolutely nothing is supposed to happen, the CPU just stays 100% on one thread. But when I hide the result tab with the little triangle button, then the CPU utilisation goes down to 0%.
I have attached two tread dumps, one with the result tab open (and 100% cpu) and one where it's closed. Hope this helps.
Thanks for the good software and for looking into this.
thread-dump-result-tab-hidden.txt
thread-dump-with-result-tab-open.txt

Small update: no query needs to be run, an empty results tab is enough. And the issue disappears when using gtk version 2.

And the issue disappears when using gtk version 2.
This is the real issue. SWT still has very poor support of GTK 3. There is a number of known performance issues (including cpu load and huge memory consumption).
Hopefully Eclipse 4.7 will resolve some of them.

I have run DBeaver from within Eclipse Oxygen and with GTK 3 for a few days now without problems. This issue seems to have been resolved.


Change user avatar

How can I change individual user avatars?

It uses your account avatar. To change it, for me on KDE it was in my system parameters, but i think you can find it on google.

@Litarvan Does not seem to work for me on Lightdm, can you elaborate on how it searches the system avatar?

As i said, i don't really know where it searches. The path is given by the API, and for me i set it using my desktop. Tbh google will help you more than I

The solution to this issue is in the Arch linux's wiki, here is a link:
https://wiki.archlinux.org/index.php/LightDM#Changing_your_avatar

or try : /home/username/.face


npm version is outdated significantly

While the npm page is outdated, it seems the version downloaded via npm is up to date.

Done https://github.com/APSL/react-native-keyboard-aware-scroll-view/releases/tag/v0.3.0!


Test Matrix

Codecov Report

Merging #75 (70979fc) into main (e3f260b) will decrease coverage by 8.4%.
The diff coverage is 97.7%.

@@           Coverage Diff           @@
##            main     #75     +/-   ##
=======================================
- Coverage   97.5%   89.1%   -8.4%
=======================================
  Files         11      11
  Lines        693     675     -18
=======================================
- Hits         676     602     -74
- Misses        17      73     +56

Impacted Files
Coverage Δ

reprexlite/formatting.py
98.4% <97.6%> (-1.6%)
:arrow_down:

reprexlite/config.py
100.0% <100.0%> (ø)

reprexlite/exceptions.py
100.0% <100.0%> (ø)

reprexlite/reprexes.py
96.4% <100.0%> (-0.4%)
:arrow_down:

... and 2 files with indirect coverage changes


ORC-65 Write new documentation for the ORC site.

Did anyone have any thoughts about the new pages? I'll commit this tomorrow if no one objects. I would like to have the ORC 1.1.0 page :)


Provide: multipart/form-data POSTs

hi,
I am writing a mongo layer for gridfs and I wonder if it is possible to have multiform-data requests for writing to a file (with a POST /resourcename/item).
Can we have an option to accept content types other than application/json?
are there any plans to implement this?

I think the whole "check for application/json header" is in util.go:
// decodePayload decodes the payload from the provided request
func decodePayload(r *http.Request, payload *map[string]interface{}) *Error {
	// Check content-type, if not specified, assume it's JSON and fail later
	if ct := r.Header.Get("Content-Type"); ct != "" && strings.TrimSpace(strings.SplitN(ct, ";", 2)[0]) != "application/json" {
		return &Error{501, fmt.Sprintf("Invalid Content-Type header: `%s' not supported", ct), nil}
	}
	decoder := json.NewDecoder(r.Body)
	defer r.Body.Close()
	if err := decoder.Decode(payload); err != nil {
		return &Error{400, fmt.Sprintf("Malformed body: %v", err), nil}
	}
	return nil
}

if we could have a variable option check here we could pass in different kind of accepted content-types.
if the content-type is not json, don't try to decode the payload but rather pass it along to the handler. something like that.

Specifically for your request, I believe @rs have stated earlier that he believes REST APIs are most useful for metadata. @rs sorry if I am paraphrasing this.
Please note that my knowledge is limited here, and don't take my word for the following. But for storing actual data (i.e. a gridfs file), you might want to do so with custom https routes, although you could link to the unique "file" ID in your rest-layer resource with an appropriate field validatior.
Not for your use case in particular, but on a general basis I actually think it would be an interesting change to support registration of encoders/decoders for the API payload that would be "auto-selected" based on (negotiated) Content-Type. That would really only be interesting thought when the payload is to be validated by a schema. That said, it's not something I have the time to contribute at the moment.

@smyrman I've already implemented a complete gridfs with custom routes but now I thought why not give rest-layer a try and implement the routes as a rest-gridfs-layer handler.
and after several thoughts about this topic I've come to the conclusion that everything would work except POSTing (writing) to gridfiles. because of the way you suppose to upload files (from eg. curl, postman, or blobs in the frontend, or even html5 file uploads). it all ends up in a request with the content-type of multipart/form-data.

any other interaction with gridfs would already be a fetching or updating metadata (rest-layer resources)

and let's remember that python eve does this as well. maybe it's a more specific implementation in python eve because it is based on mongodb strictly (other db handlers are more like extensions for python eve) but it's still there and useful. and we could make the rest-layer-mongo work with gridfs (by either implement it directly into rest-layer-mongo or as a rest-layer-mongo-gridfs project) if we could have more freedom in accepting content-types.
while I think it makes sense to work with an application/json type for restful JSON apis and rest-layer is exactly this, I also think that rest-layer doesn't have to restrict itself to be only this. don't know if I could explain myself.

@omani, thanks for the info.
Just for better understanding this, how would a GridFS resources integrate with the schema package? Or would you register a resource with a nill schema?

@smyrman good question:
basically when it comes to gridfs files the "metadata" in "$bucketname.files" is always like this:
{
    "_id" : ObjectId("5890fec3b1c2f9774f0f6b71"),
    "chunkSize" : 261120,
    "uploadDate" : ISODate("2017-01-31T21:16:51.834Z"),
    "length" : 0,
    "md5" : "d41d8cd98f00b204e9800998ecf8427e",
    "filename" : "somefilename",
}

you could define these fields in your schema (field definitions) and would be able to provide at least a common schema to work with gridfiles. your gridfs handler you pass into your index handler would implement find, insert, update, etc. and take the above schema as input. but doing gridfs operations on $bucketname.chunks (the session.db(whatever).gridFS(). namespace).
and the result would be again the schema above

but since POSTing to a gridfile generally means "writing" to that gridfile your POST method in your storer implementation would have to have a way to accept multipart/form-data requests.

I never touched GridFS nor looked at GridFS implementation in Eve. I would tend to say that the REST API should manage the file metadata and give a pointer to a "data" URL handled by a different HTTP handler, but I may miss something.
I will try to look into ASAP so I can give you a more educated feedback.

@rs that would be awesome. if you find me a way to make this work I could provide a gridfs handler for rest-layer already.

@rs any news?

Not yet, it's in my list don't worry.

I started to think about file support. I want to come up with a design that could support GridFS but also filesystem and memory based storage (or any other kind of blob storage).
I don't want to mix JSON API with blobs. Supporting multipart/form-data to POST fields together with the file data does not make sense to me. I'm not a big fan of Eve's implementation in this regard (no offense @nicolaiarocci).
What I propose is to use the REST JSON API to handle metadata, and to handle its blob using a blob sub-resource, i.e /files/<id> for metadata and /files/<id>/blob for file data.
To upload a file, you first create the metadata using either POST or PUT as usual, and then you can post the file on the blob sub-resource. To upload resource, I would like to implement the resumable upload API described here: http://www.grid.net.ru/nginx/resumable_uploads.en.html. The metadata endpoint could then be polled in order to track progress.
I'm still not sure about how we could implement that at storer level. We could let a storer implement a extra interface to store/retrieve files so the resource would "unlock" this blob endpoint when implemented. With this approach, we might have to force schema of the metadata to something static that all file handlers must be able to provide, without the capability to define custom fields on that resource.
Another approach could be to create a new kind of storer that could be bound on existing resource. We could then define a different storer for metadata and and blob, but then it would be hard to link the storage file handler with the metadata storage handler.
The file storage interface could be something like:
type ByteRange struct {
    First int
    Last int
    Total int
}

type Blober interface {
    WriteBlob(id interface{}, r ByteRange, b []byte) error
    ReadBlob(id interface{}, r ByteRange) ([]byte, error)
}

Thoughts?

We may also consider https://tus.io/protocols/resumable-upload.html as resumable upload protocol.

I haven't read the resumable upload but don't forget that gridfiles can be written only once. after you close them, you have to recreate them if you continue to write to them. I don't know if this is relevant in any part.

My understanding is that GridFS is just a convention. I quickly looked into it, and I don't see why we could not implement appending of even sparse file support. It would require some change to mgo or something on top of it, but nothing impossible here from a first glance.

We could let a storer implement a extra interface to store/retrieve files so the resource would "unlock" this blob endpoint when implemented.

This does make some sense for GridFS / MongoDB. However, let's consider the simple case of "local file storage". If I choose that, I really would not want to be forced to use any particular storage engine for the metadata...

Another approach could be to create a new kind of storer that could be bound on existing resource. We could then define a different storer for metadata and and blob, but then it would be hard to link the storage file handler with the metadata storage handler.

To me, this sounds like a better trade-off.

What about a new type of resource? resource.FileResource / resource.MediaResource?

Or just a new constructor, if we want the resource to be usable in similar ways... not sure it makes sense to bind a sub-resource to a file resource though, so it does sound like we would want it to have fewer methods...

When initialize such a resource, maybe you could even pass it two storage backends... one for metadata and one for file storage that could optionally support resumable upload.

So I could see separate storer for extra metadata, but we would still need some file specific metadata that would not be freeform and would have to be maintained by the blob handler. I am not sure it would make sense to require the blob handler to use storer to store metadata like file length, md5 etc. It might be hard to keep in sync.
What is the difference between FileStorage and MediaStorage?

File... or Media... is just alternative names. Sorry, should had made that more clear. BlobStorer is just as good. I will use that from now on...

I am not sure it would make sense to require the blob handler to use storer to store metadata like file length, md5 etc.

Hmm... probably not good to force it. I guess if there was a new BlobStorer interface, implementations could potentialy require/allow initialization using a normal Storer for metadata when relevant?
E.g.. gor the case of a local file or memory BlobStorer, the benefit of using a normal Storer (let's say MongoDB or maybe SQL), is that the info can be searched / indexed, and that the dev could choose wich one to use.
However; I guess if certain blobstorage backends, where to support indexing or searching anyway, then probably not right to force it.

I guess my fear when you uploaded your proposal, was that I didn't want to end up in a situation where e.g. a local file based storage engine forced me to use e.g. MongoDB for metadata, but let me choose.
But I see now that this might just be a question of how you implement the storage interface.

is someone working on this?

I am not.

I am not. @rs?

Neither. I have no time right now. I will look at it as soon as I can.


[macOS] screen recordings are green

Description
Recently have observed (what appears to be) an increase in screen recordings showing as green on macos-12 runners where screen recordings taken using the screencapture CLI.
This appears similar to the issue described in https://apple.stackexchange.com/questions/87613/quicktime-records-a-green-screen
Example output recording: https://guidepup.github.io/aria-at-tests/data/attachments/2776d48372a34b12.qt
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 11
[X] macOS 12
[ ] macOS 13
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
https://github.com/guidepup/aria-at-tests/actions/runs/7258634208/job/19774873344
Current runner version: '2.311.0'
Operating System
  macOS
  12.6.9
  21G726
Runner Image
  Image: macos-12
  Version: 20231029.1
  Included Software: https://github.com/actions/runner-images/blob/macOS-12/20231029.1/images/macos/macos-12-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macOS-12%2F20231029.1
Runner Image Provisioner
  2.0.321.1

Is it regression?
Yes
Expected behavior
Screen recordings should not be green.
Actual behavior
Screen recordings are green.
Repro steps

Run macos-12 job.
Run command similar to /usr/sbin/screencapture -v -C -k -T0 -g recording.mov.
Observe recording is green.

Hello @cmorten,
We will take a look

By way of example / visual aid, here is an example https://github.com/guidepup/setup/actions/runs/7527748171 where have attached the recordings generated for MacOS 11, 12, and 13. MacOS 12 is almost always green.
https://github.com/actions/runner-images/assets/124147726/b229e4f9-58ba-4b1e-badd-31c857bc0da4
https://github.com/actions/runner-images/assets/124147726/d2cb9434-c934-42a5-b86b-b4425712b51c
https://github.com/actions/runner-images/assets/124147726/b6b0eeff-f7fe-4133-ba72-0790ef1426f5

Could #9529 be related to this?

Could #9529 be related to this?

May be similar, but in the linked issue it is MacOS 13 and 14 having problems whereas in this issue it is MacOS 12 having problems.

HI @jlp-craigmorten , It's just a faulty macOS 12 and there is nothing we can do about it. Please consider to switch to MacOS 13 or MacOS 14 as you wish. Thanks


[web] Changes to web keyboard selection shortcuts for more consistent behavior

Currently there's an issue in which keyboard shortcuts (shift + arrow keys) don't autoscroll on web inputs and textfields if the selection is out of view (reference issue below).  Allowing the framework to handle selection leads to the expected behavior.
Part 2 of fix for https://github.com/flutter/flutter/issues/107707
Engine changes PR: https://github.com/flutter/engine/pull/37097
Pre-launch Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[x] I signed the [CLA].
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is [test-exempt].
[x] All existing and new tests are passing.

@chunhtai yes, from the testing @htoor3 and I did, the framework was able to handle these shortcuts well.


[devscripts] Allow passing a custom user ignition file for OCP nodes

As a pull request owner and reviewers, I checked that:

[ ] Appropriate testing is done and actually running
[ ] Appropriate documentation exists and/or is up-to-date:

[ ] README in the role
[ ] Content of the docs/source is reflecting the changes

This functionality is not needed as it was used for troubleshooting an issue and given that we may use other tool to deploy OCP rather than dev-scripts I'm not going to work on this.


Page not found (MDN Web Docs in russian)

At least these 3 links at https://developer.mozilla.org/ru/docs/Web/JavaScript leads to "Page not found" :
https://developer.mozilla.org/ru/docs/Словарь/First-class_Function
https://developer.mozilla.org/ru/docs/Web/JavaScript/О_JavaScript
https://developer.mozilla.org/ru/docs/Словарь/Prototype-based_programming

Apologies, but we're not currently accepting changes to translations at the moment. Read https://hacks.mozilla.org/2020/12/an-update-on-mdn-web-docs-localization-strategy/ for an explanation.

Apologies, but we're not currently accepting changes to translations at the moment. Read https://hacks.mozilla.org/2020/12/an-update-on-mdn-web-docs-localization-strategy/ for an explanation.


Soundness hole in Ptr::read_unaligned

From what I can tell, it's not exercised anywhere in the codebase.
Ptr::read_unaligned permits reading from a shared pointer through UnsafeCells:
https://github.com/google/zerocopy/blob/7349fe0c745ecb89cba8dfaf70764e57378b5c88/src/pointer/mod.rs#L35-L53
We should either add an Immutable bound or an AliasingSafe bound.

Is the issue still open? Can you assign me this issue?

This is already fixed in 0.8 and a fix is in-progress in 0.9. Thanks for volunteering though!


In Next.js, when using the fetchAuthSession method from the aws-amplify library, the token information obtained is decoded by default. However, you wish to obtain the undecoded JSON web token (JWT), specifically to access the raw JWT returned by the OAuth 2.0 token endpoint at /oauth2/token.

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting questions.
[X] I have removed any sensitive information from my code snippets and submission.

App Id
NEW_APP
AWS Region
eu-west-3
Amplify Hosting feature
Public APIs
Question
To use the fetchAuthSession method in a Next.js project with AWS Amplify and obtain the accessToken without JWT decoding, I want to receive the raw JWT returned by the OAuth 2.0 token endpoint without any transformation or decoding.

Try accessToken.toString()

Is this still an issue? Going to close and feel free to re-open


Set version of RPi for all known revisions

I needed to add support for the Raspberry Pi Zero W. I thought it would be wiser to specify revisions explicitly and I found a table here with an exhaustive list.

Codecov Report

Merging #138 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #138   +/-   ##
=======================================
  Coverage   84.64%   84.64%
=======================================
  Files          61       61
  Lines        4611     4611
=======================================
  Hits         3903     3903
  Misses        642      642
  Partials       66       66

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 d39d5a1...8054646. Read the comment docs.

thanks! will review later today.

Note, I have (obviously) not tested all revisions.

Sounds like a good idea! I'll give it a spin and see what I can come up with. Thanks for the feedback.

@maruel What do you think about this? It should capture more in detail what the port mapping is trying to achieve.

Thanks for the comments, will update tonight.

@maruel Updated. Also added flags for audio and HDMI to better support the compute module.

Let me know if you want the fix commits squashed before merging.

I use "squash and merge" workflow to keep a linear history so no need to preemptively squash.

@maruel Makes sense. Updated.

@maruel Updated.

Could you add yourself to AUTHORS and CONTRIBUTORS? Thanks!

@maruel Done!

Perfect! Thanks for getting this through.

My pleasure! Feels great to get involved.


Hi, is there any rqt_graph sample image?

Hi, I'm new to people_detection.
I would like to ask that if you guys have any information about this project's rqt_graph.
since I tried to adapt this github code to my own lidar data (HDL-64), but it does not work well, and I think that's because of the parameters in sensor topics. So I would like to get information about the sensor topics name, which really goes into the hdl_people_tracking.
Thanks.


ImportError: No module named setuptools_ext

Please help. I am on Debian, and after pip install letsencrypt-s3front I get this
Can't roll back cryptography; was not uninstalled
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-I02WKt/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-NEr5oh-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-I02WKt/cryptography
Storing debug log for failure in /root/.pip/pip.log

I just wish to install it on cloudfront. I made it run so far, with the command line like in the README.md but now this:
zsh run.zsh
Traceback (most recent call last):
  File "/usr/local/bin/letsencrypt", line 7, in <module>
    from letsencrypt.cli import main
  File "/usr/local/lib/python2.7/dist-packages/letsencrypt/cli.py", line 26, in <module>
    from acme import jose
  File "/usr/local/lib/python2.7/dist-packages/acme/jose/__init__.py", line 53, in <module>
    from acme.jose.jwa import (
  File "/usr/local/lib/python2.7/dist-packages/acme/jose/jwa.py", line 18, in <module>
    from acme.jose import jwk
  File "/usr/local/lib/python2.7/dist-packages/acme/jose/jwk.py", line 128, in <module>
    class JWKES(JWK):  # pragma: no cover
  File "/usr/local/lib/python2.7/dist-packages/acme/jose/jwk.py", line 137, in JWKES
    ec.EllipticCurvePublicKey, ec.EllipticCurvePrivateKey)
AttributeError: 'module' object has no attribute 'EllipticCurvePublicKey'

@ghost to be honest I can't reproduce your issue, can you check it again if you are still interested?
Thanks

@dlapiduz Ghost is a deleted account, so you will get no response.

Thanks @grappler


not able to launch accelerate in notebook with 2 processes

I have 2 GPU setups but I am not able to launch training using accelerate on both GPUs. However, it works on a single GPU.
notebook_launcher(training_function, (model,), num_processes=1)
Can anyone help?

Can you please provide the full error, your environment, and how you setup your notebook? You should have been prompted to do so when opening your issue. We can't help otherwise

Can you please provide the full error, your environment, and how you setup your notebook? You should have been prompted to do so when opening your issue. We can't help otherwise

Launching training on 2 GPUs.
0%|          | 0/418 [00:00<?, ?it/s]
ProcessExitedException                    Traceback (most recent call last)
/tmp/ipykernel_11960/4075470079.py in
1 from accelerate import notebook_launcher
2
----> 3 notebook_launcher(training_function, (model,), num_processes=2)
~/py38/lib/python3.8/site-packages/accelerate/launchers.py in notebook_launcher(function, args, num_processes, use_fp16, mixed_precision, use_port)
125
126                 print(f"Launching training on {num_processes} GPUs.")
--> 127                 start_processes(launcher, args=args, nprocs=num_processes, start_method="fork")
128
129         else:
~/py38/lib/python3.8/site-packages/torch/multiprocessing/spawn.py in start_processes(fn, args, nprocs, join, daemon, start_method)
186
187     # Loop on join until it returns True or raises an exception.
--> 188     while not context.join():
189         pass
190
~/py38/lib/python3.8/site-packages/torch/multiprocessing/spawn.py in join(self, timeout)
128             if exitcode < 0:
129                 name = signal.Signals(-exitcode).name
--> 130                 raise ProcessExitedException(
131                     "process %d terminated with signal %s" %
132                     (error_index, name),
ProcessExitedException: process 0 terminated with signal SIGSEGV

Can you confirm it works when on a single worker? Also we need to know your environment. Please post the output of accelerate env

accelerate env

Yes, it works on a single worker using notebook_launcher(training_function, (model,), num_processes=1)
below is output from accelerate env:

Accelerate version: 0.12.0
Platform: Linux-5.4.0-88-generic-x86_64-with-glibc2.29
Python version: 3.8.10
Numpy version: 1.21.3
PyTorch version (GPU?): 1.10.0+cu111 (True)
Accelerate default config:
Not found

I can run the notebook_launcher just fine using the example you linked, so it seems to be stemming from your code.
Could you open a new discussion here to help you a bit more with your specific issue? And if possible please include the notebook you are using. Otherwise we have nothing to go off of to help you 😃