Numba can't infer type of an unknown temporary variable in assigned of an empty typed.Dict()

Reporting a bug

[ yes] I have tried using the latest released version of Numba (most recent is
visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
[ yes] I have included a self-contained code sample to reproduce the problem.
i.e. it's possible to run as 'python bug.py'.

I have a jitclass instance where I am assigning the features of the class. Numba has started throwing random errors because it can't infer the type of a temporary variable. It was working totally fine until now.

spec = [('energy', types.float64),
('E_c', types.float64), ('beta', types.float64)
        ('bond_energies',  types.DictType(types.int_ , types.DictType(types.int_ , types.float64))) ]

@jitclass(spec)
class lattice():
    def __init__(self, bound, E_c, beta):
        self.energy = 0
        self.bond_energies = typed.Dict()

Here is the error
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Failed in nopython mode pipeline (step: nopython frontend)
Cannot infer the type of variable '$128call.17' (temporary variable), have imprecise type: DictType[undefined,undefined]<iv=None>.

File "all_lattices.py", line 58:
    def __init__(self, bound, E_c, beta=0, lattice_type='simple_cubic'):
        <source elided>
        self.energy = 0
        self.bond_energies = typed.Dict()
        ^

File "<string>", line 3:
<source missing, REPL/exec in use?>

This is a known usability problem with dict and jitclass. The type inference does not propagate type information from LHS to RHS. To workaround, use the Dict.empty() to spell out the key and value type. For example:
from numba import types, njit, typed
from numba.experimental import jitclass

# Define the types for use later
key_ty = types.int_
val_ty = types.DictType(types.int_, types.float64)
dict_ty = types.DictType(key_ty, val_ty)

spec = [
    ("energy", types.float64),
    ("E_c", types.float64),
    ("beta", types.float64),
    ("bond_energies", dict_ty,),
]

@jitclass(spec)
class lattice:
    def __init__(self, bound, E_c, beta):
        self.energy = 0
        self.bond_energies = typed.Dict.empty(key_ty, val_ty)  # construct dict with types spelled out

lattice(0, 0, 0)


envoy: Update image for SDS headermatch crash

Update Envoy image to fix cilium-envoy crash that happened when HeaderMatch secret was updated via SDS.
While this only affects main that has enabled the use of SDS for HeaderMatch secret delivery, the bug exists in all releases.
Related: cilium/proxy#1010

/test


v5.0.1

Codecov Report

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

@@            Coverage Diff            @@
##            master        #4   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines            8         8
  Branches         2         2
=========================================
  Hits             8         8

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 705cbee...1ac22cf. Read the comment docs.


Expose metrics port to use with PodMonitoring

Description
This is needed to scrape metrics from kluctl-controller with PodMonitoring resource
apiVersion: monitoring.googleapis.com/v1
kind: PodMonitoring
metadata:
  name: kluctl-controller
spec:
  selector:
    matchLabels:
      control-plane: kluctl-controller
  endpoints:
  - port: metrics
    interval: 30s

Fixes #658
Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)

Thanks for the contribution @shirkevich :)
One thing however: The changes you performed need to be done in config/manager/manager.yaml instead of the file inside the install directory. Afterwards, you need to run make manifests, which will then sync the manifests in the install folder.
If I find time, I will update the contribution guidelines for this. As an alternative, I'm happy for contributions here as well :)

Fixed as you requested.


Greater precedence for ActionResult

I'm working with 2.1.0-preview2-final and trying to get ApiDescription to report that a method returning Task<ActionResult<T>> translates into an endpoint with a response type of T on success.
Based on the current implementation, it looks like ActionResult<T> is only being set for Status200OK when there are no other filters at play:
https://github.com/aspnet/Mvc/blob/1b9372f5b0c490209d49e6051f5f1b615094f399/src/Microsoft.AspNetCore.Mvc.ApiExplorer/DefaultApiDescriptionProvider.cs#L418-L440
Based on the announcement, I expected ActionResult<T> to be used for Status200OK before the attributes were considered, allowing explicit attributes to overrule the inference from ActionResult<T>:

We want to embrace the OpenAPI specification (previously called “Swagger”) and make Web APIs built with ASP.NET Core more descriptive. Today you need a lot of “attribute soup” to get a reasonable OpenAPI spec from ASP.NET Core. We plan to introduce an opinionated layer that infers the possible responses based on what you’re likely to have done with your actions (attributes still win when you want to be explicit).
https://blogs.msdn.microsoft.com/webdev/2018/02/02/asp-net-core-2-1-roadmap/#mvc

Questions

Is the current behavior intentional/frozen for 2.1?
If it isn't frozen, is the team be open to a pull request in this area?

Potential change
// Set the OK response to the runtime type by default.
if (type != null)
{
    objectTypes[StatusCodes.Status200OK] = type;
}

// Register the attributes, potentially overriding the default OK response.
var contentTypes = new MediaTypeCollection();
if (responseMetadataAttributes != null)
{
    foreach (var metadataAttribute in responseMetadataAttributes)
    {
        metadataAttribute.SetContentTypes(contentTypes);

        if (metadataAttribute.Type != null)
        {
            objectTypes[metadataAttribute.StatusCode] = metadataAttribute.Type;
        }
    }
}

@austindrenski - can you give an example of what you're doing (code sample) and what you expect the behavior should be vs what it is? I'm not sure I totally understand what you're asking.

Hi. We're closing this issue as no response or updates have been provided in a timely manner and/or we have been unable to reproduce it. If you have more details and are encountering this issue please add a new reply and re-open the issue.


chore: add example CSV files

This pr adds a folder containing several CSV files that are suitable to be uploaded to the JAC as data for a finetuning run.
It is worth noting the the file image-text_or_image_example.csv is suitable for both text-image and image-image tasks as each row can be interpreted as either a image-text pair (suitable for text-image) or a image-label pair (suitable for image-image)

[ ] This PR references an open issue
[x] I have added a line about this change to CHANGELOG

The mesh-mesh example wont work on JAC at the moment, as they are not using the latest version of core, which is needed to support pointnet++

Can you rename folder to data?

the name 'data' is in one of our gitignore files, i have renamed to example_data instead

Can you rename folder to data?

the name 'data' is in one of our gitignore files, i have renamed to example_data instead

datasets then? I really dislike _ names, especially in the root dir 🥲


Add package tags, fix description typos

Thanks for adding the tags. Which impression did you get about best practices for tags on nuget.org?

Thanks for adding the tags. Which impression did you get about best practices for tags on nuget.org?

Thanks for adding the tags. Which impression did you get about best practices for tags on nuget.org?

Thanks for the reviews @dbeuchler @Toxantron. Some best practice points I'm taking away:

Use tags with upper and lower case
Use tags as precise as possible for specific package and use few as possible (as @dbeuchler mentioned).
Use tags that are matching the core namespaces if appropriate
Preferably don't tag the names of reference packages directly, but may include their functionality instead

Thanks for adding the tags. Which impression did you get about best practices for tags on nuget.org?

Thanks for the reviews @dbeuchler @Toxantron. Some best practice points I'm taking away:

Use tags with upper and lower case
Use tags as precise as possible for specific package and use few as possible (as @dbeuchler mentioned).
Use tags that are matching the core namespaces if appropriate
Preferably don't tag the names of reference packages directly, but may include their functionality instead


Automatic Update of README.md

This is an auto-generated PR which updates the README.md from the README.yaml
using the cloudposse/build-harness.

:tada: This PR is included in version 1.0.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Remove all the duplicate code from properties/definition.js

The code that defines the 5 items corresponding to the tabs can be substantially decreased with a for loop.

Closed by #55


Add missing openapi3 label

No changes needing a change description found.

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3380/
Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3380/


Remove debug log prints

Data table is a little too chatty in debug mode.

I'd prefer that to be configurable, tables can be slow to build

Ah, I guess I must have pretty simplistic tables. I can adjust the PR to place the print(s) behind a verbose flag

PR updated!

Changed it to default on and global variable (rather than constructor param). Can be turned off via entry point:
void main() {
  runApp(MyApp());
  dataTableShowLogs = false;
}

Awesome, thanks!


Implement Setting class

Description
Implements the Setting (TBD: including WriteableSetting) class.
Context:

Settings class already committed is a key-value map with mostly string values (or nested maps)
This Setting class is an individual setting which will be stored in that Settings map with a current (string) value
When fetching the (string) settings they are parsed using the Parser functional interface (callable in Python) to a typed value

WIP for feedback:

Is syntax for callables ok?
Did I properly implement the IntegerParser?
Better idea than the class method for the Java static intSetting() equivalent?

TODO:

[ ] Implement all the other setting types
[ ] Make the Setting class itself writeable
[ ] Tests, of course

Issues Resolved
Part of #84
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

you can also object orient this, including subclassing a simpler Setting into ReadWritableSetting

Hmm. On Java SDK we only use Setting in the code, the only time WriteableSetting comes into play is in the transport action which the user shouldn't have to deal with.  So not sure subclassing is correct but I'll look into separating the transport protocol bits from the plain settings bits.

and creating a SettingsParser#parse passed around as objects.

Thought of this: in Java Parser is a functional interface with a single apply() method.  The problem is that the different implementations have different transport (writeable) comms so we still need the equivalent of all these subclasses, or a big confusing class with all the individual methods inside it.

Should be a IntegerSetting() constructor that does all validation and parsing within.

I like this idea.
One other thing to note: the original port tried to faithfully model the exact Java classes, but I think making the default_value a callable is overcomplicating it from an extension standpoint: it's converted to its base type for transport anyway.  I'll probably simplify that.

This looks good to me!

Still in progress, need to handle TimeValue, ByteSizeValue (similar to the existing), Boolean (simpler), and String (which will involve validator) and then handle the transport actions to communicate them.

I still don't see what the advantage is of making a parser a callable instead of inheriting them all from an abstract class Settings > class Parser that implements a parse method?

I haven't fully decided not to switch yet, but am still leaning toward keeping it as is for now, as it matches the Java-side implementation so porting from Java SDK code is likely more straightforward.  I think we can always switch later; isn't it essentially just replacing __call__ with parse and adding a new interface/abstract parent?  It may make the transport easier at the end with an Optional[Parser].
It's a similar question with the validator and default value that I haven't fully decided on either and would probably want to implement similarly for all of them.   Validator is much more obviously something we'd do a similar parent class for, but right now is only implemented for Strings.    Default value is interesting as it takes a Settings argument but in the default (pun intended) case completely ignores it; the lambda notation makes that super-easy to do but leaves the door open for implementing a callable that reads another setting and chooses a default based on that... although we're stuck in the situation where we have to communicate that over transport and we may end up just wanting the return type there for simplicity.
TLDR: leaving as is for now but thinking it's an easy switch later.  This whole setting system is more complex than you'd think and I'm handling it bite by bite (byte by byte?).

isn't it essentially just replacing __call__ with parse and adding a new interface/abstract parent? It may make the tra

Yes. I don't feel strongly about it. I like OO over function calls. Similarly you wouldn't build a SettingsProviderManagerFactoryControllerExecutor just because it exists in Java, but I get your point ;) I would lean on parse and validate and maybe comment about it.
LOL the XKCD is a great reminder that programming is just copy paste from SO (or another Java codebase)

copy paste from SO

Can't do that in an Apache project ;)
I will admit that the TimeValue class __str__ elegance was inspired by a certain LLM.   I improved on it, of course.

Related to the XKCD, this is still one of the favorite comments I've left in code: https://github.com/oshi/oshi/blob/35d3bd754fafdb82c72bcb0976809d8700b60aff/oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsHWDiskStore.java#L129-L132

Related to the XKCD, this is still one of the favorite pair of comments I've left in code: https://github.com/oshi/oshi/blob/35d3bd754fafdb82c72bcb0976809d8700b60aff/oshi-core/src/main/java/oshi/hardware/platform/windows/WindowsHWDiskStore.java#L122-L132

I couldn't get past the fact that PHYSICALDRIVE_PREFIX was not spelled PHYSICAL_DRIVE_PREFIX.

I couldn't get past the fact that PHYSICALDRIVE_PREFIX was not spelled PHYSICAL_DRIVE_PREFIX.

Blame Microsoft.
String PHYSICALDRIVE_PREFIX = "\\\\.\\PHYSICALDRIVE";

is just copy paste from SO

True story. I'm starting on the boolean parser.  I dutifully hit Google with the search term "python str to bool" and got this as the top result:

Promising, eh?   But clicking on the actual link leads to this:

Also, a boolean Christmas XKCD:

Amazing how one class can turn into 32 files and 1402 lines of code...
Ready for review (you might just want to look at the last 2 commits).


Create LICENSE

I guess technically develop if we are using the agreed system! Sorry I'll re-issue another pull request.


Introduce segment event enum

Using this approach allows us to add, find usages, and modify the actual event string being sent in one location.

find usages
could't we just search trackSegmentEvent?  (not trying to nit-pick, just want to understand what your thought process was on that part)

find usages

could't we just search trackSegmentEvent? (not trying to nit-pick, just want to understand what your thought process was on that part)

Great question - not usages of the function, find usages of a particular event. Using an enum (for example) allows you to find everywhere a value from it is referenced, everywhere we send a particular event. Using a string union you will need to do a full-text search (AFAIK).

side note regarding the tests failing (Cannot read property 'documentCreate' of undefined): I thought maybe this was to due with ts-jest having a hard time (perhaps because babel) with enums, but if you add console.log(ForceToWorkspace.current); before the line that's failing it works fine. not sure if that's helpful to you but I didn't have more than a few seconds to look into it inbetween other work - but I thought I'd at least mention.

Looks like it's (potentially) a result of circular imports, but if an enum is exported from it's own individual file as a top-level import, it's fine (and better than using const enums IMO)
I think lets cautiously roll with enums, unless there is a strong preference to not use them

ahh.  I thought it might be that.  I tried to look for what it might be but with as many imports as the source and destination files had I gave up pretty fast, heh.
I'm not a fan of enums since discriminated unions got so powerful.  I even think that if discriminated unions had been this powerful from the beginning that enums would never have happened.
Still, though, it's like... it's fine. haha.
Let's go with this for now - it's an improvement (I think we would all agree on that) - and see where it takes us.

If there's anything I'd suggest it's that we consider making a zero-dependency package, entities (or something, not married to the name), that can contain just the types (and enums) we need throughout the monorepo.  That way there's never a circular dependency and we can also have a good place to share types.  Something like this enum would be a good candidate for that package.
We could, of course, take it a step further and (instead) make a (also zero dependency (well, zero internal dependencies)) package, common (or whatever name we decide) that will have all the things I mentioned above as well as any common code that we might want in other places.  E.g. all the helper functions and type guards like isWorkspace and all the constants and such.
Just a thought.

If there's anything I'd suggest it's that we consider making a zero-dependency package, entities (or something, not married to the name), that can contain just the types (and enums) we need throughout the monorepo. That way there's never a circular dependency and we can also have a good place to share types. Something like this enum would be a good candidate for that package.
We could, of course, take it a step further and (instead) make a (also zero dependency (well, zero internal dependencies)) package, common (or whatever name we decide) that will have all the things I mentioned above as well as any common code that we might want in other places. E.g. all the helper functions and type guards like isWorkspace and all the constants and such.
Just a thought.

Yep I'm on board with that and definitely think it would be useful


[MAINT] use scm for version

setup hatch-vcs to use git to keep track of the version
gitignore the file generated by hatch-vcs on install

@bthirion

Thx !


docs(hitsPerPageSelector): Add widget description

Was previously using the hits description

Ah I thought the description was computed from jsdoc

Nope, only the options

Ah I thought the description was computed from jsdoc

@bobylito maybe we could use our JSDoc parser for descriptions as well?


Visual artifacting near sharp cliffs

This is definitely an issue with the sensor but can likely be solved by applying a smoothing filter to the depth frame before it is passed to the shader. First however I need to understand the nature of these artifacts like where they are in 3d space.

Upon testing, this issue does not appear to be a problem in real applications. Therefore this issue is closed


[verilog mode] add .sv and .svh extensions

Having the same extension associated with multiple languages isn't a good idea -- I see that was already the case for .v, but that should probably be fixed too. The idea of this metadata is being able to map from an extension to a (single) mode.

".v" is attached to two mime, but one mode only: verilog

PR updated, I add sv and svh only for SystemVerilog

Thanks! Merged as d02b1198


Tag v4.1.12 is gone?

Hello,
As one of the maintainer of the Ansible stack on Arch Linux's side, I noticed that the v4.1.12 tag has been deleted.
Apart from Debian, that still has the said tag in their source's clone, multiple distributions now have an ansible-compat package based on an non-existing upstream tag, preventing rebuilds and breaking reproducibility (until another stable tag is made at least).
Is there any specific reason for this deletion? If so, does some more tags removal should be expected in the future?

@Antiz96 I removed it because the tag was never published on pypi and GHA config did not allow to retrigger the publish process. Let me see if I can publish it.
No expected tag removals.

I pushed the tag back, should be identical.

Can confirm, thanks for you quick actions!


Minecart: does not trigger heavy trigger type legacy triggers

Minecart can't trigger legacy triggers (heavy) for example to open a door.
Probably because it was intended not to trigger but only trigger stuff when hitting the lever with a wrench.
A workaround is to simply use rollingball trick.

not really needed since you can now trigger based on vehicles with lua.


Add install instructions for Winget

Gleam is available in Winget. See also:

https://github.com/gleam-lang/gleam/pull/2699

Excellent! Though I see the package is out-of-date. If we can get the package consistently up to date we can then add this to the website. Thank you


Extend table functionality: Styles corrections for grouping and minor features/adjustments.

Definition of Done:

[X] Corrections for group by functionality.
Note: These are just style fixes to existing group functionality, but not a re-work of the current grouping functionality.
[X] Added possibility to display the count of grouped rows by parsing passed string in groupBy callback.

Internal changes:

If there are no table rows and you click on the column to group, don't emit group
event to group table rows by column because it can lead to the problem
when you can not do ungroup.
A corresponding computed property (haveRows) has been added for this change.
If column is not grouped but it was grouped previously, we need to reset groupParent value,
that we set in createGroupRow method before, to avoid rows style issue after ungrouping.
Based on groupParent value we add padding-left to rows
(see the parent computed property in cell.js file) to show nesting level.
Grouped row has sort icon, as before.
Changes for header cell classes:

Has cursor-pointe class, if:

The column is sortable.
The column has direction point.

The TableProperties component has been refactored:

The reactive checkedColumns model was renamed to checkedTableProperties, to make it clearer what this variable is about.
The setCheckedColumns method was renamed to setCheckedTableProperties.
The selectedColumns model name was renamed to selectedTablePropertyColumns.
The transformedColumns  method was renamed to transformedTablePropertyColumns.

Added two new utils functions:

evalCode - Allows to executed the passed code as string.
interpolateStr - Allows to parse string with {} brackets.

In createGroupRow method call the column groupBy method for string interpolation.
String interpolation is a good approach for groupBy method since we can not paste groupedRows.length to groupBy callback function in rowValue method, because on that moment we don't know the actual size of grouped rows, and we risk to paste the undefined value to callback that is not correct.
If the column is grouped, you can not hide this column using table properties manager, since in this way we can not group rows by hidden row. We can re-work this logic in order we could hide grouped column, but I think it can take a decent amount of time, since it will be necessary to pass the current grouping logic.
In transformedColumns computed property (TableProperties.vue file) added disabled property to the column, that calculates whether the column is disabled or not.

Wrong styles after ungrouping can be noticed on edge branch, also on the develop branch, which is the stable branch of this library. Also you could notice that if the column is grouped  and you want to show the nested rows of some row, nested items would be at the same level as parent row. It is strange that this problem was not noticed earlier.
For example, on edge or develop branch to reproduce the problem  you could do the following steps:

Run app locally.
Group table rows by Function column (click on the icon to the right of the sort icon).
Ungroup rows.
The lines are indented chaotically on the left, this can be seen from the first column.
Group rows by Function column.
Scroll to the Office Manager grouped row.
Click on the "expand" icon of the row with id 5421.
You can see that first child rows (rows with id 8422 and 5407) at same level as the row with id 5421, that does not correct.

Testing Done:

Run app locally.
Group table rows by Function column (click on the icon to the right of the sort icon).
Ungroup rows.
Rows should return to their previous position (as they were before sorting).
Group rows by Function column.
Scroll to the Office Manager grouped row.
Click on the row with a value of 5421.
You should see child elements showing the nested level.
Group rows by some column.
Open table properties manager.
The column by which the rows were grouped should disabled (not be clickable).

Put me in reviewers next time, please


Alert Component

Requirements
Create an alert component that:

Has large and small size options.
Has an optional icon (can be hard coded for now until icon component is created/refined).
Optional: Has basic style options like 'Warning", "Error" "Success" "Basic" (see below).

Example

https://designsystem.digital.gov/components/alert/

Accessibility Guidelines
W3.org

Going to give this a shot.

Opened https://github.com/phase2/outline/pull/60.


Add startup / shutdown methods to Agents in Core and AgentChat

What
Across many usecases, agents might need to provision some resources that take a while to startup (e.g., a db connection, a webbrowser instance, a code executor endpoint, a file handle etc). In some ways similar to how FastAPI handles startup and shutdown via lifespan events.
Similarly these resources need to be shut down once the agent is done running e.g., close a db connection, destroy a browser instance, close files etc.
This issue proposes adding some protocol spec to Agents in core and agentchat that requires agents to implement startup and shutdown methods that the runtime can call.
How
Some proposed steps toward accomplishing this

[ ] Design a protocol for startup/shutdown lifecycle methods
[ ] Update the core runtime to honor these methods
[ ] Update core and agentchat agent base agent classes to follow protocol
[ ] Update example agents like websurfer, assistant agent in agentchat to use this design where appropriate
[ ] Add documentation and examples for implementing startup/shutdown in custom agents
[ ] Consider cases for resource pooling and if the framework should enable this e.g., a browser instance

This should not be a breaking change for any users of existing core or agentchat agents. However users of custom agents might need to implement these methods?
Related to #4699

Proposal:
Added methods
Add the followings to both AgentChat and Core agent protocols:
async def activate(self) -> None:
  ...

async def deactivate(self) -> None:
  ...

### How are they used

How these two methods are used depends on the agent runtime implementation. For `SingleThreadedAgentRuntime`, each agent is recorded with a flag indicating whether has been activated or not.

For simplicity, the initial implementation:

`activate` is called when:

- A message is delivered to the agent instance, and the agent is not activated -- lazy activation.

`deactivate` is called when:

- The runtime is stopped when any of the stop* methods are called.


Running Puppeteer is giving an error

Steps to reproduce
Tell us about your environment:

Puppeteer version: ^8.0.0
Platform / OS version: Windows
URLs (if applicable):
Node.js version: v14.15.4

What steps will reproduce the problem?
Please include code that reproduces the issue.

I simply ran my  .js file with node and it gave me the error
My file name is index.js  so after doing node index.js it's showing this error

What is the expected result?
I expected that my automated code will run smoothly to give expected results
What happens instead?
I got this error :
Images for UnhandledPromiseRejectionWarning: TimeoutError: Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r856583 is guaranteed to work. at Timeout.onTimeout (C:\Users\dell\OneDrive\Desktop\Side Projects\My-Puppeteer-Projects\Project2\node_modules\puppeteer\lib\cjs\puppeteer\node\BrowserRunner.js:204:20) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) (Use node --trace-warnings ... to show where the warning was created) (node:4368) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:4368) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I have same problem. I'm not found a solution.


Upgrade intl package dependency to 0.19.0

In Flutter version 3.22.0 intl is pinned to version 0.19.0 by flutter_localizations from the flutter SDK, so aws_cloudwatch doesn't match this requirement.
Thanks.

I have resolved the dependency in the most recent version. Please try version 1.0.1


docs: Next/previous navigation arrows should stack vertically

In the Hugo documentation, the next/previous navigation arrows aren't stacked vertically, which takes unnecessary space.

Closed by request. :)


test(routes): Convert ginkgo tests to go test

Description:
Refactor ginkgo tests to use Go test and testify

Affected area:

New Functionality      [ ]
Documentation          [ ]
Install                [ ]
Control Plane          [ ]
CLI Tool               [ ]
Certificate Management [ ]
Networking             [ ]
Metrics                [ ]
SMI Policy             [ ]
Security               [ ]
Tests                  [X]
CI System              [ ]
Performance            [ ]
Other                  [ ]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?

No

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@54a92da). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1783   +/-   ##
=======================================
  Coverage        ?   55.42%
=======================================
  Files           ?      125
  Lines           ?     5166
  Branches        ?        0
=======================================
  Hits            ?     2863
  Misses          ?     2301
  Partials        ?        2

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 54a92da...eda7655. Read the comment docs.


0.9.3 PIL decoder falis to load image

@olokelo thanks for your quick response and the release, but there seem to be an issue with it, the PIL integration
Traceback (most recent call last):
  File "/home/runner/work/labs.projektemacher.org/labs.projektemacher.org/./scripts/./image-splitter.py", line 146, in <module>
    im = Image.open(args.image)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/PIL/Image.py", line 3280, in open
    raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file '/home/runner/work/labs.projektemacher.org/labs.projektemacher.org/content/future/3d/jaffa/front.jxl'

The code is unchanged, only the dependency has been upgraded

Thanks for reporting the issue. I've tested Pillow before release and it was working.
Could you please verify if you're able to open this image with using jxlpy.JXLPyDecoder?
I wrote a quick snippet of code and it seems to be working. You can also test it on your end.
from PIL import Image
from jxlpy import JXLImagePlugin
from io import BytesIO
import requests
import jxlpy

print("jxlpy: {}, libjxl: {}".format(jxlpy.__version__, jxlpy._jxl_version))

r = requests.get("https://jpegxl.info/logo.jxl")

bio = BytesIO(r.content)
bio.seek(0)
im = Image.open(bio)
print(im.size, im.mode)

Gives:
jxlpy: 0.9.3, libjxl: 0.9.1
(1000, 1000) RGB

Thanks for the hint, I've used your snippet do debug the issue. Turned out that I had pillow pinned to an old version. It's fixed now. Tomorrow I'll test building on MacOS ARM, maybe I'll need your help again.


Rework overview page to reference new sections rather than having individual links

Is your documentation request related to a problem? Please describe.

Page: https://thin-edge.github.io/thin-edge.io/
Describe the improvement you'd like

Additional context

The above page has been updated (though still in the "next" version):

https://thin-edge.github.io/thin-edge.io/next/


Placed Automated Inscriber And Crashed Server

Here is the crash report http://pastebin.com/JKkcr3Wm

The normal builds of AE2 Stuff do not support AE2 rv3 Alpha, they are meant for rv2 Stable.
Use the builds here instead - http://jenkins.bdew.net/job/ae2stuff-1.7.10-rv3/


added constructor for linear layer without bias

The bias in the original Linear layer from Pytorch is optional and may be skipped (https://pytorch.org/docs/stable/_modules/torch/nn/modules/linear.html#Linear)
A few architectures do not use a bias for specific linear layer. For example are the linear layers with weight tied to the input embeddings for encoder/decoder architectures or masked language models need to be equivalent to a reverse embedding layer and therefore do not use a bias (e.g. GPT2).
The current API forces the bias to be register to the varstore. This PR proposes a constructor for the linear layer that would allow creating linear layers without bias.

adds a bias boolean parameter
when set to false, the Linear layer bias is a tensor of zeros not registered to the var store

This is meant to maximize compatibility with current code and use a single Linear layer. Alternatives would be :

set the bias in the linear layer to be of type Option, potentially breaking existing code accessing the bias Tensor directly
create a new LinearWithoutBias module that would duplicate a significant amount of code from the Linear layer

Thanks for the PR. I like the idea of reusing of the existing linear layer in this case but maybe would it be possible to make it even simpler by adding the bias boolean in LinearConfig rather than having this linear2 function.
As most use cases would customize Default::default() for the linear config, I would not expect this to break much code using this layer as long as we default to true.
The only drawback I can see is that it's possible to specify some bs_init value and to set bias to false which is a bit weird but I think it's reasonably fine (ideally we would have three cases for the bias: no-bias, bias-with-default-init, bias-with-custom-init, but switching to this is more likely to break existing code).
Let me know if this sounds reasonable. If so happy to get an updated PR for it or to make the changes myself if you prefer.

Makes sense - I was concerned of breaking existing implementations specifying the LinearConfig


one to one mapping of job-queue and computing environment

Is your request related to a new offering from AWS?
Is this functionality available in the AWS provider for Terraform? See CHANGELOG.md, too.

Yes ✅: please list the AWS provider version which introduced this functionality

Is your request related to a problem? Please describe.

in this registry, each job queue is mapped to each computing environment.  what if I want one-to-one mapping of job queue and compute env like
high_priority_job_queue -> farget_compute_env
low_priority_job_queue -> farget_spot_compute_env
Describe the solution you'd like.

example covering the above case, or a small change that I can do in module for personal use
Describe alternatives you've considered.

NA
Additional context

NA

I think you can solve this by just creating 2 separate modules in your own terraform. You'd have to duplicate job definitions if those are common for you but that's not the end of the world. I put this module in it's own module in my project and set up variables to create the 2 separate queues and compute environments for me. If that doesn't work for you, this is just a convenience module. You can always just create the same resources individually. It's a little more work but, honestly, not a ton.

I think you can solve this by just creating 2 separate modules in your own terraform. You'd have to duplicate job definitions if those are common for you but that's not the end of the world. I put this module in it's own module in my project and set up variables to create the 2 separate queues and compute environments for me. If that doesn't work for you, this is just a convenience module. You can always just create the same resources individually. It's a little more work but, honestly, not a ton.

Yup, I took reference from your module and created two modules for my use case.


feat: update dependencies / add peer dependency to @babel/core

Fixes #133

BTW: @akudev - I needed to remove the restrictions from admins again since otherwise the release procedure doesn't work as expected anymore!

BTW: @akudev - I needed to remove the restrictions from admins again since otherwise the release procedure doesn't work as expected anymore!

Yeah, I also had to temporarily disable it for my release.


Automate basic browser tests

Right now, testing of the front-end is manual: run gulp build, open the browser, view the homepage, click on some of the browser links.
Better to automate this into the travis build using Selenium or PhantomJS.

@davidgarber want to take a look at this?

I would start with http://webdriver.io/

Derp right, for angular we should be using protractor.

:+1:


Action and Func Delegates in C# [<EMAIL_ADDRESS>]

The project runs successfully in my device but not here. Please review


i changed beautiful login page

I added a CSS file .
I added an image file .
I change the whole file to a beautiful login page.
using HTML ,CSS,JS.
check my work and please merge

Thank you

remove the post route to admin.php since this project does not use php. #2

remove the post route to admin.php since this project does not use php. #2

ok i will fix and sent you


Peaks Files

Quick question: Where do the peaks files come from? See this line in the workflow example. I think I must have missed a step along the way...

The peaks file is currently supposed to be provided by the user. It's provides a list of regions to be tested (e.g. exons or ChIP-seq peaks) and corresponding test SNPs. We need to document this better, and we're also hoping to provide a script that can be used to generate this file for ChIP-seq peaks or transcripts.

Hi Nick, we've improved the documentation on how to make the file, and we also added a script that can be used to generate one. This is described here:
https://github.com/bmvdgeijn/WASP/tree/master/CHT#step-5
The script we provide should be able to generate a reasonable set of peaks and test SNPs, but if you have a specific set of SNPs and regions (e.g. peaks or genes) that you want to test you may need to write something custom...
Hope this helps.


OCPBUGS-22104: disable query link for non metric-based alerts

If the user clicks on the query for a log based alert, is redirected to the metrics. This PR disables the link for non metric based alerts.

/cherry-pick release-4.14

/jira refresh


GH-1397 Explain the IP to use for Nginx reverse proxy

Added some notes on what IP address to use when using Nginx as reverse proxy in different scenarios as we previously had some people getting confused about it.

Thanks!


RC indicators and delegations

What does this PR?
This PR provides a feature that allows users to delegate resource credit to another user, it also allows users to update or delete existing delegations.
Users can see more information about their resource credits by clicking on the Rc progress bar in user menu. Those information are available in the modal that pops up. Outgoing and incoming are clickable, when clicked, a modal consisting of incoming and outgoing delegations list respectively pops up.
Screenshot/Video
View Rc actions on loom
View UI responsiveness on loom
Github issue
find issue here

@Adesojisouljay left comments on first loom video, please check.

@Adesojisouljay couple issues remaining:

updating delegation has faulty logic, when I try to update delegation, it opens dialog but amount changing keeps next button disabled until To username is modified again.
deleting delegation should ask for confirmation before submitting transaction, just like here: https://github.com/ecency/ecency-vision/pull/1174
RC modal only shows when you click progress bar, but let's make it open when clicking on text/label as well.
Have one more option in Modal that says or shows or links to FAQ page with specific description to explain what RC is in more details.
Fix delete delegation it is using delegateRCKc function which is wrong, should use delegateRC plainly because it is posting operation.
Clean up code console.logs and unnecessary delegateRCKc and delegateRCHot functions
info text can be removed from modal Title and label

All noted and would be rounded up, thanks 🙏
On Tue, 17 Jan 2023, 3:07 am Feruz M, @.***> wrote:

@.**** commented on this pull request.
In src/common/components/rc-info/index.tsx
https://github.com/ecency/ecency-vision/pull/1076#discussion_r1071676755
:

     console.log(r)

       const outGoing = r.map((a: any) => a.delegated_rc);

       const delegated = outGoing[0]

       const formatOutGoing: any =  rcFormatter(delegated)

       setDelegated(formatOutGoing);

       const availableResourceCredit: any = r.map((a: any) => a.rc_manabar.current_mana);

       console.log(availableResourceCredit)

       // const formatRc: any = rcFormatter(Number(availableResourceCredit));

       setresourceCredit(availableResourceCredit);

       const inComing: any = r.map((a: any) => Number(a.received_delegated_rc));

       const formatIncoming = rcFormatter(inComing);

       setReceivedDelegation(formatIncoming);

     })

}, []);

const rcFormatter = (num: number) => {

@Adesojisouljay https://github.com/Adesojisouljay I have moved this
function to helpers, please merge development branch into this and use
function from helpers. Reference: #1194
https://github.com/ecency/ecency-vision/pull/1194
—
Reply to this email directly, view it on GitHub
https://github.com/ecency/ecency-vision/pull/1076#pullrequestreview-1250795043,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVAB2UXVP3HF2N43YOFYG5TWSX5GRANCNFSM6AAAAAARIDEQEY
.
You are receiving this because you were mentioned.Message ID:
@.***>

leaving here for reference, suggestion to improve UI modal

Noted,  thanks🙏
On Tue, 24 Jan 2023, 9:12 am Feruz M, @.***> wrote:

leaving here for reference, suggestion to improve UI modal
https://camo.githubusercontent.com/5386c8868cd566829cdc16a7e2f977be04d21bfc20b218d3479c1d8a150f3f00/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f3738303137353337323638333331333139322f313036373335303837363431323436313037362f696d6167652e706e67
—
Reply to this email directly, view it on GitHub
https://github.com/ecency/ecency-vision/pull/1076#issuecomment-1401529178,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVAB2UTFIELR2QZWUE65N53WT6FINANCNFSM6AAAAAARIDEQEY
.
You are receiving this because you were mentioned.Message ID:
@.***>


Refactor server communication to JSON-RPC

By default the Theia extension and the React components do not communicate with the Trace Compass server via the Theia backend, but rather connect to a separate exposed port (e.g. 8080) via REST. This approach has some downsides. For example in cloud deployments the additional port needs to be exposed as well.
We would like to suggest to refactor the communication in the Theia extension to delegate the communication via Theia's JSON-RPC from the Theia frontend over the Theia backend to the Trace Compass server and back.
Of course the pure React components should stay independent of Theia and allow to connect to arbitrary end points.
Are you interested in this change? If yes, we will gladly contribute an initial implementation.

Thank you very much for this proposal. We are interested. I have some comment and questions about this.
The idea to directly communicate to the Trace Server was to minimize the latency for back-end calls as well as to allow the trace server to be deployed outside from the place where the traces are location. The latter case is for future and not supported at all. However, I see the advantage of not having to do special environment setup in the cloud deployment case.
First of all, I as far as I understand, the communication with the trace server will be basically like this:
Theia FE <--JSON RPC--> Theia BE <--TSP over HTTP--> Trace Server
Not know the implementation details, I'm wondering how the translation from JSON RPC to the HTTP message will be done and how the additional latency can be minimized. Could you please elaborate about this?
Secondly, we are currently working on making a VsCode trace extension that can be installed in Theia as well as VsCode. Any suggestion on how a similar JSON RPC communication could be achieved when installing the vscode-trace-extension in Theia and VsCode? I mean the back-end / front-end separation for cloud deployment.
Regards
Bernd

Thank you for the response! First of all, your understanding of the suggested communication flow is correct.
Regarding your first question: Generally speaking the idea is to encapsulate the communication into a client whose implementation then differs according to the environment.
For an example of this you could take a look at the ModelServerClient for the eclipse-emfcloud/emfcloud-modelserver. It is basically the architecure that we would propose. It consists of:

the REST client ModelServerClientV2
creation of the ConnectionHandler on the backend
creation of the proxy on the frontend
an example for using the proxy on the frontend

Looking at the existing Trace Compass code we realized that you already use a client pattern with the
TspClient. On a first glance most parameters and return values seem to be serializable, so we should be able to integrate with the Theia RPC mechanism without requiring too many modifications or customizations. The proxied TspClient is then handed over to the rendering code instead of a "real" instance.
Regarding performance: Generally speaking the new communication will have a higher latency because there is an additional call in the communication flow. However this additional call is then usually performed locally as the Theia backend and TraceCompass Server likely run on the same machine. Theia's JSON-RPC mechanism is already optimized to not introduce too much latency (see https://github.com/eclipse-theia/theia/issues/10684). Clicking around in the example Trace Viewer doesn't seem to create too many requests so naively we would expect the additional latency to not be noticeable by an user.
In any case, the behavior can be made easily customizable by running the TspClient in the frontend instead of the backend. So if any developer would prefer the client side communication for their use cases this would still be supported.
Within the VSCode extension the same patterns can be used. Just instead of using Theia's RPC utils to create a TspClient proxy you would need to implement an own proxy running in the webview. This proxy then uses the message mechanism between webview and extension to delegate the calls to the TspClient running within the extension (i.e. the VS Code / Theia Node backend).
Should it be necessary you could make this configurable too and instantiate the real client in the webview if you see this as a valid use case.

Thanks a lot for all the information. I think some additional questions might pop up when reviewing and integrating this proposal.
About the latency, right now the biggest contributors to the latency is the serialisation server-side and deserialisation client-side of larger messages. The transport latency was a only small percentage in that case. As long as there is no additional serialisation/deserialisation then the added latency should be ok.
Please note, that in the tsp-typescript-client there are conversions to variables of type bigint to allow long timestamps. bigint can't be serialised/deserialised with the standard JSON converter. I just wanted to mention that in case you run into this issue. If the deserialisation is only done once at the end of the chain then there shouldn't be an issue.

Do you have any time frame when this can be contributed? Please let me know. Thanks.

I will start on monday, but i have short week next week. I can probably provide a PR for this the week after, if this is fine by you?

Perfect. That's fast. Looking forward seeing the code.

Just a quick update: I was able to migrate the communication to JSON-RPC, however i still need some time to test and take a look at some of the specifics of the extension, like changing the url of the server via a setting and so on. So i will likely be able to open a PR sometime next week, if this is fine.

Thanks for the update.


Deprecates onWillAccept and onAccept callbacks in DragTarget.

This PR deprecates onWillAccept and onAccept over onWillAcceptWithDetails and onAcceptWithDetails.
Fixes: #133347
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.

See https://discord.com/channels/608014603317936148/611619879153565715/1154915603577049162 for contributor access invite. I really appreciate your contributions over the years, thanks for continuing to make Flutter better.

I've removed the autosubmit because I am curious for your thoughts on #133136. I noticed there is a bit of a conundrum for folks that may have apps that allow the data to be nullable. The new methods that provide the details do not support data being nullable.
WDYT for folks that are migrating this change and have a case where data is null?

Can you go ahead and stage this and I can run extra testing to find out just how breaking it will be (hopefully not too breaking since these callbacks are new)? Then based on the results we can communicate the change before landing it.

Created a separate PR for handling this change here.

Just leaving a note for keeping track, this is currently waiting on https://github.com/flutter/flutter/pull/136413

Given https://github.com/flutter/flutter/pull/136413 is blocked and may need to reconsidering on approach, I think we can move forward with this change.


Couldnot Download Pretrained Weights file using axel or aria2

I tried Downloading using my preferred downloader axel and aria2 on ubuntu but it downloads blank file . Why so?

It's difficult to say conclusively why you're getting a blank file without addional information, but did you specify a filename? E.g., the following works for me on MacOS:
# Install utilities
brew install wget axel aria2

# Set up download test
mkdir -p /tmp/clinicalBERT
cd /tmp/clinicalBERT
mkdir wget axel aria2

# Download
cd wget
wget -O pretrained_bert_tf.tar.gz https://www.dropbox.com/s/8armk04fu16algz/pretrained_bert_tf.tar.gz?dl=1
cd -

cd axel
axel -o pretrained_bert_tf.tar.gz https://www.dropbox.com/s/8armk04fu16algz/pretrained_bert_tf.tar.gz?dl=1
cd -

cd aria2
aria2c -o pretrained_bert_tf.tar.gz https://www.dropbox.com/s/8armk04fu16algz/pretrained_bert_tf.tar.gz?dl=1
cd -

# Check file sizes
du -sh *
# 6.0G	aria2
# 6.0G	axel
# 6.0G	wget

# Compare to wget
cmp wget/pretrained_bert_tf.tar.gz axel/pretrained_bert_tf.tar.gz
cmp wget/pretrained_bert_tf.tar.gz aria2/pretrained_bert_tf.tar.gz
# No output -> all files the same


[PornHub] Unable to extract encoded url

Checklist

[X] I'm reporting a broken site
[X] I've verified that I'm running yt-dlp version 2022.06.29 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
No response
Provide a description that is worded well enough to be understood
[PornHub] Unable to download JSON metadata: HTTP Error 403: Forbidden
How to fix it?
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
F:\downloader\pornhub>ytdl-patched https://www.pornhub.com/model/katekuray -F --verbose
[debug] Command-line config: ['https://www.pornhub.com/model/katekuray', '-F', '--verbose']
[debug] User config "D:\OS Files\Users\X\AppData\Roaming\yt-dlp\config": ['--continue', '--http-chunk-size', '1M', '--buffer-size', '16K', '--sub-lang', 'english', '--embed-metadata', '--abort-on-unavailable-fragment', '-o', '%(uploader)s\\%(title)s [%(id)s].%(ext)s', '-f', 'bestvideo[ext=mp4]+bestaudio[ext=m4a]', '--ffmpeg-location', 'D:\\OS Files\\Program Files\\ffmpeg\\bin', '--no-lock']
[debug] Encodings: locale cp65001, fs utf-8, pref cp65001, out utf-8, error utf-8, screen utf-8
[debug] ytdl-patched version 2022.06.29
[debug] ** The command you are running is not yt-dlp.
[debug] ** Please make bug reports at https://github.com/ytdl-patched/ytdl-patched/issues/new/choose instead.
[debug] Lazy loading extractors is disabled
[debug] Python 3.10.4 (CPython 64bit) - Windows-10-10.0.19043-SP0
[debug] Checking exe version: "D:\OS Files\Program Files\ffmpeg\bin\ffmpeg" -bsfs
[debug] Checking exe version: "D:\OS Files\Program Files\ffmpeg\bin\ffprobe" -bsfs
[debug] exe versions: ffmpeg 5.0.1-essentials_build-www.gyan.dev (setts), ffprobe 5.0.1-essentials_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.14.1, WebSocketsWrapper-None, brotli-1.0.9, certifi-2021.10.08, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.2
[debug] Proxy map: {}
[debug] [PornHubUser] Extracting URL: https://www.pornhub.com/model/katekuray
[debug] [PornHubPagedVideoList] Extracting URL: https://www.pornhub.com/model/katekuray/videos
[download] Downloading playlist: model/katekuray/videos
[PornHubPagedVideoList] model/katekuray/videos: Downloading page 1
[PornHubPagedVideoList] [debug] Fetching webpage from https://www.pornhub.com/model/katekuray/videos
[PornHubPagedVideoList] model/katekuray/videos: Downloading page 2
[PornHubPagedVideoList] [debug] Fetching webpage from https://www.pornhub.com/model/katekuray/videos
[PornHubPagedVideoList] Playlist model/katekuray/videos: Downloading 107 videos of 107
[download] Downloading video 11 of 107
[PornHub] ph5f71889303342: Downloading pc webpage
[PornHub] ph5f71889303342: Downloading m3u8 information
[PornHub] ph5f71889303342: Downloading m3u8 information
[PornHub] ph5f71889303342: Downloading m3u8 information
[PornHub] ph5f71889303342: Downloading m3u8 information
[PornHub] ph5f71889303342: Downloading JSON metadata
WARNING: [PornHub] Unable to download JSON metadata: HTTP Error 403: Forbidden
[info] Available formats for ph5f71889303342:
ID         EXT RESOLUTION FPS │  FILESIZE   TBR PROTO │ VCODEC        VBR ACODEC    ABR
───────────────────────────────────────────────────────────────────────────────────────
hls-509-0  mp4 426x240     59 │ ~ 4.48MiB  509k m3u8  │ avc1.64001e  509k mp4a.40.2  0k
hls-509-1  mp4 426x240     59 │ ~ 4.48MiB  509k m3u8  │ avc1.64001e  509k mp4a.40.2  0k
hls-902-0  mp4 854x480     59 │ ~ 7.93MiB  902k m3u8  │ avc1.64001f  902k mp4a.40.2  0k
hls-902-1  mp4 854x480     59 │ ~ 7.93MiB  902k m3u8  │ avc1.64001f  902k mp4a.40.2  0k
hls-1614-0 mp4 1280x720    59 │ ~14.19MiB 1614k m3u8  │ avc1.640020 1614k mp4a.40.2  0k
hls-1614-1 mp4 1280x720    59 │ ~14.19MiB 1614k m3u8  │ avc1.640020 1614k mp4a.40.2  0k
hls-2769   mp4 1920x1080   59 │ ~24.34MiB 2769k m3u8  │ avc1.64002a 2769k mp4a.40.2  0k

[debug] ** The command you are running is not yt-dlp.
[debug] ** Please make bug reports at https://github.com/ytdl-patched/ytdl-patched/issues/new/choose instead.

yt-dlp -vU https://www.pornhub.com/model/katekuray
[debug] Command-line config: ['-vU', 'https://www.pornhub.com/model/katekuray']
[debug] User config "/home/nico/.config/yt-dlp/config": ['-o', '/dev/shm/test-dlp/%(title)s.%(ext)s', '-f', 'bestvideo[height<=1080][ext=mp4][vcodec!*=av01]+bestaudio[ext=m4a]/best[ext=mp4]/best', '--no-mtime', '--add-metadata', '--convert-thumbnails', 'jpg', '--embed-thumbnail', '--ppa', 'ThumbnailsConvertor:-q:v 1', '--ppa', 'ffmpeg:-metadata synopsis=""', '--force-ipv4', '--sponsorblock-remove', 'all', '--console-title', '--downloader', 'aria2c', '--downloader-args', 'aria2c:--http-accept-gzip=true -x 10 -s 10 -j 10 -k 1M --log-level=info --file-allocation=none']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.07.10 [258d88f30] (zip)
[debug] Python 3.8.10 (CPython 64bit) - Linux-5.4.0-121-generic-x86_64-with-glibc2.29 (glibc 2.31)
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg N-107246-g59a58d1a85-Nico-20220626 (fdk,setts), ffprobe N-107246-g59a58d1a85-Nico-20220626, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.12.0, brotli-1.0.9, certifi-2019.11.28, mutagen-1.45.1, secretstorage-2.3.1, sqlite3-2.6.0, websockets-10.1
[debug] Proxy map: {}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.06.29, Current version: 2022.07.10
yt-dlp is up to date (2022.07.10)
[debug] [PornHubUser] Extracting URL: https://www.pornhub.com/model/katekuray
[debug] [PornHubPagedVideoList] Extracting URL: https://www.pornhub.com/model/katekuray/videos
[download] Downloading playlist: model/katekuray/videos
[PornHubPagedVideoList] model/katekuray/videos: Downloading page 1
[PornHubPagedVideoList] model/katekuray/videos: Downloading page 2
[PornHubPagedVideoList] Playlist model/katekuray/videos: Downloading 107 videos of 107
[download] Downloading video 1 of 107
[debug] [PornHub] Extracting URL: http://www.pornhub.com/view_video.php?viewkey=ph5fd3531b21ace
[PornHub] ph5fd3531b21ace: Downloading pc webpage
[PornHub] ph5fd3531b21ace: Downloading tv webpage
ERROR: [PornHub] ph5fd3531b21ace: Unable to extract encoded url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 640, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pornhub.py", line 408, in _real_extract
    js_vars = extract_js_vars(
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pornhub.py", line 345, in extract_js_vars
    assignments = self._search_regex(
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1192, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)

[download] Downloading video 2 of 107
[debug] [PornHub] Extracting URL: http://www.pornhub.com/view_video.php?viewkey=ph5fcf2135b4d02
[PornHub] ph5fcf2135b4d02: Downloading pc webpage
[PornHub] ph5fcf2135b4d02: Downloading tv webpage
ERROR: [PornHub] ph5fcf2135b4d02: Unable to extract encoded url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 640, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pornhub.py", line 408, in _real_extract
    js_vars = extract_js_vars(
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pornhub.py", line 345, in extract_js_vars
    assignments = self._search_regex(
  File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1192, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)

[download] Downloading video 3 of 107
[debug] [PornHub] Extracting URL: http://www.pornhub.com/view_video.php?viewkey=ph5fcdd1ca2d34c
[PornHub] ph5fcdd1ca2d34c: Downloading pc webpage
[PornHub] ph5fcdd1ca2d34c: Downloading tv webpage
^C
ERROR: Interrupted by user

Looks like afterdelight has mixed up 2 logs, one with --verbose and one without it
ytdl-pathed shows the URL being requested, unlike yt-dlp

There is no way someone can accidentally mix two logs. There is no point in wasting time when the user is intentionally sabotaging the report. And this is not the first time @afterdelight is posting wrong logs
However I am leaving this issue open because @nicolaasjan has provided proper logs

Each playlist item redirects to a URL like https://www.modelhub.com/video/ph5fd3531b21ace whose media can at a minimum be extracted as HTML5 using the generic extractor.

(Is this issue still monitored or would it be better to start a new thread?)
The Unable to extract encoded url problem reappeard a few days ago.
Here's my verbose output log:
[debug] Command-line config: ['-vU', 'https://www.pornhub.com/view_video.php?viewkey=ph61d5f93ba72b4']
[debug] User config "/Users/xxxxx/.config/yt-dlp/config": ['--force-ipv4', '--format', 'bestvideo[vcodec^=avc1]+bestaudio[ext=m4a]/bestvideo+bestaudio/best', '--embed-chapters', '--embed-metadata', '--embed-subs', '--parse-metadata', ]
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[392389b7d] (pip)
[debug] Python 3.11.2 (CPython arm64 64bit) - macOS-13.2.1-arm64-arm-64bit (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: ffmpeg N-110061-gc0d9327a63 (setts), ffprobe N-110061-gc0d9327a63, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>yt-dlp is up to date<EMAIL_ADDRESS>[PornHub] Extracting URL: https://www.pornhub.com/view_video.php?viewkey=ph61d5f93ba72b4
[PornHub] ph61d5f93ba72b4: Downloading pc webpage
[PornHub] ph61d5f93ba72b4: Downloading tv webpage
ERROR: [PornHub] ph61d5f93ba72b4: Unable to extract encoded url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/opt/homebrew/Cellar/yt-dlp/2023.3.4/libexec/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 694, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/yt-dlp/2023.3.4/libexec/lib/python3.11/site-packages/yt_dlp/extractor/pornhub.py", line 403, in _real_extract
    js_vars = extract_js_vars(
              ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/yt-dlp/2023.3.4/libexec/lib/python3.11/site-packages/yt_dlp/extractor/pornhub.py", line 340, in extract_js_vars
    assignments = self._search_regex(
                  ^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/yt-dlp/2023.3.4/libexec/lib/python3.11/site-packages/yt_dlp/extractor/common.py", line 1242, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)

I have the same issue
yt-dlp -U
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>yt-dlp is up to date<EMAIL_ADDRESS>

yt-dlp -vU https://www.pornhub.com/view_video.php?viewkey=ph6316ae3c33fde [debug] Command-line config: ['-vU', 'https://www.pornhub.com/view_video.php?viewkey=ph6316ae3c33fde'] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version<EMAIL_ADDRESS>[392389b7d] (pip) [debug] Python 3.11.1 (CPython AMD64 64bit) - Windows-10-10.0.19044-SP0 (OpenSSL 1.1.1q  5 Jul 2022) [debug] exe versions: ffmpeg 5.1.2-full_build-www.gyan.dev (setts), ffprobe 5.1.2-full_build-www.gyan.dev [debug] Optional libraries: Cryptodome-3.16.0, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4 [debug] Proxy map: {} [debug] Loaded 1786 extractors [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>yt-dlp is up to date<EMAIL_ADDRESS>[PornHub] Extracting URL: https://www.pornhub.com/view_video.php?viewkey=ph6316ae3c33fde [PornHub] ph6316ae3c33fde: Downloading pc webpage [PornHub] ph6316ae3c33fde: Downloading tv webpage ERROR: [PornHub] ph6316ae3c33fde: Unable to extract encoded url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U   File "C:\Users\joshu\AppData\Roaming\Python\Python311\site-packages\yt_dlp\extractor\common.py", line 694, in extract     ie_result = self._real_extract(url)                 ^^^^^^^^^^^^^^^^^^^^^^^   File "C:\Users\joshu\AppData\Roaming\Python\Python311\site-packages\yt_dlp\extractor\pornhub.py", line 403, in _real_extract     js_vars = extract_js_vars(               ^^^^^^^^^^^^^^^^   File "C:\Users\joshu\AppData\Roaming\Python\Python311\site-packages\yt_dlp\extractor\pornhub.py", line 340, in extract_js_vars     assignments = self._search_regex(                   ^^^^^^^^^^^^^^^^^^^   File "C:\Users\joshu\AppData\Roaming\Python\Python311\site-packages\yt_dlp\extractor\common.py", line 1242, in _search_regex     raise RegexNotFoundError('Unable to extract %s' % _name)

For several days, I have the same problem using my personal connection (French IP address) while the problem disappears using a VPN with a Swiss IP address, for example. Watching the videos directly on the site works well in all cases.

Same problem here:
/usr/local/bin/yt-dlp -vU https://www.pornhub.com/view_video.php?viewkey=6411d10dc49b4
[debug] Command-line config: ['-vU', 'https://www.pornhub.com/view_video.php?viewkey=6411d10dc49b4']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[392389b7d] (zip)
[debug] Python 3.10.0 (CPython x86_64 64bit) - Linux-5.10.0-21-amd64-x86_64-with-glibc2.31 (OpenSSL 1.1.1n  15 Mar 2022, glibc 2.31)
[debug] exe versions: ffmpeg N-62475-g130d19bf20-static (setts), ffprobe N-62475-g130d19bf20-static
[debug] Optional libraries: no_Cryptodome-None, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>Current Build Hash: 91cad9f121c1f6f0a81b747415c46ecba0ff331ed38cc6433040b4ac7b6e15ca
yt-dlp is up to date<EMAIL_ADDRESS>[PornHub] Extracting URL: https://www.pornhub.com/view_video.php?viewkey=6411d10dc49b4
[PornHub] 6411d10dc49b4: Downloading pc webpage
[PornHub] 6411d10dc49b4: Downloading tv webpage
ERROR: [PornHub] 6411d10dc49b4: Unable to extract encoded url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 694, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pornhub.py", line 403, in _real_extract
js_vars = extract_js_vars(
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pornhub.py", line 340, in extract_js_vars
assignments = self._search_regex(
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1242, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)

I think I have the same issue
Cannot download anything from PH and it says "Unable to extract encoded url":
(I did update to latest version with -U)
yt-dlp --verbose https://www.pornhub.com/view_video.php?viewkey=ph5fe22d033ba82
[debug] Command-line config: ['--verbose', 'https://www.pornhub.com/view_video.php?viewkey=ph5fe22d033ba82']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[392389b7d] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19044-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 2022-11-03-git-5ccd4d3060-full_build-www.gyan.dev (setts), ffprobe 2022-11-03-git-5ccd4d3060-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1786 extractors
[PornHub] Extracting URL: https://www.pornhub.com/view_video.php?viewkey=ph5fe22d033ba82
[PornHub] ph5fe22d033ba82: Downloading pc webpage
[PornHub] ph5fe22d033ba82: Downloading tv webpage
ERROR: [PornHub] ph5fe22d033ba82: Unable to extract encoded url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
File "yt_dlp\extractor\common.py", line 694, in extract
File "yt_dlp\extractor\pornhub.py", line 403, in _real_extract
File "yt_dlp\extractor\pornhub.py", line 340, in extract_js_vars
File "yt_dlp\extractor\common.py", line 1242, in _search_regex

I set up a proxy to test if this was a IP/Geo thing but it is not (tried about 10 different countries/IPs):
https://pornhub.com/view_video.php?viewkey=6411d10dc49b4 is playing in the browser for all IPs
/usr/local/bin/yt-dlp -vU --proxy "https://xxxx:xxxx@xxxxsuperproxy.io:22225" https://pornhub.com/view_video.php?viewkey=6411d10dc49b4
[debug] Command-line config: ['-vU', '--proxy', 'https://brd-customer-hl_1e7c506f-zone-data_center:knkdz3jqgb8n@zproxy.lum-superproxy.io:22225', 'https://pornhub.com/view_video.php?viewkey=6411d10dc49b4']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[392389b7d] (zip)
[debug] Python 3.10.0 (CPython x86_64 64bit) - Linux-5.10.0-21-amd64-x86_64-with-glibc2.31 (OpenSSL 1.1.1n  15 Mar 2022, glibc 2.31)
[debug] exe versions: ffmpeg N-62475-g130d19bf20-static (setts), ffprobe N-62475-g130d19bf20-static
[debug] Optional libraries: no_Cryptodome-None, sqlite3-2.6.0
[debug] Proxy map: {'http': 'https://xxxx:xxxx@xxxsuperproxy.io:22225', 'https': 'https://xxx:xxx@xxxsuperproxy.io:22225'}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>Current Build Hash: 91cad9f121c1f6f0a81b747415c46ecba0ff331ed38cc6433040b4ac7b6e15ca
yt-dlp is up to date<EMAIL_ADDRESS>[PornHub] Extracting URL: https://pornhub.com/view_video.php?viewkey=6411d10dc49b4
[PornHub] 6411d10dc49b4: Downloading pc webpage
ERROR: [PornHub] 6411d10dc49b4: Unable to download webpage: <urlopen error Tunnel connection failed: 403 Forbidden> (caused by URLError(OSError('Tunnel connection failed: 403 Forbidden')))
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 694, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pornhub.py", line 279, in _real_extract
webpage = dl_webpage('pc')
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pornhub.py", line 275, in dl_webpage
return self._download_webpage(
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1097, in _download_webpage
return self.__download_webpage(url_or_request, video_id, note, errnote, None, fatal, *args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 1048, in download_content
res = getattr(self, download_handle.name)(url_or_request, video_id, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pornhub.py", line 37, in _download_webpage_handle
ret = dl(*args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/pornhub.py", line 35, in dl
return super(PornHubBaseIE, self)._download_webpage_handle(*args, **kwargs)
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 882, in _download_webpage_handle
urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query, expected_status=expected_status)
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 839, in _request_webpage
raise ExtractorError(errmsg, cause=err)
File "/usr/local/lib/python3.10/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/local/lib/python3.10/http/client.py", line 1276, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1322, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1271, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.10/http/client.py", line 1031, in _send_output
self.send(msg)
File "/usr/local/lib/python3.10/http/client.py", line 969, in send
self.connect()
File "/usr/local/lib/python3.10/http/client.py", line 1441, in connect
super().connect()
File "/usr/local/lib/python3.10/http/client.py", line 945, in connect
self._tunnel()
File "/usr/local/lib/python3.10/http/client.py", line 923, in _tunnel
raise OSError(f"Tunnel connection failed: {code} {message.strip()}")
OSError: Tunnel connection failed: 403 Forbidden
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/yt-dlp/yt_dlp/extractor/common.py", line 821, in _request_webpage
return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query))
File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3742, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/local/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/usr/local/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/local/bin/yt-dlp/yt_dlp/utils.py", line 1555, in https_open
return self.do_open(
File "/usr/local/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error Tunnel connection failed: 403 Forbidden>

Per https://github.com/ytdl-org/youtube-dl/pull/31916 it looks like this could be a cookie problem
Does anyone who is affected by this issue (I'm not) want to test this patch? Feel free to PR it if it works
diff --git a/yt_dlp/extractor/pornhub.py b/yt_dlp/extractor/pornhub.py
index 5d8d7c100..904094b7e 100644
--- a/yt_dlp/extractor/pornhub.py
+++ b/yt_dlp/extractor/pornhub.py
@@ -269,6 +269,8 @@ def _real_extract(self, url):
         self._login(host)

         self._set_cookie(host, 'age_verified', '1')
+        self._set_cookie(host, 'accessAgeDisclaimerPH', '1')
+        self._set_cookie('thumbzilla.com', 'accessAgeDisclaimerTZ', '1')

         def dl_webpage(platform):
             self._set_cookie(host, 'platform', platform)

I just tried your patch and it works from France and Poland. :)
You may need to wait for someone to test it from others countries.

I tested 1 server working now.
The other server gives errors after applying the patch:
[debug] Command-line config: ['-vU', 'https://pornhub.com/view_video.php?viewkey=6411d10dc49b4']
Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/__init__.py", line 969, in main
    _exit(*variadic(_real_main(argv)))
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/__init__.py", line 927, in _real_main
    with YoutubeDL(ydl_opts) as ydl:
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 652, in __init__
    self.print_debug_header()
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3752, in print_debug_header
    from .extractor.extractors import _LAZY_LOADER
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/extractor/extractors.py", line 17, in <module>
    from ._extractors import *  # noqa: F403
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/extractor/_extractors.py", line 1466, in <module>
    from .pornhub import (
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/extractor/pornhub.py", line 272
    self._set_cookie(host, 'accessAgeDisclaimerPH', '1')
TabError: inconsistent use of tabs and spaces in indentation

Server No. has another issue:
Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/__init__.py", line 969, in main
    _exit(*variadic(_real_main(argv)))
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/__init__.py", line 927, in _real_main
    with YoutubeDL(ydl_opts) as ydl:
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 652, in __init__
    self.print_debug_header()
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/YoutubeDL.py", line 3752, in print_debug_header
    from .extractor.extractors import _LAZY_LOADER
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/extractor/extractors.py", line 17, in <module>
    from ._extractors import *  # noqa: F403
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/extractor/_extractors.py", line 1466, in <module>
    from .pornhub import (
  File "/usr/local/lib/python3.10/site-packages/yt_dlp/extractor/pornhub.py", line 276
    def dl_webpage(platform):
IndentationError: unexpected indent
```

@bashonly's solution works for me as well, but only partially. To grab playlists it is also necessary at the beginning of PornHubPagedPlaylistBaseIE._entries e.g. before this line.

I can confirm that playlist fails with the patch.
I also noticed that all the user and channel exractor dont seem to work.
I tested a bit and for me i had to add the patch to this line to get playlist to work. Can someone confirm if that is a me thing?

Tested #6685: Videos and playlists work for me as well :+1:
However, nothing is downloaded for model and channel pages. For the initially posted model page I get the following output:
$> yt-dlp https://www.pornhub.com/model/katekuray -F --verbose
[debug] Command-line config: ['-v', 'https://www.pornhub.com/model/katekuray', '-F', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[392389b7d]
[debug] Lazy loading extractors is disabled
[debug] Python 3.10.10 (CPython x86_64 64bit) - Linux-6.2.10-arch1-1-x86_64-with-glibc2.37 (OpenSSL 3.0.8 7 Feb 2023, glibc 2.37)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0
[debug] Optional libraries: Cryptodome-3.12.0, brotlicffi-<IP_ADDRESS>, certifi-2022.12.07, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1791 extractors
[PornHubUser] Extracting URL: https://www.pornhub.com/model/katekuray
[PornHubPagedVideoList] Extracting URL: https://www.pornhub.com/model/katekuray/videos
[download] Downloading playlist: model/katekuray/videos
[PornHubPagedVideoList] model/katekuray/videos: Downloading page 1
[PornHubPagedVideoList] Playlist model/katekuray/videos: Downloading 0 items of 0
[download] Finished downloading playlist: model/katekuray/videos

For a single video download I am still getting the "Unable to extract encoded url" error.

As stated in other comments the geolocation may be interesting. I am running this command from a German IP address. The video plays just fine on the website.

@Lumpi33 German IP here, too. Have you really added the changes from PR #6685 ? They have not been merged into the main code base yet.

That may be the issue, was using the unchanged checkout of the main branch. Will add the changes from PR #6685 and try again. Thanks

Any news when this will be merged into master?

ERROR: [PornHub] 6418d6ac22acd: Unable to extract encoded url; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template.
This in latest version yt-dlp.

@Superita1
run yt-dlp --update-to nightly if you are using executable/binary
or if using a pip installation, reinstall from master branch
if you still get the error, post a full verbose log

I installed the nightly executable and this is what I got. Somehow yt-dlp doesn't like external drives because it downloads from user page fine without the external drive.
`harry@harrys-MBP Downloads % /Users/harry/Downloads/yt-dlp --verbose 'https://www.pornhub.com/pornstar/indigo-white/videos/upload' -o '/Volumes/Big One/indigo white/%(title)s %(webpage_url_domain)a]s %(id)s.%(ext)s' --add-metadata
[debug] Command-line config: ['--verbose', 'https://www.pornhub.com/pornstar/indigo-white/videos/upload', '-o', '/Volumes/Big One/indigo white/%(title)s %(webpage_url_domain)a]s %(id)s.%(ext)s', '--add-metadata']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[c25cac2f8] (darwin_exe)
[debug] Python 3.11.3 (CPython x86_64 64bit) - macOS-12.6.6-x86_64-i386-64bit (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1832 extractors
[PornHubUserVideosUpload] Extracting URL: https://www.pornhub.com/pornstar/indigo-white/videos/upload
[download] Downloading playlist: indigo-white
[PornHubUserVideosUpload] indigo-white: Downloading page 1
[PornHubUserVideosUpload] indigo-white: Downloading page 2
[PornHubUserVideosUpload] indigo-white: Downloading page 3
[PornHubUserVideosUpload] indigo-white: Downloading page 4
[PornHubUserVideosUpload] indigo-white: Downloading page 5
[PornHubUserVideosUpload] indigo-white: Downloading page 6
[PornHubUserVideosUpload] indigo-white: Downloading page 7
[PornHubUserVideosUpload] indigo-white: Downloading page 8
[PornHubUserVideosUpload] indigo-white: Downloading page 9
[PornHubUserVideosUpload] indigo-white: Downloading page 10
[PornHubUserVideosUpload] indigo-white: Downloading page 11
ERROR: 'webpage_url_domain'
Traceback (most recent call last):
File "yt_dlp/YoutubeDL.py", line 1552, in wrapper
File "yt_dlp/YoutubeDL.py", line 1649, in __extract_info
File "yt_dlp/YoutubeDL.py", line 1778, in process_ie_result
File "yt_dlp/YoutubeDL.py", line 1869, in __process_playlist
File "yt_dlp/YoutubeDL.py", line 1388, in prepare_filename
File "yt_dlp/YoutubeDL.py", line 1359, in _prepare_filename
File "yt_dlp/YoutubeDL.py", line 1351, in evaluate_outtmpl
KeyError: 'webpage_url_domain'
harry@harrys-MBP Downloads % /Users/harry/Downloads/yt-dlp --verbose 'https://www.pornhub.com/pornstar/indigo-white/videos/upload'
[debug] Command-line config: ['--verbose', 'https://www.pornhub.com/pornstar/indigo-white/videos/upload']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[c25cac2f8] (darwin_exe)
[debug] Python 3.11.3 (CPython x86_64 64bit) - macOS-12.6.6-x86_64-i386-64bit (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: ffmpeg 6.0 (setts), ffprobe 6.0
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2023.05.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1832 extractors
[PornHubUserVideosUpload] Extracting URL: https://www.pornhub.com/pornstar/indigo-white/videos/upload
[download] Downloading playlist: indigo-white
[PornHubUserVideosUpload] indigo-white: Downloading page 1
[PornHubUserVideosUpload] indigo-white: Downloading page 2
[PornHubUserVideosUpload] indigo-white: Downloading page 3
[PornHubUserVideosUpload] indigo-white: Downloading page 4
[PornHubUserVideosUpload] indigo-white: Downloading page 5
[PornHubUserVideosUpload] indigo-white: Downloading page 6
[PornHubUserVideosUpload] indigo-white: Downloading page 7
[PornHubUserVideosUpload] indigo-white: Downloading page 8
[PornHubUserVideosUpload] indigo-white: Downloading page 9
[PornHubUserVideosUpload] indigo-white: Downloading page 10
[PornHubUserVideosUpload] indigo-white: Downloading page 11
[PornHubUserVideosUpload] Playlist indigo-white: Downloading 378 items of 378
[download] Downloading item 1 of 378
[PornHub] Extracting URL: http://www.pornhub.com/view_video.php?viewkey=647276b354344
[PornHub] 647276b354344: Downloading pc webpage
[PornHub] 647276b354344: Downloading m3u8 information
[PornHub] 647276b354344: Downloading m3u8 information
[PornHub] 647276b354344: Downloading m3u8 information
[PornHub] 647276b354344: Downloading m3u8 information
[PornHub] 647276b354344: Downloading JSON metadata
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 647276b354344: Downloading 1 format(s): hls-2530
[debug] Invoking hlsnative downloader on "https://cv-h.phncdn.com/hls/videos/202305/27/432392161/,1080P_4000K,720P_4000K,480P_2000K,240P_1000K,432392161.mp4.urlset/index-f1-v1-a1.m3u8?u8fkenSsxAbTs_QaxeKwN0XJ2G5l3sDoGXQ2EvYd5XCQxtIK5VmUjaf72M-6vpNCIZu_wT5FajNxtWe-qVvfVEpCNkBSqHipaz9m1H-uHPC97_52umgFV50L4w_bQ1D5BxuMYiFlL18zFz8V8KB-jUvYz8OXcw1AFJ6q0bs5QSGKxO-S5VRX06QKBRhettbMXB7RIpYy3E"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 258
[download] Destination: EMOTIONAL SUPPORT TWINK (MOSTLY SFW) - INDIGO WHITE [647276b354344].mp4`

@crumhirnd looks like the error is due to a typo in your output template:
-o '/Volumes/Big One/indigo white/%(title)s %(webpage_url_domain)a]s %(id)s.%(ext)s'
change %(webpage_url_domain)a]s to %(webpage_url_domain)s


x/website: more Gopher artworks on hero section

What is the URL of the page with the issue?
Refer to the Gopher on the ladder artwork
https://go.dev/
What is your user agent?
NA
Screenshot
NA
What did you do?
NA
What did you expect to see?
Not sure if this issue can discuss on improving Go marketing site.
We have seen some creativity from designers have created various form of Gophers artworks.
e.g. https://github.com/egonelbre/gophers
Instead of showing the same Gopher image, it could randomise various Gopher artworks just as Go can be written for many purposes.
What did you see instead?
Gopher on the ladder.

cc @dmitshur @jamalc

That's a cool idea


start create component

What does this PR do and why?
Provide a description of what this PR does. Link to any relevant GitHub issues, Notion tasks or Discord discussions.
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.
[ ] I have tested this PR in dark mode and light mode (if applicable).

Current dependencies on/for this PR:

main

PR #2365

PR #2403

PR #2404

PR #2405

PR #2406   👈

This comment was auto-generated by Graphite.


Letter spacing in Tabs text

Text inside the tabs have to follow the same "Letter Spacing Style" as the others components
Tabs have 1 pixel of letter spacing each (12/ semibold/ 1px)
Image of the Demo:

Image of the Figma files:

See Design System:
https://www.figma.com/file/gnodK9xtoOahXBqa6ONsA5/WW-Design-System?type=design&node-id=2907%3A8713&mode=design&t=gJz0fdnU97xYQisY-1

@mmoulian What is the deliverable here? Are the tab components "out of compliance" with the Figma files, and if so, how can we fix it.

@jpellizzari
This is a small detail. I will try to explain myself better. All components (buttons and sidebar) have 1px letter spacing in the text, but tabs don't (at least I can't see it visually or in code)

@jpellizzari @mmoulian if this issue is OK to pick up, I can add the required letter spacing. I need a couple of small issues to work on until Monday or Tuesday.

@opudrovs Yes go ahead :)

@mmoulian I've checked for this issue in OSS and see that both locally built OSS and the staging demo os OSS has proper letter spacing of 1px in the tabs text. So, it must be an enterprise issue only. Will try it locally with the main branch of enterprise now.

As discussed with @joshri , the current issue might be fixed by the following PR:
https://github.com/weaveworks/weave-gitops/pull/3989
which closes issue #3918
This PR moves styles for the SubRouterTabs component used by WGE from the ui/lib/theme.ts file in OSS to SubRouterTabs. So, this should add the required letter-spacing: 1px` to tabs in WGE.
But to test it I need that PR merged first, because trying to update WGE from this PR branch throws and error for me (and from the local files too), maybe because of the step "publish js library" skipped in the PR.

Hi @opudrovs! I'm looking at the EE demo and it's fixed. Thank you!

@mmoulian great, thanks for verifying it!
(Actually, it was not much to do here, I just waited until the OSS PR which moved the tab styles to the component instead of global styles is merged and updated enterprise with the latest OSS + fixed a broken snapshot test.)


adjust text position on symbol (picked from #2026  )

see #2026

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.006%) to 99.447%

Files with Coverage Reduction
New Missed Lines
%

src/modules/olMap/handler/draw/OlDrawHandler.js
1
98.23%

Totals

Change from base Build<PHONE_NUMBER>:
-0.006%

Covered Lines:
10991

Relevant Lines:
10997

💛  - Coveralls


Visualization of the image token

Thanks for your awesome work! I wonder how could I get the patch pixels of an image token? I know it requires the dVAE decoder
to decode the image tokens. Does the code contain the decoding process? Or could you recommend any pre-trained models that I could quickly decode the image tokens? I appreciate your reply.

We use the VQGAN instead of the dVAE as the image tokenizer in our model.  Our released code contains the decoding process (and the encoding process in the future).
The pretrained ckpt we use is an f8-model with 8192 codebook entries
. We also add this pretrained VQGAN ckpt to our text-to-image ckpt zip file.
As for visualization, from our previous experience, it doesn't make much sense to visualize a single image token from VQGAN codebooks. The image tokens will influence each other during the decoding process.


Error: Dark Mode Not Working on Saved Blogs Page

Describe the Error
The dark mode is not functioning properly on the saved blogs page. When toggling to dark mode, the background and text colors do not change as expected.

@sanjay-kv Please assign this issue to me.

I would like to work on this issue @sanjay-kv

@vprathap21 could you check again, its working for me.


Uncaught TypeError $(...).circliful is not a function when inside another function

Hey all,
First of all, I have Circliful installed correctly because it works on some situations, just to get this out of the way.
On my app, when I call the circliful function with the settings like this:
$(document).ready(function() {
    $("someSelector").circliful();
}

It works and displays the circle I want (I also add settings, but this is not the point).
However, if I try to call circliful inside an AJAX request or a click event, starting a circle OR after having destroyed an existing one like this for example:
$(document).ready(function() {
   $.ajax({
		method: 'GET',
		dataType: 'json',
		url: '/something',
		success: function(data) {
			$('someSelector').circliful();
		}
	});

   //Or
   $('#someButton').click(function() {
      $('someSelector').circliful();
   }
}

It gives me the error:
Uncaught TypeError: $(...).circliful is not a function
For the record I tried some of the solutions on the issues page here but nothing worked. Thank you

Works  perfectly fine with Ajax and also inside a click event see here https://jsfiddle.net/p14aqasc/1/


Provide isn't reactive with a single array

Version
2.2.4
Reproduction link
http://codepen.io/anon/pen/VpyqEz?editors=1111
Steps to reproduce
Create a parent and child component
Set the provide of the parent using vuex
Inject the provide of the parent to child
What is expected?
Must be reactive
What is actually happening?
Not Reactive

It actually doesn't depend on Vuex. It happens with plain Vue: http://codepen.io/anon/pen/EWoMLr?editors=1111
Using a single array, nothing is tracked. But if we display another injected property (in this case bar), both are updating accordingly


Issue with using on par with poetry

Hi there! When I try to add Granian to a project, it fails.
/tmp
❯ mkdir testpoetry-granian

/tmp
❯ cd testpoetry-granian

/tmp/testpoetry-granian
❯ poetry init -q

/tmp/testpoetry-granian is 📦 v0.1.0 via 🐍 v3.11.0
❯ poetry add granian==0.3.0
Creating virtualenv testpoetry-granian in /private/tmp/testpoetry-granian/.venv

Updating dependencies
Resolving dependencies... (0.1s)

Writing lock file

Package operations: 8 installs, 0 updates, 0 removals

  • Installing idna (3.4)
  • Installing sniffio (1.3.0)
  • Installing anyio (3.6.2)
  • Installing click (8.1.3)
  • Installing typer (0.7.0)
  • Installing uvloop (0.17.0)
  • Installing watchfiles (0.18.1)
  • Installing granian (0.3.0): Failed

  AssertionError

  In /Users/lev/Library/Caches/pypoetry/artifacts/60/fe/00/2931d21a92fc2dc50a454589ca558160dde1d497d46471b44c75b3c653/granian-0.3.0-cp311-cp311-macosx_11_0_arm64.whl, granian/__init__.py is not mentioned in RECORD

  at /opt/homebrew/Cellar/poetry/1.4.0/libexec/lib/python3.11/site-packages/installer/sources.py:158 in get_contents
      154│             if item.filename[-1:] == "/":  # looks like a directory
      155│                 continue
      156│
      157│             record = record_mapping.pop(item.filename, None)
    → 158│             assert record is not None, "In {}, {} is not mentioned in RECORD".format(
      159│                 self._zipfile.filename,
      160│                 item.filename,
      161│             )  # should not happen for valid wheels
      162│

/tmp/testpoetry-granian is 📦 v0.1.0 via 🐍 v3.11.2
❯

Here are steps that I took:
cd /tmp
mkdir testpoetry-granian
cd testpoetry-granian
poetry init -q
poetry add granian==0.3.0

I'm using ARM Mac. Python 3.11.2, Poetry 1.4.0. Doesn't work with Granian 0.2.0 either.

It seems to me a bug in Poetry handling maturin packages, as:

it runs fine with poetry 1.3.x
it runs fine with 1.4 and poetry config experimental.new-installer false

I might upgrade the maturin version used for producing the wheels, but the whole thing is still quite strange to me..

This was actually a misconfig in maturin, should now be solved in granian 0.3.1

@gi0baro Great! Thanks for the help ❤


CSRF protection on SSO API

Looks like OneLogin sends its response SAML token as a POST request.
This is being blocked by the CSRF protection and returning
{"status": 400, "message": "Bad Request"}

You can solve this by adding a CSRF exempt for the SSO blueprint. E.g.
from security_monkey import db, rbac, csrf

mod = Blueprint('sso', __name__)
csrf.exempt(mod)

Given that the requests are authenticated and signed, I don't see a big issue with a CSRF exempt on SSO.

Sorry no PR, I don't have an environment setup for this at the moment :(

PR Merged.


Update expressroute-routing.md

minor grammar fix - add "use" to sentence

Hi @kpraxor, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

@cherylmc - Please review this public repo contribution.

@kpraxor - thanks for letting us know! @tysonn - could you please merge this in?